/* ==========================================================================
   Yaiza Ginestar · Apoyo educativo — hoja de estilos
   Paleta y tipografía extraídas del logotipo (ciruela + cobre sobre crema).
   ========================================================================== */

:root {
  --cream: #F6F1E9;
  --cream-2: #EFE7DA;
  --sand: #E3DACB;            /* fondo del logotipo */
  --sand-deep: #D6C8B3;
  --paper: #FFFCF7;
  --plum: #4A2B2D;            /* color principal del logotipo */
  --plum-soft: #6B4446;
  --plum-deep: #2B1719;
  --plum-ink: #1E1012;
  --copper: #AE7462;          /* acento del logotipo (solo tamaños grandes) */
  --copper-deep: #82503F;     /* cobre con contraste AA para texto pequeño */
  --copper-light: #D9A88F;
  --ink: #2B1A1B;
  --ink-soft: #66524F;
  --line: rgba(74, 43, 45, .14);
  --error: #A3312A;

  --grad: linear-gradient(100deg, #4A2B2D 0%, #74413C 40%, #955A4A 72%, #A86C58 100%);
  --grad-light: linear-gradient(100deg, #F3DCCD 0%, #E2B79F 50%, #C98E72 100%);

  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --nav-h: 60px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --radius: 28px;
  --section: clamp(96px, 14vw, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--copper-light); color: var(--plum-ink); }
:focus-visible { outline: 2px solid var(--copper-deep); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.yg-a { fill: var(--yg-a, #4A2B2D); }
.yg-b { fill: var(--yg-b, #AE7462); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--plum); color: var(--cream); text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { --maxw: 860px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font: 500 .78rem/1.3 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--plum);
  text-wrap: balance;
}
.h-xl { font-size: clamp(3rem, 9vw, 8rem); }
.h-lg { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.grad-text {
  background: var(--grad);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.grad-text.sheen {
  background-image: linear-gradient(100deg, #4A2B2D 0%, #74413C 25%, #A06451 45%, #A86C58 55%, #74413C 75%, #4A2B2D 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
}
.grad-text--light { background-image: var(--grad-light); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.55em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .35s var(--ease), border-color .3s;
}
.btn .icon { width: 1.25em; height: 1.25em; flex: none; }
.btn--primary { background: var(--plum); color: var(--cream); box-shadow: 0 10px 24px -12px rgba(43, 23, 25, .6); }
.btn--primary:hover { background: var(--plum-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(43, 23, 25, .7); }
.btn--ghost { background: transparent; color: var(--plum); border-color: rgba(74, 43, 45, .28); }
.btn--ghost:hover { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.btn--sm { padding: .62em 1.1em; font-size: .88rem; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--copper-deep); font-weight: 500; text-decoration: none;
}
.link-arrow::after { content: "›"; font-size: 1.35em; line-height: 0; transform: translateY(-.04em); transition: transform .3s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover::after { transform: translate(3px, -.04em); }
.linklike {
  padding: 0; border: 0; background: none; cursor: pointer;
  text-decoration: none; color: inherit; font-size: inherit;
}
.linklike:hover { text-decoration: underline; }
.icon { width: 24px; height: 24px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  background: rgba(246, 241, 233, .74);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 241, 233, .86); }
.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--maxw)); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__mark { width: 34px; height: 31px; }
.nav__name { display: flex; flex-direction: column; line-height: 1; }
.nav__name small { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.nav__name strong { font: 600 1.28rem/1 var(--font-serif); color: var(--plum); letter-spacing: .01em; }
.nav__menu ul { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav__menu a {
  font-size: .9rem; color: var(--ink-soft); text-decoration: none;
  transition: color .25s;
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--plum); }
.nav__menu a.is-active { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 6px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none; position: relative;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px;
  background: var(--plum); transition: transform .35s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(246, 241, 233, .97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
}
.nav__name strong, .nav__cta { white-space: nowrap; }
@media (max-width: 520px) {
  .nav__name small { display: none; }
  .nav__cta { width: 42px; height: 42px; padding: 0; }
  .nav__cta-text { display: none; }
}

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + clamp(28px, 6vh, 64px)) var(--gutter) clamp(36px, 7vh, 72px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 65% 45%, rgba(217, 168, 143, .22), transparent 70%),
    var(--cream);
}
.hero__eyebrow { text-align: center; position: relative; z-index: 3; }
.hero__stage { display: grid; place-items: center; position: relative; z-index: 1; }
.hero__word {
  position: relative;
  font: 600 min(21vw, 34svh)/.86 var(--font-serif);
  letter-spacing: .015em;
  color: var(--plum);
  white-space: nowrap;
  user-select: none;
  padding: .06em .04em 0;
}
.hero__word-grad {
  position: absolute; inset: 0;
  padding: inherit;
  background: linear-gradient(100deg, #4A2B2D 8%, #7E4741 40%, #B47A63 70%, #DDAE93 96%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__pencils { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pencil {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--len);
  transform: translate(-100%, -50%) rotate(var(--r));
  transform-origin: 100% 50%;
  filter: drop-shadow(0 22px 22px rgba(43, 23, 25, .2));
}
.pencil__fly, .pencil__inner { width: 100%; }
.pencil svg { width: 100%; height: auto; aspect-ratio: 1000 / 60; }
.pencil-body { fill: var(--pc, #4A2B2D); }
.pencil-lead { fill: var(--plum-ink); }
.pencil--1 { --x: 63%; --y: 45%; --r: 33deg; --len: 50vw; --pc: #4A2B2D; }
.pencil--2 { --x: 63.4%; --y: 45.6%; --r: 9deg; --len: 60vw; --pc: #AE7462; }
.pencil--3 { --x: 63%; --y: 46.2%; --r: -23deg; --len: 54vw; --pc: #D9C4A6; }
.pencil--4 { --x: 63.8%; --y: 45.4%; --r: 180deg; --len: 46vw; --pc: #2B1719; }
.hero__copy { position: relative; z-index: 3; text-align: center; max-width: 760px; margin: 0 auto; }
.hero__title {
  font: 600 clamp(1.75rem, 3.2vw, 2.7rem)/1.08 var(--font-serif);
  color: var(--plum);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__lead { margin-top: 14px; color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.18rem); text-wrap: pretty; }
.hero__ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }

@media (max-width: 700px) {
  .hero__eyebrow { font-size: .68rem; letter-spacing: .16em; }
  .hero__word { font-size: min(22vw, 30svh); }
  .pencil--1 { --x: 72%; --y: 39%; --len: 74vw; --r: 36deg; }
  .pencil--2 { --x: 72.5%; --y: 39.6%; --len: 86vw; --r: 11deg; }
  .pencil--3 { --x: 72%; --y: 40.2%; --len: 80vw; --r: -26deg; }
  .pencil--4 { --x: 73%; --y: 39.4%; --len: 40vw; }
}

/* ---------- 2 · Revelado partido (libreta) ---------- */
.split { position: relative; background: var(--cream); }
.split__stage {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 64px;
}
.split__message { max-width: 1000px; text-align: center; display: grid; gap: clamp(14px, 2.4vh, 24px); justify-items: center; }
.split__punch { margin-top: -.1em; }
.split__message .lead { max-width: 620px; }
.split__half { display: none; }

.motion .split__half {
  --lh: clamp(42px, 5.6vh, 58px);
  --margin: max(18px, calc(50% - 400px));
  position: absolute; left: 0; right: 0; z-index: 2;
  height: 50%;
  display: flex; flex-direction: column;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent var(--margin), rgba(174, 116, 98, .55) var(--margin), rgba(174, 116, 98, .55) calc(var(--margin) + 2px), transparent calc(var(--margin) + 2px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--lh) - 1px), rgba(74, 43, 45, .13) calc(var(--lh) - 1px) var(--lh));
  will-change: transform;
}
.motion .split__half--top {
  top: 0; justify-content: flex-end;
  background-position: 0 0, 0 100%;
  box-shadow: 0 30px 50px -30px rgba(43, 23, 25, .45);
}
.motion .split__half--bottom {
  bottom: 0; justify-content: flex-start;
  background-position: 0 0, 0 0;
  box-shadow: 0 -30px 50px -30px rgba(43, 23, 25, .45);
}
.note {
  width: min(100% - 2 * var(--gutter), 760px);
  margin-inline: auto;
  padding-left: clamp(18px, 4vw, 48px);
  font: 500 clamp(1.55rem, 3.2vw, 2.45rem)/var(--lh) var(--font-hand);
  color: var(--plum);
}
.split__half--top .note { padding-bottom: calc(var(--lh) * .15); }
.split__half--bottom .note { padding-top: calc(var(--lh) * .1); }
.note__title { text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.note__tick { color: #6D8B5A; font-weight: 600; }
.note__wrong { position: relative; display: inline-block; padding: 0 .35em; color: var(--error); }
.note__circle {
  position: absolute; left: -.2em; top: -.1em;
  width: calc(100% + .4em); height: calc(100% + .2em);
  overflow: visible; pointer-events: none;
}
.note__circle path { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.note__insight { color: var(--copper-deep); }

/* ---------- 3 · Mirada experta (chip) ---------- */
.expert { position: relative; background: var(--cream); }
.expert__stage {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  overflow: hidden;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
}
.chip {
  position: relative; z-index: 2;
  width: clamp(150px, 15vw, 210px); aspect-ratio: 1;
  border-radius: 24%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10%;
  background: radial-gradient(120% 120% at 28% 18%, #5A3537 0%, #2B1719 52%, #170B0D 100%);
  box-shadow:
    0 40px 80px -30px rgba(43, 23, 25, .65),
    inset 0 0 0 1px rgba(217, 168, 143, .4),
    inset 0 0 0 8px #241315,
    inset 0 0 0 9px rgba(217, 168, 143, .22);
  --yg-a: #F6F1E9;
  --yg-b: #D9A88F;
  will-change: transform;
}
.chip__mark { width: 50%; height: auto; aspect-ratio: 1108 / 1000; }
.chip__label { font: 500 clamp(.62rem, .8vw, .78rem)/1 var(--font-sans); letter-spacing: .34em; color: var(--copper-light); padding-left: .34em; }
.expert__title { font-size: clamp(3.2rem, 11.5vw, 10.5rem); line-height: .95; text-align: center; padding-bottom: .08em; }
.expert__body { padding-bottom: var(--section); display: grid; gap: 28px; }
.expert__lead {
  font: 500 clamp(1.6rem, 3.2vw, 2.6rem)/1.22 var(--font-serif);
  color: var(--plum);
  max-width: 980px;
  text-wrap: pretty;
}
.expert__lead strong { font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.spec {
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius);
  background: var(--cream-2);
  border: 1px solid var(--line);
  display: grid; gap: 12px; align-content: start;
}
.spec__tag {
  justify-self: start;
  padding: 6px 12px; border-radius: 999px;
  background: var(--plum); color: var(--cream);
  font: 500 .72rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
}
.spec h3 { font: 600 clamp(1.5rem, 2.2vw, 1.85rem)/1.1 var(--font-serif); color: var(--plum); }
.spec p { color: var(--ink-soft); }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } }

/* ---------- 3b · Presentación en vídeo ---------- */
.reel { background: var(--cream); }
.reel__stage {
  --frame-h: min(calc(100svh - var(--nav-h) - 96px), 760px);
  --frame-w: calc(var(--frame-h) * 9 / 16);
  min-height: 100svh;
  display: grid; place-items: center; grid-template-areas: "stack";
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  overflow: hidden;
}
.reel__title {
  grid-area: stack;
  position: relative;
  width: 100%; max-width: 1400px;
  display: grid; grid-template-columns: 1fr var(--frame-w) 1fr; align-items: center;
  column-gap: clamp(24px, 3.5vw, 56px);
  font-size: clamp(2.6rem, 6.2vw, 7rem);
  white-space: nowrap;
}
.reel__word { display: inline-block; padding-bottom: .08em; will-change: transform; }
.reel__word--l { grid-column: 1; justify-self: end; }
.reel__word--r { grid-column: 3; justify-self: start; }
.reel__frame {
  grid-area: stack;
  position: relative; z-index: 2;
  width: var(--frame-w); aspect-ratio: 9 / 16;
  margin: 0;
  border-radius: clamp(24px, 3vw, 40px);
  overflow: hidden; isolation: isolate;
  background: var(--plum-deep);
  box-shadow: 0 60px 120px -50px rgba(43, 23, 25, .6), 0 0 0 1px var(--line);
  will-change: transform;
}
.reel__frame::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(30, 16, 18, .42), transparent);
}
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__toggle {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: 0; border: 0; border-radius: inherit;
  background: transparent; cursor: pointer;
}
.reel__toggle:focus-visible { outline: 3px solid var(--copper-light); outline-offset: -6px; }
.reel__play {
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246, 241, 233, .94); color: var(--plum);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55);
  opacity: 0; transform: scale(.6);
  transition: opacity .35s, transform .45s var(--ease);
}
.reel__play svg { width: 30px; height: 30px; margin-left: 4px; }
.reel__frame[data-state="idle"] .reel__play,
.reel__frame[data-state="paused"] .reel__play { opacity: 1; transform: none; }
.reel__frame[data-state="idle"] .reel__toggle:hover .reel__play,
.reel__frame[data-state="paused"] .reel__toggle:hover .reel__play { transform: scale(1.07); }
.reel__badge {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(30, 16, 18, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--cream); font-size: .82rem; font-weight: 500; line-height: 1;
  pointer-events: none;
}
.reel__icon { width: 18px; height: 18px; flex: none; }
.reel__icon--on,
.reel__frame[data-state="sound"] .reel__icon--off,
.reel__frame[data-state="paused"] .reel__icon--off { display: none; }
.reel__frame[data-state="sound"] .reel__icon--on,
.reel__frame[data-state="paused"] .reel__icon--on { display: block; }
.reel__frame[data-state="preview"] .reel__badge { animation: nudge 2.8s var(--ease) 1.2s infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(2px); } 90% { transform: none; } }
.reel__progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 3px; background: rgba(246, 241, 233, .25);
  opacity: 0; transition: opacity .3s;
}
.reel__progress i { display: block; height: 100%; background: var(--copper-light); transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
.reel__frame[data-state="sound"] .reel__progress,
.reel__frame[data-state="paused"] .reel__progress { opacity: 1; }
.reel__captions {
  position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 3;
  display: flex; justify-content: center;
  margin: 0; pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .3s var(--ease);
}
.reel__captions.is-on { opacity: 1; transform: none; }
.reel__captions span {
  display: inline-block; max-width: 100%;
  padding: 6px 12px; border-radius: 12px;
  background: rgba(30, 16, 18, .74);
  color: var(--cream);
  font: 500 clamp(.86rem, 1.05vw, 1rem)/1.35 var(--font-sans);
  text-align: center; text-wrap: balance;
}
.reel__cc {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  min-width: 44px; height: 32px; padding: 0 10px;
  border: 1px solid rgba(246, 241, 233, .55); border-radius: 8px;
  background: rgba(30, 16, 18, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--cream); font: 600 .74rem/1 var(--font-sans); letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .25s, color .25s, opacity .25s;
}
.reel__cc[aria-pressed="true"] { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.reel__cc[aria-pressed="false"] { opacity: .75; text-decoration: line-through; }
.reel__cc:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 2px; }
.reel__transcript { padding-bottom: clamp(48px, 7vw, 88px); display: flex; justify-content: center; }
.transcript { width: 100%; text-align: center; }
.transcript summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  color: var(--copper-deep); font-weight: 500;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.transcript__icon { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease); }
.transcript[open] .transcript__icon { transform: translateY(2px) rotate(-135deg); }
.transcript::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.transcript[open]::details-content { block-size: auto; }
.transcript__text { display: grid; gap: 12px; padding: 14px 0 6px; text-align: left; color: var(--ink-soft); }

@media (max-width: 959px) {
  .reel__stage {
    --frame-h: min(calc(100svh - var(--nav-h) - 170px), 720px);
    --frame-w: min(84vw, calc(var(--frame-h) * 9 / 16));
    grid-template-areas: "title" "frame";
    align-content: center; gap: 22px;
  }
  .reel__title { grid-area: title; display: flex; justify-content: center; gap: .25em; font-size: clamp(2.4rem, 11vw, 3.8rem); }
  .reel__frame { grid-area: frame; }
}

/* ---------- 4 · Cifras ---------- */
.stats {
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(174, 116, 98, .22), transparent 60%),
    var(--plum-deep);
  color: var(--cream);
  padding: var(--section) 0;
}
.stats__title { color: var(--cream); font-size: clamp(2.4rem, 5.6vw, 4.8rem); max-width: 900px; }
.stats__grid {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(246, 241, 233, .16);
}
.stat { padding: 32px 24px 0 0; display: grid; gap: 12px; align-content: start; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(246, 241, 233, .12); }
.stat__num {
  font: 600 clamp(4rem, 8.5vw, 7.5rem)/.9 var(--font-serif);
  background: var(--grad-light);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: lining-nums;
}
.stat__label { color: rgba(246, 241, 233, .78); font-size: 1rem; max-width: 240px; }
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 28px 16px 28px 0; border-left: 0; border-bottom: 1px solid rgba(246, 241, 233, .12); }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(246, 241, 233, .12); }
}

/* ---------- 5 · Formatos ---------- */
.formats { padding: var(--section) 0; text-align: center; }
.formats .container { display: grid; gap: 22px; justify-items: center; }
.formats__intro { max-width: 620px; }
.formats__box { width: 100%; margin-top: clamp(24px, 4vw, 48px); display: grid; gap: 26px; justify-items: center; }
.formats__visual {
  width: min(100%, 760px, calc((100svh - 330px) * 1.6)); /* cabe entero mientras está fijado */
  aspect-ratio: 16 / 10;
  border-radius: clamp(28px, 4vw, 44px);
  background: radial-gradient(80% 80% at 50% 35%, #FFFBF4 0%, var(--cream-2) 70%, var(--sand) 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  overflow: hidden;
}
.formats__visual svg { width: 100%; height: 100%; }
.fv-teacher { --p1: var(--copper); --p2: var(--copper-light); }
.fv-student { --p1: var(--plum); --p2: #9A7A78; }
.p-shoulders { fill: var(--p2); }
.p-head { fill: var(--p1); stroke: var(--paper); stroke-width: 3; }
.fv-label { font: 500 15px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--copper-deep); }
.fv-link { fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-dasharray: 4 6; opacity: .75; }
.fv-book { fill: var(--paper); stroke: var(--sand-deep); }
.fv-book-lines { fill: none; stroke: rgba(74, 43, 45, .25); stroke-width: 1.4; stroke-linecap: round; }
.fv-side {
  transform-box: fill-box; transform-origin: center;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.formats__visual:not(.is-scroll)[data-mode="individual"] .fv-side { opacity: 0; transform: scale(.55); }
.formats__visual.is-scroll .fv-side { transition: none; } /* con scroll, lo anima GSAP */
.formats__picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink-soft);
  font-size: .95rem; font-weight: 500;
  cursor: pointer;
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.swatch:hover { color: var(--plum); border-color: rgba(74, 43, 45, .35); }
.swatch[aria-pressed="true"] { color: var(--plum); border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum); }
.swatch__dots {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.swatch__dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.formats__copy { max-width: 560px; min-height: 7.5em; }
.formats__panel h3 { font: 600 1.6rem/1.15 var(--font-serif); color: var(--plum); }
.formats__panel p { margin-top: 8px; color: var(--ink-soft); }
.formats__panel:not([hidden]) { animation: fade-up .5s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 6 · Etapas ---------- */
.stages { padding: 0 0 var(--section); }
.stages .container { display: grid; gap: 22px; }
.stages .lead { max-width: 640px; }
.timeline { position: relative; margin: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.timeline__track { position: absolute; top: 15px; left: 6.25%; right: 6.25%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; background: var(--grad); transform-origin: left center; }
.timeline__nodes { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); }
.timeline__node { display: grid; justify-items: center; gap: 12px; }
.timeline__dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--plum);
  border: 2px solid var(--plum);
  box-shadow: 0 0 0 6px var(--cream);
  transition: background-color .4s, border-color .4s, transform .4s var(--ease);
}
.timeline__node:nth-child(n+7) .timeline__dot { background: var(--copper); border-color: var(--copper); }
.timeline__label { font: 600 clamp(1.1rem, 2vw, 1.5rem)/1 var(--font-serif); color: var(--plum); transition: color .4s; }
.motion .timeline__node:not(.is-on) .timeline__dot { background: var(--cream); border-color: var(--sand-deep); transform: scale(.8); }
.motion .timeline__node:not(.is-on) .timeline__label { color: var(--sand-deep); }
.timeline__groups { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 18px; }
.timeline__group {
  text-align: center; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.timeline__group--primaria { grid-column: 1 / span 6; margin-right: 12px; }
.timeline__group--eso { grid-column: 7 / span 2; margin-left: 12px; color: var(--copper-deep); }
.stages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stage-card {
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; gap: 10px; align-content: start;
}
.stage-card__range { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-deep); font-weight: 500; }
.stage-card h3 { font: 600 clamp(1.5rem, 2.2vw, 1.9rem)/1.1 var(--font-serif); color: var(--plum); }
.stage-card p:last-child { color: var(--ink-soft); }
@media (max-width: 860px) {
  .stages__grid { grid-template-columns: 1fr; }
  .timeline__dot { width: 22px; height: 22px; box-shadow: 0 0 0 4px var(--cream); }
  .timeline__track { top: 10px; }
  .timeline__group { font-size: .66rem; letter-spacing: .14em; }
}

/* ---------- 7 · Seguimiento semanal ---------- */
.follow { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.follow__stage {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: calc(var(--nav-h) + 32px) 0 48px;
}
.follow__text { display: grid; gap: 22px; }
.checks { display: grid; gap: 12px; margin-top: 6px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--plum); }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23F6F1E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.phone { justify-self: center; display: grid; gap: 14px; justify-items: center; }
.phone__frame {
  width: min(330px, 80vw);
  aspect-ratio: 9 / 18.5;
  max-height: calc(100svh - var(--nav-h) - 120px);
  min-height: 560px;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a2426, #160A0C);
  box-shadow: 0 50px 90px -40px rgba(43, 23, 25, .6), inset 0 0 0 1.5px rgba(217, 168, 143, .3);
}
.phone__screen {
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--cream);
  display: flex; flex-direction: column;
}
.phone__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 40px 16px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.phone__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sand); display: grid; place-items: center; flex: none;
}
.phone__avatar svg { width: 24px; height: 22px; }
.phone__who { display: flex; flex-direction: column; line-height: 1.2; }
.phone__who strong { font-size: .92rem; color: var(--plum); }
.phone__who small { font-size: .72rem; color: var(--ink-soft); }
.phone__body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 4px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(74, 43, 45, .08), 0 6px 14px -10px rgba(43, 23, 25, .3);
  font-size: .82rem; line-height: 1.4; color: var(--ink);
}
.msg--card { display: grid; gap: 5px; }
.msg--card p { color: var(--ink); }
.tag {
  justify-self: start;
  padding: 3px 8px; border-radius: 999px;
  font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.tag--up { background: #E3EBDA; color: #3F5A2E; }
.tag--stuck { background: #F3DED6; color: #8A3B2C; }
.tag--plan { background: #EADFF0; color: #5A3B6B; }
.tag--home { background: var(--sand); color: var(--plum); }
.phone figcaption { font-size: .8rem; color: var(--ink-soft); letter-spacing: .04em; }
@media (max-width: 959px) {
  .follow__stage { grid-template-columns: 1fr; min-height: 0; padding: var(--section) 0; }
  .phone__frame { min-height: 0; max-height: none; }
}

/* ---------- 8 · Cómo empezamos ---------- */
.steps { background: var(--cream-2); }
.steps__stage {
  padding: var(--section) 0;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5vh, 56px);
}
.steps__head { display: grid; gap: 18px; }
.steps__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.steps__viewport::-webkit-scrollbar { display: none; }
.steps__track {
  display: flex; gap: 20px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.step {
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
  flex: 0 0 auto;
  width: min(82vw, 480px);
  min-height: clamp(360px, 52vh, 460px);
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -45px rgba(43, 23, 25, .45);
}
.step__num {
  font: 600 clamp(4rem, 7vw, 6rem)/.9 var(--font-serif);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__icon { width: 44px; height: 44px; color: var(--copper-deep); margin: auto 0 18px; }
.step h3 { font: 600 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--font-serif); color: var(--plum); }
.step p { margin-top: 10px; color: var(--ink-soft); }
.steps.is-pinned .steps__stage { min-height: 100svh; padding: calc(var(--nav-h) + 24px) 0 40px; }
.steps.is-pinned .steps__viewport { overflow: visible; scroll-snap-type: none; }
.steps.is-pinned .step { width: min(38vw, 540px); }

/* ---------- 9 · FAQ ---------- */
.faq { padding: var(--section) 0; }
.faq .container { display: grid; gap: 22px; }
.faq__list { margin-top: clamp(16px, 3vw, 36px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font: 600 clamp(1.3rem, 2.3vw, 1.75rem)/1.2 var(--font-serif);
  color: var(--plum);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease), background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--plum); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background-color .3s; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--plum); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--cream); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__answer p { padding: 0 56px 28px 0; color: var(--ink-soft); max-width: 680px; }

/* ---------- 10 · Contacto ---------- */
.contact {
  padding: var(--section) 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}
.contact__head { text-align: center; display: grid; gap: 20px; justify-items: center; }
.contact__head .lead { max-width: 600px; }
.contact__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.form {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -60px rgba(43, 23, 25, .5);
  display: grid; gap: 20px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { font-size: .9rem; font-weight: 500; color: var(--plum); padding: 0; }
.field__opt { color: var(--ink-soft); font-weight: 400; }
.field input[type="text"], .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(74, 43, 45, .22);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  appearance: none;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%234A2B2D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper-deep); background: var(--paper);
  box-shadow: 0 0 0 4px rgba(174, 116, 98, .2);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field__error { min-height: 0; font-size: .85rem; color: var(--error); }
.field__error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 16px;
  border: 1px solid rgba(74, 43, 45, .22); border-radius: 999px;
  background: var(--cream); font-size: .95rem; color: var(--ink-soft);
  transition: background-color .25s, color .25s, border-color .25s;
}
.choice input:checked + span { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.choice input:focus-visible + span { outline: 2px solid var(--copper-deep); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum); }
.check a { color: var(--plum); text-underline-offset: 3px; }
.field.is-invalid .check { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.form__status { font-size: .95rem; text-align: center; color: var(--plum); }
.form__status:empty { display: none; }
.contact__info { display: grid; gap: 14px; }
.info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 252, 247, .7);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s;
}
a.info-card:hover { transform: translateY(-2px); background: var(--paper); box-shadow: 0 20px 40px -30px rgba(43, 23, 25, .5); }
.info-card .icon { flex: none; width: 26px; height: 26px; color: var(--copper-deep); }
.info-card span { display: flex; flex-direction: column; gap: 2px; }
.info-card small { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.info-card strong { font-weight: 500; color: var(--plum); line-height: 1.35; }
.info-card--accent { background: var(--plum); border-color: var(--plum); }
.info-card--accent .icon, .info-card--accent strong { color: var(--cream); }
.info-card--accent small { color: var(--copper-light); }
a.info-card--accent:hover { background: var(--plum-deep); }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- 11 · Ubicación ---------- */
.location { padding: var(--section) 0; background: var(--sand); }
.location .container { display: grid; gap: 22px; }
.map { position: relative; margin-top: clamp(16px, 3vw, 36px); }
.map__frame {
  position: relative;
  aspect-ratio: 16 / 7; min-height: 380px;
  border-radius: 34px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(255, 252, 247, .9) 49.6% 50.4%, transparent 50.4%) 0 0 / 220px 220px,
    linear-gradient(0deg, transparent 49.4%, rgba(255, 252, 247, .9) 49.4% 50.6%, transparent 50.6%) 0 0 / 160px 160px,
    linear-gradient(35deg, transparent 49.5%, rgba(255, 252, 247, .75) 49.5% 50.5%, transparent 50.5%) 0 0 / 420px 420px,
    var(--cream-2);
}
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.15); }
.map__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 24px; text-align: center;
  background: radial-gradient(40% 50% at 50% 50%, rgba(246, 241, 233, .95), rgba(246, 241, 233, .55));
}
.map__placeholder p { max-width: 340px; font-size: .95rem; color: var(--ink-soft); }
.map__pin { width: 48px; height: 48px; color: var(--copper-deep); }
.map__card {
  position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255, 252, 247, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(43, 23, 25, .55);
  display: grid; gap: 10px;
}
.map__address { font: 600 1.5rem/1.2 var(--font-serif); color: var(--plum); }
@media (max-width: 700px) {
  .map__frame { aspect-ratio: 4 / 5; min-height: 0; }
  .map__card { position: static; margin-top: 14px; }
}

/* ---------- Pie ---------- */
.footer { background: var(--plum-deep); color: rgba(246, 241, 233, .8); padding: clamp(64px, 9vw, 112px) 0 32px; font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.footer__brand { display: grid; justify-items: start; gap: 14px; text-decoration: none; --yg-a: #F6F1E9; --yg-b: #D9A88F; }
.footer__mark { width: 72px; height: 65px; }
.footer__word { width: min(280px, 70vw); height: auto; aspect-ratio: 1868 / 196; }
.footer__tagline { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--copper-light); }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__nav h3 { font: 500 .74rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 16px; }
.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { margin-top: clamp(48px, 7vw, 80px); padding-top: 24px; border-top: 1px solid rgba(246, 241, 233, .12); font-size: .85rem; color: rgba(246, 241, 233, .6); }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--plum); color: var(--cream);
  box-shadow: 0 18px 36px -14px rgba(43, 23, 25, .7);
  transition: transform .45s var(--ease), opacity .35s, background-color .3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--copper);
  animation: pulse 2.6s var(--ease) infinite;
}
.wa-float:hover { background: var(--plum-deep); transform: scale(1.06); }
.wa-float.is-hidden, .cookie-open .wa-float { opacity: 0; transform: translateY(24px) scale(.8); pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
  width: min(440px, calc(100vw - 32px));
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(43, 23, 25, .55);
  display: grid; gap: 12px;
  font-size: .92rem; color: var(--ink-soft);
  animation: fade-up .5s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie__title { font: 600 1.35rem/1.1 var(--font-serif); color: var(--plum); }
.cookie a { color: var(--plum); text-underline-offset: 3px; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.cookie__actions .btn { width: 100%; }
@media (max-width: 520px) {
  .cookie { left: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 16px 18px; gap: 8px; font-size: .84rem; line-height: 1.45; }
  .cookie__title { font-size: 1.15rem; }
}

/* ---------- Páginas legales y 404 ---------- */
.page-nav .nav__inner { justify-content: space-between; }
.legal { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 var(--section); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 14px 0 12px; }
.legal__updated { color: var(--ink-soft); font-size: .92rem; }
.legal h2 { font: 600 clamp(1.5rem, 2.6vw, 1.95rem)/1.2 var(--font-serif); color: var(--plum); margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin-top: 10px; }
.legal a { color: var(--copper-deep); text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--plum); }
.legal__table { overflow-x: auto; }
.footer--slim { padding: 32px 0; }
.footer--slim .footer__bottom { margin: 0; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer--slim a { color: inherit; text-underline-offset: 3px; }

.notfound {
  min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 20px;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 64px;
  text-align: center;
}
.notfound__code { font: 600 clamp(8rem, 30vw, 18rem)/.8 var(--font-serif); }
.notfound .lead { max-width: 480px; }
.notfound__ctas { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: center; margin-top: 8px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wa-float::before { display: none; }
}

/* ---------- Números de caja alta en la serif ----------
   El atajo `font` reinicia las variantes numéricas, así que se fijan al final. */
.display, .hero__word, .hero__title, .step__num, .stat__num, .timeline__label, .notfound__code,
.expert__lead, .map__address, .spec h3, .stage-card h3, .formats__panel h3, .faq__item summary,
.cookie__title, .nav__name strong, .legal h2 {
  font-variant-numeric: lining-nums;
}
