/* ==========================================================================
   Faro Digital — sitio de la agencia
   ========================================================================== */
:root {
  --red: #e11d2e;
  --red-hi: #ff3546;
  --red-lo: #a3101f;
  --red-glow: rgba(225, 29, 46, .38);
  --ink: #08080a;
  --ink-2: #0f0f12;
  --ink-3: #16161b;
  --steel: #24242b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f4f5;
  --muted: #9a9aa4;
  --dim: #5f5f69;

  --display: "Cabinet Grotesk", "Switzer", system-ui, sans-serif;
  --sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(18px, 5vw, 72px);
  --max: 1320px;
  --section: clamp(96px, 13vw, 190px);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: clamp(1rem, .95rem + .25vw, 1.0625rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; word-spacing: 0; line-height: 1; }
p, ol, ul { margin: 0; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--red); border-radius: 8px; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-head { display: grid; gap: 22px; max-width: 820px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head h2 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.4rem); text-wrap: balance; }
.section-head__lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 620px; }

/* ---------- Estados de animación (solo con JS activo) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(34px); }
.js-anim [data-split] { visibility: hidden; }
.js-anim [data-split].is-split { visibility: visible; }
[data-split] .line-mask { padding-bottom: .1em; margin-bottom: -.1em; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font: 700 .95rem/1 var(--sans); letter-spacing: .01em;
  color: #fff; background: var(--red); border: 1px solid var(--red);
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: box-shadow .5s var(--ease), border-color .4s, color .4s, background .4s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 120% at 50% 120%, var(--red-hi), var(--red) 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.btn:hover { box-shadow: 0 18px 50px -12px var(--red-glow), 0 0 0 1px rgba(255,255,255,.08) inset; }
.btn:hover::before { opacity: 1; }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--ghost::before { background: var(--red); }
.btn--ghost:hover { border-color: var(--red); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .88rem; }
.btn--lg { min-height: 66px; padding: 0 40px; font-size: 1.05rem; }

/* ---------- Progreso, grano, cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px var(--red); }
.grain {
  position: fixed; inset: 0; z-index: 110; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cursor { position: fixed; inset: 0; z-index: 130; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-ready { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.35);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); background: rgba(225,29,46,.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.nav.is-scrolled { background: rgba(8, 8, 10, .9); border-color: var(--line); }
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled { background: rgba(8, 8, 10, .62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; color: var(--text); }
.logo__beam { fill: var(--red); opacity: .55; }
.logo__word { font-family: var(--display); font-size: 1.28rem; font-weight: 500; letter-spacing: -.015em; }
.logo__word b { font-weight: 700; color: var(--red); }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); font-size: .93rem; font-weight: 500; }
.nav__links a:not(.btn) { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .4s var(--ease); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; height: calc(100svh - var(--nav-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--ink);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease), visibility .6s;
  }
  .nav__links a:not(.btn) { padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.9rem; font-weight: 500; color: var(--text); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 32px; min-height: 56px; }
  .nav.is-open { background: var(--ink); border-color: var(--line); }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(80% 70% at 75% 35%, #1a0a0d 0%, var(--ink) 65%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.is-3d-ready .hero__canvas { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.55) 38%, rgba(8,8,10,0) 62%),
    linear-gradient(0deg, var(--ink) 0%, rgba(8,8,10,0) 26%);
}
/* Faro ilustrado si no hay WebGL */
.hero__fallback { display: none; }
.hero.no-webgl .hero__fallback {
  display: block; position: absolute; right: 8%; bottom: 0; width: min(46vw, 420px); aspect-ratio: 1 / 1.6;
  background: url("../assets/favicon.svg") center bottom / contain no-repeat; opacity: .55;
  filter: drop-shadow(0 0 60px var(--red-glow));
}
.hero__inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 56px; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 56px; }
.hero__content { display: grid; gap: 26px; max-width: 800px; }
.hero__title { font-size: clamp(3rem, 1.4rem + 4.6vw, 6.2rem); font-weight: 800; line-height: .96; letter-spacing: -.03em; text-wrap: balance; }
.hero__lead { font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); color: #c4c4cc; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__index { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__index a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(15, 15, 18, .55); font-size: .9rem; font-weight: 500; color: #d2d2d8;
  transition: border-color .35s, color .35s, background .35s;
}
.hero__index a span { font-size: .72rem; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.hero__index a:hover { border-color: var(--red); color: #fff; background: rgba(225, 29, 46, .1); }
.hero__scroll { position: absolute; z-index: 2; right: var(--gutter); bottom: 40px; width: 1px; height: 72px; background: var(--line-2); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--red); animation: scrollCue 2.2s var(--ease) infinite; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero__shade { background: linear-gradient(0deg, var(--ink) 4%, rgba(8,8,10,.86) 42%, rgba(8,8,10,.2) 68%, rgba(8,8,10,0) 100%); }
  .hero__inner { justify-content: flex-end; gap: 28px; padding-top: 30svh; padding-bottom: 32px; }
  .hero__content { gap: 20px; }
  .hero .eyebrow { letter-spacing: .14em; font-size: .7rem; }
  .hero__scroll { display: none; }
  .hero.no-webgl .hero__fallback { right: 50%; translate: 50% 0; bottom: auto; top: 12%; width: 46vw; }
}
@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__index a { padding: 8px 14px 8px 10px; font-size: .84rem; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; background: var(--ink-2); }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); font-weight: 500; white-space: nowrap; color: #d9d9de; }
.marquee i { font-style: normal; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Planes ---------- */
.plans__grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) { .plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .plans__grid { grid-template-columns: 1fr; } }
.plan { perspective: 1100px; }
.plan__inner {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(26px, 2.4vw, 36px); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-color .5s;
}
.plan__inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(225, 29, 46, .16), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.plan__inner:hover { border-color: rgba(225, 29, 46, .45); }
.plan__inner:hover::before { opacity: 1; }
.plan__inner.is-tilting { transition: transform .12s linear, border-color .5s; }
.plan__top { display: flex; justify-content: space-between; align-items: flex-start; }
.plan__num { font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--dim); letter-spacing: .06em; }
.plan__icon { width: 54px; height: 54px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: transform .7s var(--ease); }
.plan__icon .fill { fill: var(--ink-3); }
.plan__inner:hover .plan__icon { transform: translateY(-4px) rotate(-6deg); }
.plan__icon--spin { animation: spin3d 9s linear infinite; }
@keyframes spin3d { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.plan__name { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); font-weight: 700; margin-top: 8px; }
.plan__tag { font-family: var(--display); font-size: 1.15rem; font-weight: 500; color: var(--red); line-height: 1.3; }
.plan__for { color: var(--muted); font-size: .95rem; }
.plan__for b { color: var(--text); font-weight: 600; }
.plan__list { list-style: none; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .95rem; color: #d6d6dc; }
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px;
  border-left: 1.6px solid var(--red); border-bottom: 1.6px solid var(--red); transform: rotate(-45deg);
}
.plan__cta { margin-top: auto; width: 100%; }
.plan__list + .plan__cta { margin-top: auto; }
.plan__inner > .plan__list { margin-bottom: 10px; }
.plan--featured .plan__inner {
  border-color: rgba(225, 29, 46, .55);
  background: radial-gradient(120% 70% at 50% 0%, rgba(225, 29, 46, .22), transparent 65%), linear-gradient(180deg, #1a0d10, var(--ink-2));
  box-shadow: 0 30px 80px -30px var(--red-glow);
}
.plan--featured .plan__num { color: var(--red); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; translate: -50% 0; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
/* Tarjeta "+ Reservas y pedidos": mismo formato, se distingue sin competir con el 3D */
.plan__badge--line { background: var(--ink); color: var(--text); border: 1px solid rgba(225, 29, 46, .6); }
.plan__num--plus { font-size: 1.7rem; line-height: .8; color: var(--red); }
.plan--addon .plan__inner {
  border-color: rgba(225, 29, 46, .32);
  background: radial-gradient(90% 45% at 100% 0%, rgba(225, 29, 46, .12), transparent 70%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
}

/* ---------- Manifiesto ---------- */
.manifesto { padding-block: clamp(80px, 12vw, 180px); border-block: 1px solid var(--line); background: radial-gradient(60% 80% at 15% 50%, rgba(225, 29, 46, .08), transparent 70%); }
.manifesto__text { font-family: var(--display); font-size: clamp(1.9rem, 1rem + 3.6vw, 4.6rem); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; text-wrap: pretty; }
.manifesto__text .accent { color: var(--red); }

/* ---------- Por qué ---------- */
.why__grid { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 1100px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why__grid { grid-template-columns: 1fr; } }
.why__item { background: var(--ink); padding: clamp(28px, 3vw, 44px); display: grid; gap: 14px; align-content: start; transition: background .5s; }
.why__item:hover { background: var(--ink-2); }
.why__big { font-family: var(--display); font-size: clamp(3rem, 2.2rem + 3vw, 5.2rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; color: var(--red); }
.why__big--word { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.why__item h3 { font-size: 1.35rem; font-weight: 500; margin-top: 10px; }
.why__item p { color: var(--muted); font-size: .97rem; }

/* ---------- Proceso ---------- */
.steps { position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps__fill { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 14px var(--red); }
.steps__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.step { position: relative; padding-top: 44px; display: grid; gap: 12px; align-content: start; }
.step__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--red); box-shadow: 0 0 0 6px var(--ink); }
.step__num { font-family: var(--display); font-size: .9rem; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.step h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 500; }
.step p { color: var(--muted); }
@media (max-width: 860px) {
  .steps__line { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .steps__fill { transform-origin: 50% 0; transform: scaleY(0); }
  .steps__list { grid-template-columns: 1fr; gap: 44px; }
  .step { padding: 0 0 0 46px; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__head { position: static; } }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); font-weight: 500;
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease), border-color .3s;
}
.faq__item summary:hover { color: var(--red); }
.faq__item[open] summary::after { transform: rotate(135deg); border-color: var(--red); }
.faq__item p { padding: 0 56px 28px 0; color: var(--muted); max-width: 640px; }

/* ---------- CTA final ---------- */
.cta { overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta__beam {
  position: absolute; left: 50%; top: 100%; width: 260vmax; height: 260vmax; translate: -50% -50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(225, 29, 46, .22) 12deg, transparent 26deg, transparent 180deg, rgba(225, 29, 46, .16) 192deg, transparent 206deg);
  animation: sweep 14s linear infinite; opacity: .9;
}
@keyframes sweep { to { rotate: 360deg; } }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.cta__title { font-size: clamp(3rem, 1.4rem + 7vw, 8.4rem); letter-spacing: -.035em; line-height: .94; text-wrap: balance; max-width: 14ch; }
.cta__lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 520px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: .93rem; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { color: var(--dim); font-size: .88rem; width: 100%; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 14px 40px -10px var(--red-glow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--red); animation: ping 2.6s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 18px 50px -8px var(--red-glow); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Link a asistente (sección planes) ---------- */
.link-cta {
  display: inline-flex; align-items: center; gap: .5em; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 1rem/1.4 var(--sans); color: var(--text); border-bottom: 1px solid var(--red); padding-bottom: 4px;
  transition: color .3s, gap .4s var(--ease);
}
.link-cta span { color: var(--red); }
.link-cta:hover { color: var(--red); gap: .9em; }

/* ---------- Asistente guiado ---------- */
.asis { --asis-bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px); }
.asis__launcher {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: var(--asis-bottom); z-index: 92;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: var(--ink-3); border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.8);
  transition: transform .4s var(--ease), background .3s, border-color .3s;
}
.asis__launcher:hover { transform: scale(1.06); border-color: var(--red); }
.asis__launcher > svg { grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease); }
.asis__ico-close { opacity: 0; transform: rotate(-90deg); }
.asis.is-open .asis__launcher { background: var(--red); border-color: var(--red); }
.asis.is-open .asis__ico-chat { opacity: 0; transform: rotate(90deg); }
.asis.is-open .asis__ico-close { opacity: 1; transform: none; }

.asis__hint {
  position: fixed; right: calc(max(16px, env(safe-area-inset-right)) + 72px); bottom: calc(var(--asis-bottom) + 10px); z-index: 92;
  max-width: min(260px, calc(100vw - 110px)); padding: 10px 16px; border-radius: 14px 14px 4px 14px; cursor: pointer;
  font: 500 .88rem/1.35 var(--sans); color: var(--ink); background: #fff; border: 0; text-align: left;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transform-origin: right bottom;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.asis__hint.is-visible { opacity: 1; visibility: visible; transform: none; }

.asis__panel {
  position: fixed; z-index: 105; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--asis-bottom) + 72px);
  width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100svh - var(--asis-bottom) - 72px - 90px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(225,29,46,.08);
  transform-origin: right bottom; animation: asisIn .45s var(--ease);
}
.asis__panel[hidden] { display: none; }
@keyframes asisIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.asis__head {
  display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(225,29,46,.2), transparent 60%);
}
.asis__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red); }
.asis__avatar svg { width: 24px; height: 24px; }
.asis__title { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.asis__title b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.asis__title span { font-size: .82rem; color: var(--muted); }
.asis__close { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); background: none; border: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.asis__close:hover { border-color: var(--red); color: var(--red); }

.asis__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.asis__msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.45; white-space: pre-line; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.asis__msg--bot { align-self: flex-start; background: var(--ink-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: #e4e4e8; }
.asis__msg--user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.asis__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.asis__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite ease-in-out; }
.asis__typing span:nth-child(2) { animation-delay: .15s; }
.asis__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.asis__opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 16px; border-top: 1px solid var(--line); }
.asis__opts:empty { display: none; }
.asis__opt {
  padding: 9px 14px; border-radius: 999px; cursor: pointer; text-align: left;
  font: 600 .86rem/1.25 var(--sans); color: var(--text); background: transparent; border: 1px solid rgba(225,29,46,.55);
  transition: background .3s, border-color .3s, color .3s;
}
.asis__opt:hover, .asis__opt:focus-visible { background: rgba(225,29,46,.14); border-color: var(--red); }
.asis__opt--wa { background: var(--red); border-color: var(--red); color: #fff; }
.asis__opt--wa:hover { background: var(--red-hi); }

.asis [hidden] { display: none !important; }
.asis__back { flex: none; width: 36px; height: 36px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); background: none; border: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.asis__back:hover { border-color: var(--red); color: var(--red); }
.asis.is-chat .asis__avatar { display: none; }
.asis__chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Menú con todas las preguntas */
.asis__menu { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 20px; }
.asis__hello { font-size: .94rem; color: #e4e4e8; margin-bottom: 12px; }
.asis__search {
  width: 100%; min-height: 46px; padding: 0 16px 0 42px; border-radius: 12px;
  font: 500 .93rem var(--sans); color: var(--text); background: var(--ink-3) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><circle cx='7' cy='7' r='5.2' fill='none' stroke='%239a9aa4' stroke-width='1.6'/><path d='m11 11 3.5 3.5' stroke='%239a9aa4' stroke-width='1.6'/></svg>") 15px 50% no-repeat;
  border: 1px solid var(--line-2); outline: none; transition: border-color .3s;
}
.asis__search::placeholder { color: var(--dim); }
.asis__search:focus { border-color: var(--red); }
.asis__quick { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 12px; }
.asis__quick-btn {
  display: grid; align-content: center; gap: 2px; min-height: 58px; padding: 10px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  font: 600 .88rem/1.25 var(--sans); color: #fff; border: 1px solid var(--line-2); background: var(--ink-3);
  transition: border-color .3s, background .3s;
}
.asis__quick-btn span { font-weight: 500; font-size: .76rem; opacity: .8; }
.asis__quick-btn--main { background: linear-gradient(135deg, var(--red), var(--red-lo)); border-color: var(--red); }
.asis__quick-btn--main:hover { background: linear-gradient(135deg, var(--red-hi), var(--red)); }
.asis__quick-btn--wa:hover { border-color: var(--red); }
.asis__group { margin-top: 20px; }
.asis__group h4 { margin: 0 0 6px; font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.asis__q {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left;
  font: 500 .93rem/1.35 var(--sans); color: #e4e4e8; transition: color .25s, padding .3s var(--ease);
}
.asis__q::after { content: "›"; flex: none; font-size: 1.3rem; line-height: 1; color: var(--dim); transition: color .25s, transform .3s var(--ease); }
.asis__q:hover, .asis__q:focus-visible { color: #fff; padding-left: 6px; }
.asis__q:hover::after { color: var(--red); transform: translateX(3px); }
.asis__empty { margin-top: 18px; display: grid; gap: 12px; justify-items: start; color: var(--muted); font-size: .92rem; }
.asis__opt--ghost { border-color: var(--line-2); color: var(--muted); }
.asis__opt--ghost:hover { color: var(--text); }

@media (max-width: 600px) {
  .asis__panel { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; height: min(78svh, 620px); }
  .asis.is-open .asis__launcher, .asis.is-open .asis__hint { visibility: hidden; }
}

/* Solo se frena lo intrusivo con "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float::after, .hero__scroll span { animation: none; }
  .cta__beam { animation-duration: 40s; }
}
