/* ─────────────────────────────────────────────────────────────────────────
   Sol a Sol · el día entero, la luz cae con el scroll
   El JS interpola --bg-rgb / --ink-rgb según la hora del día narrativa.
   ──────────────────────────────────────────────────────────────────────── */

:root {
  --bg-rgb:  241, 230, 207;     /* mediodía (lo pisa el JS) */
  --ink-rgb: 42, 24, 16;
  --cream:   #f3ead6;
  --accent:  #93333a;           /* burdeos */
  --font-display: 'Marcellus', serif;
  --font-italic:  'Cormorant Garamond', serif;
  --font-body:    'Special Elite', monospace;

  --bg:       rgb(var(--bg-rgb));
  --ink:      rgb(var(--ink-rgb));
  --ink-soft: rgba(var(--ink-rgb), .78);
  --muted:    rgba(var(--ink-rgb), .58);
  --line:     rgba(var(--ink-rgb), .26);
  --hairline: rgba(var(--ink-rgb), .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--cream); }

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(42,24,16,.12) 1px, transparent 1px),
    radial-gradient(rgba(42,24,16,.06) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  opacity: .30;
  mix-blend-mode: multiply;
}
body[data-grain="0"]::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
em { font-family: var(--font-italic); font-style: italic; font-size: 1.15em; color: var(--accent); }
strong { font-weight: 400; color: inherit; border-bottom: 1px solid var(--accent); }
a { color: inherit; text-underline-offset: 3px; }
.faq-a a { color: var(--accent); text-decoration-color: rgba(var(--ink-rgb), .35); }
.faq-a a:hover { text-decoration-color: var(--accent); }

/* ─── NAV ──────────────────────────────────────────────────────────── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: opacity .35s;
  border-bottom: 1px solid transparent;
}
.topnav[data-state="initial"] { opacity: 0; pointer-events: none; }
.topnav[data-state="visible"] {
  opacity: 1;
  background: rgba(var(--bg-rgb), .82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}
.topnav .brand { font-family: var(--font-display); font-size: 14px; letter-spacing: .18em; }
.topnav .brand span { color: var(--accent); margin: 0 6px; }
.topnav-links { display: flex; gap: 28px; }
.topnav-links a { color: inherit; text-decoration: none; letter-spacing: .18em; }
.topnav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; position: relative; z-index: 62; width: 40px; height: 40px; margin-right: -8px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
.nav-toggle i { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .18s; }
.nav-toggle i:nth-child(1) { top: 14px; }
.nav-toggle i:nth-child(2) { top: 20px; }
.nav-toggle i:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; z-index: 48; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.nav-backdrop[data-on="1"] { opacity: 1; }

/* ─── SCENE BASICS ─────────────────────────────────────────────────── */
.scene { position: relative; z-index: 2; }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 48px; }

.section-head { text-align: center; margin: 0 auto 64px; max-width: 640px; }
.eyebrow {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; margin: 0 0 18px; }
.lede { color: var(--ink-soft); text-wrap: pretty; font-size: 16px; margin: 0 auto; max-width: 52ch; }

/* generic reveal */
.rev { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.rev[data-on="1"] { opacity: 1; transform: none; }

.cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); background: var(--accent);
  padding: 14px 26px; text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.cta-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.cta-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* ─── 01 · COVER ───────────────────────────────────────────────────── */
/* Editorial (por defecto): texto en tinta sobre papel, foto como banda inferior */
.cover { position: relative; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.cover-inner {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 56px 24px 26px;
  gap: clamp(14px, 2.2vh, 26px);
}
.cover-date, .cover-meta {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 14px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.cover-date i, .cover-meta i { width: 44px; height: 1px; background: var(--accent); flex: none; }
.cover-date span, .cover-meta span { white-space: nowrap; }
@media (max-width: 600px) {
  .cover-date, .cover-meta { flex-direction: column; gap: 9px; font-size: 12px; letter-spacing: .22em; text-align: center; }
  .cover-date span, .cover-meta span { text-indent: .22em; }
  .cover-date i, .cover-meta i { width: 32px; margin: 0 auto; }
}
.cover-photo { position: relative; z-index: 0; height: 42vh; overflow: hidden; }
.cover-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.08);
  will-change: transform;
}
.cover-scrim { display: none; }

/* Variante "Foto": la imagen llena la portada, texto en crema encima */
body[data-cover="photo"] .cover { display: grid; place-items: center; }
body[data-cover="photo"] .cover-photo { position: absolute; inset: 0; height: auto; z-index: 0; }
body[data-cover="photo"] .cover-scrim {
  display: block;
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(6,4,3,.68) 0%,
      rgba(6,4,3,.28) 30%,
      rgba(6,4,3,.36) 56%,
      rgba(6,4,3,.22) 74%,
      rgba(6,4,3,.62) 100%);
}
body[data-cover="photo"] .cover-inner { flex: none; margin-top: -4vh; padding: 0 24px; }
body[data-cover="photo"] .cover-title { color: var(--cream); text-shadow: 0 2px 6px rgba(20,12,8,.45); }
body[data-cover="photo"] .cover-title .amp { color: var(--cream); opacity: 1; }
body[data-cover="photo"] .cover-title .cw-2 { text-shadow: 0 2px 40px rgba(6,4,3,.6); }
body[data-cover="photo"] .cover-date,
body[data-cover="photo"] .cover-meta { color: #fff; text-shadow: 0 1px 3px rgba(20,12,8,.75); }
body[data-cover="photo"] .cover-date i,
body[data-cover="photo"] .cover-meta i { background: currentColor; opacity: .6; }

.cover-title {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  color: var(--ink);
  line-height: .98;
}
.cover-title .cw { display: block; font-family: var(--font-display); }
.cover-title .cw-1 { font-size: clamp(52px, 8.4vw, 124px); }
.cover-title .cw-2 { font-size: clamp(58px, 9.4vw, 146px); font-family: var(--font-italic); font-style: italic; }
.cover-title .amp {
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  margin: 8px 0;
  color: var(--accent);
}
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(20,12,8,.6);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
.global-cue {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  color: var(--accent); opacity: 0; pointer-events: none;
  transition: opacity .5s ease; animation: cuenudge 2.4s ease-in-out infinite;
}
.global-cue[data-on="1"] { opacity: .55; }
@keyframes cuenudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .global-cue { animation: none; } }

/* ─── 02 · PROLOGUE ────────────────────────────────────────────────── */
.prologue { height: 320vh; }
.prologue .pin { display: grid; place-items: center; }
.prologue-grid { text-align: center; max-width: 760px; padding: 0 32px; }
.pline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.18;
  margin: 0 0 10px;
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.pline-pause { font-size: clamp(22px, 3vw, 34px); color: var(--ink-soft); margin-top: 26px; }
.pline[data-on="1"] { opacity: 1; transform: none; }

/* ─── efectos de la última línea del prólogo (Tweak) ───────────────── */
/* 1 · Máquina de escribir (por defecto) */
body[data-prologue-fx="typewriter"] .pline-pause {
  transform: none; transition: opacity .4s ease;
}
.tw-caret {
  display: inline-block; width: .5ch; height: .9em;
  background: var(--accent); vertical-align: -.08em;
  margin-left: .08em;
  animation: twblink 1.05s steps(1) infinite;
}
@keyframes twblink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-caret { animation: none; } }

/* 2 · Rack focus (entra desenfocada y enfoca) */
body[data-prologue-fx="focus"] .pline-pause {
  filter: blur(18px); opacity: 0; transform: none;
  transition: filter 1.15s cubic-bezier(.2,.7,.2,1), opacity 1.15s ease;
}
body[data-prologue-fx="focus"] .pline-pause[data-on="1"] { filter: blur(0); opacity: 1; }

/* 3 · «boda» tachada a mano, trazo orgánico con SVG */
.fx-strike { position: relative; white-space: nowrap; }
.fx-strike::after { display: none; }    /* sustituido por SVG inline */
.fx-strike-svg {
  position: absolute; left: -7%; width: 114%;
  top: 50%; height: .55em;
  transform: translateY(-50%);
  overflow: visible; pointer-events: none;
}

/* 4 · Spotlight (aísla la línea, atenúa las demás) */
body[data-prologue-fx="spotlight"] .prologue-grid[data-spot="1"] .pline:not(.pline-pause) {
  opacity: .16; filter: blur(1.5px);
  transition: opacity .8s ease, filter .8s ease;
}
body[data-prologue-fx="spotlight"] .pline-pause[data-on="1"] {
  transform: scale(1.06);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.25,1);
}

/* ─── 03 · REASON ──────────────────────────────────────────────────── */
.reason { height: 360vh; }
.reason .pin { display: grid; place-items: center; }
.reason-grid { text-align: center; max-width: 900px; padding: 0 32px; }
.reason-eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.reason-title {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  line-height: 1.1;
}
.reason-tline {
  display: block;
  font-size: clamp(34px, 5.4vw, 66px);
  opacity: 0; transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}
.reason-tline[data-on="1"] { opacity: 1; transform: none; }
.reason-tline-em {
  font-family: var(--font-italic); font-style: italic;
  color: var(--accent);
  font-size: clamp(42px, 7vw, 88px);
  transition-delay: .08s;
}
.reason-foot-block { text-align: center; margin-top: 48px; }
.rfoot-line {
  margin: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity .75s ease, transform .75s ease;
}
.rfoot-line[data-on="1"] { opacity: 1; transform: none; }
.rfoot-attr {
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: .01em;
  color: var(--muted); margin-bottom: 18px;
}
.rfoot-main {
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.28; color: var(--ink-soft);
  transition-delay: .12s;
}
.reason-grid { transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }

/* finale cinematográfico · "Pues venga, por el aro" */
.reason-finale {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  gap: clamp(10px, 2vh, 22px);
  text-align: center; padding: 0 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .9s ease;
}
.reason-finale[data-on="1"] { opacity: 1; }
.rf-lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 46px);
  letter-spacing: .04em;
  color: var(--ink-soft);
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.reason-finale[data-lead="1"] .rf-lead { opacity: 1; transform: none; }
.rf-ring {
  position: relative; display: inline-block;
  padding: clamp(28px, 5vh, 56px) clamp(40px, 7vw, 96px);
}
.rf-words {
  position: relative; z-index: 2;
  display: inline-block;
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(54px, 9.4vw, 150px);
  line-height: 1; color: var(--accent);
  text-shadow: 0 2px 40px rgba(var(--bg-rgb), .5);
  opacity: 0; transform: scale(.9) translateY(10px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.25,1);
}
.reason-finale[data-words="1"] .rf-words { opacity: 1; transform: none; }
.rf-ringsvg {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; overflow: visible;
}
.rf-ringsvg ellipse {
  fill: none; stroke: var(--accent); stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  opacity: .8;
}
.rf-cue {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s ease .15s, transform .8s ease .15s;
}
.reason-finale[data-cue="1"] .rf-cue { opacity: 1; transform: none; }

/* ─── 07 · APPROACH ────────────────────────────────────────────────── */
.approach { height: 300vh; }
.approach-photo { position: absolute; inset: 0; }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.approach-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,11,7,.62), rgba(18,11,7,.10) 50%, rgba(18,11,7,.18));
}
.approach-overlay {
  position: absolute; left: 0; right: 0; bottom: 10vh;
  text-align: center; color: var(--cream);
  opacity: 0;
}
.approach-eyebrow { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; margin-bottom: 16px; opacity: .9; }
.approach-title { margin: 0; line-height: .96; display: flex; flex-direction: column; }
.approach-title span:first-child { font-size: clamp(56px, 9vw, 140px); font-family: var(--font-display); }
.approach-title span:last-child { font-size: clamp(48px, 8vw, 120px); font-family: var(--font-italic); font-style: italic; }
.approach-meta { margin-top: 20px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }

/* ─── 08a · EL CHOQUE · Javier vs Alejandra (intro del día) ─────────── */
.sas-intro {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--cream);
  padding: 0 clamp(28px, 6vw, 90px);
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 50%, rgba(8,5,3,.68) 0%, rgba(8,5,3,.44) 100%);
  text-shadow: 0 2px 16px rgba(6,4,2,.6);
}
.sas-intro-eyebrow {
  font-size: clamp(12px, 1.4vw, 15px); letter-spacing: .34em; text-transform: uppercase;
  margin-bottom: clamp(26px, 5vh, 52px);
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.sas-versus {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(22px, 4vw, 60px); align-items: center;
  max-width: 1040px; width: 100%;
}
.sv-col {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.25,1);
}
.sv-javier { text-align: right; }
.sv-ale { text-align: left; }
.sv-name { display: block; font-size: clamp(34px, 4.6vw, 66px); line-height: 1; font-family: var(--font-display); color: var(--cream); }
.sv-tag {
  display: block; margin-top: 12px;
  font-size: clamp(10.5px, 1.1vw, 12.5px); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243,234,214,.88);
}
.sv-col p {
  margin: 16px 0 0; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.62;
  color: #f3ead6; text-wrap: pretty; max-width: 34ch;
}
.sv-javier p { margin-left: auto; }
.sv-ale p { margin-right: auto; }
.sv-amp {
  align-self: center;
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(30px, 3.6vw, 54px); color: var(--cream);
  opacity: 0; transform: scale(.7);
  transition: opacity .8s ease, transform .8s ease;
}
.sas-intro-foot {
  max-width: 58ch; margin: clamp(30px, 5vh, 54px) auto 0;
  font-family: var(--font-italic); font-style: italic;
  font-size: clamp(19px, 2.3vw, 31px); line-height: 1.4;
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.sas-intro-final {
  margin: clamp(22px, 3.4vh, 34px) 0 0;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.5vw, 16px); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.sif-arrow { font-size: 1.2em; animation: cue 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .sif-arrow { animation: none; } }
.sas-intro-eyebrow[data-on="1"],
.sv-col[data-on="1"],
.sv-amp[data-on="1"],
.sas-intro-foot[data-on="1"],
.sas-intro-final[data-on="1"] { opacity: 1; transform: none; }

/* ─── 08 · SOL A SOL ───────────────────────────────────────────────── */
.solasol { height: 1080vh; }
.sas-photos { position: absolute; inset: 0; }
.sas-photos figure { position: absolute; inset: 0; margin: 0; opacity: 0; }
.sas-photos img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.sas-photos figure.sas-subfade { position: absolute; inset: 0; }
.sas-photos figure.sas-subfade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.sas-intro-bg { position: absolute; inset: 0; z-index: 1; }
.sas-intro-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sas-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,8,6,.78), rgba(12,8,6,.22) 46%, rgba(12,8,6,.30));
}
.sas-ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(28px, 5vw, 80px) 4vh;
  color: var(--cream);
  transition: opacity .5s ease;
}
.sas-head { position: absolute; top: 12vh; left: clamp(28px, 5vw, 80px); }
.sas-eyebrow { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; opacity: .9; margin-bottom: 12px; }
.sas-time {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 170px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 30px rgba(12,8,6,.55);
}
.sas-captions { position: relative; height: 120px; max-width: 560px; margin-bottom: 5vh; }
.sas-caption {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(-24px);
  transition: opacity .55s ease, transform .55s ease;
}
.sas-caption[data-on="1"] { opacity: 1; transform: none; }
.sas-caption h3 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }
.sas-caption p { margin: 0; font-size: 15px; line-height: 1.6; opacity: .88; max-width: 46ch; text-wrap: pretty; }
.sas-ticks {
  display: flex; gap: 4px;
  border-top: 1px solid rgba(243,234,214,.28);
  padding-top: 14px;
}
.sas-tick {
  appearance: none; border: 0; background: transparent;
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: .18em;
  color: var(--cream); opacity: .45;
  cursor: pointer;
  padding: 0;
  transition: opacity .3s;
  font-variant-numeric: tabular-nums;
}
.sas-tick i { display: block; width: 100%; height: 2px; background: currentColor; opacity: .4; }
.sas-tick[data-on="1"] { opacity: 1; }
.sas-tick[data-on="1"] i { background: var(--accent); opacity: 1; }
.sas-tick:hover { opacity: .85; }
.sas-progress { position: relative; height: 2px; margin-top: 10px; background: rgba(243,234,214,.16); border-radius: 2px; }
.sas-progress-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--accent); border-radius: 2px; }
.sas-progress-arrow { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: translateY(-50%) rotate(45deg); }

/* ─── 08b · CAL STRIP ──────────────────────────────────────────────── */
.cal-strip { padding: 14vh 0; text-align: center; }
.cal-strip p { font-size: clamp(19px, 2.2vw, 26px); margin: 0 0 26px; font-family: var(--font-display); }
.cal-strip .wrap { max-width: 700px; }

/* ─── 09 · MAPA ────────────────────────────────────────────────────── */
.map-scene { padding: 10vh 0 12vh; }
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  outline: 1px solid var(--hairline);
  outline-offset: 5px;
  background: rgba(var(--ink-rgb), .035);
  padding: 10px;
}
#route-map { display: block; width: 100%; height: auto; color: var(--ink); }
#route-map .mgrid line { stroke: rgb(var(--ink-rgb)); stroke-width: .5; opacity: .06; }
#route-map .mriver { stroke: rgba(96, 120, 122, .55); stroke-width: 2; opacity: .65; }
#route-map .mroad-ghost { stroke: rgb(var(--ink-rgb)); stroke-width: 2; stroke-linecap: round; fill: none; opacity: .14; stroke-dasharray: 2 7; }
#route-map .mroad { stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
#route-map .mroad-main { stroke-width: 5; }
#route-map .mcanal { stroke: rgba(96, 120, 122, .5); stroke-width: 1.4; fill: none; stroke-dasharray: 6 5; opacity: .7; }
#route-map .mlabel {
  font-family: var(--font-body);
  font-size: 18px; letter-spacing: .06em;
  fill: var(--ink);
}
#route-map .mlabel-vd { text-anchor: end; font-size: 21px; }
#route-map .mlabel-end { text-anchor: end; }
#route-map .mlabel-region { font-size: 16px; letter-spacing: .42em; fill: rgba(var(--ink-rgb), .28); }
#route-map .mlabel-river { font-family: var(--font-italic); font-style: italic; font-size: 17px; letter-spacing: .04em; fill: rgba(96, 120, 122, .85); }
#route-map .mlabel-canal { font-family: var(--font-italic); font-style: italic; font-size: 15px; letter-spacing: .04em; fill: rgba(96, 120, 122, .8); }
#route-map .mlabel-leg {
  font-size: 15px; letter-spacing: .14em; fill: var(--accent); text-transform: uppercase;
  font-variant-numeric: tabular-nums; paint-order: stroke;
  stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round;
}
#route-map .mlabel-finca { font-family: var(--font-display); font-size: 28px; letter-spacing: .02em; }
#route-map .mlabel-sub { font-family: var(--font-italic); font-style: italic; font-size: 16px; letter-spacing: .02em; fill: rgba(var(--ink-rgb), .62); }
#route-map .mlabel-exit {
  font-size: 13px; letter-spacing: .14em; fill: var(--accent); text-transform: uppercase;
  font-variant-numeric: tabular-nums; paint-order: stroke;
  stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round;
}
#route-map .mroadtag rect { fill: var(--bg); stroke: rgba(var(--ink-rgb), .45); stroke-width: 1; }
#route-map .mroadtag text {
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: .08em; text-anchor: middle;
  fill: rgba(var(--ink-rgb), .78); font-variant-numeric: tabular-nums;
}
#route-map .mroadtag-main rect { stroke: var(--accent); }
#route-map .mroadtag-main text { fill: var(--accent); }
#route-map .mstop-minor circle { opacity: .55; }
#route-map .mstop-minor text { font-size: 15px; fill: rgba(var(--ink-rgb), .6); }
#route-map .mlabel-compass { font-size: 14px; letter-spacing: .1em; text-anchor: middle; fill: var(--ink); }
#route-map .mcompass { opacity: .6; }
#route-map .mstop text { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
#route-map .mlabel-leg { transition: opacity .6s ease; }
.map-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 26px;
}
.map-card {
  border: 1px solid var(--hairline);
  padding: 26px 24px 28px;
}
.map-card h3 { margin: 0 0 10px; font-size: 22px; }
.map-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.map-actions { text-align: center; margin-top: 38px; }

/* ─── 10 · EL LUGAR ────────────────────────────────────────────────── */
.venue-scene { padding: 12vh 0; }
.venue-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.venue-text { position: sticky; top: 14vh; }
.venue-text h2 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; margin: 0 0 22px; }
.venue-text p { color: var(--ink-soft); max-width: 42ch; text-wrap: pretty; }
.venue-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.vm { margin: 0; overflow: hidden; }
.vm img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.vm:hover img { transform: scale(1.04); }
.vm-a { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.vm-b, .vm-c, .vm-d { aspect-ratio: 4 / 3; }
.vm-e { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

/* ─── 10b · FAQ ────────────────────────────────────────────────────── */
.faq-scene { padding: 10vh 0; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--hairline);
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.2;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-mark {
  position: relative; flex: none;
  width: 18px; height: 18px;
}
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform .3s ease, opacity .3s ease;
}
.faq-mark::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-mark::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); opacity: 0; }
.faq-a {
  overflow: hidden;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item[open] .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
  min-height: 0;
  margin: 0;
  padding: 0 56px 30px 4px;
  color: var(--ink-soft);
  font-size: 16px; line-height: 1.7; text-wrap: pretty;
}

/* ─── 11 · GALLERY ─────────────────────────────────────────────────── */
.gallery-scene { padding: 10vh 0; }
.once-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 760px; margin: 0 auto;
}
.once-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 26px; max-width: 620px; }
.once-steps li { display: flex; gap: 20px; align-items: baseline; }
.once-steps li span {
  flex: none;
  font-size: 13px; letter-spacing: .18em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.once-steps li p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

/* ─── 12 · MUSIC ───────────────────────────────────────────────────── */
.music-scene { padding: 10vh 0; }
.music-form {
  display: flex; gap: 14px; max-width: 560px; margin: 0 auto;
}
.music-form input {
  flex: 1;
  font-family: var(--font-body); font-size: 16px;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  outline: none;
}
.music-form input:focus { border-bottom-color: var(--accent); }
.music-form input::placeholder { color: var(--muted); }
.music-form button {
  font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: var(--cream);
  border: 0; padding: 12px 22px; cursor: pointer;
}
.music-list {
  list-style: none; margin: 30px auto 0; padding: 0; max-width: 560px;
}
.music-list li {
  padding: 10px 4px; border-bottom: 1px dashed var(--hairline);
  font-size: 15px;
}

/* ─── 13 · RSVP ────────────────────────────────────────────────────── */
.rsvp-scene { padding: 12vh 0 14vh; }
.rsvp-countdown { margin-top: 16px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.rsvp-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field[hidden] { display: none; }
.field > span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 17px;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  outline: none;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: rgba(var(--ink-rgb), .38); }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-row button {
  font-family: var(--font-body); font-size: 14px; letter-spacing: .06em;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
  padding: 13px 22px; cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.radio-row button:hover { border-color: var(--accent); color: var(--accent); }
.radio-row button[data-on="1"] { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.submit {
  font-family: var(--font-body); font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--accent); color: var(--cream);
  border: 0; padding: 18px; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.form-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.rsvp-error { text-align: center; font-size: 13px; color: var(--accent); margin: 14px 0 0; }
.rsvp-success { text-align: center; max-width: 520px; margin: 0 auto; }
.rsvp-success h3 { font-size: 38px; margin: 0 0 14px; }

/* ─── FOOTER ───────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 60px 24px 70px;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}
.footer .swirl { color: var(--accent); font-family: var(--font-italic); font-style: italic; font-size: 16px; letter-spacing: 0; }

/* ─── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .topnav { padding: 14px 18px; }
  .cover-photo { height: 26vh; }
  .topnav-date { display: none; }
  .nav-toggle { display: block; }
  .topnav[data-state="initial"] { opacity: 1; pointer-events: auto; background: transparent; }
  .topnav[data-state="initial"] .brand { opacity: 0; }
  .topnav-links {
    position: fixed; top: 0; right: 0; z-index: 60;
    width: min(78vw, 320px); height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 26px;
    padding: 0 32px;
    background: rgba(var(--bg-rgb), .97);
    border-left: 1px solid var(--hairline);
    backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.2,1);
  }
  .topnav-links[data-open="1"] { transform: none; }
  .topnav-links a { font-family: var(--font-display); font-size: 20px; letter-spacing: .12em; }
  body[data-nav-open="1"] { overflow: hidden; }
  .pline { font-size: clamp(26px, 7.4vw, 40px) !important; line-height: 1.28; }
  .reason-title { font-size: clamp(28px, 8vw, 44px); }
  .rfoot-main { font-size: clamp(20px, 5.6vw, 30px) !important; line-height: 1.3; }
  .rf-ring { font-size: clamp(28px, 9vw, 46px); }
  .approach-title { font-size: clamp(40px, 14vw, 82px); }
  .approach-meta { font-size: 13px !important; letter-spacing: .16em; }
  .cover-title { font-size: clamp(44px, 15vw, 88px); }
  .section-head h2 { font-size: clamp(28px, 8vw, 44px); }
  .wrap { padding: 0 24px; }
  .sas-captions { height: 150px; }
  .sas-tick span { display: none; }
  .sas-tick[data-on="1"] span { display: block; }
  .sas-versus { grid-template-columns: 1fr; gap: 22px; }
  .sv-javier, .sv-ale { text-align: center; }
  .sv-javier p, .sv-ale p { margin-left: auto; margin-right: auto; }
  .sv-amp { transform: scale(.7) rotate(90deg); }
  .sv-amp[data-on="1"] { transform: rotate(90deg); }
  .map-cards { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr; }
  .venue-text { position: static; }
  .once-grid { grid-template-columns: 1fr; justify-items: center; }
  .music-form { flex-direction: column; }
  #route-map .mlabel { font-size: 19px; }
  #route-map .mlabel-finca { font-size: 26px; }
}

/* ─── FOTOS QUE SE VEN ENTERAS ──────────────────────────────────────────
   Llenar la pantalla obliga a recortar, y cuando la foto y la pantalla no se
   parecen el recorte se lleva por delante medio plano. Esas fotos se enseñan
   enteras: la clase .is-whole la pone fitPhoto() en el JS comparando cada
   foto con la pantalla, así que esto vale igual en un móvil que en un
   ordenador. El hueco que queda alrededor lo rellena la propia foto ampliada
   y desenfocada, para que no haya franjas muertas. */

/* Suelo opaco bajo las fotos. Cada foto entra y sale con su opacidad, y
   mientras está a medias se transparenta: sin este suelo, por el hueco
   asomaba el fondo claro de la página y el relleno parpadeaba de oscuro a
   claro entre foto y foto. */
.sas-photos { background: #0c0806; }
/* el relleno vive dentro de su propia foto: así no se cuela por delante de
   la foto anterior ni por encima del texto */
.sas-photos figure.has-whole { isolation: isolate; }
.sas-photos figure.has-whole::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  /* La capa oscura va SOBRE la foto (primera capa = la de arriba) y se
     desenfoca junto a ella. Cada foto tiene un brillo distinto, y sin esto
     el relleno saltaba de una foto clara a una oscura al encadenar: parecía
     que el fondo parpadeaba. Aplastadas contra el mismo oscuro, todas dan
     un relleno parecido y el fondo se queda quieto. */
  background-image:
    linear-gradient(rgba(12, 8, 6, .78), rgba(12, 8, 6, .78)),
    var(--foto);
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(.85) saturate(.6);
  transform: scale(1.2);
}
.sas-photos img.is-whole {
  object-fit: contain;
  /* Algo por encima del centro, para dejar aire al pie de foto. Sólo se nota
     cuando sobra alto (móvil en vertical); en una pantalla apaisada la foto
     ya llega de arriba abajo y esto no cambia nada. */
  object-position: center 32%;
}
