/* =========================================================
   ZTAR CODE — "Index" theme
   An editorial system: a numbered spine runs down the page,
   each chapter composed differently (index rows, ghost-numeral
   rows, an overlapping diptych, staggered tickets, a dotted
   price menu, a stepped route, marginalia, footnotes).
   Warm ivory + ink + brass-gold. Serif display, clean sans body.
   ========================================================= */

:root {
  /* ----- light surfaces ----- */
  --cream: #f7f2e6;
  --cream-2: #efe4cd;
  --paper: #fffdf9;
  --paper-2: #f8f1e1;
  --line: rgba(30, 24, 16, 0.15);
  --line-soft: rgba(30, 24, 16, 0.08);

  --ink: #1c160e;
  --ink-soft: #5b5042;
  --ink-faint: #93876f;

  /* ----- inverted accent panels ----- */
  --ink-panel: #1c160e;
  --ink-panel-2: #2a2114;
  --ink-line: rgba(247, 242, 230, 0.14);
  --cream-text: #f5efdf;
  --cream-text-soft: rgba(245, 239, 223, 0.62);

  /* ----- brass / gold accent ----- */
  --gold: #b3823c;
  --gold-soft: #ddbd7c;
  --gold-deep: #835d29;
  --gold-glow: rgba(179, 130, 60, 0.18);
  --gold-line: rgba(179, 130, 60, 0.42);
  --star: #bd8d44;

  --rust: #a8674f;
  --green: #25d366;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --maxw: 1140px;
  --maxw-idx: 1320px;
  --rail: 150px;
  --r: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

::selection { background: var(--ink); color: var(--cream-text); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- ICON SYSTEM ---------- */
.ico {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.ico.solid { fill: currentColor; stroke: none; }
.brand-star { width: 26px; height: 26px; fill: currentColor; stroke: none; color: var(--gold);
  filter: drop-shadow(0 0 7px var(--gold-glow)); }

/* ---------- FIXED BACKGROUND ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(34,29,21,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,29,21,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
}
.glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 52vmax; height: 52vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(173,127,60,.10) 0%, transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform; opacity: .8;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
.starfield { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: .8; }

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; mix-blend-mode: multiply; will-change: transform; }
.aurora span:nth-child(1) { width: 48vmax; height: 48vmax; left: -10vmax; top: -14vmax; background: radial-gradient(circle, rgba(216,184,120,.30), transparent 62%); animation: auroraA 24s var(--ease) infinite alternate; }
.aurora span:nth-child(2) { width: 42vmax; height: 42vmax; right: -12vmax; top: 16vmax; background: radial-gradient(circle, rgba(173,127,60,.22), transparent 60%); animation: auroraB 30s var(--ease) infinite alternate; }
.aurora span:nth-child(3) { width: 40vmax; height: 40vmax; left: 28vmax; bottom: -16vmax; background: radial-gradient(circle, rgba(93,83,69,.14), transparent 60%); animation: auroraC 34s var(--ease) infinite alternate; }
@keyframes auroraA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vmax,4vmax,0) scale(1.16); } }
@keyframes auroraB { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-5vmax,3vmax,0) scale(.9); } }
@keyframes auroraC { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vmax,-5vmax,0) scale(1.12); } }

.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
  box-shadow: 0 0 12px var(--gold-glow); will-change: width; }

/* ---------- SHARED ---------- */
.grad { font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 45%, var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* mouse-spotlight utility — applied to rows/cards, independent of their visual chrome */
.card { position: relative; }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,0%), var(--gold-glow), transparent 60%); }
.card:hover::before { opacity: 1; }

/* ---------- SPLASH ---------- */
#splash { position: fixed; inset: 0; z-index: 999; background: var(--ink-panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  animation: splashOut .6s var(--ease) 3s forwards; }
#splash.hide { animation: splashOut .6s var(--ease) forwards; }
.splash-mark { display: flex; align-items: center; gap: 12px; animation: rise .7s var(--ease) both; }
.splash-mark .brand-star { width: 40px; height: 40px; }
.splash-name { font-family: var(--font-display); font-weight: 500; font-size: 27px; letter-spacing: -.3px; color: var(--cream-text); }
.splash-name span { color: var(--cream-text-soft); font-style: italic; }
.splash-bar { width: 150px; height: 2px; border-radius: 4px; background: rgba(246,241,230,.14); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); box-shadow: 0 0 12px var(--gold-glow); animation: load 2.6s var(--ease) forwards; }
@keyframes load { 0% { width: 0 } 100% { width: 100% } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all .35s var(--ease); }
.nav-inner { max-width: var(--maxw-idx); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 22px; }
.nav.scrolled .nav-inner { margin: 10px auto; padding: 11px 20px; max-width: calc(var(--maxw-idx) - 40px);
  background: rgba(255,253,248,.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(60,45,20,.10); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand .brand-star { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-display); font-size: 20px; letter-spacing: -.3px; }
.brand-name span { color: var(--ink-soft); font-weight: 400; font-style: italic; }

.nav-links { margin-left: auto; display: flex; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); position: relative; transition: color .2s; display: inline-flex; align-items: baseline; gap: 6px; }
.nav-n { font-family: var(--font-mono); font-size: 10px; color: var(--gold); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--cream-text); transition: transform .2s var(--ease), opacity .2s; }
.nav-cta:hover { opacity: .88; }
.nav-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5) } 70% { box-shadow: 0 0 0 7px rgba(37,211,102,0) } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0) } }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer { display: none; flex-direction: column; gap: 4px; width: min(260px, calc(100vw - 32px)); margin: 0 16px 0 auto; padding: 14px; border-radius: 14px;
  background: rgba(255,253,248,.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(60,45,20,.14);
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s, padding .3s; }
.nav-drawer a { padding: 12px 14px; border-radius: 10px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; letter-spacing: .5px; }
.nav-drawer a:hover { background: rgba(34,29,21,.05); color: var(--ink); }
.nav-drawer.open { max-height: 460px; opacity: 1; padding: 14px; }
.drawer-cta { background: var(--ink); color: var(--cream-text) !important; text-align: center; font-weight: 600; margin-top: 4px; font-family: var(--font-body) !important; letter-spacing: 0 !important; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; border-radius: 10px; font-weight: 600; font-size: 16px;
  transition: transform .2s var(--ease), opacity .2s, border-color .25s, background .25s, color .25s; cursor: pointer; }
.btn .ico { font-size: 18px; stroke-width: 1.6; }
.btn-primary { background: var(--ink); color: var(--cream-text); }
.btn-primary:hover { transform: translateY(-2px); opacity: .9; }
.btn-primary .ico { transition: transform .25s var(--ease); }
.btn-primary:hover .ico { transform: translateX(4px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.cta-card .btn-ghost { border-color: var(--ink-line); color: var(--cream-text-soft); }
.cta-card .btn-ghost:hover { border-color: var(--gold-line); color: var(--cream-text); }
.cta-card .btn-primary { background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: var(--ink-panel); box-shadow: 0 16px 38px var(--gold-glow); }

/* ---------- HERO ---------- */
.hero { padding: 168px 0 0; position: relative; z-index: 2; }
.hero-copy { max-width: 600px; position: relative; z-index: 3; padding: 0 24px; margin: 0 auto; }
@media (min-width: 1100px) {
  .hero-copy { margin: 0; padding-left: max(24px, calc((100vw - var(--maxw-idx)) / 2 + 24px)); }
}

.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; color: var(--ink-soft);
  background: rgba(34,29,21,.04); border: 1px solid var(--line); padding: 7px 15px; border-radius: 100px; margin-bottom: 26px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }

.hero-copy h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.03; letter-spacing: -1.6px; margin-bottom: 24px; }
.hero-lead { font-size: 19px; color: var(--ink-soft); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-proof { display: flex; align-items: flex-start; gap: 10px; max-width: 480px; padding-bottom: 90px; }
.hero-proof .proof-ico { color: var(--gold); font-size: 19px; display: inline-flex; margin-top: 2px; }
.hero-proof p { font-size: 14px; color: var(--ink-soft); }
.hero-proof strong { color: var(--ink); }
.hero-proof .muted { color: var(--ink-faint); }

/* hero visual — an abstract constellation built from the brand mark itself,
   bleeding past the content column toward the viewport edge */
.hero-visual { position: relative; width: 420px; margin: 0 auto 20px; animation: heroFloat 9s var(--ease) infinite; }
@media (min-width: 1100px) {
  .hero-visual { position: absolute; top: 56px; right: max(-10px, calc((100vw - var(--maxw-idx)) / 2 - 60px)); width: 540px; margin: 0; z-index: 2; }
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.constellation { width: 100%; height: auto; overflow: visible; transition: transform .4s var(--ease); will-change: transform; }
.constellation .orbit { fill: none; stroke: var(--line); stroke-width: 1; }
.constellation .orbit-2 { stroke: var(--line-soft); stroke-dasharray: 1 7; }
.constellation .links line { stroke: var(--gold-line); stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; }
.constellation .dot { fill: var(--gold); opacity: .6; }
.constellation .star { color: var(--gold); filter: drop-shadow(0 0 8px var(--gold-glow)); transform-box: fill-box; transform-origin: center; }
.constellation .star-core { color: var(--gold-deep); filter: drop-shadow(0 0 24px var(--gold-glow)); animation: starSpin 110s linear infinite; transform-origin: 280px 270px; transform-box: view-box; }
.constellation .star-a, .constellation .star-b, .constellation .star-c,
.constellation .star-d, .constellation .star-e, .constellation .star-f { animation: twinkle 4.2s ease-in-out infinite; }
.constellation .star-a { animation-delay: -.6s; } .constellation .star-b { animation-delay: -2.4s; }
.constellation .star-c { animation-delay: -1.4s; } .constellation .star-d { animation-delay: -3.3s; }
.constellation .star-e { animation-delay: -2s; } .constellation .star-f { animation-delay: -3.8s; }
@keyframes starSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.16); } }

.note { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.note strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 17px; color: var(--ink); }
.note small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .5px; color: var(--ink-faint); margin-top: 2px; }
.note-line { width: 30px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); flex-shrink: 0; }
.note-2 .note-line { background: linear-gradient(270deg, var(--gold), transparent); }
.note-1 { top: 11%; left: -7%; }
.note-2 { bottom: 11%; right: 5%; text-align: right; flex-direction: row-reverse; }
.note-2 div { text-align: right; }

.marquee { margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: scroll-x 34s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: 19px; font-weight: 500; color: var(--ink-soft); }
.marquee-track .sep { color: var(--gold); font-size: 12px; font-style: normal; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- STATS LEDGER ---------- */
.ledger { padding: 40px 0 6px; position: relative; z-index: 2; }
.ledger-row { max-width: var(--maxw-idx); margin: 0 auto; padding: 28px 24px 0; display: flex; flex-wrap: wrap; gap: 30px 0; border-top: 1px solid var(--line); }
.stat { flex: 1 1 0; min-width: 140px; padding: 0 28px; position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1px; line-height: 1;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 50%, var(--gold-soft)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 9px; }

/* ============================================================
   THE INDEX SYSTEM — every numbered chapter shares this spine
   ============================================================ */
.idx { padding: 96px 0; position: relative; z-index: 2; border-top: 1px solid var(--line); }
.idx-grid { max-width: var(--maxw-idx); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: var(--rail) 1fr; gap: 28px; align-items: start; }
.idx-rail { position: sticky; top: 132px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.idx-num { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 36px; color: var(--ink-faint); line-height: 1; }
.idx-rule { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); }
.idx-label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.idx-body { min-width: 0; }
.idx-head { max-width: 640px; margin-bottom: 60px; }
.idx-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.6px; line-height: 1.14; }
.idx-head p { color: var(--ink-soft); margin-top: 16px; font-size: 16.5px; }

/* ---------- 01 SERVICIOS — index rows ---------- */
.svc-index { list-style: none; border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 36px 44px minmax(170px, 220px) 1fr; align-items: baseline; gap: 22px;
  padding: 28px 8px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background .3s var(--ease), padding-left .3s var(--ease); }
.svc-row:hover { background: rgba(34,29,21,.025); padding-left: 18px; }
.svc-n { font-family: var(--font-display); font-style: italic; color: var(--ink-faint); font-size: 17px; align-self: center; }
.svc-ico { width: 32px; height: 32px; display: grid; place-items: center; color: var(--gold-deep); font-size: 19px; align-self: center; }
.svc-row h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; transition: color .25s; }
.svc-row:hover h3 { color: var(--gold-deep); }
.svc-row p { color: var(--ink-soft); font-size: 14.5px; max-width: 460px; }

/* ---------- 02 POR QUÉ — ghost-numeral rows ---------- */
.feat-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.feat-row { display: flex; align-items: center; gap: 34px; padding: 32px 6px; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.feat-row:hover { padding-left: 16px; }
.feat-ghost { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 7vw, 96px); line-height: 1; flex-shrink: 0; width: 132px;
  color: rgba(34,29,21,.05); -webkit-text-stroke: 1px rgba(34,29,21,.14); transition: color .35s, -webkit-text-stroke-color .35s; }
.feat-row:hover .feat-ghost { color: var(--gold-glow); -webkit-text-stroke-color: var(--gold-line); }
.feat-text h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; margin-bottom: 9px; }
.feat-text p { color: var(--ink-soft); font-size: 15.5px; max-width: 520px; }

/* ---------- 03 LA DIFERENCIA — side-by-side diptych ---------- */
.vs-stack { display: grid; grid-template-columns: 1fr 1.08fr; gap: 22px; align-items: start; max-width: 920px; }
.vs-them, .vs-us { border-radius: 22px; padding: 36px 32px; position: relative; }
.vs-them { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(60,45,20,.05); margin-top: 22px; }
.vs-us { background: linear-gradient(165deg, var(--ink-panel-2), var(--ink-panel) 70%); border: 1px solid var(--gold-line);
  box-shadow: 0 34px 74px rgba(40,30,15,.24), 0 0 50px var(--gold-glow); }
.vs-them h3 { color: var(--ink-faint); }
.vs-us h3 { color: var(--cream-text); }
.vs-them, .vs-us { font-family: var(--font-display); }
.vs-them h3, .vs-us h3 { font-weight: 500; font-size: 21px; margin-bottom: 20px; }
.vs-them ul, .vs-us ul { list-style: none; display: flex; flex-direction: column; gap: 14px; font-family: var(--font-body); }
.vs-them li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-faint); }
.vs-us li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--cream-text-soft); }
.vx { color: var(--rust); font-weight: 700; flex-shrink: 0; }
.vc { color: var(--gold); font-size: 18px; flex-shrink: 0; margin-top: 1px; display: inline-flex; }
.vs-badge { position: absolute; top: -13px; left: 28px; display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: var(--ink-panel);
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 100px; box-shadow: 0 6px 20px var(--gold-glow); font-family: var(--font-body); }
.vs-badge .brand-star { width: 14px; height: 14px; color: var(--ink-panel); filter: none; }

/* ---------- 04 PLANES — staggered tickets ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: end; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 38px 26px; position: relative;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; box-shadow: 0 14px 34px rgba(60,45,20,.05); }
.plan-no { position: absolute; top: 20px; right: 24px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; color: var(--ink-faint); }
@media (min-width: 981px) {
  .plan:nth-child(1) { transform: rotate(-1.1deg); }
  .plan:nth-child(3) { transform: rotate(1.1deg); }
  .plan:nth-child(1):hover { transform: rotate(-1.1deg) translateY(-6px); }
  .plan:nth-child(3):hover { transform: rotate(1.1deg) translateY(-6px); }
}
.plan.featured {
  border-color: var(--gold-line);
  background: linear-gradient(165deg, var(--ink-panel-2), var(--ink-panel) 62%);
  box-shadow: 0 32px 70px rgba(40,30,15,.35), 0 0 0 1px var(--gold-line), 0 0 70px var(--gold-glow);
  transform: translateY(-24px) rotate(0deg) !important;
  padding-top: 46px;
}
.plan.featured:hover { transform: translateY(-30px) rotate(0deg) !important; }
.plan-no { color: var(--ink-faint); }
.plan.featured .plan-no { color: var(--cream-text-soft); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: var(--ink-panel); box-shadow: 0 6px 20px var(--gold-glow);
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; white-space: nowrap; }
.plan-tag .brand-star { width: 13px; height: 13px; color: var(--ink-panel); filter: none; }
.plan-tag.alt { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(60,45,20,.10); }
.plan-tag.alt .ico { width: 13px; height: 13px; }
.plan-system { border-color: var(--gold-line); }
.plan-system .plan-name { color: var(--gold-deep); }
.plan-price .amt.quote { font-size: 38px; letter-spacing: -1px; color: var(--gold); font-style: italic; font-family: var(--font-display); }
.plan-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.plan.featured .plan-name { color: var(--gold-soft); }
.plan-price { margin-bottom: 12px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 24px; font-weight: 600; color: var(--ink-soft); }
.plan-price .amt { font-family: var(--font-display); font-size: 56px; font-weight: 600; letter-spacing: -2px; line-height: 1; }
.plan-price .per { font-size: 14px; color: var(--ink-faint); }
.plan-desc { font-size: 14.5px; color: var(--ink-faint); margin-bottom: 26px; min-height: 44px; }
.divider { height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); margin-bottom: 24px; }
.features { list-style: none; margin-bottom: 28px; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-soft); padding: 7px 0; }
.ic { font-size: 18px; flex-shrink: 0; margin-top: 1px; display: inline-flex; }
.ic.ok { color: var(--gold-deep); }
.ic.star { color: var(--star); }
.delivery { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); background: var(--cream-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 11px; margin-bottom: 20px; }
.delivery .ico { font-size: 14px; }
.plan-cta { display: block; width: 100%; padding: 14px; border-radius: 11px; font-weight: 700; font-size: 15px; text-align: center; transition: all .2s var(--ease); }
.plan-cta.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.plan-cta.ghost:hover { border-color: var(--ink); color: var(--ink); }
.plan-cta.primary { background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: var(--ink-panel); box-shadow: 0 10px 30px var(--gold-glow); }
.plan-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px var(--gold-line); }
.plan.featured .plan-desc, .plan.featured .features li, .plan.featured .plan-price .cur, .plan.featured .plan-price .per, .plan.featured .delivery { color: var(--cream-text-soft); }
.plan.featured .plan-price .amt { color: var(--cream-text); }
.plan.featured .ic.ok { color: var(--gold-soft); }
.plan.featured .ic.star { color: var(--star); }
.plan.featured .divider { background: repeating-linear-gradient(90deg, var(--ink-line) 0 6px, transparent 6px 11px); }
.plan.featured .delivery { background: rgba(246,241,230,.07); border-color: var(--ink-line); }

/* ---------- 05 ADD-ONS — visual, color-coded capability grid ---------- */
.addon-cat { margin-bottom: 54px; }
.addon-cat:last-of-type { margin-bottom: 38px; }
.addon-cat-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.addon-cat-label .ico { font-size: 15px; }

/* muted, paper-plate accent per category — varied hue, same restrained saturation as the gold */
.addon-cat.c-gold  { --accent: var(--gold-deep); --accent-glow: var(--gold-glow); --accent-line: var(--gold-line); }
.addon-cat.c-rust  { --accent: #8a4f3f; --accent-glow: rgba(168,103,79,.16); --accent-line: rgba(168,103,79,.4); }
.addon-cat.c-sage  { --accent: #5c6a48; --accent-glow: rgba(111,125,92,.16); --accent-line: rgba(111,125,92,.4); }
.addon-cat.c-slate { --accent: #44566b; --accent-glow: rgba(91,112,136,.16); --accent-line: rgba(91,112,136,.4); }
.addon-cat.c-plum  { --accent: #634459; --accent-glow: rgba(125,91,116,.16); --accent-line: rgba(125,91,116,.4); }
.addon-cat.c-bronze{ --accent: #6b4a1e; --accent-glow: rgba(131,93,41,.18); --accent-line: rgba(131,93,41,.42); }

.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 16px; }
.addon-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; box-shadow: 0 10px 26px rgba(60,45,20,.05); }
.addon-tile:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: 0 22px 46px rgba(60,45,20,.10); }
.addon-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; margin-bottom: 20px;
  background: var(--accent-glow); border: 1px solid var(--accent-line); color: var(--accent);
  transition: transform .35s var(--ease), box-shadow .35s; }
.addon-tile:hover .addon-ico { transform: scale(1.08) rotate(-6deg); box-shadow: 0 8px 22px var(--accent-glow); }
.addon-tile h3 { font-family: var(--font-display); font-weight: 500; font-size: 17.5px; margin-bottom: 9px; }
.addon-tile p { font-size: 13.5px; color: var(--ink-faint); line-height: 1.55; }

.addon-cta { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 17px; color: var(--gold-deep); border-bottom: 1px solid var(--gold-line); padding-bottom: 4px; transition: gap .25s var(--ease), color .25s; }
.addon-cta .ico { font-size: 16px; transition: transform .25s var(--ease); }
.addon-cta:hover { gap: 14px; color: var(--ink); }
.addon-cta:hover .ico { transform: translateX(3px); }

/* ---------- 06 COMPARATIVA — ledger table ---------- */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.compare th { text-align: center; padding: 16px; font-family: var(--font-display); font-weight: 500; font-size: 17px; border-bottom: 1px solid var(--ink); }
.compare th:first-child { text-align: left; color: var(--ink-faint); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-mono); }
.compare th small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 13px; margin-top: 3px; font-family: var(--font-mono); }
.compare th small.hl { color: var(--gold-deep); }
.compare td { padding: 16px; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.compare td:first-child { text-align: left; color: var(--ink); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tr:hover td { background: rgba(34,29,21,.02); }
.col-feat { background: var(--gold-glow); }
.ck { color: var(--gold-deep); font-size: 16px; }
.x { color: var(--ink-faint); opacity: .55; }

/* ---------- 07 PROCESO — stepped route ---------- */
.route { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 50px; }
.route-line { position: absolute; top: 0; left: 0; width: 100%; height: 60px; }
.route-line path { fill: none; stroke: var(--gold-line); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.step { position: relative; padding-top: 26px; }
.step-n { position: absolute; top: -4px; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold-line);
  display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 14px; color: var(--gold-deep); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 16px 0 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 08 GARANTIA — marginalia ---------- */
.guarantee { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.g-statement { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 150px; }
.g-shield { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-glow); border: 1px solid var(--gold-line); color: var(--gold-deep); font-size: 24px; display: grid; place-items: center; }
.g-statement h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.5px; line-height: 1.16; }
.g-notes { list-style: none; border-top: 1px solid var(--line); }
.g-notes li { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.g-n { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; color: var(--gold-deep); border: 1px solid var(--gold-line); border-radius: 50%; font-size: 16px; }
.g-notes h3 { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin-bottom: 5px; }
.g-notes p { color: var(--ink-faint); font-size: 13.5px; }

/* ---------- 09 FAQ — plain hairline list ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); transition: border-color .25s; }
.faq-item[open] { border-bottom-color: var(--gold-line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 4px; font-family: var(--font-display); font-weight: 500; font-size: 18px;
  display: flex; align-items: center; gap: 18px; transition: color .2s; }
.faq-q-n { font-family: var(--font-mono); font-size: 12px; color: var(--gold-deep); flex-shrink: 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-ic { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-left: auto; }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; background: var(--gold-deep); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-ic::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-ic::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-ic::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 4px 24px 46px; }
.faq-a p { color: var(--ink-soft); font-size: 14.5px; max-width: 560px; }

/* ---------- 10 NOTAS — footnotes ---------- */
.footnotes { list-style: decimal; padding-left: 22px; max-width: 660px; border-top: 1px solid var(--line); padding-top: 24px; }
.footnotes li { color: var(--ink-soft); font-size: 14.5px; padding: 9px 0; }
.footnotes li::marker { font-family: var(--font-mono); font-size: 12px; color: var(--gold-deep); }

/* ---------- CTA FINAL — full-bleed closing panel ---------- */
.cta-final { background: linear-gradient(170deg, var(--ink-panel-2), var(--ink-panel)); position: relative; z-index: 2; padding: 130px 0; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(720px circle at 50% -10%, var(--gold-glow), transparent 60%); pointer-events: none; }
.cta-card { text-align: center; max-width: 620px; margin: 0 auto; padding: 0 24px; position: relative; }
.cta-mark { display: inline-flex; margin-bottom: 24px; }
.cta-mark .brand-star { width: 32px; height: 32px; }
.cta-card h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4.5vw, 48px); letter-spacing: -.8px; line-height: 1.1; margin-bottom: 16px; color: var(--cream-text); }
.cta-card p { color: var(--cream-text-soft); font-size: 18px; max-width: 480px; margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-micro { margin-top: 22px; font-size: 13.5px; color: var(--cream-text-soft); }

.lead-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; margin: 8px auto 0; text-align: left; }
.lead-form .field { display: flex; flex-direction: column; gap: 6px; }
.lead-form .field-full { grid-column: 1 / -1; }
.lead-form label { font-size: 13px; color: var(--cream-text-soft); font-weight: 500; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; background: rgba(246,241,230,.06); border: 1px solid var(--ink-line); border-radius: 10px; padding: 12px 14px; color: var(--cream-text);
  font-family: var(--font-body); font-size: 15px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--cream-text-soft); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold-line); background: rgba(246,241,230,.1); }
.lead-form textarea { resize: vertical; min-height: 64px; }
.lead-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.lead-form select option { background: var(--ink-panel); color: var(--cream-text); }
.lead-form button[type="submit"] { border: none; font-family: var(--font-body); justify-content: center; margin-top: 2px; }
.cta-or { margin: 24px 0 16px; font-size: 13px; color: var(--cream-text-soft); }
@media (max-width: 560px) { .lead-form { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 54px 24px 44px; position: relative; z-index: 2; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: var(--maxw-idx); margin: 0 auto; }
.footer .brand-star { width: 22px; height: 22px; }
.foot-tag { color: var(--ink-soft); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink-soft); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { color: var(--ink-faint); font-size: 13px; margin-top: 6px; }

/* ---------- WHATSAPP FAB ---------- */
.wa-fab { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 14px 34px rgba(37,211,102,.32); transition: transform .25s var(--ease), box-shadow .25s; animation: rise .6s var(--ease) both; }
.wa-fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 42px rgba(37,211,102,.45); }

/* ---------- HERO CINEMATIC INTRO ---------- */
body.cinematic .intro-item { opacity: 0; transform: translateY(30px); filter: blur(10px);
  transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); will-change: opacity, transform, filter; }
body.cinematic .intro-item.intro-visual { transform: translateY(46px) scale(.95); }
body.cinematic.intro-ready .intro-item { opacity: 1; transform: none; filter: none; }

.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.word-in { display: inline-block; transform: translateY(116%); }
body.cinematic .word-in { transition: transform .9s var(--ease); }
body.cinematic.intro-ready .word-in { transform: none; }

.nav .brand-star, .splash-mark .brand-star { animation: starTwinkle 4.5s ease-in-out infinite; }
@keyframes starTwinkle { 0%, 100% { filter: drop-shadow(0 0 7px var(--gold-glow)); } 50% { filter: drop-shadow(0 0 14px var(--gold-line)); } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-split] { opacity: 1; transform: none; filter: none; }
.reveal[data-split].in { opacity: 1; transform: none; filter: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1099px) {
  .hero { padding-top: 150px; }
  .hero-copy { text-align: left; }
  .hero-proof { padding-bottom: 0; margin-bottom: 30px; }
  .note { display: none; }
}

@media (max-width: 980px) {
  .idx-grid { grid-template-columns: 1fr; }
  .idx-rail { position: static; flex-direction: row; align-items: center; gap: 12px; margin-bottom: 28px; }
  .idx-rule { width: 36px; height: 1px; }
  .idx-label { writing-mode: horizontal-tb; transform: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
  .vs-stack { grid-template-columns: 1fr; gap: 20px; max-width: 100%; }
  .vs-them { margin-top: 0; }
  .guarantee { grid-template-columns: 1fr; }
  .g-statement { position: static; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger, .nav-drawer { display: flex; }
  .idx { padding: 70px 0; }
  .hero { padding: 128px 0 0; }
  /* hero entrance must finish strictly before the splash's .6s fade-out is
     done, or there's a window with the splash gone and the hero still
     transparent — i.e. a blank screen. Shorter distance + duration here
     guarantees no gap regardless of exact easing. */
  body.cinematic .intro-item { transform: translateY(16px); filter: blur(5px);
    transition: opacity .4s var(--ease), transform .42s var(--ease), filter .4s var(--ease); }
  body.cinematic .intro-item.intro-visual { transform: translateY(22px) scale(.97); }
  body.cinematic .word-in { transition: transform .4s var(--ease); }
  .ledger-row { gap: 22px 0; }
  .stat { min-width: 44%; padding: 0 16px 0 0; }
  .stat:not(:last-child)::after { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan:nth-child(1), .plan:nth-child(3) { transform: none !important; }
  .plan.featured { transform: none !important; padding-top: 38px; }
  .svc-row { grid-template-columns: 1fr; row-gap: 6px; }
  .svc-n { display: none; }
  .feat-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .feat-ghost { width: auto; font-size: 52px; }
  .route { grid-template-columns: 1fr; gap: 30px; }
  .route-line { display: none; }
  .addon-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  /* freeze the decorative background blur loops — they cost real main-thread
     time on weaker phones and were delaying the scroll-reveal observer. */
  .aurora span { animation: none; }
}

@media (max-width: 420px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .splash-bar i, .nav-cta .dot, .aurora span, .glow, .hero-visual, .star-core, .star-a, .star-b, .star-c, .star-d, .star-e, .star-f, .nav .brand-star, .splash-mark .brand-star { animation: none; }
  body.cinematic .intro-item { opacity: 1 !important; transform: none !important; filter: none !important; }
  body.cinematic .word-in { transform: none !important; transition: none !important; }
  .reveal { transition-duration: .001ms; }
  .scroll-prog { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .grid-bg, .glow, .starfield, .aurora, .scroll-prog, #splash, .wa-fab, .nav { display: none; }
  .idx-rail { position: static; }
}
