/* ==========================================================
   ControlgyPilates — estilos (mobile first)
   ========================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --bg:      #F4EEE4;
  --bg-alt:  #EAE0D0;
  --card:    #FFFDF9;
  --line:    #DDD1BE;
  --ink:     #1C1814;
  --soft:    #675C50;
  --mute:    #998C7C;
  --accent:  #A06C42;
  --gold:    #C9A57E;
  --cream:   #F4EEE4;
  --error:   #A3402F;

  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease:  cubic-bezier(.2, .75, .2, 1);
  --gutter: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --tx-marble:  url("../img/texturas/marmol-crema.webp");
  --tx-marble-d: url("../img/texturas/marmol-negro.webp");
  --tx-emperor: url("../img/texturas/marmol-emperador.webp");
  --tx-stone:   url("../img/texturas/travertino.webp");
  --tx-white:   url("../img/texturas/marmol-blanco.webp");
  --tx-sand:    url("../img/texturas/marmol-arena.webp");
  --tx-pearl:   url("../img/texturas/marmol-perla.webp");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.only-mob { display: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 238, 228, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none;
}
.logo em { font-size: 1.15em; margin-left: 1px; color: var(--accent); }
.logo img { width: auto; height: 26px; }
@media (max-width: 400px) { .header .logo span { display: none; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; background: var(--ink); color: var(--cream);
}
.header-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.header-cta:hover::before { transform: scaleX(1); transform-origin: left; }

/* Menú: móvil = panel desplegable */
.nav-toggle {
  width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--ink); cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(28, 24, 20, .35);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .45s var(--ease), visibility 0s .45s;
}
.nav.open { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path .45s var(--ease); }
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; border-bottom: 1px solid var(--line);
  font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none;
}
.nav a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.nav a.active { color: var(--accent); }

/* ---------- Títulos ---------- */
.sec-label, .card-kicker, .final-k {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}

.sec-label { display: flex; align-items: center; gap: 12px; color: var(--accent); margin-bottom: 18px; }
.sec-label span { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; letter-spacing: 0; }
.sec-label::before, .sec-label::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.title {
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  margin-bottom: 36px;
}
.title em, .hero-title em { display: block; font-size: 1.12em; letter-spacing: -0.01em; color: var(--accent); }

.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > * { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  padding: 36px 0 56px;
  background: linear-gradient(rgba(244, 238, 228, .25), rgba(244, 238, 228, .7)), var(--tx-marble) center top / 640px;
}

.hero-grid, .hero-info { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-info { width: 100%; }
.includes { display: none; }

.hero-title {
  font-size: clamp(2.6rem, 13vw, 5.2rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: .95;
  margin-bottom: 20px;
}
.hero-title em { color: var(--accent); }

.hero-sub { max-width: 30em; color: var(--soft); font-size: 1rem; margin-bottom: 28px; }
.hero-sub b { color: var(--ink); font-weight: 600; }

.deal {
  width: 100%; max-width: 520px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: var(--cream);
  margin-bottom: 20px;
}
.deal-item { padding: 16px 12px 14px; display: flex; flex-direction: column; align-items: center; }
.deal-item + .deal-item { border-left: 1px solid #3A322A; }
.deal-k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.deal-v { font-family: var(--serif); font-size: 2.6rem; line-height: 1.05; margin: 2px 0; }
.deal-v em { font-size: 1em; }
.deal-old { font-size: 0.75rem; color: #A89C8C; text-decoration: line-through; }
.deal-alt { grid-column: 1 / -1; padding: 10px 12px; border-top: 1px solid #3A322A; font-size: 0.8125rem; text-align: center; color: #D8CDBE; }
.deal-alt b { color: var(--cream); }
.deal-alt s { margin-left: 4px; font-size: 0.75rem; color: #A89C8C; }

.deadline {
  display: flex; align-items: stretch;
  width: 100%; max-width: 520px; margin-bottom: 20px;
  text-align: left; font-size: 0.875rem; line-height: 1.45; color: var(--ink);
  background: rgba(255, 253, 249, .85); border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.deadline > p:first-child { flex: 1; padding: 12px 14px; align-self: center; }
.deadline b { color: var(--accent); }
.deadline-days {
  flex: none; min-width: 84px; padding: 8px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream); line-height: 1;
}
.deadline-days span { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.deadline-days b { font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--cream); margin: 2px 0; }

.wait-note { margin-top: 10px; padding: 8px 12px; font-size: 0.8125rem; line-height: 1.45; text-align: left; background: rgba(201, 165, 126, .2); border-left: 3px solid var(--accent); }
.closed-note { margin-top: 10px; padding: 8px 12px; font-size: 0.8125rem; background: rgba(163, 64, 47, .08); border-left: 3px solid var(--error); }

/* ---------- Tarjeta / formulario ---------- */
.card {
  width: 100%; max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(28, 24, 20, .35);
  text-align: left;
  scroll-margin-top: 64px;
}

.card-head { padding: 20px 18px 0; text-align: center; }
.card-kicker { color: var(--accent); margin-bottom: 4px; }
.card-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.card-title em { font-size: 1.15em; color: var(--accent); }

.invited {
  display: inline-block; margin-top: 10px; padding: 6px 10px;
  font-size: 0.8125rem; color: var(--ink); background: rgba(201, 165, 126, .25); border-left: 3px solid var(--accent);
}

.counter { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.counter-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.counter-k { font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.counter-v { font-size: 0.8125rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.counter-v b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--ink); }

/* Mitad izquierda = 80 plazas fundador; mitad derecha = inscritos sin plaza fundador (nunca se llena) */
.bar { position: relative; height: 10px; background: var(--bg-alt); }
.bar-fill, .bar-wait {
  position: absolute; top: 0; bottom: 0; width: 0;
  transition: width 1.4s var(--ease);
}
.bar-fill { left: 0; background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, #3A3129 6px 12px); }
.bar-wait { left: 50%; background: repeating-linear-gradient(-45deg, var(--gold) 0 6px, #D6B994 6px 12px); }
.bar-mark { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--accent); }
.bar-legend {
  position: relative; display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
}
.bar-legend b {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; line-height: 1; color: var(--accent);
}
@media (max-width: 359px) { .bar-legend { letter-spacing: 0.04em; } }

.form, .ok { padding: 16px 18px 20px; }

.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 0 12px; }
.field label, .field legend {
  display: block; margin-bottom: 6px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft);
}

.field input {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  font-size: 16px; /* evita el zoom automático en iOS */
  background: var(--bg); border: 1px solid var(--line);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(160, 108, 66, .18); }
.field.bad input, .field.bad .opts { border-color: var(--error); }

.opts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.opts label { position: relative; margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.opts label + label { border-left: 1px solid var(--line); }
.opts .opt-full { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 6px 4px;
  font-size: 0.9375rem; line-height: 1.25;
  background: var(--bg); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.opts-exp span { min-height: 62px; font-size: 0.8125rem; flex-direction: column; }
.opts-exp b { font-size: 0.9375rem; }
.opts label:hover span { background: var(--bg-alt); }
.opts input:checked + span { background: var(--ink); color: var(--cream); }
.opts input:checked + span b { color: var(--gold); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

.check {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; margin: 0 0 10px;
  font-size: 0.875rem; color: var(--soft); cursor: pointer;
}
.check input { flex: none; width: 20px; height: 20px; accent-color: var(--ink); }
.check.bad span { color: var(--error); }

.hp { position: absolute; left: -9999px; }

/* Mensajes de error bajo cada campo */
.field-msg { margin-top: 6px; font-size: 0.8125rem; line-height: 1.35; color: var(--error); }
.field-msg:empty { display: none; }
.check + .field-msg { margin: -6px 0 12px 30px; }
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mute); }

/* Código de invitación (opcional, plegado) */
.field-ref { margin-bottom: 10px; }
.ref-toggle {
  padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-size: 0.8125rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
#fRef { text-transform: uppercase; letter-spacing: 0.06em; }
#fRef::placeholder { text-transform: none; letter-spacing: 0; }

/* Popup de registro completado */
.modal {
  width: min(420px, calc(100% - 32px)); margin: auto; padding: 0; border: 0;
  background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
}
.modal::backdrop { background: rgba(28, 24, 20, .6); }
.modal[open] { animation: modal-in .45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-in { padding: 34px 24px 24px; text-align: center; }
.modal h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.modal h2 em { display: block; font-size: 1.15em; color: var(--accent); }
.modal-text { color: var(--soft); margin-bottom: 14px; }
.modal-mail { padding: 10px 12px; margin-bottom: 20px; font-size: 0.875rem; color: var(--soft); background: var(--bg); border-left: 3px solid var(--gold); text-align: left; }
.modal-mail:empty { display: none; }
.modal-sent {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
  margin-bottom: 14px; font-size: 0.9375rem; font-weight: 600; color: #3F7A4F; text-align: left;
}
.modal-sent svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.modal-sent b { color: var(--ink); overflow-wrap: anywhere; }
/* Aviso de spam: bien visible, con los colores de la web */
.modal-spam { margin-bottom: 20px; padding: 16px 16px 14px; background: var(--ink); color: var(--cream); border-top: 3px solid var(--gold); }
.modal-spam-k { margin-bottom: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.modal-spam-t { margin-bottom: 6px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.modal-spam-t b { color: var(--gold); }
.modal-spam-n { font-size: 0.8125rem; line-height: 1.45; color: #D8CDBE; }
/* Móviles pequeños: el popup cabe entero sin desplazarse */
@media (max-width: 359px), (max-height: 680px) {
  .modal-in { padding: 22px 18px 18px; }
  .modal .ok-mark { width: 32px; height: 32px; margin-bottom: 10px; }
  .modal h2 { font-size: 1.35rem; margin-bottom: 10px; }
  .modal-text { margin-bottom: 10px; font-size: 0.9375rem; line-height: 1.45; }
  .modal-sent { margin-bottom: 10px; font-size: 0.875rem; }
  .modal-spam { margin-bottom: 14px; padding: 12px 12px 10px; }
  .modal-spam-t { font-size: 1.0625rem; }
  .modal-spam-n { font-size: 0.75rem; }
}
.error { font-size: 0.875rem; color: var(--error); margin-bottom: 10px; }

.btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 56px; padding: 0 24px;
  background: var(--ink); color: var(--cream);
  border: 0; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  isolation: isolate;
}
/* barrido de color al pasar / pulsar */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:active::before { transform: scaleX(1); transform-origin: left; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-light { background: var(--cream); color: var(--ink); width: auto; }
.btn-light:hover { color: var(--cream); }

.form-note { margin-top: 10px; font-size: 0.8125rem; color: var(--mute); text-align: center; }

.ok { padding: 32px 18px; text-align: center; }
.ok:focus { outline: none; }
.ok-mark { display: block; width: 40px; height: 40px; margin: 0 auto 14px; color: var(--accent); }
.ok h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.ok h2 em { color: var(--accent); font-size: 1.15em; }
.ok-sub { color: var(--soft); margin-bottom: 24px; }
.ok-sub b { color: var(--ink); }

.invite { border-top: 1px solid var(--line); padding-top: 22px; }
.invite-k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.invite-t { font-size: 0.9375rem; color: var(--soft); max-width: 26em; margin: 0 auto 18px; }
.invite-t strong { color: var(--ink); }
.qr {
  width: 200px; height: 200px; margin: 0 auto 10px; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.qr svg { display: block; width: 100%; height: 100%; }
.qr-fallback { font-size: 0.75rem; color: var(--mute); }
.invite-code { font-size: 0.8125rem; color: var(--mute); margin-bottom: 18px; letter-spacing: 0.04em; }
.invite-code b { font-size: 1rem; color: var(--ink); letter-spacing: 0.12em; }
.invite-actions { display: grid; gap: 8px; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { color: var(--cream); }

/* ---------- Cinta ---------- */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap; border-block: 1px solid #000; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-group { display: flex; flex: none; }
.ticker span {
  display: inline-flex; align-items: center; gap: 22px; padding: 14px 0 14px 22px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--gold); }
.ticker em { font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.sec { padding: 72px 0; position: relative; }

.sec-dark {
  color: var(--cream);
  background: linear-gradient(rgba(24, 18, 13, .45), rgba(24, 18, 13, .72)), var(--tx-emperor) center / 760px;
}
.sec-dark .sec-label { color: var(--gold); }
.sec-dark .title em { color: var(--gold); }

.sec-alt {
  background: linear-gradient(rgba(244, 238, 228, .25), rgba(244, 238, 228, .45)), var(--tx-stone) center / 600px;
}

/* Sobre mí: carrusel + texto */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.about-media { display: flex; justify-content: center; overflow: hidden; padding: 10px 0; }
.about-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.about-more { margin-top: 56px; }
.about-more .quote { margin-top: 0; }

/* Carrusel de tarjetas apiladas: la del frente nítida, las de detrás desenfocadas */
.stack { width: 100%; max-width: 480px; --dur: 5s; outline: none; }
.stack-cards {
  position: relative; width: 60%; margin: 0 auto; aspect-ratio: 9 / 16;   /* fotos verticales 9:16 */
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  isolation: isolate;   /* el z-index de las tarjetas no sale de aquí (no tapa la cabecera) */
}
.stack-cards.dragging { cursor: grabbing; }
.stack-card {
  position: absolute; inset: 0; overflow: hidden;
  background: #2A221B; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .85);
  transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s var(--ease);
  will-change: transform, filter;
}
.stack-cards.dragging .stack-card { transition: none; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stack:focus-visible .stack-cards { outline: 2px solid var(--gold); outline-offset: 8px; }

.stack .car-bars { width: 60%; margin: 22px auto 0; }
.car-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.car-bar { height: 28px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.car-bar span { position: relative; display: block; width: 100%; height: 3px; background: rgba(244, 238, 228, .22); overflow: hidden; }
.car-bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.car-bar.is-done i { transform: scaleX(1); }
.car-bar.is-active i { animation: carFill var(--dur) linear forwards; }
.stack.paused .car-bar.is-active i { animation-play-state: paused; }
@keyframes carFill { to { transform: scaleX(1); } }

.hint-desk { display: none; }
.stack-hint {
  margin-top: 4px; text-align: center;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8F8272;
}

.ph {
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
  background: repeating-linear-gradient(-45deg, #3A3027 0 12px, #41362C 12px 13px);
  border: 1px solid #54473A;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #A89C8C;
}

.story { max-width: 34em; }
.story p { color: #D9CFC0; font-size: 1.0625rem; margin-bottom: 18px; }

/* Credenciales de Santiago */
.creds-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.creds-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid #6B5B4A; background: rgba(28, 24, 20, .45);
  font-size: 0.8125rem; font-weight: 600; color: var(--cream);
}
.creds-chips li::before { content: ""; width: 6px; height: 6px; background: var(--gold); flex: none; }

.quote {
  max-width: 22em; margin: 20px 0 48px; padding: 28px 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 6.5vw, 2.3rem); line-height: 1.2;
  color: var(--cream);
  border-block: 1px solid #54473A;
}

.stats { width: 100%; max-width: 640px; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 56px; }
.stat { display: flex; flex-direction: column; padding: 0 6px; }
.stat + .stat { border-left: 1px solid #54473A; }
.stat-n { font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1; color: var(--gold); }
.stat-k { margin-top: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #B8AC9B; }

/* Trayectoria: móvil = vertical a la izquierda; escritorio = horizontal */
.timeline { position: relative; width: 100%; max-width: 340px; padding-left: 30px; text-align: left; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 8px; width: 1px;
  background: linear-gradient(#6B5B4A, var(--gold));
  transform-origin: top;
}
.timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 2px; width: 11px; height: 11px;
  border: 1px solid var(--gold); background: #241C15;
}
.tl-year { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tl-text { font-size: 1rem; color: var(--cream); max-width: 20em; }
.tl-now::before { background: var(--gold) !important; }
.tl-now::after {
  content: ""; position: absolute; left: -30px; top: 2px; width: 11px; height: 11px;
  border: 1px solid var(--gold); opacity: 0;
}
.timeline.in .tl-now::after { animation: ring 2s ease-out 2.2s infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.tl-now .tl-text { font-size: 1.15rem; }
.tl-now em { color: var(--gold); font-size: 1.2em; }

/* Animación: la línea se dibuja y los hitos aparecen en orden */
.js .timeline::before { transform: scaleY(0); transition: transform 1.8s var(--ease) .1s; }
.js .timeline li::before { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.35s + var(--i) * .45s); }
.js .timeline li > * { opacity: 0; transform: translateX(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.45s + var(--i) * .45s); }
.js .timeline.in::before { transform: none; }
.js .timeline.in li::before { transform: none; }
.js .timeline.in li > * { opacity: 1; transform: none; }

/* Modo continuo (lo activa el JS tras la entrada): la barra dorada avanza de hito en hito */
.timeline::after {
  content: ""; position: absolute; left: 4.5px; top: 6px; width: 2px; height: var(--fill, 0px);
  background: var(--gold); box-shadow: 0 0 10px rgba(201, 165, 126, .7);
  transition: height 1.1s var(--ease), width 1.1s var(--ease);
}
.js .timeline.in.tl-live li::before,
.js .timeline.in.tl-live li > * { transition-delay: 0s; transition-duration: .6s; }
.js .timeline.in.tl-live li::before { transition-property: transform, background-color, box-shadow; }
.js .timeline.in.tl-live li > * { opacity: .45; }
.js .timeline.in.tl-live li.is-on > * { opacity: .8; }
.js .timeline.in.tl-live li.is-current > * { opacity: 1; }
.timeline li.is-on::before { background: var(--gold); }
.js .timeline.in li.is-current::before {
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(201, 165, 126, .2), 0 0 18px rgba(201, 165, 126, .75);
}
.timeline li.is-current .tl-text { color: #fff; }

/* Para todas las edades */
.sec-ages { background: linear-gradient(rgba(244, 238, 228, .55), rgba(244, 238, 228, .8)), var(--tx-marble) center / 640px; }
.ages-intro { max-width: 34em; color: var(--soft); font-size: 1.0625rem; margin: -12px 0 32px; }
.ages { width: 100%; max-width: 960px; display: grid; gap: 12px; margin-bottom: 28px; }
.age {
  position: relative; padding: 28px 22px 24px; text-align: center;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.age:hover { transform: translateY(-6px); box-shadow: 0 22px 36px -24px rgba(28, 24, 20, .45); }
.age-k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.age h3 { font-weight: 400; margin: 4px 0 10px; }
.age h3 em { font-size: 2.6rem; line-height: 1.05; color: var(--ink); }
.age > p:not(.age-k) { color: var(--soft); max-width: 24em; margin: 0 auto 16px; }
/* las etiquetas van siempre al fondo, a la misma altura en las tres tarjetas */
.age-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; }
.age-tags li {
  padding: 5px 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
}
.ages-note { font-size: 0.9375rem; color: var(--soft); max-width: 36em; }
.ages-note b { color: var(--ink); }

/* Tu reserva */
.sec-plain { background: linear-gradient(rgba(255, 253, 249, .35), rgba(255, 253, 249, .6)), var(--tx-white) center / 680px; }
#cuentas { background: linear-gradient(rgba(234, 224, 208, .3), rgba(234, 224, 208, .55)), var(--tx-pearl) center / 640px; }
#preguntas { background: linear-gradient(rgba(244, 238, 228, .4), rgba(244, 238, 228, .65)), var(--tx-sand) center / 640px; }

.pillars { width: 100%; max-width: 960px; display: grid; gap: 12px; margin-bottom: 36px; }
.pillar { padding: 28px 22px; background: var(--bg); border: 1px solid var(--line); }
.pillar-n { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.pillar-n em { font-size: 1em; }
.pillar h3 { font-size: 1.0625rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.pillar p { color: var(--soft); max-width: 26em; margin: 0 auto; }
.pillar-dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pillar-dark .pillar-n { color: var(--gold); }
.pillar-dark p { color: #CFC4B4; }

.goal { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.goal-text { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.goal-text b { font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--accent); }
.goal .btn { width: auto; min-width: 280px; }

.form-note b { color: var(--ink); font-weight: 700; }

/* Cuentas */
.table-card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: var(--soft); }
.compare thead th { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.compare td:last-child, .compare thead th:last-child { background: rgba(201, 165, 126, .14); }
.compare td:last-child { font-weight: 700; }
.compare thead th:last-child { color: var(--accent); }
.compare .total th, .compare .total td { font-weight: 700; color: var(--ink); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .total td:first-of-type { color: var(--mute); text-decoration: line-through; font-weight: 400; }

.saving {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 16px 24px;
  background: var(--ink); color: var(--cream);
}
.saving-k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.saving-v { font-family: var(--serif); font-size: 4rem; line-height: 1; margin: 6px 0 4px; }
.saving-n { font-size: 0.875rem; color: #B8AC9B; }
.saving-n + .saving-n { margin-top: 6px; font-size: 0.8125rem; }

/* Condiciones: desplegable discreto */
.terms { width: 100%; max-width: 560px; margin-top: 14px; text-align: left; border: 0; }
.terms summary {
  display: inline-flex; min-height: 0; padding: 6px 0; gap: 8px;
  font-size: 0.8125rem; font-weight: 400; color: var(--mute);
  text-decoration: underline; text-underline-offset: 3px;
}
.terms summary::after {
  width: 7px; height: 7px; margin: -3px 0 0; border: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  background: none; transform: rotate(45deg);
}
.terms[open] summary::after { transform: rotate(-135deg); margin-top: 3px; background: none; }
.terms ul { padding: 4px 0 0 2px; list-style: disc inside; }
.terms li { font-size: 0.8125rem; color: var(--soft); padding: 3px 0; }
.terms-center { max-width: 960px; margin: -12px 0 28px; }

/* Proceso */
.steps { width: 100%; max-width: 960px; display: grid; gap: 12px; }
.steps li {
  padding: 28px 22px;
  background: rgba(255, 253, 249, .88);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.steps li:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(28, 24, 20, .5); }
.step-n { display: block; font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--accent); margin-bottom: 10px; }
.steps h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--soft); max-width: 24em; margin: 0 auto; }

/* Preguntas */
.faq { width: 100%; max-width: 680px; text-align: left; border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 0;
  font-weight: 700; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 28px; height: 28px; margin-right: 2px;
  border: 1px solid var(--ink); color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform .3s var(--ease), background-color .2s, color .2s;
}
details[open] summary::after {
  color: var(--cream);
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, var(--ink);
}
summary:focus { outline: none; }
summary:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
details p { padding: 0 44px 18px 0; color: var(--soft); }
details[open] p { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* CTA final */
.final {
  padding: 80px 0;
  color: var(--cream);
  background: linear-gradient(rgba(20, 17, 14, .45), rgba(20, 17, 14, .65)), var(--tx-marble-d) center / 640px;
}
.final-k { color: var(--gold); margin-bottom: 12px; }
.final-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2.6rem, 12vw, 4.8rem); line-height: 1; margin-bottom: 32px;
}
.final .btn-light { min-width: 260px; }

/* Pie */
.footer { padding: 44px 0 calc(100px + var(--safe-b)); background: linear-gradient(rgba(20, 17, 14, .82), rgba(20, 17, 14, .9)), var(--tx-marble-d) center / 640px; color: #B8AC9B; font-size: 0.875rem; }
.logo-light { color: var(--cream); margin-bottom: 16px; }
.logo-light img { height: 32px; }
.logo-light em { color: var(--gold); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer-addr { margin: -6px 0 12px; font-size: 0.8125rem; letter-spacing: 0.04em; color: #9C9081; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
.footer-small { font-size: 0.75rem; color: #7E7365; }

/* ---------- Botón fijo (móvil) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: rgba(244, 238, 228, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.sticky.show { transform: none; }
.sticky-left { margin-left: 6px; font-weight: 400; opacity: .7; text-transform: none; letter-spacing: 0; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa {
  --wa: #25D366;
  position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 55;
  display: flex; align-items: center; justify-content: flex-end;
  text-decoration: none;
  transition: bottom .35s var(--ease);
  animation: waIn .6s var(--ease) 1.2s both;
}
/* Círculo verde con el logo centrado (56 px en móvil, 64 px en escritorio) */
.wa-btn {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .25), 0 4px 6px -4px rgba(0, 0, 0, .25);
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.wa-icon { position: relative; width: 28px; height: 28px; }
/* Latido: un círculo verde que crece y se desvanece por detrás */
.wa-aro {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); opacity: .55;
  animation: waLatido 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}
.wa:hover .wa-btn {
  transform: scale(1.1); background: #1EBE5B;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .25), 0 8px 10px -6px rgba(0, 0, 0, .25);
}
.wa:focus-visible { outline: none; }
.wa:focus-visible .wa-btn { box-shadow: 0 0 0 4px rgba(37, 211, 102, .4); }
.wa-label {
  margin-right: 10px; padding: 8px 12px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
/* en móvil sube por encima de la barra fija de "Reservar plaza" */
.sticky.show ~ .wa { bottom: calc(90px + var(--safe-b)); }
@keyframes waIn { from { opacity: 0; transform: scale(.6) translateY(20px); } }
@keyframes waLatido {
  0%        { transform: scale(1); opacity: .5; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

/* ==========================================================
   ANIMACIONES
   ========================================================== */

/* Entrada del hero: solo CSS, no depende de JS */
.hero-sub, .deal, .deadline, .includes, .card { animation: rise .9s var(--ease) both; }
.hero-title .ln > * { animation: lineUp 1s var(--ease) both; }
.hero-title .ln:nth-child(2) > * { animation-delay: .12s; }
.hero-sub { animation-delay: .25s; }
.deal { animation-delay: .35s; }
.deadline { animation-delay: .4s; }
.includes { animation-delay: .45s; }
.card { animation-delay: .45s; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes lineUp { from { transform: translateY(110%); } }

/* Revelado al hacer scroll (solo con JS activo) */
.js [data-r]:not([data-r="lines"]):not([data-r="wipe"]):not([data-r="timeline"]) {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-r].in { opacity: 1 !important; transform: none !important; }

.js [data-r="lines"] .ln > * { transform: translateY(110%); transition: transform 1s var(--ease); }
.js [data-r="lines"] .ln:nth-child(2) > * { transition-delay: .12s; }
.js [data-r="lines"].in .ln > * { transform: none; }

.js [data-r="wipe"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1) var(--d, 0s); }
.js [data-r="wipe"] > * { transform: scale(1.25); transition: transform 1.6s var(--ease) var(--d, 0s); }
.js [data-r="wipe"].in { clip-path: inset(0); }
.js [data-r="wipe"].in > * { transform: none; }

/* Líneas de la etiqueta de sección que se dibujan */
.js .sec-label::before, .js .sec-label::after { transform: scaleX(0); transition: transform .9s var(--ease) .2s; }
.js .sec-label::before { transform-origin: right; }
.js .sec-label::after { transform-origin: left; }
.js .sec-label.in::before, .js .sec-label.in::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-r] > *, .js .ln > * { transform: none !important; }
  .js .timeline::before, .js .timeline li::before, .js .timeline li > * { opacity: 1 !important; transform: none !important; }
  .js .sec-label::before, .js .sec-label::after { transform: none; }
}

/* ==========================================================
   Hero en móvil: más compacto
   ========================================================== */
@media (max-width: 899px) {
  .only-desk { display: none; }
  .only-mob { display: inline; }

  .hero { padding: 24px 0 40px; }
  .hero-title { font-size: clamp(2.3rem, 11.5vw, 3.2rem); margin-bottom: 10px; }
  .hero-sub { font-size: 0.9375rem; margin-bottom: 18px; }

  /* precios + fecha límite = un solo bloque */
  .deal { margin-bottom: 0; }
  .deal-item { padding: 12px 10px 10px; }
  .deal-v { font-size: 2.1rem; }
  .deal-k { font-size: 0.625rem; letter-spacing: 0.08em; white-space: nowrap; }
  .deadline {
    margin-bottom: 16px; font-size: 0.8125rem; color: var(--cream);
    background: #2A231C; border: 0; border-top: 1px solid #3A322A;
  }
  .deadline b { color: var(--gold); }
  .deadline > p:first-child { padding: 9px 12px; }
  .deadline-days { flex-direction: row; gap: 5px; min-width: 0; padding: 0 12px; background: var(--accent); }
  .deadline-days span { color: var(--cream); }
  .deadline-days b { font-size: 1.15rem; margin: 0; }

  .card-kicker { display: none; }
  .card-head { padding-top: 16px; }
  .card-title { font-size: 1.3rem; }
}

/* ==========================================================
   Pantallas grandes
   ========================================================== */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero { padding: 56px 0 80px; }
  .card-head, .form, .counter { padding-left: 28px; padding-right: 28px; }
  .sec { padding: 104px 0; }
  .final { padding: 112px 0; }
  .stat { padding: 0 16px; }
}

@media (min-width: 900px) {
  .header-in { height: 68px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; gap: 28px; padding: 0; margin-left: auto;
    background: none; border: 0; box-shadow: none; clip-path: none; visibility: visible;
  }
  .nav a {
    position: relative; min-height: 0; padding: 6px 0; border: 0;
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--soft);
    transition: color .2s;
  }
  .nav a::after {
    position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 2px; border: 0;
    background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
  }
  .nav a:hover, .nav a.active { color: var(--ink); }
  .nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
  .header-actions { margin-left: 12px; }
  .nav a { white-space: nowrap; }
  @media (max-width: 1180px) {
    .nav { gap: 18px; }
    .nav a { font-size: 0.8125rem; }
    .header .logo span { display: none; }
  }
  .hero { padding: 72px 0 104px; background-size: auto, 1024px; }
  .final { background-size: auto, 1024px; }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px;
    align-items: stretch; text-align: left;
  }
  .hero-title { font-size: 4.4rem; }
  .hero-title .ln:first-child > * { white-space: nowrap; }
  .hero-info { align-items: flex-start; text-align: left; }
  .hero-sub { font-size: 1.0625rem; }
  .deal { max-width: 460px; margin-bottom: 14px; }   /* mismo ancho que el formulario */
  .deadline { max-width: 460px; justify-content: flex-start; margin-bottom: 24px; }
  .includes { margin-top: auto; }

  /* La tarjeta ocupa la misma altura que la columna izquierda */
  .card { max-width: none; display: flex; flex-direction: column; }
  .card-head { padding-top: 18px; }
  .counter { padding-top: 12px; padding-bottom: 12px; }
  /* el espacio sobrante se reparte por igual entre los campos */
  .form { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 14px; padding-bottom: 16px; }
  .form-note { margin-top: 8px; }
  .field { margin-bottom: 12px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .opts-exp span { min-height: 56px; }

  .includes { display: block; width: 100%; max-width: 460px; border-top: 1px solid var(--line); }
  .includes li {
    position: relative; padding: 13px 0 13px 30px;
    border-bottom: 1px solid var(--line); color: var(--soft);
  }
  .includes li::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .includes li:last-child { color: var(--ink); font-weight: 600; }
  .includes li:last-child::before { background: var(--accent); }

  @media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero-title { font-size: 3.8rem; }
    .deal, .deadline, .includes { max-width: none; }
  }

  .invite-actions { grid-template-columns: 1fr 1fr; }
  .invite-actions .btn { font-size: 0.8125rem; padding: 0 12px; }

  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
  .stack { max-width: none; }
  .hint-desk { display: inline; }
  .hint-mob { display: none; }
  .about-text { align-items: flex-start; text-align: left; }
  .about-text .sec-label::before { display: none; }
  .about-text .title { font-size: 2.9rem; }
  .about-text .story p:last-child { margin-bottom: 0; }
  .about-text .creds-chips { justify-content: flex-start; }

  /* Trayectoria en horizontal */
  .about-more .timeline { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; padding-left: 0; text-align: center; }
  .about-more .timeline::before {
    left: 12.5%; right: 12.5%; top: 5px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, #6B5B4A, var(--gold)); transform-origin: left;
  }
  .js .about-more .timeline::before { transform: scaleX(0); }
  .js .about-more .timeline.in::before { transform: none; }
  .about-more .timeline li { align-items: center; padding: 26px 14px 0; }
  .about-more .timeline::after { left: 12.5%; top: 4.5px; width: var(--fill, 0%); height: 2px; }
  .about-more .timeline li::before, .about-more .tl-now::after { left: calc(50% - 6px); top: 0; }
  .js .about-more .timeline li > * { transform: translateY(12px); }
  .js .about-more .timeline.in li > * { transform: none; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ages { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .sticky { display: none; }
  .wa { right: 28px; bottom: 28px; }
  .wa-btn { width: 64px; height: 64px; }
  .wa-icon { width: 32px; height: 32px; }
  .wa:hover .wa-label, .wa:focus-visible .wa-label { opacity: 1; transform: none; }
  .footer { padding-bottom: 44px; }
}

/* ==========================================================
   Pie: enlaces legales
   ========================================================== */
.footer-small a, .footer-btn { color: inherit; }
.footer-small a:hover, .footer-btn:hover { color: var(--cream); }
.footer-btn { padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }

/* Información básica de protección de datos bajo el formulario */
.lopd { margin: -4px 0 14px; border: 0; font-size: 0.75rem; line-height: 1.5; color: var(--mute); }
.lopd summary {
  display: inline-flex; min-height: 0; padding: 4px 0; gap: 8px;
  font-weight: 400; text-decoration: underline; text-underline-offset: 3px;
}
.lopd summary::after {
  width: 6px; height: 6px; margin: -3px 0 0; border: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  background: none; transform: rotate(45deg);
}
.lopd[open] summary::after { transform: rotate(-135deg); margin-top: 3px; background: none; }
.lopd p { margin-top: 8px; padding: 10px 12px; background: var(--bg); color: var(--soft); }
.lopd b { color: var(--ink); font-weight: 600; }

/* ==========================================================
   Aviso de cookies
   Móvil: franja mínima abajo. Escritorio: tarjeta en la esquina.
   Los tres botones son idénticos: ninguno se destaca.
   ========================================================== */
.ck {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(28, 24, 20, .4);
  font-size: 0.75rem; line-height: 1.4; color: var(--soft);
  animation: ckIn .45s var(--ease) both;
}
@keyframes ckIn { from { transform: translateY(100%); } }
.ck-text { margin-bottom: 8px; }
.ck-text b { color: var(--ink); }
.ck-text a { color: var(--ink); text-underline-offset: 2px; }
.ck-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ck-btn {
  height: 38px; padding: 0 6px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--ink);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.ck-btn:hover { background: var(--ink); color: var(--cream); }

/* Mientras está el aviso, la barra fija se esconde y WhatsApp sube por encima */
.ck-open .sticky, .ck-open .sticky.show { transform: translateY(100%); }
.ck-open .wa, .ck-open .sticky.show ~ .wa { bottom: calc(var(--ck-h, 96px) + 12px); }

/* Configuración */
.ck-dialog {
  width: 100%; max-width: 100%; max-height: 88vh; margin: auto auto 0; padding: 0; border: 0;
  background: var(--card); color: var(--ink);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5);
}
.ck-dialog::backdrop { background: rgba(28, 24, 20, .6); }
.ck-dialog[open] { animation: ckIn .4s var(--ease); }
.ck-dialog-in { padding: 20px var(--gutter) calc(16px + var(--safe-b)); }
.ck-dialog h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 6px; }
.ck-intro { margin-bottom: 10px; font-size: 0.8125rem; color: var(--soft); }
.ck-cat { padding: 12px 0; border-top: 1px solid var(--line); }
.ck-cat + .ck-cat { margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-cat-head b { font-size: 0.9375rem; }
.ck-cat-head label { cursor: pointer; }
.ck-cat p { margin-top: 4px; font-size: 0.8125rem; line-height: 1.45; color: var(--soft); }
.ck-always { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.ck-switch {
  -webkit-appearance: none; appearance: none; flex: none; position: relative;
  width: 44px; height: 26px; border-radius: 13px; background: var(--line); cursor: pointer;
  transition: background .2s;
}
.ck-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease);
}
.ck-switch:checked { background: var(--ink); }
.ck-switch:checked::after { transform: translateX(18px); }
.ck-more { margin-top: 12px; text-align: center; font-size: 0.8125rem; }
.ck-more a { color: var(--soft); text-underline-offset: 3px; }

@media (min-width: 600px) {
  .ck-dialog { width: min(480px, calc(100% - 32px)); margin: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
  .ck-dialog[open] { animation: modal-in .45s var(--ease); }
  .ck-dialog-in { padding: 26px 26px 22px; }
}

@media (min-width: 900px) {
  .ck {
    left: 24px; right: auto; bottom: 24px; width: 380px;
    padding: 16px 18px; border: 1px solid var(--line);
    box-shadow: 0 24px 48px -20px rgba(28, 24, 20, .45);
    font-size: 0.8125rem;
  }
  .ck-text { margin-bottom: 12px; }
  .ck-btn { height: 40px; font-size: 0.75rem; }
  .ck-open .wa, .ck-open .sticky.show ~ .wa { bottom: 28px; }
}
