/* ==========================================================================
   3DNaat — Sistema de diseño premium
   Neutros cálidos + gradiente de marca (frío → cálido) sobre anclas oscuras
   ========================================================================== */
:root {
  /* --- Neutros cálidos --- */
  --bg: #f8f6f3;
  --bg-alt: #f1ece6;
  --surface: #fffefc;
  --surface-2: #faf7f3;
  --border: #e8e1d8;
  --border-soft: #2a222c14;

  --ink: #17141b;
  --ink-2: #1f1b25;
  --ink-3: #262130;
  --ink-border: #ffffff1a;

  --graphite: #221e28;
  --text: #322c38;
  --text-dim: #625a68;
  --text-faint: #6f6676;   /* ≥4.5:1 sobre --bg y --bg-alt, legible en textos pequeños */

  /* --- Marca --- */
  --cyan: #35c5f0;
  --blue: #3a63e8;
  --violet: #7b3ce0;
  --magenta: #e0299e;
  /* --- Acentos cálidos --- */
  --coral: #ff6a55;
  --amber: #f9a03f;
  --sand: #f6e3cd;

  /* Colores con significado. Las variantes "-text" existen porque los tonos
     de marca puros no alcanzan 4.5:1 como texto en uno de los dos temas. */
  --ok: #17808d;
  --warn: #c08640;
  --bad: #b34d38;
  --violet-text: #7b3ce0;
  --coral-text: #d0402c;
  --blue-text: #3a63e8;

  --wa: #1fa855;
  --wa-dark: #17924a;

  --grad-brand: linear-gradient(115deg, var(--cyan) 0%, var(--blue) 32%, var(--violet) 62%, var(--magenta) 100%);
  --grad-full: linear-gradient(115deg, var(--cyan) 0%, var(--blue) 24%, var(--violet) 48%, var(--magenta) 74%, var(--coral) 100%);
  --grad-warm: linear-gradient(115deg, var(--magenta) 0%, var(--coral) 55%, var(--amber) 100%);
  --grad-brand-soft: linear-gradient(115deg, #35c5f01a 0%, #3a63e81a 34%, #7b3ce016 64%, #ff6a5518 100%);
  --grad-warm-soft: linear-gradient(115deg, #e0299e14 0%, #ff6a5514 55%, #f9a03f18 100%);

  --ring-track: #2a222c12;
  --header-scrolled-bg: #f8f6f3e8;
  --mobile-nav-bg: #fffefcfa;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-1: 0 1px 2px #17141b0d;
  --shadow-2: 0 18px 44px -22px #17141b33;
  --shadow-3: 0 34px 80px -30px #17141b3d;
  --shadow-card: 0 1px 2px #17141b0a, 0 1px 0 #17141b06;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1180px;

  /* Ritmo vertical fluido */
  --section-y: clamp(64px, 8vw, 108px);
}

:root[data-theme="dark"] {
  --bg: #141118;
  --bg-alt: #191520;
  --surface: #1e1a26;
  --surface-2: #241f2d;
  --border: #ffffff1a;
  --border-soft: #ffffff12;

  --graphite: #f5f2f0;
  --text: #ece8ea;
  --text-dim: #bab2c0;
  --text-faint: #8d859a;

  --ok: #3fc0cd;
  --bad: #e8806a;
  --violet-text: #b48cff;
  --coral-text: #ff8a75;
  --blue-text: #8aa5ff;

  --ring-track: #ffffff1a;
  --header-scrolled-bg: #141118e8;
  --mobile-nav-bg: #141118fa;

  --shadow-1: 0 1px 2px #00000038;
  --shadow-2: 0 18px 44px -22px #00000070;
  --shadow-3: 0 34px 80px -30px #00000085;
  --shadow-card: 0 1px 2px #00000026, 0 1px 0 #ffffff08;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100vh; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.14;
  margin: 0 0 .5em;
  letter-spacing: -0.022em;
  color: var(--graphite);
  text-wrap: balance;
}

p { margin: 0 0 1em; color: var(--text-dim); text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: #7b3ce033; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 28px);
}

.grad-text {
  background: var(--grad-full);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 14s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 18px;
  padding: 6px 15px 6px 12px;
  border-radius: 999px;
  background: var(--grad-brand-soft), var(--surface);
  border: 1px solid var(--border);
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-full);
  box-shadow: 0 0 10px #3a63e8aa;
  animation: eyebrowPulse 2.6s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .65; }
}
.dark-section .eyebrow {
  color: #dbe6ff;
  background: #ffffff0e;
  border-color: var(--ink-border);
  backdrop-filter: blur(8px);
}

section { position: relative; padding: var(--section-y) 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 660px; margin: 0 0 clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.section-head p { font-size: clamp(15.5px, 1.6vw, 17.5px); max-width: 56ch; }
.section-head.center p { margin-inline: auto; }

/* ==========================================================================
   Pantalla de carga
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), visibility .9s;
}
.preloader::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 42%, #3a63e83a, transparent 68%),
    radial-gradient(ellipse 40% 40% at 72% 74%, #ff6a5522, transparent 68%),
    linear-gradient(#9aa1af12 1px, transparent 1px),
    linear-gradient(90deg, #9aa1af12 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, black 30%, transparent 90%);
}
.preloader.done {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}
/* Sin JS no hay quien la cierre: no se muestra */
html:not(.js) .preloader { display: none; }
.pre-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
}
.pre-mark {
  position: relative;
  width: 132px; height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.pre-mark img {
  width: 74px;
  height: auto;
  animation: preLogo 2.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px #3a63e866);
}
@keyframes preLogo {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.05); }
}
.pre-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #ffffff12;
}
.pre-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--magenta);
  animation: preSpin 1.5s linear infinite;
}
.pre-ring.two { inset: 17px; opacity: .6; }
.pre-ring.two::after {
  animation-duration: 2.6s;
  animation-direction: reverse;
  border-top-color: var(--coral);
  border-right-color: var(--violet);
}
@keyframes preSpin { to { transform: rotate(360deg); } }

.pre-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  margin: 0 0 4px;
}
.pre-sub {
  font-size: 13.5px;
  color: #a49bb0;
  letter-spacing: .04em;
  margin: 0 0 24px;
}
.pre-bar {
  width: min(260px, 62vw);
  height: 3px;
  border-radius: 999px;
  background: #ffffff14;
  overflow: hidden;
}
.pre-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--grad-full);
  transition: width .35s var(--ease-out);
}
.pre-pct {
  margin-top: 13px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #7f7690;
}

/* ==========================================================================
   Barra de progreso de scroll
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-full);
  z-index: 200;
  will-change: transform;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  --ty: 0px;
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.006em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--mx), calc(var(--my) + var(--ty)), 0);
  transition: transform .35s var(--ease-out), box-shadow .3s var(--ease-out), background .3s var(--ease-out), border-color .3s, color .3s;
}
.btn > * { position: relative; z-index: 2; }
.btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 1;
  background: linear-gradient(105deg, transparent 32%, #ffffff5c 47%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .85s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }

.btn .ripple {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: #ffffff4d;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple .65s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.btn-primary {
  background: var(--wa);
  color: #ffffff;
  box-shadow: 0 12px 26px -12px #1fa85580, inset 0 1px 0 #ffffff33;
}
.btn-primary:hover {
  --ty: -3px;
  background: var(--wa-dark);
  box-shadow: 0 20px 38px -14px #1fa85580, inset 0 1px 0 #ffffff33;
}
.btn-primary:active { --ty: -1px; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover { --ty: -3px; border-color: #2a222c33; box-shadow: var(--shadow-2); }
.btn-ghost::after { background: linear-gradient(105deg, transparent 32%, #2a222c12 47%, transparent 62%); }

.dark-section .btn-ghost {
  background: #ffffff12;
  color: #fff;
  border: 1px solid var(--ink-border);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.dark-section .btn-ghost:hover { background: #ffffff1f; border-color: #ffffff33; }
.dark-section .btn-ghost::after { background: linear-gradient(105deg, transparent 32%, #ffffff2e 47%, transparent 62%); }

.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-lg { padding: 18px 38px; font-size: 16.5px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .wa-icon { animation: waWiggle .6s var(--ease-out); }
@keyframes waWiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  35% { transform: rotate(-12deg) scale(1.12); }
  70% { transform: rotate(8deg) scale(1.06); }
}

/* ==========================================================================
   Header + navegación
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .4s var(--ease-out), background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.scrolled {
  padding: 9px 0;
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px -24px #17141b40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; perspective: 700px; }
.brand-logo {
  height: 54px;
  width: auto;
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out), height .4s var(--ease-out);
  transform-style: preserve-3d;
}
.site-header.scrolled .brand-logo { height: 42px; }
.brand:hover .brand-logo {
  transform: rotateY(18deg) rotateX(-6deg) scale(1.05);
  filter: drop-shadow(0 10px 18px #3a63e855);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  padding: 4px;
  border-radius: 999px;
}
.nav-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #ffffff1c;
  border: 1px solid #ffffff1f;
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
  pointer-events: none;
  z-index: 0;
}
.site-header.scrolled .nav-indicator {
  background: var(--grad-brand-soft), var(--surface);
  border-color: var(--border);
}
.main-nav a {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: #d7d3dd;
  transition: color .25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.site-header.scrolled .main-nav a { color: var(--text-dim); }
.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: color .25s, border-color .25s, transform .3s var(--ease-spring);
}
.icon-btn:hover { color: var(--text); transform: translateY(-2px); border-color: #2a222c30; }
.icon-btn:active { transform: translateY(0) scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }

.lang-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

#themeToggle .icon-sun, #themeToggle .icon-moon {
  position: absolute;
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
#themeToggle .icon-moon { opacity: 0; transform: rotate(-60deg) scale(.5); }
#themeToggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
#themeToggle.is-dark .icon-sun { opacity: 0; transform: rotate(60deg) scale(.5); }
#themeToggle.is-dark .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  position: relative;
  transition: transform .35s var(--ease-out), opacity .25s, width .3s var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; width: 12px; }
.nav-toggle:hover span::after { width: 18px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); width: 18px; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0;
    height: 100dvh;
    width: 100%;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(24px) saturate(140%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 0 clamp(24px, 8vw, 64px);
    clip-path: circle(0% at calc(100% - 44px) 42px);
    transition: clip-path .65s var(--ease-out);
    pointer-events: none;
  }
  .main-nav.open { clip-path: circle(150% at calc(100% - 44px) 42px); pointer-events: auto; }
  .nav-indicator { display: none; }
  .main-nav a {
    padding: 11px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(27px, 7.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--graphite);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .2s;
  }
  .main-nav.open a { opacity: 1; transform: translateY(0); }
  .main-nav.open a:nth-of-type(1) { transition-delay: .12s; }
  .main-nav.open a:nth-of-type(2) { transition-delay: .18s; }
  .main-nav.open a:nth-of-type(3) { transition-delay: .24s; }
  .main-nav.open a:nth-of-type(4) { transition-delay: .30s; }
  .main-nav.open a:nth-of-type(5) { transition-delay: .36s; }
  .main-nav a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    border-radius: 2px;
    background: var(--grad-full);
    transition: width .45s var(--ease-out);
  }
  .main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
  .nav-mobile-foot {
    margin-top: 34px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s var(--ease-out) .44s, transform .5s var(--ease-out) .44s;
  }
  .main-nav.open .nav-mobile-foot { opacity: 1; transform: translateY(0); }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.btn-sm { display: none; }
}
@media (min-width: 901px) {
  .nav-mobile-foot { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero.dark-section {
  padding: clamp(130px, 16vw, 172px) 0 clamp(78px, 9vw, 110px);
  position: relative;
  overflow: clip;
  background: var(--ink);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 20% 22%, #3a63e845, transparent 66%),
    radial-gradient(ellipse 45% 45% at 86% 6%, #e0299e32, transparent 66%),
    radial-gradient(ellipse 42% 46% at 68% 78%, #ff6a5522, transparent 68%),
    radial-gradient(ellipse 40% 40% at 55% 55%, #35c5f01e, transparent 66%),
    linear-gradient(#9aa1af17 1px, transparent 1px),
    linear-gradient(90deg, #9aa1af17 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 74% 80% at 50% 34%, black 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 74% 80% at 50% 34%, black 30%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}
/* Lienzos de partículas y 3D */
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), #ffffff12, transparent 70%);
}
.hero:hover .hero-spotlight { opacity: 1; }

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
}
/* En escritorios angostos los CTA se achican antes de apilarse */
@media (max-width: 1120px) and (min-width: 961px) {
  .hero-ctas .btn-lg { padding: 15px 26px; font-size: 15px; }
}

.hero h1 {
  font-size: clamp(33px, 4.9vw, 55px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: #f7f5f8;
}
/* Revelado cinético palabra por palabra */
.kinetic { display: inline; }
.kinetic .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .06em;
}
.kinetic .word > span {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  opacity: 0;
  transition: transform .9s var(--ease-out), opacity .7s var(--ease-out);
}
.is-ready .kinetic .word > span,
.kinetic.revealed .word > span { transform: translateY(0) rotate(0); opacity: 1; }

.hero-lead {
  font-size: clamp(16.5px, 1.9vw, 19px);
  max-width: 48ch;
  margin-bottom: 32px;
  color: #c2bcc9;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13.5px;
  color: #948da0;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero-meta span:nth-child(2)::before { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.hero-meta span:nth-child(3)::before { background: var(--coral); box-shadow: 0 0 8px var(--coral); }

/* Entrada escalonada del hero (solo con JS activo) */
.js .hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .hero-copy > h1 { transform: none; opacity: 1; }
.is-ready .hero-copy > * { opacity: 1; transform: translateY(0); }
.is-ready .hero-copy > .eyebrow { transition-delay: .05s; }
.is-ready .hero-copy > .hero-lead { transition-delay: .42s; }
.is-ready .hero-copy > .hero-ctas { transition-delay: .52s; }
.is-ready .hero-copy > .hero-meta { transition-delay: .62s; }

.hero-visual { position: relative; perspective: 1300px; }
.js .hero-visual {
  opacity: 0;
  transform: translateY(30px) scale(.96);
  transition: opacity 1s var(--ease-out) .3s, transform 1.1s var(--ease-out) .3s;
}
.is-ready .hero-visual { opacity: 1; transform: translateY(0) scale(1); }

/* Revelado de la línea con gradiente del titular */
.line-reveal {
  display: inline-block;
  padding-bottom: .06em;
}
.js .line-reveal {
  clip-path: inset(0 0 108% 0);
  transform: translateY(20px);
  opacity: 0;
  transition: clip-path .95s var(--ease-out) .34s, transform .95s var(--ease-out) .34s, opacity .6s var(--ease-out) .34s;
}
.is-ready .line-reveal {
  clip-path: inset(-25% -8% -12% 0);
  transform: translateY(0);
  opacity: 1;
}

.phone-mock {
  position: relative;
  z-index: 2;
  margin-inline: auto;
  width: min(292px, 78vw);
  aspect-ratio: 9/17.5;
  border-radius: 34px;
  background: linear-gradient(160deg, #383040, #1c1922);
  border: 1px solid #ffffff1c;
  box-shadow: 0 40px 90px -30px #000000a0, 0 0 0 1px #ffffff0d, inset 0 1px 0 #ffffff1a;
  transform: rotateY(-13deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: phoneFloat 9s ease-in-out infinite;
  padding: 13px;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-13deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(1.5deg) translateY(-10px); }
}
.phone-screen {
  height: 100%;
  border-radius: 22px;
  background: #f6f2ee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-bar {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-bottom: 1px solid #2a222c12;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--graphite);
}
.phone-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-full); }
/* La maqueta del teléfono siempre es clara: colores fijos, no del tema */
.phone-bar .status {
  margin-left: auto;
  color: #17808d;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.phone-bar .status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #17808d;
  animation: eyebrowPulse 2s ease-in-out infinite;
}
.phone-msgs {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
}
.bubble {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 14px;
  opacity: 0;
  animation: bubbleIn 9s var(--ease-out) infinite;
}
.bubble.in {
  background: #ffffff;
  color: var(--graphite);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  animation-delay: .4s;
  box-shadow: var(--shadow-card);
}
.bubble.out {
  background: var(--grad-brand);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  animation-delay: 1.5s;
}
.bubble.in.late { animation-delay: 2.6s; }
.bubble small { display: block; margin-top: 3px; font-size: 9px; opacity: .6; }
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateY(8px) scale(.96); }
  6%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(-4px); }
}
/* Indicador de "escribiendo" */
.typing {
  align-self: flex-end;
  display: flex;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 14px 14px 4px 14px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  opacity: 0;
  animation: typingCycle 9s ease-in-out infinite;
  animation-delay: .9s;
}
.typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes typingCycle {
  0%, 2% { opacity: 0; max-height: 0; }
  4%, 15% { opacity: 1; max-height: 30px; }
  17%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
}

.phone-badge {
  position: absolute;
  z-index: 3;
  bottom: -14px; left: max(-26px, -6vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-3);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: badgeFloat 7s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.phone-badge strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: var(--graphite);
}
.phone-badge .ring { width: 30px; height: 30px; flex-shrink: 0; }

/* Segunda insignia flotante */
.phone-badge.alt {
  bottom: auto;
  top: 8%;
  left: auto;
  right: max(-18px, -4vw);
  animation-delay: 1.6s;
  animation-duration: 8s;
}
.phone-badge.alt .spark {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-warm);
  color: #fff;
  flex-shrink: 0;
}
.phone-badge.alt .spark svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .phone-badge { font-size: 11.5px; padding: 10px 13px; }
  .phone-badge.alt { display: none; }
}

/* ==========================================================================
   Marquesina
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  background: var(--ink);
  border-block: 1px solid #ffffff10;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 14%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #c9c3d2;
  white-space: nowrap;
}
.marquee-item::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-full);
  flex-shrink: 0;
}
.marquee-item:nth-child(even) { color: #7d768a; }

/* ==========================================================================
   Banda de impacto
   ========================================================================== */
.stat-banner {
  padding: clamp(60px, 8vw, 90px) 0 clamp(80px, 10vw, 116px);
  background: var(--ink);
  position: relative;
  overflow: clip;
}
.stat-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 44% 90% at 50% 45%, #7b3ce028, transparent 70%),
    radial-gradient(ellipse 34% 60% at 78% 70%, #ff6a5518, transparent 70%),
    linear-gradient(#9aa1af14 1px, transparent 1px),
    linear-gradient(90deg, #9aa1af14 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 72% 90% at 50% 35%, black 32%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 72% 90% at 50% 35%, black 32%, transparent 95%);
  pointer-events: none;
}
.stat-banner::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 170px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}
.stat-banner .container { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.stat-banner h2 {
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 600;
  color: #f7f5f8;
}
.stat-banner p.sub {
  max-width: 56ch;
  margin-inline: auto;
  font-size: clamp(15px, 1.6vw, 16.5px);
  color: #bdb6c6;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; gap: 10px; } }
.stat-cell {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: #ffffff08;
  border: 1px solid #ffffff12;
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease-out), background .4s, border-color .4s;
}
.stat-cell:hover { transform: translateY(-4px); background: #ffffff0e; border-color: #ffffff22; }
.stat-cell .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-cell .lbl { font-size: 13px; color: #a49dae; line-height: 1.45; }

/* ==========================================================================
   Video demo
   ========================================================================== */
.video-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  cursor: pointer;
  background: #000;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.video-card:hover { transform: translateY(-5px); }
.video-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #00000012 30%, #00000088 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity .4s var(--ease-out);
}
.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  z-index: 1;
}
.video-play {
  position: absolute;
  z-index: 3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: none;
  background: var(--grad-full);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 44px -12px #00000080, 0 0 0 8px #ffffff1f;
  transition: transform .35s var(--ease-spring), opacity .35s var(--ease-out), box-shadow .35s;
  opacity: 1;
}
.video-play::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid #ffffff44;
  animation: playPulse 2.6s ease-out infinite;
}
@keyframes playPulse {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.video-play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-card:hover .video-play { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 22px 54px -12px #00000090, 0 0 0 12px #ffffff1a; }

.video-card.playing { cursor: default; }
.video-card.playing::before { opacity: 0; pointer-events: none; }
.video-card.playing .video-play { opacity: 0; pointer-events: none; }
.video-card.playing video { object-fit: contain; }

@media (max-width: 560px) {
  .video-play { width: 62px; height: 62px; }
  .video-play svg { width: 22px; height: 22px; margin-left: 3px; }
}
@media (max-width: 400px) {
  .video-card { border-radius: var(--radius-md); }
}

/* ==========================================================================
   Comparativa
   ========================================================================== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 38px; }
@media (max-width: 800px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.compare-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.compare-card.good { border-color: #1f9fae38; }
.compare-card.good::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-full);
}
.compare-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.compare-card.bad .tag { background: #c0553f16; color: var(--bad); }
.compare-card.good .tag { background: #1f9fae16; color: var(--ok); }
.compare-card h3 { font-size: clamp(19px, 2.2vw, 23px); margin-bottom: 18px; }
.compare-card ul { display: flex; flex-direction: column; gap: 14px; }
.compare-card li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-dim);
}
.compare-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.compare-card.bad li svg { color: var(--bad); }
.compare-card.good li svg { color: var(--ok); }

.coverage-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 38px; }
@media (max-width: 800px) { .coverage-wrap { grid-template-columns: 1fr; } }
.coverage-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.coverage-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.coverage-ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.coverage-ring svg { transform: rotate(-90deg); }
.coverage-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.coverage-ring .track { stroke: var(--ring-track); }
.coverage-ring .value { stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 1.6s var(--ease-out); }
.coverage-ring.bad .value { stroke: var(--warn); }
.coverage-ring.good .value { stroke: url(#ringGrad); }
.coverage-ring .num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 700;
  color: var(--graphite);
}
.coverage-info h4 { font-size: 16px; margin-bottom: 5px; }
.coverage-info p { font-size: 13.5px; margin: 0; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.compare-table tbody tr { transition: background .25s; }
.compare-table tbody tr:hover { background: var(--surface-2); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-faint);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table td.no { color: var(--text-faint); }
.compare-table td.yes { color: var(--ok); font-weight: 600; }
.compare-table .icon-x, .compare-table .icon-check {
  width: 16px; height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 7px;
}
.compare-table .icon-x { color: var(--bad); }
.compare-table .icon-check { color: var(--ok); }
.compare-foot { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 18px; }

.metric-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 34px;
  border-radius: var(--radius-lg);
  border: 1px solid #3a63e82a;
  background: var(--grad-brand-soft), var(--surface);
  overflow: hidden;
}
.metric-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 50%, #ff6a5514, transparent 60%);
}
.metric-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5vw, 50px);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
}
.metric-text { position: relative; }
.metric-text strong { display: block; font-size: 15.5px; color: var(--graphite); margin-bottom: 3px; }
.metric-text span { font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 560px) {
  .metric-strip { flex-direction: column; text-align: center; gap: 10px; padding: 26px; }
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  padding: clamp(36px, 5vw, 54px) 0;
  border-top: 1px solid var(--border);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse .feature-visual { order: 2; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
  .feature-row.reverse .feature-visual { order: 0; }
}
.feature-index {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: .14em;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid;
  border-image: var(--grad-full) 1;
}
.feature-row h3 { font-size: clamp(22px, 2.9vw, 31px); }
.feature-row p { font-size: clamp(15px, 1.6vw, 16.5px); }
.feature-points { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.feature-points li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  color: var(--text-dim);
  align-items: flex-start;
}
.feature-points svg { width: 17px; height: 17px; color: var(--blue-text); flex-shrink: 0; margin-top: 3px; }

.feature-visual { perspective: 1000px; }
.tilt-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--grad-brand-soft), var(--surface);
  aspect-ratio: 4/3.1;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out), box-shadow .4s var(--ease-out);
  box-shadow: var(--shadow-card);
}
.tilt-panel:hover { box-shadow: var(--shadow-2); }
.tilt-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#2a222c0d 1px, transparent 1px),
    linear-gradient(90deg, #2a222c0d 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
}
.tilt-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--px, 50%) var(--py, 50%), #ffffff40, transparent 65%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.tilt-panel:hover::after { opacity: 1; }
.panel-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.panel-glyph svg {
  width: 48%; height: 48%;
  transform: translateZ(50px);
  filter: drop-shadow(0 18px 26px #17141b26);
}

/* ==========================================================================
   Proceso
   ========================================================================== */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; gap: 26px; } }
.timeline::before {
  content: '';
  position: absolute;
  top: 26px; left: 8%; right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 12%, var(--violet) 50%, var(--coral) 88%, transparent);
  opacity: .28;
}
@media (max-width: 800px) { .timeline::before { display: none; } }
.timeline-step { position: relative; }
.timeline-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 18px;
  background: var(--surface);
  color: var(--graphite);
  border: 1px solid var(--border);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  transition: transform .45s var(--ease-spring), box-shadow .4s;
}
.timeline-step:hover .timeline-num { transform: translateY(-5px) scale(1.06); box-shadow: var(--shadow-2); }
.timeline-num::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad-full);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .6;
  transition: opacity .4s;
}
.timeline-step:hover .timeline-num::before { opacity: 1; }
.timeline-step h4 { font-size: 18px; margin-bottom: 8px; }
.timeline-step p { font-size: 14.5px; }

/* ==========================================================================
   Precios
   ========================================================================== */
.pricing-design-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto clamp(30px, 4vw, 40px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--grad-warm-soft), var(--surface);
  border: 1px solid #ff6a5526;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--graphite);
  width: fit-content;
  box-shadow: var(--shadow-card);
}
.pricing-design-badge svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--coral-text); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 48px);
}
@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

.pricing-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.pricing-card::before {
  content: '';
  position: absolute; top: -30%; right: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, #3a63e80d, transparent 65%);
  pointer-events: none;
}
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--px, 50%) var(--py, 0%), #7b3ce012, transparent 62%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: #7b3ce033; }
.pricing-card:hover::after { opacity: 1; }

.pricing-card.featured {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--blue), 0 26px 62px -22px #3a63e84d;
  z-index: 2;
  transform: translateY(-8px);
}
.pricing-card.featured:hover { transform: translateY(-14px); box-shadow: 0 0 0 2px var(--violet), 0 34px 74px -22px #7b3ce055; }
@media (max-width: 920px) {
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
}
.pricing-card.featured::before { background: radial-gradient(circle, #e0299e18, transparent 65%); }

.pricing-popular {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-full);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 18px -8px #7b3ce0aa;
}

.pricing-top { display: flex; align-items: flex-start; gap: 16px; margin: 12px 0 18px; position: relative; }
.pricing-top .tag {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 999px;
  background: #3a63e814; color: var(--blue-text);
}
.pricing-top .tag-premium { background: var(--grad-warm-soft); color: var(--coral-text); }
.pricing-card.featured .pricing-top .tag { background: #3a63e820; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; position: relative; }
.price-row .amount {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--graphite);
}
.price-row .period { color: var(--text-faint); font-size: 14px; }

.price-sub {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
  position: relative;
  line-height: 1.45;
}

.pricing-highlights {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px; position: relative; flex: 1;
}
.pricing-highlights li {
  display: flex; gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  align-items: flex-start;
}
.pricing-highlights svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }

.btn-plan { width: 100%; margin-top: auto; position: relative; }
.pricing-note { text-align: center; font-size: 13px; color: var(--text-faint); margin-top: 26px; }

.pricing-features-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.pricing-features-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.pricing-features-table-scroll { overflow-x: auto; }
.pricing-features { width: 100%; border-collapse: collapse; min-width: 540px; }
.pricing-features thead th {
  padding: 15px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.pricing-features thead th:first-child { text-align: left; }
.pricing-features thead th.col-featured { color: var(--blue-text); }

.pricing-features tbody tr[data-reveal-row] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), background .25s;
}
.pricing-features tbody tr[data-reveal-row].row-visible { opacity: 1; transform: translateY(0); }
.pricing-features tbody tr:hover { background: var(--surface-2); }

.pricing-features tbody td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
}
.pricing-features tbody tr:last-child td { border-bottom: none; }
.pricing-features tbody td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  padding-left: 24px;
}
.pricing-features .col-featured { background: #3a63e808; }

.pricing-features .pf-yes svg { width: 18px; height: 18px; color: var(--ok); }
.pricing-features .pf-no svg { width: 16px; height: 16px; color: var(--text-faint); opacity: .5; }
.pricing-features .pf-free {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 13px;
  color: var(--ok);
  letter-spacing: .02em;
}
.pricing-features .pf-yes, .pricing-features .pf-no, .pricing-features .pf-free { line-height: 1; }
.pricing-features .pf-yes svg, .pricing-features .pf-no svg { display: inline-block; vertical-align: middle; }

@media (max-width: 560px) {
  .pricing-card { padding: 30px 22px 24px; }
  .pricing-features thead th,
  .pricing-features tbody td { padding: 12px 14px; font-size: 13px; }
}

/* ==========================================================================
   Proyectos — carrusel 3D
   ========================================================================== */
.carousel { position: relative; }
.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 26px 0 30px;
  margin: -26px 0 -8px;
  cursor: grab;
  scroll-padding-inline: 2px;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-viewport.dragging a { pointer-events: none; }
.carousel-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-inline: 2px;
}
.carousel-track > * {
  flex: 0 0 clamp(268px, 30vw, 356px);
  scroll-snap-align: start;
}
@media (max-width: 620px) {
  .carousel-track > * { flex-basis: min(80vw, 320px); }
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.carousel-dots { display: flex; gap: 8px; flex: 1; }
.carousel-dot {
  width: 26px; height: 5px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background .35s var(--ease-out), width .35s var(--ease-out);
}
.carousel-dot.active { width: 44px; background: var(--grad-full); }
.carousel-arrows { display: flex; gap: 9px; }
.carousel-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-spring), background .3s, color .3s, border-color .3s, opacity .3s;
}
.carousel-arrow svg { width: 19px; height: 19px; }
.carousel-arrow:hover { transform: translateY(-3px); border-color: #7b3ce040; color: var(--violet-text); }
.carousel-arrow:active { transform: scale(.93); }
.carousel-arrow[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.carousel-hint {
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 7px;
}
.carousel-hint svg { width: 15px; height: 15px; }
@media (max-width: 620px) { .carousel-arrows { display: none; } }

/* Tarjetas de proyecto */
.tilt-card { perspective: 900px; display: block; }
.tilt-card-inner {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out), box-shadow .4s, border-color .4s;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.tilt-card:hover .tilt-card-inner {
  box-shadow: 0 26px 54px -22px #7b3ce045;
  border-color: #7b3ce03a;
}
.tilt-media { aspect-ratio: 16/11; position: relative; overflow: hidden; background: var(--bg-alt); }
.tilt-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, #17141b70);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.tilt-card:hover .tilt-media::after { opacity: 1; }
.tilt-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.01);
  transition: transform .7s var(--ease-out), filter .7s var(--ease-out);
  filter: saturate(.92);
}
.tilt-card:hover .tilt-media img { transform: scale(1.08); filter: saturate(1.05); }
.tilt-body { padding: 24px; }
.tilt-body .cat {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--violet-text);
  margin-bottom: 9px;
}
.tilt-body h4 { font-size: 19px; margin-bottom: 6px; }
.tilt-body p { font-size: 13.5px; margin: 0; }
.tilt-body .visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--violet-text);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.tilt-body .visit svg { width: 13px; height: 13px; transition: transform .3s var(--ease-out); }
.tilt-card:hover .visit, .tilt-card:focus-visible .visit { opacity: 1; transform: translateX(0); }
.tilt-card:hover .visit svg { transform: translate(2px, -2px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s, box-shadow .35s, background .35s;
}
.faq-item:hover { border-color: #7b3ce02e; }
.faq-item.open { border-color: #7b3ce040; box-shadow: var(--shadow-2); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 21px 24px;
  background: none; border: none; color: var(--graphite);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left; cursor: pointer;
  transition: color .25s;
}
.faq-item.open .faq-q { color: var(--violet-text); }
.faq-q .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
  border-radius: 50%;
  transition: background .35s, transform .45s var(--ease-spring);
}
.faq-item.open .faq-q .plus { transform: rotate(180deg); }
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; background: var(--text-dim); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .3s, background .3s;
}
.faq-q .plus::before { top: 50%; left: 4px; right: 4px; height: 2px; margin-top: -1px; }
.faq-q .plus::after { left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; }
.faq-item.open .plus::before { background: var(--violet); }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.faq-a p { padding: 0 24px 22px; font-size: 15px; margin: 0; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.final-cta { text-align: center; }
.final-cta-box {
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 72px) clamp(24px, 5vw, 40px);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.final-cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 70% at 18% 28%, #3a63e836, transparent 66%),
    radial-gradient(ellipse 40% 60% at 86% 78%, #ff6a5528, transparent 66%),
    radial-gradient(ellipse 34% 50% at 60% 10%, #e0299e22, transparent 68%),
    linear-gradient(#9aa1af14 1px, transparent 1px),
    linear-gradient(90deg, #9aa1af14 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 82% 88% at 50% 40%, black 34%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 82% 88% at 50% 40%, black 34%, transparent 95%);
  pointer-events: none;
}
.final-cta-box > *:not(.fx-canvas) { position: relative; z-index: 2; }
.final-cta h2 {
  font-size: clamp(27px, 4.2vw, 42px);
  max-width: 20ch;
  margin: 0 auto 18px;
  color: #f7f5f8;
}
.final-cta p {
  max-width: 50ch;
  margin-inline: auto;
  font-size: clamp(15.5px, 1.7vw, 17px);
  margin-bottom: 34px;
  color: #c2bcc9;
}
.final-cta-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: #8d859a;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 64px) 0 28px; }
.site-footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-full);
  opacity: .65;
}
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 46px; }
.footer-brand { max-width: 330px; }
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-brand p { max-width: 33ch; font-size: 14px; margin-bottom: 22px; }
.footer-cols { display: flex; gap: clamp(28px, 5vw, 52px); flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.footer-col h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  width: fit-content;
  font-size: 14px;
  color: var(--text-dim);
  padding: 5px 0;
  transition: color .25s, transform .3s var(--ease-out);
}
.footer-col a:hover { color: var(--violet-text); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   Botones flotantes
   ========================================================================== */
.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  height: 56px;
  min-width: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  color: #fff;
  box-shadow: 0 12px 28px -8px #1fa8557a;
  transition: transform .35s var(--ease-spring), background .25s, gap .35s var(--ease-out), padding .35s var(--ease-out);
}
.wa-fab:hover { transform: scale(1.04) translateY(-2px); background: var(--wa-dark); gap: 10px; padding: 0 22px; }
.wa-fab svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-fab .fab-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: max-width .35s var(--ease-out), opacity .3s;
}
.wa-fab:hover .fab-label { max-width: 190px; opacity: 1; }
.wa-fab::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 #1fa85555;
  animation: waPulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 #1fa85545; }
  70% { box-shadow: 0 0 0 14px #1fa85500; }
  100% { box-shadow: 0 0 0 0 #1fa85500; }
}
@media (max-width: 560px) {
  .wa-fab:hover { gap: 0; padding: 0; }
  .wa-fab .fab-label { display: none; }
  .wa-fab { width: 54px; height: 54px; padding: 0; }
}

.to-top {
  position: fixed;
  right: 24px; bottom: 90px;
  z-index: 89;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-spring), color .25s, border-color .25s;
}
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { color: var(--violet-text); border-color: #7b3ce040; transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* Tarjeta "tu proyecto" del carrusel */
.tilt-media.next-project {
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft), var(--surface-2);
}
.tilt-media.next-project::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#2a222c0d 1px, transparent 1px),
    linear-gradient(90deg, #2a222c0d 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
}
.tilt-media.next-project svg {
  width: 48%;
  position: relative;
  transition: transform .55s var(--ease-spring);
}
.tilt-card:hover .next-project svg { transform: scale(1.08) rotate(90deg); }

/* ==========================================================================
   Revelado en scroll
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-stagger].in-view > * { opacity: 1; transform: translateY(0); }
[data-stagger].in-view > *:nth-child(1) { transition-delay: .05s; }
[data-stagger].in-view > *:nth-child(2) { transition-delay: .14s; }
[data-stagger].in-view > *:nth-child(3) { transition-delay: .23s; }
[data-stagger].in-view > *:nth-child(4) { transition-delay: .32s; }
[data-stagger].in-view > *:nth-child(5) { transition-delay: .41s; }
[data-stagger].in-view > *:nth-child(6) { transition-delay: .50s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > *, .hero-copy > *, .hero-visual { opacity: 1 !important; transform: none !important; }
  .kinetic .word > span { opacity: 1 !important; transform: none !important; }
}
