/* ===========================================================
   ÉLITE STUDIO — sistema de diseño
   Estrategia: drenched dark · el negro es la marca, el dorado la voz
   =========================================================== */

:root {
  --bg:        oklch(0.15 0.006 75);
  --bg-deep:   oklch(0.105 0.006 75);
  --surface:   oklch(0.21 0.008 78);
  --ink:       oklch(0.95 0.01 85);
  --muted:     oklch(0.74 0.015 80);
  --gold:      oklch(0.80 0.12 82);
  --gold-hi:   oklch(0.89 0.13 90);
  --gold-deep: oklch(0.60 0.10 68);
  --line:      oklch(0.32 0.012 80);

  --font: "Archivo", system-ui, sans-serif;

  --maxw: 1280px;
  --pad: clamp(1.25rem, 5vw, 5rem);

  --z-overlay: 2;
  --z-spot: 1;
  --z-nav: 50;
  --z-pre: 100;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo-ish */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg-deep); }

/* ---------- Overlays (grano + foco) ---------- */
.grain {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.spotlight {
  position: fixed; top: 0; left: 0; width: 60vmax; height: 60vmax;
  z-index: var(--z-spot); pointer-events: none;
  margin: -30vmax 0 0 -30vmax; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.80 0.12 82 / 0.10), transparent 60%);
  transform: translate3d(50vw, 30vh, 0);
  transition: opacity .4s ease; will-change: transform;
}
@media (hover: none) { .spotlight { display: none; } }

/* ---------- Tipografía utilitaria ---------- */
.section-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  text-wrap: balance;
}
.section-kicker {
  color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 46ch; margin-top: 1.1rem;
}
.gold { color: var(--gold); }
em { font-style: normal; color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  --bw: 1px;
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  padding: .85em 1.5em; border-radius: 100px;
  border: var(--bw) solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .3s ease, color .3s ease, box-shadow .4s ease, border-color .3s ease;
  will-change: transform;
}
.btn--lg { font-size: clamp(1rem, 1.3vw, 1.12rem); padding: 1.05em 1.9em; }
.btn--gold {
  background: var(--gold); color: oklch(0.16 0.02 75);
  box-shadow: 0 0 0 0 oklch(0.80 0.12 82 / 0.5);
}
.btn--gold:hover {
  background: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px oklch(0.80 0.12 82 / 0.55);
}
.btn--gold svg { transition: transform .35s var(--ease); }
.btn--gold:hover svg { transform: translateX(4px); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-pre);
  background: var(--bg-deep);
  display: grid; place-content: center; gap: 1.4rem;
}
.preloader__mark { display: flex; gap: .04em; font-weight: 900; font-size: clamp(2rem, 7vw, 4.5rem); letter-spacing: 0.04em; }
.preloader__mark span { opacity: 0; transform: translateY(40%); }
.preloader__bar { width: min(60vw, 280px); height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.preloader.done { pointer-events: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.5rem) var(--pad);
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.13 0.006 75 / 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: .85rem; padding-bottom: .85rem;
}
.nav__brand { display: flex; align-items: baseline; gap: .4em; }
.nav__mark { font-weight: 900; letter-spacing: 0.02em; font-size: 1.2rem; }
.nav__sub { font-weight: 500; letter-spacing: 0.34em; font-size: .62rem; color: var(--gold); transform: translateY(-1px); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { color: var(--muted); font-size: .95rem; position: relative; transition: color .3s ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .6em 1.25em; font-size: .92rem; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Logo volante (se acopla al navbar al hacer scroll) ---------- */
.brandfly {
  display: none; position: fixed; top: 0; left: 0; z-index: 60;
  align-items: baseline; gap: .4em; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
}
.brandfly__mark { font-weight: 900; letter-spacing: 0.02em; font-size: 1.2rem; line-height: 1; }
.brandfly__sub { font-weight: 500; letter-spacing: 0.34em; font-size: .62rem; color: var(--gold); transform: translateY(-1px); }
/* Con JS+motion: el navbar y el hero arrancan ocultos; el dock los revela */
html.dock .brandfly { display: flex; opacity: 0; }
html.dock .nav__brand { visibility: hidden; }
html.dock .hero__inner { visibility: hidden; }
/* El muro de trabajo se oculta tras el logo gigante y se revela en el dock */
html.dock .hero__wall { opacity: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 4rem;
  overflow: hidden;
}
/* Aurora: degradados dorados que fluyen lentamente (vivo, no partículas) */
.hero__aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(64px); opacity: 0.5; mix-blend-mode: screen; will-change: transform;
}
.hero__aurora i:nth-child(1) { width: 60vw; height: 60vw; left: 42%; top: -14%; background: radial-gradient(circle, oklch(0.62 0.12 75 / 0.55), transparent 65%); animation: aur1 19s ease-in-out infinite; }
.hero__aurora i:nth-child(2) { width: 46vw; height: 46vw; left: -8%; top: 52%; background: radial-gradient(circle, oklch(0.50 0.09 70 / 0.45), transparent 65%); animation: aur2 23s ease-in-out infinite; }
.hero__aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 62%; top: 48%; background: radial-gradient(circle, oklch(0.72 0.13 90 / 0.32), transparent 65%); animation: aur3 27s ease-in-out infinite; }
@keyframes aur1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12%, 9%) scale(1.16); } }
@keyframes aur2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(15%, -11%) scale(1.1); } }
@keyframes aur3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-11%, -7%) scale(1.22); } }

/* Muro de trabajo en el hero (estilo Ogilvy: el trabajo llena la portada) */
.hero__wall {
  position: absolute; top: 0; right: 0; bottom: 0; width: 47%;
  display: flex; gap: clamp(.6rem, 1vw, 1rem);
  padding: 0 clamp(1rem, 2vw, 2.5rem); overflow: hidden; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(180deg, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect;
}
.hero__col { flex: 1; display: flex; flex-direction: column; animation: wallScroll 36s linear infinite; }
.hero__col--rev { animation-direction: reverse; }
@keyframes wallScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero__rcard {
  flex: 0 0 auto; width: 100%; aspect-ratio: 9 / 16; margin-bottom: clamp(.6rem, 1vw, 1rem);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
}
.hero__rcard img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.8); }
@media (max-width: 980px) { .hero__wall { display: none; } }
.hero__inner { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; width: 100%; }
@media (min-width: 980px) { .hero__inner { max-width: 60%; margin: 0; } }
.hero__eyebrow {
  color: var(--gold); font-weight: 500; letter-spacing: 0.02em;
  font-size: clamp(.85rem, 1.3vw, 1rem); margin-bottom: 1.6rem;
  display: inline-flex; align-items: center; gap: .7em;
}
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.hero__title {
  font-weight: 900; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 8.5vw, 6.4rem); line-height: 0.98;
  text-transform: uppercase; text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .w { display: inline-block; }
.hero__title .line--gold { color: var(--gold); }
.hero__lede {
  margin-top: 1.8rem; max-width: 52ch;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--muted); line-height: 1.55;
}
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--muted); font-size: .72rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); }
@media (max-width: 760px) {
  .hero { justify-content: flex-start; padding-top: 6.5rem; padding-bottom: 3.5rem; }
  .hero__scroll { display: none; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: clamp(1.1rem, 2.2vw, 1.7rem); background: var(--bg-deep);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  animation: marquee 26s linear infinite;
}
.marquee__track span { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.marquee__track b { color: var(--gold); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- PROBLEMA ---------- */
.problem { padding: clamp(6rem, 14vw, 12rem) var(--pad); }
.problem__inner { max-width: var(--maxw); margin: 0 auto; }
.problem__text {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(2.2rem, 6.5vw, 5rem); text-wrap: balance; max-width: 16ch;
}
.problem__text span { display: block; }
.problem__note { margin-top: 2rem; max-width: 50ch; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

/* ---------- SERVICIOS ---------- */
.services { padding: clamp(4rem, 8vw, 8rem) var(--pad); max-width: var(--maxw); margin: 0 auto; position: relative; }
.services__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.services__list { list-style: none; }
.srv {
  position: relative; display: grid; color: inherit; text-decoration: none; cursor: pointer;
  grid-template-columns: 3.5rem 1fr clamp(190px, 26vw, 300px);
  grid-template-areas: "no name media" "no desc media";
  align-items: center; column-gap: clamp(1rem, 3vw, 2.5rem); row-gap: .45rem;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.srv:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.srv:last-child { border-bottom: 1px solid var(--line); }
.srv__no { grid-area: no; align-self: start; padding-top: .35rem; font-weight: 700; color: var(--gold-deep); font-size: 1rem; font-variant-numeric: tabular-nums; transition: color .4s ease; }
.srv__name {
  grid-area: name; font-weight: 800; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(1.5rem, 4vw, 2.7rem); transition: color .4s ease;
}
.srv__desc { grid-area: desc; color: var(--muted); max-width: 42ch; font-size: clamp(.95rem, 1.3vw, 1.05rem); }
.srv__media { grid-area: media; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.srv__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform .6s var(--ease); }
.srv__arrow { display: inline-block; margin-left: .4em; color: var(--gold-deep); font-weight: 400; transition: transform .4s var(--ease), color .4s ease; }
.srv:hover { padding-left: clamp(.4rem, 1.5vw, 1.2rem); }
.srv:hover .srv__name, .srv:hover .srv__no { color: var(--gold); }
.srv:hover .srv__arrow { color: var(--gold); transform: translateX(6px); }
.srv:hover .srv__media img { transform: scale(1.06); }

@media (max-width: 760px) {
  .srv {
    grid-template-columns: 2.4rem 1fr;
    grid-template-areas: "no name" "desc desc" "media media";
    row-gap: .5rem;
  }
  .srv__media { aspect-ratio: 16 / 9; margin-top: .6rem; }
  .srv:hover { padding-left: 0; }
}

/* imagen flotante en hover (escritorio) */
.srv-hover {
  position: fixed; top: 0; left: 0; z-index: 5; width: 240px; height: 300px;
  border-radius: 8px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .35s ease, transform .45s var(--ease);
  box-shadow: 0 30px 70px -20px oklch(0 0 0 / 0.7); border: 1px solid var(--line);
}
.srv-hover img { width: 100%; height: 100%; object-fit: cover; }
.srv-hover.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (max-width: 760px) { .srv-hover { display: none; } }

/* ---------- GARANTÍA ---------- */
.guarantee {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: clamp(5rem, 10vw, 9rem) var(--pad); text-align: center;
  background: var(--bg-deep); overflow: hidden;
}
.guarantee::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, oklch(0.60 0.10 68 / 0.20), transparent 72%);
}
.guarantee__inner { position: relative; max-width: min(92vw, 58rem); margin: 0 auto; }
.guarantee__label { color: var(--gold); font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; font-size: .82rem; margin-bottom: 1.6rem; }
.guarantee__title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98;
  font-size: clamp(2.3rem, 7vw, 4.5rem); text-wrap: balance;
}
.guarantee__title span { display: block; }
.guarantee__text {
  margin: 2rem auto 0; max-width: 54ch; color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); text-transform: none; letter-spacing: normal; font-weight: 400;
}
.guarantee__text strong { color: var(--ink); font-weight: 700; }

/* ---------- TRABAJO / PORTFOLIO ---------- */
.work { padding: clamp(4rem, 8vw, 8rem) 0; }
.work__head { max-width: var(--maxw); margin: 0 auto clamp(2.5rem, 5vw, 4rem); padding-inline: var(--pad); }
/* Galería curva WebGL */
.work__gallery { display: none; position: relative; width: 100%; height: clamp(420px, 62vh, 620px); overflow: hidden; cursor: grab; }
.work__gallery.is-on { display: block; }
.work__gallery:active { cursor: grabbing; }
.work__gallery:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.work__gallery canvas { display: block; width: 100%; height: 100%; }
.work__gallery.is-on ~ .work__rail { display: none; }

.work__rail {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--pad); padding-bottom: 1.2rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.work__rail::-webkit-scrollbar { height: 6px; }
.work__rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
.reel {
  position: relative; flex: 0 0 auto; width: clamp(220px, 64vw, 300px); aspect-ratio: 9 / 16;
  border-radius: 12px; overflow: hidden; scroll-snap-align: center;
  border: 1px solid var(--line);
}
.reel__media { position: absolute; inset: 0; }
.reel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: saturate(0.9) contrast(1.05); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.10 0.006 75 / 0.92) 4%, transparent 52%); }
.reel:hover .reel__media img { transform: scale(1.07); }
.reel__meta { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; }
.reel__cat { color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.reel__title { font-weight: 800; letter-spacing: -0.01em; font-size: 1.25rem; margin-top: .2rem; }
.reel__play {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid oklch(0.95 0.01 85 / 0.5); display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: background .3s ease, border-color .3s ease;
}
.reel__play::before { content: ""; border-left: 11px solid var(--ink); border-block: 7px solid transparent; margin-left: 3px; transition: border-left-color .3s ease; }
.reel:hover .reel__play { background: var(--gold); border-color: var(--gold); }
.reel:hover .reel__play::before { border-left-color: var(--bg-deep); }

/* ---------- RESULTADOS ---------- */
.stats { padding: clamp(5rem, 10vw, 9rem) var(--pad); max-width: var(--maxw); margin: 0 auto; text-align: center; }
.stats__lead { font-size: clamp(1.3rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: clamp(2.5rem, 5vw, 4rem); text-wrap: balance; }
.stats__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 6vw, 5rem); }
.stat { position: relative; display: flex; flex-direction: column; align-items: center; }
.stat__value { display: inline-flex; align-items: baseline; line-height: 1; }
.stat__num, .stat__plus, .stat__suffix {
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(3.4rem, 9vw, 6rem); color: var(--gold); font-variant-numeric: tabular-nums;
}
.stat__plus, .stat__suffix { margin-left: .03em; }
.stat__label { color: var(--muted); margin-top: .6rem; font-size: clamp(.95rem, 1.3vw, 1.1rem); letter-spacing: 0.01em; }

/* ---------- CTA FINAL ---------- */
.cta {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(6rem, 13vw, 11rem) var(--pad);
  background: var(--bg-deep);
}
.cta__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 50% 120%, oklch(0.62 0.10 70 / 0.30), transparent 70%); }
.cta__title { position: relative; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(2.4rem, 8vw, 5.6rem); }
.cta__title span { display: block; }
.cta__text { position: relative; color: var(--muted); max-width: 48ch; margin: 1.6rem auto 2.6rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2.5rem;
  display: grid; gap: 1rem; text-align: center; place-items: center;
}
.footer__brand { display: flex; align-items: baseline; gap: .4em; }
.footer__tag { color: var(--muted); }
.footer__social { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.footer__social a { color: var(--ink); font-weight: 500; position: relative; transition: color .3s ease; }
.footer__social a:hover { color: var(--gold); }
.footer__copy { color: var(--muted); font-size: .85rem; margin-top: 1rem; }

/* ---------- Página de detalle de servicio ---------- */
.sp-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(7rem, 13vw, 10rem) var(--pad) clamp(2.5rem, 5vw, 4rem); position: relative; }
.sp-back { display: inline-block; color: var(--muted); font-size: .95rem; margin-bottom: 1.8rem; transition: color .3s ease; }
.sp-back:hover { color: var(--gold); }
.sp-no { color: var(--gold-deep); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.sp-title { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2.4rem, 7vw, 5rem); margin: .5rem 0 1rem; text-wrap: balance; }
.sp-tag { color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 48ch; margin-bottom: 2.2rem; }
.sp-block { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--pad); border-top: 1px solid var(--line); }
.sp-h2 { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 1.6rem; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sp-list { list-style: none; display: grid; gap: .85rem; }
.sp-list li { position: relative; padding-left: 1.8rem; color: var(--ink); font-size: clamp(.98rem, 1.3vw, 1.08rem); }
.sp-list li::before { content: ""; position: absolute; left: 0; top: .4em; width: 13px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.sp-nota { margin-top: 1.4rem; color: var(--muted); font-size: .92rem; padding: .9rem 1.1rem; background: var(--surface); border-radius: 10px; }
.sp-proceso { list-style: none; counter-reset: step; display: grid; gap: 1.3rem; }
.sp-proceso li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.sp-proceso li::before { counter-increment: step; content: counter(step, decimal-leading-zero); color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.sp-step b { display: block; font-weight: 700; margin-bottom: .15rem; }
.sp-step span { color: var(--muted); font-size: .98rem; }
.sp-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(.7rem, 1.4vw, 1.1rem); }
.sp-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.sp-mini { color: var(--muted); font-size: .88rem; margin-top: 1rem; }
.sp-other { display: flex; flex-wrap: wrap; gap: .7rem; }
.sp-other a { padding: .65em 1.2em; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); font-weight: 500; font-size: .95rem; transition: border-color .3s ease, color .3s ease; }
.sp-other a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- PAQUETES ---------- */
.plans { padding: clamp(4rem, 8vw, 8rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.plans__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.plans__grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start;
}
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.8rem, 3vw, 2.5rem); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
}
.plan:hover { transform: translateY(-6px); border-color: oklch(0.40 0.04 80); }
.plan--featured {
  border-color: var(--gold); background: linear-gradient(180deg, oklch(0.22 0.02 82), oklch(0.17 0.01 80));
  box-shadow: 0 0 50px -18px oklch(0.80 0.12 82 / 0.5); position: relative;
}
.plan--featured:hover { border-color: var(--gold-hi); }
@media (min-width: 880px) { .plan--featured { transform: translateY(-12px); } .plan--featured:hover { transform: translateY(-18px); } }
.plan__badge {
  position: absolute; top: -1px; right: 1.5rem; transform: translateY(-50%);
  background: var(--gold); color: oklch(0.16 0.02 75); font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; padding: .35em .9em; border-radius: 100px;
}
.plan__name { font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.02em; }
.plan__for { color: var(--muted); font-size: .95rem; margin-top: .5rem; min-height: 2.8em; }
.plan__price { margin-top: 1.4rem; display: flex; align-items: baseline; gap: .3em; }
.plan__amount { font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.4rem); letter-spacing: -0.03em; color: var(--gold); }
.plan__per { color: var(--muted); font-weight: 500; }
.plan__bs { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.plan__features { list-style: none; margin: 1.6rem 0; display: grid; gap: .75rem; flex-grow: 1; }
.plan__features li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: var(--ink); }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.plan__features li.off { color: var(--muted); opacity: .55; }
.plan__features li.off::before { border-color: var(--muted); transform: none; top: .5em; height: 2px; width: 12px; border-left: 0; }
.plan__features li.all { color: var(--gold); font-weight: 600; padding-left: 0; }
.plan__features li.all::before { display: none; }
.plan__cta { justify-content: center; width: 100%; }
.plans__note { text-align: center; color: var(--muted); margin-top: 2.5rem; font-size: .95rem; }

/* ---------- ASESOR IA ---------- */
.advisor {
  max-width: 540px; margin: 2.5rem auto 0; text-align: left;
  background: oklch(0.17 0.008 78); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 70px -30px oklch(0 0 0 / 0.8);
}
.advisor__bar {
  display: flex; align-items: center; gap: .6rem; padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--line); background: oklch(0.20 0.01 80);
}
.advisor__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 oklch(0.80 0.12 82 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.80 0.12 82 / .5); } 70% { box-shadow: 0 0 0 7px oklch(0.80 0.12 82 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.80 0.12 82 / 0); } }
.advisor__id { font-weight: 700; font-size: .92rem; }
.advisor__status { color: var(--gold); font-size: .78rem; margin-left: auto; }
.advisor__log { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; min-height: 120px; max-height: 320px; overflow-y: auto; }
.msg { max-width: 85%; padding: .7rem 1rem; font-size: .95rem; line-height: 1.45; border-radius: 14px; animation: msgIn .4s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg--ai { align-self: flex-start; background: oklch(0.24 0.01 80); border-bottom-left-radius: 4px; color: var(--ink); }
.msg--user { align-self: flex-end; background: var(--gold); color: oklch(0.16 0.02 75); border-bottom-right-radius: 4px; font-weight: 500; }
.advisor__quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.2rem 1.2rem; }
.qbtn {
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  padding: .55em 1em; border-radius: 100px; transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.qbtn:hover { border-color: var(--gold); color: var(--gold); }
.qbtn--cta { background: var(--gold); color: oklch(0.16 0.02 75); border-color: var(--gold); font-weight: 700; }
.qbtn--cta:hover { background: var(--gold-hi); color: oklch(0.16 0.02 75); }
.cta__alt { position: relative; display: inline-block; margin-top: 1.8rem; color: var(--muted); font-size: .95rem; transition: color .3s ease; }
.cta__alt:hover { color: var(--gold); }

/* ---------- Magnético ---------- */
.magnetic { will-change: transform; }

/* ---------- Reveal (estado por defecto: VISIBLE) ---------- */
/* La ocultación inicial la aplica JS solo si hay motion; sin JS todo se ve. */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__aurora i { animation: none; }
  .hero__col { animation: none; }
  .hero__scroll i { display: none; }
  * { scroll-behavior: auto !important; }
}
