/* Next — versión cinematográfica 3D. Escena fija de fondo + secciones que flotan encima. */

:root {
  --noche: #0B0B0F;
  --gunmetal: #313638;
  --hueso: #F4F4EF;
  --magenta: #FF2D78;
  --muted: #9A9AA4;
  --line: rgba(244, 244, 239, .14);

  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--noche);
  color: var(--hueso);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--magenta); color: var(--noche); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hl { color: var(--magenta); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
  color: var(--hueso);
  white-space: nowrap;
}
.logo svg { height: .578em; width: auto; margin-right: .17em; overflow: visible; }
.logo path, .fallback-chev path {
  fill: none;
  stroke: var(--magenta);
  stroke-width: 22;
  stroke-linejoin: miter;
}

/* ---------- Capas de fondo ---------- */
/* Recorta la palabra gigante: si se sale, el celular ensancha la página y empuja los botones fuera */
.bigword-clip { position: absolute; top: 0; left: 0; right: 0; height: 200vh; overflow: hidden; z-index: 0; pointer-events: none; }
.bigword {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(140px, 34vw, 560px);
  letter-spacing: -.07em;
  line-height: 1;
  color: #1c1d22;
  background: linear-gradient(180deg, #3b3e45 0%, #1a1b20 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}
.scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(11, 11, 15, .55) 85%, rgba(11, 11, 15, .9) 100%),
    linear-gradient(180deg, rgba(11, 11, 15, .6) 0%, transparent 18%, transparent 80%, rgba(11, 11, 15, .7) 100%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .06;
  pointer-events: none;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 2; }

/* Chevron estático si no hay WebGL */
.fallback-chev { display: none; }
.no-webgl .fallback-chev {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(26vw, 220px);
  transform: translate(-50%, -58%);
  overflow: visible;
  filter: drop-shadow(0 0 60px rgba(255, 45, 120, .45));
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px var(--pad);
  background: linear-gradient(180deg, rgba(11, 11, 15, .85), rgba(11, 11, 15, 0));
}
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s var(--ease-out);
}
.nav__links a:hover { color: var(--hueso); }
.nav__logo { justify-self: center; }
.pill {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--noche);
  background: var(--hueso);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color .2s var(--ease-out);
}
.pill:hover { background: var(--magenta); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--magenta); color: var(--noche); }
.btn--accent:hover { background: var(--hueso); }
.btn--ghost { border-color: rgba(244, 244, 239, .4); color: var(--hueso); }
.btn--ghost:hover { border-color: var(--hueso); background: rgba(244, 244, 239, .08); }
.btn--lg { padding: 20px 34px; font-size: 18px; }

/* ---------- Paneles ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px var(--pad) 72px;
}
.panel h2 {
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: .98;
  text-wrap: balance;
}
.hero__copy, .anatomy__head, .paths__copy, .process__copy, .cta__copy, .numbers__sticky {
  text-shadow: 0 2px 24px rgba(0, 0, 0, .8);
}

/* Hero */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__copy { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.hero__title {
  font-size: clamp(3.2rem, 8.6vw, 8.4rem);
  line-height: .9;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__sub { font-size: clamp(18px, 1.6vw, 21px); color: #CFCFD4; max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__aside { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.hero__price { font-family: var(--display); font-size: 22px; color: #CFCFD4; letter-spacing: -.02em; }
.hero__price b { font-size: 44px; color: var(--hueso); }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 10px auto 0;
  background: linear-gradient(var(--hueso), transparent);
  animation: hint 2.4s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Banda de servicios: tres grupos iguales; al correr un tercio, el giro no se nota */
.marquee {
  overflow: hidden;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  background: rgba(11, 11, 15, .72);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}
.marquee__group { display: flex; align-items: center; gap: 32px; padding-right: 32px; }
.marquee__track i { font-style: normal; font-weight: 700; color: var(--magenta); }
@keyframes marquee { to { transform: translateX(calc(-100% / 3)); } }

/* Anatomía: anotaciones con línea guía hacia el chevron */
.anatomy { display: flex; flex-direction: column; align-items: center; }
.anatomy__head { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: 760px; }
.anatomy__head h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.callouts { position: absolute; inset: 0; }
.callout {
  position: absolute;
  width: min(250px, 22vw);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.callout h3 { font-size: 20px; letter-spacing: -.02em; }
.callout p { font-size: 15px; color: #BDBDC4; line-height: 1.5; }
.callout::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 9vw;
  height: 1px;
}
.callout__dot {
  position: absolute;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hueso);
  box-shadow: 0 0 0 4px rgba(244, 244, 239, .15);
}
.callout--tl, .callout--bl { left: 8%; text-align: right; }
.callout--tr, .callout--br { right: 8%; }
/* Alineadas con los brazos del chevron, que queda centrado un poco por debajo del título */
.callout--tl, .callout--tr { top: 46%; }
.callout--bl, .callout--br { top: 70%; }
.callout--tl::after, .callout--bl::after { left: calc(100% + 16px); background: linear-gradient(90deg, rgba(244, 244, 239, .7), rgba(244, 244, 239, .25)); }
.callout--tl .callout__dot, .callout--bl .callout__dot { left: calc(100% + 16px + 9vw); }
.callout--tr::after, .callout--br::after { right: calc(100% + 16px); background: linear-gradient(270deg, rgba(244, 244, 239, .7), rgba(244, 244, 239, .25)); }
.callout--tr .callout__dot, .callout--br .callout__dot { right: calc(100% + 16px + 9vw); }

/* Números grandes que corren con el scroll */
.numbers { position: relative; height: 220vh; }
.numbers__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 110px var(--pad) 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.stats { position: relative; height: clamp(300px, 46vh, 460px); max-width: 640px; }
.stat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  /* La cifra que sale desaparece antes de que entre la siguiente, para que nunca se encimen */
  transition: opacity .15s linear, transform .15s linear;
}
.stat.is-active { opacity: 1; transform: none; transition: opacity .4s var(--ease-out) .15s, transform .4s var(--ease-out) .15s; }
.stat__big { display: flex; align-items: baseline; gap: 14px; line-height: .8; }
.stat__big b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(8rem, 21vw, 19rem);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #F7C9D8 15%, #E07A9E 70%, #B8476F 100%);
  text-shadow: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; color: var(--hueso); letter-spacing: -.02em; }
.stat__big span { font-family: var(--display); font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; color: var(--magenta); letter-spacing: -.02em; }
.stat__txt { font-size: clamp(17px, 1.5vw, 20px); color: #CFCFD4; max-width: 34ch; }
.stats__bar { width: min(320px, 60vw); height: 2px; background: var(--line); }
.stats__bar span { display: block; height: 100%; width: 0; background: var(--magenta); }

/* Tres caminos */
.paths { display: flex; align-items: center; }
.paths__copy { max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
.paths__sub { color: #CFCFD4; font-size: 18px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.swatch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  background: rgba(20, 21, 26, .7);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--hueso);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.swatch:hover { transform: translateY(-3px); }
.swatch.is-on { border-color: var(--hueso); }
.swatch__chip { width: 100%; aspect-ratio: 1.25; border-radius: 8px; background: var(--sw); margin-bottom: 8px; }
.swatch b { font-size: 15px; line-height: 1.25; }
.swatch small { font-size: 12px; color: var(--muted); }
.path-detail { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.path-detail p { color: #CFCFD4; }
.path-detail__price { display: flex; align-items: baseline; gap: 16px; }
.path-detail__price b { font-family: var(--display); font-size: 48px; letter-spacing: -.04em; color: var(--hueso); line-height: 1; }
.path-detail__price span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Tabla de paquetes */
.plans-panel { display: flex; align-items: center; justify-content: center; }
.plans-box {
  width: min(1100px, 100%);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(11, 11, 15, .92);
}
@supports (backdrop-filter: blur(16px)) {
  .plans-box { background: rgba(11, 11, 15, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}
.plans-box__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.plans-box__note { color: var(--muted); font-size: 15px; }
.plans li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 130px 110px;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.plans__name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.plans__name em {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--noche);
  background: var(--magenta);
  padding: 3px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.plans__what { color: #BDBDC4; font-size: 15px; }
.plans__time { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plans b { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; text-align: right; }
.plans b small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.plans-box__foot { border-top: 1px solid var(--line); padding-top: 18px; color: var(--hueso); font-size: 17px; }
.plans-box__foot .plans__name { margin-right: 10px; }

/* Proceso */
.process { display: flex; align-items: center; justify-content: flex-end; }
.process__copy { max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.steps { display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li > span { font-family: var(--mono); font-size: 13px; color: var(--magenta); padding-top: 4px; }
.steps h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.steps p { color: #BDBDC4; font-size: 16px; }

/* CTA */
.cta { display: flex; align-items: center; }
.cta__copy { max-width: 680px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta__title { font-size: clamp(3rem, 8vw, 7.6rem); line-height: .92; letter-spacing: -.045em; }
.cta__sub { font-size: clamp(18px, 1.6vw, 21px); color: #CFCFD4; max-width: 40ch; }

/* Pie */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 32px var(--pad);
  border-top: 1px solid var(--line);
  background: var(--noche);
  font-size: 14px;
  color: var(--muted);
}
.footer a:not(.logo) { color: var(--hueso); }

/* ---------- Revelado (solo con JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
  animation: revealSafety 0s 6s forwards;
}
.js .reveal.is-visible { opacity: 1; transform: none; animation: none; }
.reveal[data-split] { opacity: 1; transform: none; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

/* Entrada del hero */
.js .hero__copy > *, .js .hero__aside {
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn .9s var(--ease-out) forwards;
}
.js .hero__copy > :nth-child(2) { animation-delay: .75s; }
.js .hero__copy > :nth-child(1) { animation-delay: .65s; }
.js .hero__copy > :nth-child(3) { animation-delay: .9s; }
.js .hero__copy > :nth-child(4) { animation-delay: 1s; }
.js .hero__aside { animation-delay: 1.1s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.intro-done .hero__copy > *, .intro-done .hero__aside { animation: none; opacity: 1; transform: none; }

/* ---------- Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--noche);
  transition: opacity .7s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }
.logo--splash { font-size: clamp(56px, 10vw, 120px); }
.logo--splash svg { animation: splashChev .6s var(--ease-out) both; }
@keyframes splashChev { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .plans__what { grid-column: 1; grid-row: 2; }
  .plans__time { grid-column: 1; grid-row: 3; }
  .plans b { grid-column: 2; grid-row: 1 / span 3; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__links { display: none; }
  .nav__logo { justify-self: start; }

  .panel { padding-top: 90px; }
  .bigword { font-size: 44vw; align-items: start; padding-top: 22vh; }

  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero__aside { display: none; }
  .hero { padding-bottom: 48px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }

  /* En móvil el chevron vive arriba y el texto abajo, sobre un velo para que se lea */
  .anatomy, .paths, .process, .cta { justify-content: flex-end; align-items: stretch; flex-direction: column; }
  .anatomy__head { text-align: left; align-items: flex-start; }
  .callouts { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 28px; }
  .callout { position: static; width: auto; text-align: left !important; padding-left: 16px; border-left: 1px solid var(--line); }
  .callout::after, .callout__dot { display: none; }
  .anatomy { justify-content: flex-start; padding-top: 52vh; }
  .anatomy__head, .callouts, .paths__copy, .process__copy, .cta__copy {
    position: relative;
  }
  .paths__copy, .process__copy, .cta__copy, .anatomy { background: linear-gradient(180deg, transparent, rgba(11, 11, 15, .82) 22%); }
  .paths, .process, .cta { padding-top: 42vh; }
  .paths__copy, .process__copy, .cta__copy { padding: 28px 0 0; max-width: none; }
  .anatomy { background: linear-gradient(180deg, transparent 40vh, rgba(11, 11, 15, .82) 56vh); }

  .numbers__sticky { justify-content: flex-end; padding-bottom: 96px; background: linear-gradient(180deg, transparent 30%, rgba(11, 11, 15, .8) 60%); }
  .stats { height: 320px; }
  .stat__big b { font-size: clamp(7rem, 36vw, 11rem); }

  .swatch { padding: 8px; border-radius: 12px; }
  .swatch b { font-size: 13px; }
  .swatch small { display: none; }
  .cta__copy .btn { width: 100%; }
}

@media (max-width: 420px) {
  .callouts { grid-template-columns: 1fr; }
}

/* ==========================================================
   Cursor y botones: un mismo sistema
   El aro se pega al botón, el botón se deja atraer, se rellena
   desde el punto de entrada y el texto rueda letra a letra.
   ========================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.fx .cursor { display: block; }
.cursor.is-ready { opacity: 1; }
.fx, .fx a, .fx button { cursor: none; }

.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(244, 244, 239, .55);
  border-radius: 19px;
  will-change: transform, width, height;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.cursor.is-stuck .cursor__ring {
  border-color: var(--magenta);
  background: rgba(255, 45, 120, .06);
  box-shadow: 0 0 26px rgba(255, 45, 120, .35);
}
.cursor.is-down .cursor__ring { border-color: var(--magenta); }

.cursor__dot { position: fixed; top: 0; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; will-change: transform; }
.cursor__dot svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .35s var(--ease-out), opacity .35s var(--ease-out); }
.cursor__dot path { fill: none; stroke: var(--magenta); stroke-width: 22; stroke-linejoin: miter; }
.cursor.is-stuck .cursor__dot svg { transform: scale(0); opacity: 0; }

.cursor__ripple {
  position: fixed;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 1.5px solid var(--magenta);
  pointer-events: none;
}

/* Botones: relleno, texto que rueda y flecha que avanza */
.fx .btn, .fx .pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), scale .25s var(--ease-out);
}
.fx .btn:hover, .fx .pill:hover, .fx .swatch:hover { transform: none; }
.fx .btn--accent:hover { background: var(--magenta); }
.fx .btn--ghost:hover { background: transparent; }
.fx .pill:hover { background: var(--hueso); }
.fx .btn:active, .fx .pill:active, .fx .swatch:active { scale: .95; }

.fx-fill {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.is-hover > .fx-fill { transform: translate(-50%, -50%) scale(1); }
.btn--accent .fx-fill, .btn--ghost .fx-fill { background: var(--hueso); }
.pill .fx-fill { background: var(--magenta); }
.btn--ghost.is-hover { color: var(--noche); border-color: var(--hueso); }

.fx-inner { display: inline-flex; align-items: center; gap: 10px; will-change: translate; }
.roll { position: relative; display: inline-flex; overflow: hidden; line-height: 1.25; }
.roll__a, .roll__b { display: inline-flex; white-space: pre; }
.roll__b { position: absolute; left: 0; top: 100%; }
.roll .ch {
  display: inline-block;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i) * 13ms);
}
.roll .ch.sp { width: .28em; }
.is-hover .roll .ch { transform: translateY(-100%); }

.fx-arrow { position: relative; display: inline-block; width: 9px; height: 13px; overflow: hidden; }
.fx-arrow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.fx-arrow svg + svg { transform: translateX(-160%); }
.fx-arrow path { fill: none; stroke: currentColor; stroke-width: 22; stroke-linejoin: miter; }
.is-hover .fx-arrow svg { transform: translateX(160%); }
.is-hover .fx-arrow svg + svg { transform: none; transition-delay: .06s; }

/* Enlaces del menú y del pie */
.fx .nav__links a, .fx .footer a:not(.logo) { display: inline-block; }
.fx .nav__links a.is-hover { color: var(--hueso); }

/* Logo: el chevron da un paso adelante */
.logo svg { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.logo.is-hover svg { transform: translateX(4px); }

/* Muestras de paquetes: inclinación 3D hacia el cursor */
.fx .swatch { transition: border-color .2s var(--ease-out), scale .25s var(--ease-out); will-change: transform; }
.fx .swatch .swatch__chip { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.fx .swatch.is-hover .swatch__chip { transform: scale(1.04); }

/* Los botones no heredan la sombra de texto de los bloques: con el texto que rueda se veía como una franja oscura */
.btn, .pill, .swatch { text-shadow: none; }

/* Versión solo Inter: el peso cambia según el uso.
   Titulares, logo y cifras en 700-800; texto en 400; botones en 600; etiquetas en 500 con espaciado. */
.stat__big b, .bigword { font-weight: 800; }
.kicker, .plans__time, .path-detail__price span, .steps li > span { font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__big b, .plans b, .path-detail__price b, .hero__price b { font-variant-numeric: tabular-nums; }

/* ---------- Asistente de soporte (chat con IA) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-family: var(--text); }
.chat__launcher {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px;
  font: 600 15px/1 var(--text); color: var(--noche);
  background: var(--magenta); border: 0; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(255, 45, 120, .35), 0 2px 8px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease-out), background-color .2s var(--ease-out), box-shadow .25s var(--ease-out);
}
.chat__launcher svg { width: 12px; height: 18px; fill: none; stroke: currentColor; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.chat__launcher:hover { transform: translateY(-2px); background: var(--hueso); box-shadow: 0 14px 36px rgba(244, 244, 239, .2), 0 2px 8px rgba(0, 0, 0, .4); }
.chat__launcher:hover svg { transform: translateX(3px); }
.chat.is-open .chat__launcher { transform: scale(.9); opacity: 0; pointer-events: none; }

.chat__panel {
  position: absolute; right: 0; bottom: 0;
  width: min(380px, calc(100vw - 40px));
  height: min(580px, calc(100vh - 40px));
  height: min(580px, calc(100svh - 40px));
  display: flex; flex-direction: column;
  color: var(--hueso);
  background: rgba(17, 17, 22, .94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-in .35s var(--ease-out);
}
.chat__panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); }
.chat__head > div { flex: 1; min-width: 0; }
.chat__avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--magenta); }
.chat__avatar svg { width: 11px; height: 17px; fill: none; stroke: var(--noche); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; margin-left: 2px; }
.chat__title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.chat__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.chat__sub::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3DDC97; vertical-align: 1px; }
.chat__close { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--hueso); transition: background-color .2s var(--ease-out); }
.chat__close:hover { background: rgba(244, 244, 239, .1); }
.chat__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(244, 244, 239, .2) transparent; }
.chat__msg { max-width: 86%; padding: 11px 14px; font-size: 14.5px; line-height: 1.5; border-radius: 16px; overflow-wrap: anywhere; }
.chat__msg p { margin: 0; }
.chat__msg p + p, .chat__msg p + ul, .chat__msg ul + p { margin-top: 8px; }
.chat__msg ul { margin: 0; padding-left: 18px; }
.chat__msg li + li { margin-top: 4px; }
.chat__msg strong { font-weight: 700; }
.chat__msg a { color: var(--magenta); text-underline-offset: 2px; }
.chat__msg--bot { align-self: flex-start; background: rgba(244, 244, 239, .07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat__msg--user { align-self: flex-end; background: var(--magenta); color: var(--noche); font-weight: 500; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.chat__msg--error { border-color: rgba(255, 45, 120, .45); }
.chat__typing { display: flex; gap: 5px; padding: 15px 16px; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat__chips[hidden] { display: none; }
.chat__chips button {
  padding: 8px 12px; font: 500 13px/1.3 var(--text); text-align: left;
  color: var(--hueso); background: transparent;
  border: 1px solid rgba(244, 244, 239, .28); border-radius: 999px;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.chat__chips button:hover { border-color: var(--magenta); color: var(--magenta); background: rgba(255, 45, 120, .08); }

.chat__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; background: rgba(244, 244, 239, .06); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s var(--ease-out); }
.chat__form:focus-within { border-color: rgba(255, 45, 120, .6); }
.chat__form textarea { flex: 1; resize: none; max-height: 120px; padding: 9px 0; font: 400 15px/1.4 var(--text); color: var(--hueso); background: transparent; border: 0; outline: none; }
.chat__form textarea::placeholder { color: var(--muted); }
.chat__send { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; background: var(--magenta); color: var(--noche); border: 0; border-radius: 50%; transition: background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.chat__send:hover { background: var(--hueso); transform: translateX(2px); }
.chat__send:disabled { opacity: .45; transform: none; }
.chat__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat__note { margin: 0; padding: 10px 16px 14px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.chat__note a { color: var(--hueso); }

.chat button:focus-visible, .chat a:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

@media (max-width: 600px) {
  .chat { right: 14px; bottom: 14px; }
  .chat__launcher { padding: 13px 16px 13px 14px; font-size: 14px; }
  .chat.is-open { left: 0; right: 0; bottom: 0; }
  .chat__panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 85vh; height: 85svh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .chat__form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat__panel { animation: none; }
}

/* Botón de WhatsApp del pie, con el verde de la marca WhatsApp */
.footer .footer__wa { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: #25D366; color: #0B0B0F; font-weight: 600; text-decoration: none; transition: background-color .2s var(--ease-out); }
.footer .footer__wa:hover { background: #1EBE57; color: #0B0B0F; }

/* Botón superior de WhatsApp, con el verde de la marca WhatsApp */
.pill.pill--wa, .fx .pill.pill--wa:hover { background: #25D366; color: #0B0B0F; }
.pill--wa .fx-fill { background: #1EBE57; }
