/* ==========================================================================
   CRALEBI — Hoja de estilos principal
   Paleta y tipografía según guía de marca.
   Autor: sitio estático, sin build. Editable a mano.
   --------------------------------------------------------------------------
   ÍNDICE
   01. Tipografías
   02. Tokens / variables
   03. Reset y base
   04. Utilidades y componentes (botones, eyebrow, títulos)
   06. Header y navegación
   07. Hero + mascota interactiva
   09. Servicios
   10. Proceso
   11. Planes
   12. Nosotros / métricas
   13. FAQ
   14. CTA final
   15. Contacto
   16. Footer
   17. Animaciones de aparición (reveal)
   18. Responsive
   19. Accesibilidad / movimiento reducido
   ========================================================================== */

/* ==========================================================================
   01. TIPOGRAFÍAS (auto-hospedadas, sin dependencias externas)
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/interdisplay-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/interdisplay-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ==========================================================================
   02. TOKENS
   ========================================================================== */
:root {
  /* Marca */
  --orange:        #FF6B00;
  --orange-soft:   #FF8F4D;
  --orange-ink:    #BF4600;   /* naranja para texto chico: 5.1:1 sobre blanco, 4.6:1 sobre lila */
  --pink:          #EC4899;
  --violet:        #8B5CF6;
  --violet-deep:   #7732C4;

  /* Neutros */
  --ink:           #21142F;
  --ink-soft:      #3B2B4F;
  --muted:         #62586E;
  --faint:         #76698B;   /* texto secundario tenue que igual cumple 4.5:1 sobre blanco y lila */
  --bg:            #FAFAFC;
  --surface:       #FFFFFF;
  --lila:          #F4F1FB;
  --lila-deep:     #EDE8F8;
  --line:          #E9E4F2;

  /* Degradados */
  --grad:          linear-gradient(110deg, #FF6B00 0%, #EC4899 55%, #8B5CF6 100%);
  --grad-soft:     linear-gradient(135deg, #FFF1E6 0%, #FDE8F3 50%, #EFE9FE 100%);

  /* Sombras (tintadas en violeta, no negro puro) */
  --sh-sm:  0 2px 8px rgba(33, 20, 47, .04);
  --sh-md:  0 12px 32px -12px rgba(63, 32, 97, .18);
  --sh-lg:  0 32px 70px -28px rgba(63, 32, 97, .28);
  --sh-glow: 0 18px 50px -18px rgba(236, 72, 153, .45);

  /* Radios */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: 28px;
  --header-h: 82px;

  /* Easings */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ==========================================================================
   03. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: 'Inter Display', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: #FFD9BF; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scrollbar discreta (navegadores WebKit) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #DED6EC;
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #C9BCE0; }

/* ==========================================================================
   04. UTILIDADES Y COMPONENTES
   ========================================================================== */
.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
}
.section--tight { padding-block: clamp(64px, 7vw, 96px); }
.section--lila { background: var(--lila); }

.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;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  transform: translateY(-200%);
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* --- Etiqueta corta sobre los títulos --- */
.eyebrow {
  display: inline-block;
  color: var(--orange-ink);
  font-size: 15px; font-weight: 650;
  letter-spacing: -.005em;
}

/* --- Texto con degradado de marca --- */
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Encabezado de sección --- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 5vw, 68px);
}
.section-head--center {
  margin-inline: auto; text-align: center;
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-top: 22px;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  margin-top: 20px;
  max-width: 600px;
}
.section-head--center p { margin-inline: auto; }

/* --- Botones --- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 650;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .45s var(--ease-out),
              box-shadow .45s var(--ease-out),
              background-color .3s ease,
              color .3s ease,
              border-color .3s ease;
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--primary {
  color: #fff;
  background: var(--grad);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: var(--sh-glow);
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 22px 54px -16px rgba(236, 72, 153, .6);
}
.btn--primary::after {
  /* brillo que cruza el botón al pasar el mouse */
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: #fff;
  border-color: #D9CEEC;
  box-shadow: var(--sh-md);
}

.btn--dark {
  color: #fff;
  background: var(--ink);
}
.btn--dark:hover { background: #2F1D44; box-shadow: var(--sh-md); }

.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 36px;
}

/* --- Tarjeta base --- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s ease;
}

/* ==========================================================================
   06. HEADER
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s ease, box-shadow .4s ease,
              backdrop-filter .4s ease, height .4s var(--ease-out);
}
.header.is-stuck {
  height: 68px;
  background: rgba(250, 250, 252, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(33, 20, 47, .07), 0 12px 30px -24px rgba(63, 32, 97, .4);
}
.header__inner {
  /* sin width: 100% — el ancho lo define .container */
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter Display', sans-serif;
  font-size: 23px; font-weight: 900; letter-spacing: -.055em;
  white-space: nowrap;
  transition: transform .4s var(--ease-spring);
}
.brand:hover { transform: scale(1.03); }
.brand img { width: 44px; transition: transform .6s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.dot { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 10px 15px;
  font-size: 15px; font-weight: 550;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: color .3s ease;
}
.nav__link::after {
  content: '';
  position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); font-weight: 650; }

.header__cta { display: inline-flex; align-items: center; gap: 12px; }

/* --- Botón hamburguesa --- */
.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block; width: 19px; height: 1.8px;
  background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .25s ease;
}
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* --- Menú móvil --- */
.drawer {
  position: fixed; inset: 0; z-index: 65;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .6s var(--ease-out), visibility .6s;
}
body.menu-open .drawer { transform: translateY(0); visibility: visible; }
.drawer a {
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(30px, 9vw, 44px); font-weight: 800;
  letter-spacing: -.05em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s ease;
}
.drawer a:hover { color: var(--violet-deep); }
body.menu-open .drawer a { opacity: 1; transform: translateY(0); }
body.menu-open .drawer a:nth-child(1) { transition-delay: .12s; }
body.menu-open .drawer a:nth-child(2) { transition-delay: .18s; }
body.menu-open .drawer a:nth-child(3) { transition-delay: .24s; }
body.menu-open .drawer a:nth-child(4) { transition-delay: .30s; }
body.menu-open .drawer a:nth-child(5) { transition-delay: .36s; }
.drawer__foot {
  margin-top: auto; display: grid; gap: 14px;
  opacity: 0; transition: opacity .5s ease .42s;
}
body.menu-open .drawer__foot { opacity: 1; }

/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
}

/* Lienzo del sol (shader), detrás de todo el hero. hero.js lo
   recorta a la altura del mar para que el sol se ponga detrás del agua. */
.hero__canvas {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__canvas canvas { width: 100%; height: 100%; }

.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(44px, 5.8vw, 80px);
  margin: 0;
}
.hero__lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 470px;
  margin-top: 26px;
}

/* --- Escena: isla, mar y cangrejo --- */
.hero__scene { position: relative; }
.hero__scene > svg { width: 100%; height: auto; overflow: visible; }

/* El sol dibujado en SVG solo aparece cuando no hay WebGL */
.scene__sun { opacity: 0; }
.no-webgl .scene__sun { opacity: 1; }

.sea__wave {
  fill: none; stroke: #D9CCF3; stroke-width: 3; stroke-linecap: round;
  animation: seaDrift 7s linear infinite;
}
.sea__wave--2 { opacity: .65; animation-duration: 9s; animation-direction: reverse; }
.sea__wave--3 { opacity: .35; animation-duration: 11s; }
@keyframes seaDrift {
  to { translate: -72px 0; }
}
/* --- Salpicadura del cangrejo al entrar al agua (app.js la posiciona) --- */
.splash__rings, .splash__wake, .splash__foam {
  opacity: 0;
  transition: opacity .45s ease;
}
.splash.is-on .splash__rings,
.splash.is-on .splash__wake,
.splash.is-on .splash__foam { opacity: 1; }

.splash__ring {
  stroke: #B49BEE; stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: splashRing 2.4s cubic-bezier(.2, .6, .35, 1) infinite;
}
.splash__ring:nth-child(2) { animation-delay: .8s; }
.splash__ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes splashRing {
  0%   { scale: .82 .6; opacity: 0; stroke-width: 3; }
  12%  { opacity: .85; }
  100% { scale: 1.75 1.9; opacity: 0; stroke-width: .6; }
}
/* línea de espuma con rizos que se mece apenas, como agua viva */
.splash__crest {
  fill: none; stroke: #B9A2F0; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
}
.splash__crest--hi { stroke: #fff; stroke-width: 1.3; translate: 0 -1.6px; opacity: .9; }
.splash__foam { animation: foamBob 1.6s ease-in-out infinite alternate; }
@keyframes foamBob {
  from { translate: -2px 0; }
  to   { translate: 2px 1px; }
}

.splash__drop { fill: #B79CF0; }
.splash__drop.is-light { fill: #DCCCFA; }

.palm__leaves {
  transform-box: view-box; transform-origin: 84px 212px;
  animation: palmSway 6s ease-in-out infinite;
}
@keyframes palmSway {
  0%, 100% { rotate: -2deg; }
  50%      { rotate: 3deg; }
}

/* --- Cangrejo (coordenadas propias: viewBox 300 x 180) --- */
.crab { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.crab__lean, .crab__bob, .crab__leg,
.crab__claw, .crab__jaw, .crab__sparks, .crab__blink { transform-box: view-box; }

/* --lean lo pone JS según dónde está el cursor */
.crab__lean { transform-origin: 130px 192px; rotate: var(--lean, 0deg); }
.crab.is-hop .crab__lean { animation: crabHop .5s var(--ease-out); }
@keyframes crabHop {
  40% { translate: 0 -16px; }
}

/* Caminata: la activa JS mientras el cangrejo se desplaza con el scroll */
.crab.is-walking .crab__bob { animation: crabBob .16s ease-in-out infinite alternate; }
@keyframes crabBob {
  to { translate: 0 -3px; }
}
.crab.is-walking .crab__leg { animation: legStep .16s ease-in-out infinite alternate; }
.crab.is-walking .crab__leg:nth-child(even) { animation-delay: -.16s; }
@keyframes legStep {
  from { rotate: -9deg; translate: 0 -1.5px; }
  to   { rotate: 9deg;  translate: 0 0; }
}
.crab__claw--l { transform-origin: 40px 150px; animation: clawWave 5s ease-in-out infinite; }
.crab__claw--r { transform-origin: 228px 150px; animation: clawWave 5s ease-in-out infinite -2.5s; }
@keyframes clawWave {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-3deg); }
}
.crab__claw--l .crab__jaw { transform-origin: 53px 86px; }
.crab__claw--r .crab__jaw { transform-origin: 223.5px 97.8px; }
.crab__jaw {
  transform: rotate(var(--open, 0deg));
  transition: transform .3s var(--ease-spring);
}
.crab.is-alert { --open: -12deg; }
.crab__claw.is-snap .crab__jaw { animation: jawSnap .42s var(--ease-out); }
@keyframes jawSnap {
  0%   { transform: rotate(-16deg); }
  35%  { transform: rotate(30deg); }
  65%  { transform: rotate(-4deg); }
  100% { transform: rotate(var(--open, 0deg)); }
}

.crab__blink { transform-origin: 140px 112px; transition: transform .09s ease; }
.crab__blink.is-shut { transform: scaleY(.12); }

.crab__sparks { transform-origin: 232px 62px; }
.crab.is-pop .crab__sparks { animation: sparkPop .5s var(--ease-spring); }
@keyframes sparkPop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); }
}

/* ==========================================================================
   09. SERVICIOS
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}

.service {
  padding: 34px 30px 36px;
  overflow: hidden;
  transform-style: preserve-3d;
}
.service::before {
  /* resplandor que sigue al cursor (variables --mx/--my desde JS) */
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(236, 72, 153, .10), rgba(139, 92, 246, .06) 38%, transparent 62%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.service:hover {
  transform: translateY(-6px);
  border-color: #DFD4F0;
  box-shadow: var(--sh-lg);
}
.service:hover::before { opacity: 1; }

.service::after {
  /* filete de marca arriba de la tarjeta, se dibuja al pasar el cursor */
  content: '';
  position: absolute; left: 30px; right: 30px; top: 0;
  height: 3px; border-radius: 0 0 3px 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.service:hover::after { transform: scaleX(1); }

/* número: una línea fina lo prolonga hacia la derecha */
.service__num {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Inter Display', sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  transition: color .4s ease;
}
.service__num::after {
  content: ''; flex: 1; height: 1px;
  background: var(--line);
}
.service:hover .service__num { color: var(--violet-deep); }

/* ícono y título lado a lado, sin recuadro */
.service__title {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 22px;
}
.service__icon {
  flex: none;
  margin-top: 1px;
  color: var(--violet-deep);
  transition: transform .55s var(--ease-spring), color .4s ease;
}
.service__icon svg { display: block; width: 26px; height: 26px; }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); color: var(--pink); }

.service h3 { font-size: 21px; letter-spacing: -.03em; line-height: 1.2; }
.service p {
  color: var(--muted); font-size: 15.5px; line-height: 1.68;
  margin-top: 14px;
}
.service__tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 20px;
}
.service__tags span {
  font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--lila); color: var(--violet-deep);
  border: 1px solid #E8E0F7;
}

/* ==========================================================================
   10. PROCESO
   ========================================================================== */
.process__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.process__sticky { position: sticky; top: calc(var(--header-h) + 40px); }

.steps { position: relative; display: grid; gap: 14px; }

/* Riel: línea de fondo + relleno con degradado que avanza con el scroll.
   El riel pasa por el centro de los marcadores (52px de ancho → 26px). */
.steps::before {
  content: '';
  position: absolute; left: 25px;
  top: var(--rail-top, 40px); height: var(--rail-h, calc(100% - 80px));
  width: 2px; border-radius: 2px;
  background: var(--lila-deep);
}
.steps__fill {
  position: absolute; left: 25px; top: 40px;
  width: 2px; height: 0;
  background: linear-gradient(180deg, #FF6B00, #EC4899 60%, #8B5CF6);
  border-radius: 2px;
  transition: height .35s var(--ease-out);
}
/* punta luminosa del relleno */
.steps__fill::after {
  content: '';
  position: absolute; left: 50%; bottom: -5px;
  width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%;
  background: #EC4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, .16), 0 0 18px 2px rgba(236, 72, 153, .45);
  opacity: 0; transition: opacity .3s ease;
}
.steps__fill.has-head::after { opacity: 1; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
}

/* --- Marcador numerado ---
   Sin bordes: el anillo es una sombra interior y el degradado vive en una
   capa propia (::before) que aparece con opacidad. Así el contorno y el
   relleno siempre calzan, sin costuras ni bordes de distinto color. */
.step__bullet {
  position: relative; z-index: 2;
  width: 52px; height: 52px;
  margin-top: 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 6px var(--lila);
  transition: transform .6s var(--ease-spring), box-shadow .5s ease;
}
.step__bullet::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #FF6B00 0%, #EC4899 60%, #8B5CF6 100%);
  opacity: 0;
  transition: opacity .5s ease;
}
/* halo que late en el paso actual */
.step__bullet::after {
  content: '';
  position: absolute; inset: -7px;
  border-radius: inherit;
  box-shadow: 0 0 0 1.5px rgba(236, 72, 153, .35);
  opacity: 0; scale: .85;
  transition: opacity .4s ease, scale .5s var(--ease-out);
}
.step__bullet > span {
  position: relative;
  font-family: 'Inter Display', sans-serif;
  font-weight: 800; font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: var(--faint);
  transition: color .4s ease;
}
.step.is-active .step__bullet {
  box-shadow: inset 0 0 0 1.5px transparent, 0 0 0 6px var(--lila), 0 12px 26px -10px rgba(236, 72, 153, .55);
}
.step.is-active .step__bullet::before { opacity: 1; }
.step.is-active .step__bullet > span { color: #fff; }
.step.is-current .step__bullet { transform: scale(1.06); }
.step.is-current .step__bullet::after {
  opacity: 1; scale: 1;
  animation: stepPulse 2.2s ease-out infinite;
}
@keyframes stepPulse {
  0%   { box-shadow: 0 0 0 1.5px rgba(236, 72, 153, .38); }
  70%  { box-shadow: 0 0 0 9px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 9px rgba(236, 72, 153, 0); }
}

/* --- Tarjeta del paso --- */
.step__card {
  padding: 22px 24px 22px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease, translate .6s var(--ease-out);
}
.step.is-active .step__card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--sh-md);
}
.step.is-current .step__card { translate: 4px 0; }

.step__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.step h3 {
  font-size: 21px; letter-spacing: -.03em;
  color: #8C7FA0;
  transition: color .4s ease;
}
.step.is-active h3 { color: var(--ink); }

.step__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #B3A5C6;
  transition: color .4s ease, background .4s ease, box-shadow .4s ease, transform .6s var(--ease-spring);
}
.step__icon svg { width: 20px; height: 20px; }
.step.is-active .step__icon {
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px #F0E9F8;
  color: var(--violet-deep);
}
.step.is-current .step__icon { transform: rotate(-6deg) scale(1.05); }

.step p {
  color: var(--muted); font-size: 15.5px; line-height: 1.65;
  margin-top: 10px;
  max-width: 460px;
}

.step__chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.step__chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  background: var(--lila);
  color: var(--violet-deep);
  box-shadow: inset 0 0 0 1px var(--lila-deep);
}
.step__chips li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
}

/* ==========================================================================
   11. PLANES
   ========================================================================== */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan {
  display: flex; flex-direction: column;
  padding: 34px 30px 34px;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

/* Fondo oscuro con borde degradado: dos capas de background, una recortada
   al padding-box (el relleno) y otra al border-box (el borde). */
.plan--featured {
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    var(--grad) border-box;
  background-color: var(--ink);   /* mismo fondo, declarado explícito */
  border: 2px solid transparent;
  color: #fff;
  box-shadow: var(--sh-lg);
}

.plan__badge {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 7px 15px; border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: var(--sh-glow);
}

.plan__name {
  font-family: 'Inter Display', sans-serif;
  font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-deep);
}
.plan--featured .plan__name { color: #D6B9FF; }

.plan__desc {
  color: var(--muted); font-size: 14.5px;
  margin-top: 10px; min-height: 44px;
}
.plan--featured .plan__desc { color: #BFB0D1; }

.plan__price {
  display: flex; align-items: baseline; gap: 7px;
  margin: 24px 0 4px;
}
.plan__price small { font-size: 14px; color: var(--muted); font-weight: 550; }
.plan--featured .plan__price small { color: #BFB0D1; }
.plan__price b {
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(34px, 4vw, 44px); font-weight: 900;
  letter-spacing: -.055em;
}
.plan__note { font-size: 12.5px; color: var(--muted); }
.plan--featured .plan__note { color: #BFB0D1; }

.plan__sep {
  height: 1px; background: var(--line);
  margin: 26px 0 22px;
}
.plan--featured .plan__sep { background: rgba(255,255,255,.14); }

.plan__features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 13px;
  font-size: 15px;
  flex: 1;
}
.plan__features li {
  display: grid; grid-template-columns: 21px 1fr;
  gap: 11px; align-items: start;
  color: var(--ink-soft);
  line-height: 1.5;
}
.plan--featured .plan__features li { color: #E6DEF0; }
.plan__features svg {
  width: 21px; height: 21px; margin-top: 1px;
  color: var(--orange);
}
.plan--featured .plan__features svg { color: var(--orange-soft); }
.plan__features li.is-off { color: var(--faint); }
.plan--featured .plan__features li.is-off { color: #9D8FB2; }
.plan__features li.is-off svg { color: #CFC5DD; }

.plan .btn { margin-top: 28px; }
.plan--featured .btn--ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.plan--featured .btn--ghost:hover {
  background: #fff; color: var(--ink);
}

.plans__foot {
  margin-top: 30px; text-align: center;
  font-size: 14.5px; color: var(--muted);
}
.plans__foot a { color: var(--violet-deep); font-weight: 600; border-bottom: 1px solid #D9C9F5; }

/* ==========================================================================
   12. NOSOTROS / MÉTRICAS
   ========================================================================== */
.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
}
.about__list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 13px;
  align-items: start;
  color: var(--ink-soft); font-size: 16px;
}
.about__list svg { width: 24px; height: 24px; color: var(--pink); margin-top: 1px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.stat {
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 900;
  letter-spacing: -.05em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span {
  display: block; margin-top: 4px;
  font-size: 13.5px; color: var(--muted); line-height: 1.45;
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none; border: 0;
  text-align: left; cursor: pointer;
  font-family: 'Inter Display', sans-serif;
  font-size: clamp(17px, 2vw, 21px); font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  transition: color .3s ease;
}
.faq__q:hover { color: var(--violet-deep); }
.faq__icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: all .45s var(--ease-out);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .45s var(--ease-out), background-color .3s ease;
}
.faq__icon::before { width: 13px; height: 1.8px; }
.faq__icon::after  { width: 1.8px; height: 13px; }
.faq__item.is-open .faq__icon {
  background: var(--grad); border-color: transparent;
  transform: rotate(180deg);
}
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }

.faq__a {
  overflow: hidden;
  height: 0;
  transition: height .5s var(--ease-out);
}
.faq__a p {
  color: var(--muted);
  font-size: 16px;
  padding: 0 60px 28px 4px;
  max-width: 660px;
}

/* ==========================================================================
   14. CTA FINAL
   ========================================================================== */
.cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 7vw, 86px) clamp(28px, 6vw, 80px);
  text-align: center;
  isolation: isolate;
}
.cta__panel::before {
  content: '';
  position: absolute; z-index: -1;
  width: 150%; aspect-ratio: 1;
  left: 50%; top: 115%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,107,0,.5), rgba(236,72,153,.35) 40%, rgba(139,92,246,0) 68%);
  filter: blur(14px);
}
.cta__panel::after {
  content: '';
  position: absolute; z-index: -1; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
}
.cta__panel h2 {
  font-size: clamp(32px, 5vw, 60px);
  margin: 20px auto 0;
  max-width: 14ch;
}
.cta__panel p {
  color: #C3B6D3;
  margin: 20px auto 0;
  max-width: 50ch;
  font-size: clamp(16px, 1.5vw, 18.5px);
}
.cta__panel .eyebrow { color: var(--orange-soft); }
.cta__panel .btn-row { justify-content: center; }

/* ==========================================================================
   15. CONTACTO
   ========================================================================== */
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}

.contact__channels {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; gap: 12px;
}
.contact__channels a {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s ease;
}
.contact__channels a:hover {
  transform: translateX(5px);
  border-color: #DDD1F2;
  box-shadow: var(--sh-md);
}
.contact__channels i {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad-soft);
}
.contact__channels svg { width: 20px; height: 20px; color: var(--violet-deep); }
.contact__channels b { display: block; font-size: 15px; font-weight: 650; }
.contact__channels span { display: block; font-size: 13.5px; color: var(--muted); }

.form {
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #FCFBFE;
  font-size: 15px;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.form__foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
  margin-top: 22px;
}
.form__note { font-size: 12.5px; color: var(--muted); max-width: 44ch; }

.form__status {
  display: none;
  margin-top: 16px; padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 550;
}
.form__status.is-visible { display: block; }
.form__status.is-info  { background: #F3EEFC; color: var(--violet-deep); border: 1px solid #E5D9F9; }
.form__status.is-ok    { background: #ECFDF3; color: #15803D; border: 1px solid #C8F0D8; }
.form__status.is-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FBD5D5; }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  background: var(--surface);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 42px;
}
.footer__about {
  color: var(--muted); font-size: 15px;
  margin-top: 18px; max-width: 38ch;
}
.footer__col h4 {
  font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
  font-family: 'Inter Display', sans-serif;
}
.footer__col ul {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 11px;
}
.footer__col a {
  font-size: 15px; color: var(--ink-soft);
  transition: color .3s ease, padding-left .3s var(--ease-out);
}
.footer__col a:hover { color: var(--violet-deep); padding-left: 5px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-size: 13px; color: var(--muted);
}
.footer__bottom b { color: var(--ink); font-weight: 650; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  border: 0; cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: all .45s var(--ease-out);
  box-shadow: var(--sh-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--violet-deep); transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; }

/* ==========================================================================
   17. REVEAL AL HACER SCROLL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.95); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Título que aparece palabra por palabra */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* deja aire para las colas de la "g" y la "j" antes de recortar */
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.split-word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.is-in .split-word > span,
.hero.is-in .split-word > span { transform: translateY(0); }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .process__layout { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --gutter: 20px; --header-h: 72px; }

  .nav, .header__cta .btn { display: none; }
  .burger { display: grid; }

  .hero {
    min-height: auto;
    flex-direction: column; align-items: stretch;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 0;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__lead { max-width: none; }
  .hero__scene { width: min(100%, 520px); margin-inline: auto; }

  .about__layout { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .btn { width: 100%; }
  .btn-row { gap: 11px; }
  .header__cta .btn { width: auto; }
  .faq__a p { padding-right: 10px; }
  .to-top { right: 14px; bottom: 14px; }

  /* Proceso: marcadores más chicos y tarjetas más compactas */
  .step { grid-template-columns: 40px 1fr; gap: 12px; }
  .step__bullet { width: 40px; height: 40px; margin-top: 16px; }
  .step__bullet > span { font-size: 13px; }
  .steps::before, .steps__fill { left: 19px; }
  .step__card { padding: 18px 18px 20px; }
  .step.is-current .step__card { translate: 0 0; }
  .step__icon { width: 36px; height: 36px; }
  .step h3 { font-size: 19px; }
}

@media (max-width: 380px) {
  .brand { font-size: 19px; }
  .brand img { width: 36px; }
}

/* ==========================================================================
   19. ACCESIBILIDAD / MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split-word > span { transform: none !important; }
}

/* Impresión */
@media print {
  .header, .drawer, .to-top, .hero__canvas, .hero__scene { display: none !important; }
  body { background: #fff; }
}
