/* ==========================================================================
   Creadores de Legado
   Sistema visual: papel, crema, noche y oro. EB Garamond (títulos, servida desde assets/fonts) + Jost.
   Mobile first. Los tokens viven en :root; todo lo demás los usa.
   ========================================================================== */

/* EB Garamond servida desde el sitio: acentos bien ubicados en ES y PT (Cormorant los dibujaba corridos).
   Pesos equivalentes al diseño: 600 usa EB 500, 500 usa EB 400 y la itálica usa EB 400 itálica. */
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  /* color */
  --paper: #fbf8f2;
  --cream: #f3ecdf;
  --sand: #e8dcc6;
  --line: rgba(34, 29, 22, .12);
  --ink: #221d16;
  --ink-2: #574e41;
  --ink-3: #75695a;
  --night: #15110c;
  --night-2: #1e1913;
  --night-3: #2a231a;
  --line-n: rgba(245, 238, 225, .12);
  --on-night: #f5eee1;
  --on-night-2: #c2b6a0;
  --on-night-3: #938875;
  --gold: #866629;
  --gold-2: #c6a15b;
  --gold-3: #e2cfa5;
  --grad-gold: linear-gradient(135deg, #e6d3a6 0%, #c6a15b 52%, #b08a45 100%);

  /* tipografía */
  --serif: "EB Garamond", "Times New Roman", Georgia, serif;
  --sans: Jost, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* espacio y forma */
  --gutter: 20px;
  --max: 1200px;
  --section: 76px;
  --r-lg: 18px;
  --r: 18px;
  --r-sm: 10px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(34, 29, 22, .05), 0 8px 24px rgba(34, 29, 22, .06);
  --shadow-2: 0 2px 4px rgba(34, 29, 22, .04), 0 24px 60px rgba(34, 29, 22, .12);

  /* movimiento: una sola familia de curvas, salidas largas y suaves */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hd-h: 64px;
  interpolate-size: allow-keywords;
}
@media (min-width: 700px) { :root { --gutter: 36px; --section: 104px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --section: 136px; --hd-h: 76px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--pill); background: var(--gold-2); color: var(--night); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- tipografía ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
.h2 em { display: block; font-style: italic; font-weight: 500; color: var(--gold); }
/* línea de título con máscara (el texto sube al aparecer) */
.ln { display: block; overflow: hidden; padding: .12em .1em .14em; margin: -.12em -.1em -.14em; }
.ln > span { display: inline-block; }
.h2-xl { font-size: clamp(46px, 7.4vw, 108px); }
.lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.fine { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); max-width: 72ch; }
h3 { text-wrap: balance; }

/* ---------- botones ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: var(--pill); font: 500 14.5px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s; }
/* brillo que cruza el botón dorado al pasar el mouse */
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 32%, rgba(255, 250, 238, .55) 50%, transparent 68%); transform: translateX(-110%); transition: transform .9s var(--ease-out); pointer-events: none; }
.btn-gold:hover::after { transform: translateX(110%); }
.btn-gold:hover { box-shadow: 0 10px 28px rgba(134, 102, 41, .28); }
.btn .ic { flex: none; width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold-2); color: var(--night); }
.btn-gold:hover { background: var(--gold-3); }
.btn-line { border-color: rgba(245, 238, 225, .34); color: var(--on-night); }
.btn-line:hover { border-color: var(--gold-3); background: rgba(245, 238, 225, .06); }
.btn-dark { background: var(--night); color: var(--on-night); }
.btn-dark:hover { background: var(--night-3); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13.5px; }

/* ---------- nota de vista previa ---------- */
.note { background: var(--gold-2); color: var(--night); text-align: center; font-size: 12.5px; font-weight: 500; padding: 7px 16px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; color: var(--on-night); transition: transform .5s var(--ease-out); }
/* el header se esconde al bajar y vuelve al subir */
body.hd-hide .hd { transform: translateY(-100%); }
body.hd-hide .tabs { top: 8px; }
body.hd-hide .faq-side { top: 32px; }
/* el desenfoque va en una capa propia: si estuviera en .hd, el menú fijo quedaría atrapado dentro del header */
.hd::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 17, 12, .9); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); }
.hd-in { display: flex; align-items: center; gap: 28px; height: var(--hd-h); }
.hd-logo, .ft-logo { text-decoration: none; color: inherit; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.logo b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1; white-space: nowrap; }
.logo b i { font-style: italic; font-weight: 500; color: var(--gold-3); }
.logo small { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--on-night-3); }
.hd-nav { display: flex; gap: 30px; margin-left: auto; }
.hd-nav > a { font-size: 14.5px; text-decoration: none; color: var(--on-night-2); transition: color .2s; }
.hd-nav > a:hover { color: var(--on-night); }
.hd-mfoot { display: none; }
.hd-r { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border-radius: var(--pill); background: rgba(245, 238, 225, .07); }
.lang a { font-size: 12px; font-weight: 500; letter-spacing: .08em; padding: 6px 11px; border-radius: var(--pill); text-decoration: none; color: var(--on-night-2); }
.lang a[aria-current] { background: rgba(226, 207, 165, .18); color: var(--on-night); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--pill); background: rgba(245, 238, 225, .08); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--on-night); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.hd.open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.hd.open .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; background: var(--night); color: var(--on-night); overflow: hidden; }
.hero-img { position: relative; display: block; aspect-ratio: 1 / 1; max-height: 62vh; overflow: hidden; animation: dawn 2.4s var(--ease-out) both; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: settle 14s var(--ease) both; }
@media (max-width: 999px) {
  /* la foto se funde con el fondo, sin borde visible */
  .hero-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(0deg, var(--night) 8%, rgba(21, 17, 12, .6) 50%, rgba(21, 17, 12, 0)); pointer-events: none; }
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--night) 46%, rgba(21, 17, 12, .55) 58%, rgba(21, 17, 12, 0) 72%); }
.hero-in { position: relative; z-index: 2; margin-top: -88px; padding-bottom: 48px; }
.hero .eyebrow { color: var(--gold-3); }
.hero-t { font-weight: inherit; }
.hero-brand { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(56px, 15vw, 136px); line-height: .9; letter-spacing: -.02em; }
.hero-brand em { display: block; font-style: italic; font-weight: 500; color: var(--gold-3); padding-left: .42em; }
.hero-sub { display: block; margin-top: 20px; max-width: 26ch; font-family: var(--serif); font-size: clamp(23px, 2.5vw, 32px); font-weight: 500; line-height: 1.2; color: var(--on-night); text-wrap: balance; }
.hero-l { max-width: 50ch; margin: 18px 0 30px; font-size: 16.5px; line-height: 1.7; color: var(--on-night-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.trust b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; color: var(--gold-3); }
.trust span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--on-night-3); }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes dawn { from { filter: brightness(.45) saturate(.7); } to { filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes unmask { from { transform: translateY(112%); } to { transform: none; } }
/* entrada de la portada, escalonada */
.hero .eyebrow { animation: rise .9s var(--ease-out) .15s both; }
.hero-brand .ln > span { animation: unmask 1.2s var(--ease-out) .25s both; }
.hero-brand em.ln > span { animation-delay: .4s; }
.hero-sub { animation: rise 1s var(--ease-out) .62s both; }
.hero-l { animation: rise 1s var(--ease-out) .74s both; }
.hero .actions { animation: rise 1s var(--ease-out) .86s both; }
.trust li { animation: rise 1s var(--ease-out) both; }
.trust li:nth-child(1) { animation-delay: 1s; }
.trust li:nth-child(2) { animation-delay: 1.1s; }
.trust li:nth-child(3) { animation-delay: 1.2s; }

/* banda de medios */
.band { background: var(--night-2); color: var(--on-night-3); }
.band-in { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.band-k { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.band-l { display: flex; align-items: center; gap: 28px; text-decoration: none; color: var(--on-night-2); transition: color .2s; }
.band-l:hover { color: var(--on-night); }
.pl { line-height: 1; white-space: nowrap; }
.pl-infobae { font: 600 22px/1 var(--sans); letter-spacing: -.02em; }
.pl-tiempo { font: 700 19px/1 Georgia, serif; letter-spacing: .02em; }
.pl-bogota { font: 600 17px/1 var(--sans); letter-spacing: .08em; }

/* ---------- secciones ---------- */
.sec { position: relative; padding: var(--section) 0; }
.sec-paper { background: var(--paper); }
.sec-cream { background: var(--cream); }
.sec-night { background: var(--night); color: var(--on-night); overflow: hidden; }
.sec-night .eyebrow { color: var(--gold-3); }
.sec-night .h2 em { color: var(--gold-3); }
.sec-night .lead { color: var(--on-night-2); }
.sec-night .fine { color: var(--on-night-3); }
.sec-night > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* fondos con parallax: más altos que la sección para que nunca se vea el borde */
.sec-night > .bg[data-px] { top: -64px; bottom: auto; height: calc(100% + 128px); will-change: transform; }
.sh { margin-bottom: 36px; }
.sh .lead { margin-top: 18px; }
.sh-center { text-align: center; }
.sh-center .lead { margin-left: auto; margin-right: auto; }
.sec-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }

/* ---------- carrusel ---------- */
.car { position: relative; }
.car-track { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -2px; }
.car-item { flex: 0 0 84%; scroll-snap-align: start; }
.car-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.car-dots { display: flex; gap: 0; flex-wrap: wrap; }
.car-dot { width: 22px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-dot::before { content: ""; width: 7px; height: 7px; border-radius: var(--pill); background: currentColor; opacity: .25; transition: width .35s var(--ease), opacity .35s; }
.car-dot[aria-current="true"]::before { width: 18px; opacity: 1; background: var(--gold-2); }
.car-btns { display: flex; gap: 10px; }
.car-btn { width: 46px; height: 46px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, opacity .25s; }
.car-btn svg { width: 20px; height: 20px; }
.car-btn:hover:not(:disabled) { background: var(--sand); }
.car-btn:disabled { opacity: .3; cursor: default; }
.sec-night .car-btn { border-color: var(--line-n); }
.sec-night .car-btn:hover:not(:disabled) { background: rgba(245, 238, 225, .08); }

/* ---------- el camino (pilares) ---------- */
.pillar { position: relative; display: flex; flex-direction: column; padding: 30px 26px 32px; border-radius: var(--r-lg); background: var(--cream); }
.pillar-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--paper); color: var(--gold); box-shadow: var(--shadow-1); }
.pillar-ic svg { width: 30px; height: 30px; }
.pillar-n { position: absolute; top: 28px; right: 28px; font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--ink-3); }
.pillar h3 { margin: 28px 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.05; }
.pillar p { color: var(--ink-2); font-size: 16px; }

/* ---------- galería ---------- */
.gallery .car-item { flex-basis: 86%; }
.shot-img { overflow: hidden; border-radius: var(--r); background: var(--night-3); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform-origin: 50% 60%; transition: transform 7s cubic-bezier(.25, .1, .25, 1), filter .8s var(--ease); }
.shot-tall img { object-position: 50% 30%; }
.shot figcaption { margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-3); transition: color .6s var(--ease); }
/* la foto activa respira (acercamiento lento) y las demás quedan en segundo plano */
.car-gallery .shot { transition: opacity .8s var(--ease); }
.car-gallery.is-live .shot:not(.is-on) { opacity: .55; }
.car-gallery.is-live .shot:not(.is-on) img { filter: saturate(.75); }
.car-gallery .shot.is-on img { transform: scale(1.07); }
.car-gallery .shot.is-on figcaption { color: var(--gold-3); }

/* ---------- niveles ---------- */
.levels .sh { margin-bottom: 28px; }
.tabs { position: sticky; top: calc(var(--hd-h) + 8px); transition: top .5s var(--ease-out); z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: var(--pill); background: rgba(251, 248, 242, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
/* indicador que se desliza entre pestañas */
.tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); border-radius: var(--pill); background: var(--night); transform: translateX(calc(var(--ti, 0) * (100% + 4px))); transition: transform .55s var(--ease-out); }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 0; border-radius: var(--pill); background: transparent; cursor: pointer; transition: color .4s var(--ease); }
.tab b { font-size: 14px; font-weight: 600; line-height: 1.2; }
.tab span { font-size: 11.5px; color: var(--ink-3); line-height: 1.2; transition: color .4s var(--ease); }
.tab[aria-current="true"] { color: var(--on-night); }
.tab[aria-current="true"] span { color: var(--gold-3); }
.car-tiers .car-track { align-items: stretch; padding-top: 14px; padding-bottom: 24px; }
.car-tiers .car-item { flex-basis: 88%; max-width: 420px; }
.tier { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; }
.tier-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.tier-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.badge { position: absolute; top: 14px; left: 14px; padding: 7px 13px; border-radius: var(--pill); background: var(--paper); color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; box-shadow: var(--shadow-1); }
.tier-body { flex: 1; display: flex; flex-direction: column; padding: 26px 24px 28px; }
.tier-k { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tier h3 { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; margin: 8px 0 4px; }
.tier-tag { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }
.tier-body { container-type: inline-size; }
.tier-elite .tier-tag { color: var(--gold-3); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.price .cur, .elite-price .cur { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; color: var(--gold); align-self: flex-start; margin-top: 10px; }
.price .amt, .elite-price .amt { font-family: var(--serif); font-size: 58px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.price .per { font-size: 15px; color: var(--ink-2); }
.tier-unit { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.tier-ideal { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--cream); font-size: 15px; line-height: 1.5; color: var(--ink); }
.tier-inc { flex: 1; margin: 20px 0 26px; }
.tier-base { font-size: 13.5px; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.checks { display: flex; flex-direction: column; gap: 11px; }
.checks li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; line-height: 1.45; }
.checks svg { flex: none; width: 20px; height: 20px; padding: 2px; border-radius: var(--pill); background: rgba(198, 161, 91, .18); color: var(--gold); margin-top: 1px; }
.tier .btn { align-self: flex-start; }
.tier-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.tier.is-featured { box-shadow: 0 0 0 2px var(--gold-2), var(--shadow-2); }
.tier-elite { background: var(--night); color: var(--on-night); box-shadow: 0 0 0 1px var(--night-3), var(--shadow-2); }
.tier-elite .price .per { color: var(--on-night-2); }
.tier-elite .tier-k, .tier-elite .price .cur, .tier-elite .tier-base { color: var(--gold-3); }
.tier-elite .tier-unit, .tier-elite .tier-note { color: var(--on-night-3); }
.tier-elite .tier-ideal { background: var(--night-3); color: var(--on-night); }
.tier-elite .checks svg { color: var(--gold-3); background: rgba(226, 207, 165, .14); }
.lv-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; text-align: center; }
.lv-help { font-size: 15.5px; color: var(--ink-2); }
.lv-help a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: 4px; }
.lv-help .ic { width: 16px; height: 16px; }

/* ---------- cómo funciona ---------- */
.steps { position: relative; display: grid; gap: 0; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; align-content: start; gap: 18px; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step-n { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--pill); border: 1px solid var(--gold-2); font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold); background: var(--paper); }
.step h3 { margin: 10px 0 6px; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.05; }
.step p { color: var(--ink-2); }

/* ---------- elite ---------- */
.elite > .bg { opacity: .22; }
.elite::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(21, 17, 12, .82), rgba(21, 17, 12, .97) 60%); }
.elite-in { position: relative; z-index: 2; }
.elite-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 36px; }
.elite-top .sh { margin-bottom: 20px; }
.elite-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.elite-price .cur { color: var(--gold-3); }
.elite-price small { flex-basis: 100%; font-size: 13px; color: var(--on-night-3); }
.el-k { margin-bottom: 16px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.exp { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--night-3); }
.exp-img { position: absolute; inset: 0; z-index: -1; }
.exp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.exp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 17, 12, 0) 34%, rgba(21, 17, 12, .9) 100%); }
.exp-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 24px; }
.car-exp .car-item { flex-basis: 76%; }
.exp h4 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.1; color: var(--on-night); }
.exp p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--on-night-2); }
.exp:hover .exp-img img { transform: scale(1.05); }
.m7 { margin-top: 44px; }
.m7-head { margin-bottom: 16px; }
.m7-head .flow-k { margin-bottom: 6px; }
.m7-head .el-h { margin: 0; }
.m7-list { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.m7-list li { display: inline-flex; align-items: baseline; gap: 10px; }
.m7-list span { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1; color: var(--gold-3); }
.m7-list b { font-size: 15.5px; font-weight: 500; line-height: 1.2; color: var(--on-night); }
.el-h { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; margin-bottom: 20px; }
.flow { margin-top: 52px; }
.flow-h { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 22px; }
.flow-row { display: grid; gap: 10px; justify-items: stretch; }
.flow-ar { display: grid; place-items: center; color: var(--gold-3); }
.flow-ar svg { width: 22px; height: 22px; transform: rotate(90deg); }
.flow-col { padding: 20px; border-radius: var(--r); background: rgba(245, 238, 225, .05); }
.flow-k { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 8px; }
.flow-col p:not(.flow-k) { font-family: var(--serif); font-size: 21px; line-height: 1.35; font-weight: 500; }
.flow-core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 16px; text-align: center; border-radius: var(--r); background: radial-gradient(circle at 50% 30%, #4a3d27, var(--night) 80%); box-shadow: inset 0 0 0 1px rgba(226, 207, 165, .28); }
/* el centro del sistema "respira": un halo dorado que se expande y se apaga */
.flow-core::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(226, 207, 165, .32); animation: pulse 3.6s var(--ease) infinite; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 207, 165, .32); } 70%, 100% { box-shadow: 0 0 0 26px rgba(226, 207, 165, 0); } }
.flow-core b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.flow-core small { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); }
.flow .fine { margin-top: 20px; }

/* ---------- propósito ---------- */
.purpose { display: grid; }
.purpose-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.purpose-img img { width: 100%; height: 100%; object-fit: cover; }
.purpose-img img[data-px] { position: absolute; left: 0; top: -44px; height: calc(100% + 88px); will-change: transform; }
.purpose-txt { padding: 56px var(--gutter) var(--section); }
.purpose .sh { margin-bottom: 28px; }
.stat { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r); background: var(--paper); }
.stat b { font-family: var(--serif); font-size: 60px; font-weight: 600; line-height: 1; color: var(--gold); white-space: nowrap; }
.stat span { font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 24ch; }
.cf { width: 150px; margin-top: 28px; }

/* ---------- equipo ---------- */
.car-people .car-item { flex-basis: 76%; }
.person-img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 80% at 50% 100%, #d9c49b, var(--sand) 60%, var(--cream)); display: flex; align-items: flex-end; justify-content: center; }
.person-img img { width: 94%; transform-origin: 50% 100%; transition: transform .9s var(--ease-out); }
.person:hover .person-img img { transform: scale(1.035); }
.person figcaption { padding-top: 16px; }
.person b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.person span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 34ch; }

/* ---------- prensa ---------- */
.car-clips .car-item { flex-basis: 84%; }
.clip { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 22px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.clip:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.clip-img { border-radius: var(--r-sm); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.clip-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.clip figcaption { padding: 18px 10px 0; }
.clip-src { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.clip q { display: block; margin-top: 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; quotes: "“" "”"; }

/* ---------- faq ---------- */
.faq-in { display: flex; flex-direction: column; }
.faq-side { display: contents; }
.faq-side .sh { order: 1; margin-bottom: 28px; }
.qa { order: 2; }
.faq-more { order: 3; margin-top: 28px; padding: 24px; border-radius: var(--r); background: var(--night); color: var(--on-night); display: flex; flex-direction: column; gap: 14px; }
.faq-more .btn { align-self: flex-start; }
.faq-more p { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa details { border-radius: var(--r); background: var(--cream); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: var(--pill); background: var(--paper); transition: background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 11px; right: 11px; top: 16.5px; height: 1.5px; background: var(--gold); transition: transform .3s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa details[open] summary i { background: var(--gold-3); }
.qa details[open] summary i::after { transform: rotate(0); }
.qa details p { padding: 0 22px 22px; color: var(--ink-2); line-height: 1.7; }
/* apertura suave de las respuestas (navegadores que lo soportan; el resto abre al instante) */
.qa details::details-content { block-size: 0; overflow-y: clip; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
.qa details { transition: background-color .4s var(--ease); }
.qa details:hover { background: var(--sand); }
.qa details[open] p { animation: rise .6s var(--ease-out) both; }

/* ---------- cierre ---------- */
.closing { text-align: center; }
.closing > .bg { opacity: .28; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 90% at 50% 50%, rgba(21, 17, 12, .55), rgba(21, 17, 12, .95)); }
.closing-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.closing .lead { margin: 22px auto 32px; }
.closing .actions { justify-content: center; }
.closing-tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; margin-top: 36px; }
.closing-tiers a { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; text-decoration: none; font-size: 14px; color: var(--on-night-2); transition: border-color .25s, color .25s; }
.closing-tiers a:hover { color: var(--on-night); }
.closing-tiers a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.closing-tiers b { font-weight: 500; color: var(--gold-3); }

/* ---------- footer ---------- */
.ft { background: var(--night); color: var(--on-night-3); padding: 56px 0 120px; font-size: 13.5px; }
.ft-top { display: flex; flex-direction: column; gap: 28px; padding-bottom: 28px; }
.ft-logo { color: var(--on-night); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ft-nav a { text-decoration: none; color: var(--on-night-2); font-size: 14.5px; }
.ft-nav a:hover { color: var(--on-night); }
.ft-logos { display: flex; align-items: center; gap: 28px; }
.ft-wu { width: 116px; }
.ft-cf { width: 118px; mix-blend-mode: screen; }
.ft-bot { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; line-height: 1.6; }
.lang-ft { align-self: flex-start; margin-top: 8px; }

/* ---------- barra móvil ---------- */
.mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: var(--pill); background: rgba(30, 25, 19, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--on-night); box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 0 0 1px var(--line-n); transform: translateY(140%); transition: transform .45s var(--ease); }
.mbar.on { transform: none; }
.mbar-t small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-3); line-height: 1.2; }
.mbar-t b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; }

/* ---------- aparición al hacer scroll (las clases las pone main.js; sin JS todo se ve) ---------- */
/* títulos: antetítulo, líneas con máscara y bajada, en cascada */
.rv-h .eyebrow, .rv-h .lead { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.rv-h .ln > span { transform: translateY(112%); transition: transform 1.15s var(--ease-out) .08s; }
.rv-h em.ln > span { transition-delay: .2s; }
.rv-h .lead { transition-delay: .32s; }
.rv-h.in .eyebrow, .rv-h.in .lead { opacity: 1; transform: none; }
.rv-h.in .ln > span { transform: none; }
/* grupos (tarjetas, pasos, fotos): uno tras otro */
.rv-g > * { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out) calc(var(--i, 0) * 95ms), transform 1.1s var(--ease-out) calc(var(--i, 0) * 95ms); }
.rv-g.in > * { opacity: 1; transform: none; }
/* bloques sueltos */
.rv-up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out) .1s, transform 1s var(--ease-out) .1s; }
.rv-up.in { opacity: 1; transform: none; }
/* imágenes que se descubren desde el centro */
.rv-img { clip-path: inset(8% 6% round var(--r-lg)); transition: clip-path 1.4s var(--ease-out); }
.rv-img.in { clip-path: inset(0 round 0); }
.rv-img img:not([data-px]) { transform: scale(1.14); transition: transform 1.8s var(--ease-out); }
.rv-img.in img:not([data-px]) { transform: none; }
/* diagrama del centro de costos: las columnas llegan desde los lados */
.rv-flow .flow-col { opacity: 0; transition: opacity .9s var(--ease-out) .25s, transform 1.1s var(--ease-out) .25s; }
.rv-flow .flow-col { transform: translateY(18px); }
.rv-flow .flow-core { opacity: 0; transform: scale(.82); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.rv-flow.in .flow-col, .rv-flow.in .flow-core { opacity: 1; transform: none; }
/* parallax: el elemento se mueve con transform desde main.js */
[data-px] { backface-visibility: hidden; }

/* ==========================================================================
   Menú móvil (hasta 1099px)
   ========================================================================== */
@media (max-width: 1099px) {
  .hd-nav { position: fixed; top: var(--hd-top, var(--hd-h)); left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; margin: 0; padding: 18px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--night); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .hd.open .hd-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .hd-nav > a { padding: 12px 0; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--on-night); }
  .hd-mfoot { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
    .hd-mfoot .lang { align-self: flex-start; }
  .burger { display: block; }
  .hd-r { margin-left: auto; }
  .hd-r > .lang { display: none; }
  .hd-cta { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .logo b { font-size: 18px; }
  .logo small { letter-spacing: .18em; }
  .hero-brand { font-size: 52px; }
  .trust b { font-size: 19px; }
}

/* ==========================================================================
   Tablet (700px+)
   ========================================================================== */
@media (min-width: 700px) {
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .car-item { flex-basis: 46%; }
  .gallery .car-item { flex-basis: 58%; }
  .car-tiers .car-item { flex-basis: 60%; }
  .car-people .car-item, .car-clips .car-item { flex-basis: 44%; }
  .band-in { flex-direction: row; justify-content: center; gap: 36px; }
  .flow-ar svg { transform: none; }
  .rv-flow .flow-col:first-child { transform: translateX(-28px); }
  .rv-flow .flow-col:last-child { transform: translateX(28px); }
  .car-exp .car-item { flex-basis: 42%; }
  .tier-elite h3 { font-size: min(44px, 12.6cqi); line-height: 44px; white-space: nowrap; }
  .flow-row { grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 18px; }
  .flow-core { flex-direction: column; width: 172px; height: 172px; border-radius: 50%; gap: 6px; text-align: center; padding: 0; box-shadow: inset 0 0 0 1px rgba(226, 207, 165, .28), 0 0 0 10px rgba(198, 161, 91, .08); }
  .stat b { font-size: 72px; }
  .ft-top { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .ft-logos { margin-left: auto; }
  .ft-bot { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .ft { padding-bottom: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .step h3 { margin-top: 26px; }
  .elite-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .elite-top .sh { margin-bottom: 0; }
  .elite-price { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; flex: none; }
  .elite-price small { flex-basis: auto; }
  .elite-price .amt { font-size: 76px; }
  .faq-more { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   Escritorio (1000px+): grillas en lugar de carruseles donde todo cabe
   ========================================================================== */
@media (min-width: 1000px) {
  .hero { flex-direction: row; align-items: center; min-height: min(90vh, 860px); }
  .hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; max-height: none; aspect-ratio: auto; }
  .hero::after { background: linear-gradient(90deg, var(--night) 36%, rgba(21, 17, 12, .72) 50%, rgba(21, 17, 12, 0) 70%), linear-gradient(0deg, rgba(21, 17, 12, .6), rgba(21, 17, 12, 0) 34%); }
  .hero-in { margin-top: 0; padding-top: 96px; padding-bottom: 96px; }
  .hero-l { font-size: 18px; }
  .trust { max-width: 600px; margin-top: 56px; }
  .trust b { font-size: 26px; }
  .trust span { font-size: 13px; }

  .sh-split { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 72px; align-items: end; margin-bottom: 64px; }
  .sh-split .eyebrow, .sh-split .h2 { grid-column: 1; }
  .sh-split .lead { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 6px; }
  .sh-center { margin-bottom: 56px; }

  .car-m .car-track { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .car-m .car-item { max-width: none; }
  .car-m .car-ui { display: none; }
  .car-exp { --cols: 4; }
  .exp p { min-height: 2.9em; }
  .car-tiers .car-track { gap: 24px; padding: 0; align-items: stretch; }
  .tabs { display: none; }
  .tier { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
  .tier:hover { transform: translateY(-6px); }
  .tier:hover .tier-img img { transform: scale(1.04); }
  .tier-body { padding: 30px 30px 32px; }
  .tier h3 { font-size: min(50px, 17.5cqi); line-height: 50px; }
  .tier-elite h3 { font-size: min(50px, 12.6cqi); }

  .gallery .car-item { flex-basis: 40%; }
  .gallery .car-track { margin: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; }
  .car-gallery .car-ui { margin-top: 28px; }
  .car-gallery.is-live .shot:not(.is-on), .car-gallery.is-live .shot:not(.is-on) img { opacity: 1; filter: none; }

  .pillar { padding: 36px 32px 40px; }
  .pillar:hover .pillar-ic { transform: translateY(-3px); }
  .pillar-ic { transition: transform .4s var(--ease); }

  .purpose { grid-template-columns: 1fr 1fr; }
  .purpose-img { aspect-ratio: auto; min-height: 640px; }
  .purpose-txt { padding: var(--section) clamp(40px, 6vw, 96px); align-self: center; }

  .faq-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
  .faq-side { display: block; position: sticky; top: calc(var(--hd-h) + 32px); transition: top .5s var(--ease-out); }
  .faq-more { flex-direction: column; align-items: flex-start; margin-top: 8px; }
  .qa summary { font-size: 23px; padding: 22px 26px; }
  .qa details p { padding: 0 26px 24px; }

  .clip q { font-size: 24px; }
}

@media (min-width: 1100px) {
  .mbar { display: none; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv-h .eyebrow, .rv-h .lead, .rv-h .ln > span, .rv-g > *, .rv-up, .rv-flow .flow-col, .rv-flow .flow-core { opacity: 1; transform: none; }
  .rv-img { clip-path: none; }
  .car-gallery .shot.is-on img { transform: none; }
}
