/* Bravoso — hoja de estilos común
   Paleta: crema, chocolate y menta. Composición «frame-scene». */

:root {
  --bg: #f7f2e9;
  --bg-alt: #ebe3d5;
  --bg-dark: #2a1d16;
  --ink: #241c14;
  --ink-soft: #7a6b5c;
  --ink-inv: #f7f2e9;
  --accent: #7a4526;
  --accent-2: #3f7a6a;
  --rule: #d6c9b4;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gap: 24px;
  --scene-space: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

p { margin: 0 0 1.15em; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.35em;
}

/* ---------- estructura ---------- */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
}

.col-text { grid-column: 3 / span 7; }
.col-wide { grid-column: 3 / span 9; }

/* ---------- perforaciones (motivo de película) ---------- */

.perf {
  height: 14px;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0 8px,
    transparent 8px 22px
  );
  background-size: 22px 8px;
  background-repeat: repeat-x;
  background-position: left center;
}

.perf--dark {
  background-image: repeating-linear-gradient(
    to right,
    rgba(247, 242, 233, 0.45) 0 8px,
    transparent 8px 22px
  );
}

/* ---------- cabecera y navegación ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  padding-top: 20px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--accent); }

.brand:hover { text-decoration: none; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  padding: 60px 0 var(--scene-space);
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: end;
}

.rail {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  border-right: 1px solid var(--rule);
  padding-right: 16px;
}

.rail ol {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rail li {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent-2);
  flex: none;
}

.rail li:nth-child(odd)::before { background: var(--accent); }

.rail__cap {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0;
  line-height: 1.5;
}

.hero__head { grid-column: 3 / span 9; }

.hero__kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 18px;
}

.hero__lead {
  grid-column: 3 / span 6;
  color: var(--ink);
  font-size: 1.06rem;
  margin-top: 26px;
}

.hero__lead p:last-child { margin-bottom: 0; }

.hero__figure {
  grid-column: 9 / span 4;
  margin: 0;
  align-self: end;
}

.hero__figure img {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--bg-alt);
}

.figcap {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: right;
}

/* ---------- escenas ---------- */

.scene {
  padding: var(--scene-space) 0;
  border-bottom: 1px solid var(--rule);
}

.scene--alt { background: var(--bg-alt); }

.scene__num {
  grid-column: 1 / span 2;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 6px;
}

.scene__num::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  background: var(--accent-2);
  margin-top: 12px;
}

.scene__body { grid-column: 3 / span 7; }
.scene__body--wide { grid-column: 3 / span 9; }

.scene__body > :last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}

.note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-top: 28px;
}

.note p:last-child { margin-bottom: 0; }

/* ---------- listas ---------- */

.checklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 36px;
}

.checklist li {
  break-inside: avoid;
  margin: 0 0 16px;
  padding-left: 20px;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.steps {
  margin: 22px 0 0;
  padding-left: 22px;
}

.steps li {
  margin-bottom: 14px;
  padding-left: 4px;
}

.steps li::marker {
  font-family: var(--mono);
  color: var(--accent-2);
  font-size: 0.9rem;
}

.terms-list { margin: 22px 0 0; padding: 0; }

.terms-list dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 20px;
}

.terms-list dd {
  margin: 4px 0 0;
  color: var(--ink);
}

/* ---------- sección contrastada ---------- */

.scene--dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
  border-bottom: none;
}

.scene--dark h2,
.scene--dark h3 { color: var(--ink-inv); }

.scene--dark .scene__num { color: #d9a878; }
.scene--dark .scene__num::after { background: #6ea294; }
.scene--dark .eyebrow { color: #6ea294; }

.scene--dark a { color: #e0b083; }

.scene--dark .figcap { color: #b6a493; text-align: left; }

.dark-figure {
  grid-column: 3 / span 4;
  margin: 0;
}

.dark-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid rgba(247, 242, 233, 0.55);
}

.dark-text { grid-column: 8 / span 5; }
.dark-text > :last-child { margin-bottom: 0; }

.scene--dark .note {
  border-left-color: #6ea294;
  color: #cdbcab;
}

/* ---------- bloques numerados (About) ---------- */

.numbered { border-top: 1px solid var(--rule); padding-top: 34px; margin-top: 34px; }
.numbered:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* ---------- páginas interiores ---------- */

.page-head {
  padding: 58px 0 42px;
  border-bottom: 1px solid var(--rule);
}

.page-head__grid { row-gap: 18px; }

.page-head h1 {
  grid-column: 3 / span 9;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}

.page-head__label {
  grid-column: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding-top: 10px;
}

.page-head__lead {
  grid-column: 3 / span 7;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.page-head__lead p:last-child { margin-bottom: 0; }

.updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 34px;
}

/* ---------- pie ---------- */

.site-foot {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding-bottom: 46px;
}

.site-foot .perf { margin-bottom: 46px; }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px var(--gap);
  align-items: start;
}

.foot-brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.foot-about {
  color: #cdbcab;
  font-size: 0.95rem;
  max-width: 38ch;
  margin: 0;
}

.foot-nav ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.foot-nav a,
.site-foot a {
  color: #e0b083;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.foot-mail {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: #cdbcab;
  margin: 0;
}

.foot-legal {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 242, 233, 0.22);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #a3907e;
}

.site-foot :focus-visible { outline-color: #e0b083; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --scene-space: 64px; }

  .col-text, .col-wide,
  .scene__body, .scene__body--wide,
  .hero__head, .hero__lead,
  .dark-text, .dark-figure,
  .page-head h1, .page-head__lead { grid-column: 1 / -1; }

  .hero__figure { grid-column: 1 / -1; }

  .scene__num, .page-head__label {
    grid-column: 1 / -1;
    padding-top: 0;
    margin-bottom: 14px;
  }

  .rail {
    grid-column: 1 / -1;
    grid-row: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 18px;
  }

  .rail ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .figcap { text-align: left; }

  .dark-figure { max-width: 380px; }
}

@media (max-width: 640px) {
  :root { --scene-space: 52px; }

  body { font-size: 17px; }

  .wrap { padding: 0 18px; }

  .hero { padding-top: 40px; }

  .checklist { columns: 1; }

  .foot-grid { grid-template-columns: 1fr; }

  .site-head__inner { padding-top: 16px; }

  .site-nav ul { gap: 4px 16px; }
}
