/* ==========================================================================
   ODOO SAFE MCP · Apple Product Page & Glisko Liquid Glass Aesthetic
   - Modo Oscuro Obsidiana Violeta por defecto (#05030d / #0b051d) con Liquid Glass
   - Modo Claro ("Puesta de Sol Lavanda") con transición circular desde/hacia el botón
   - Colores Principales: Violeta Real (#9333ea / #a855f7), Fucsia (#e879f9),
     Índigo Eléctrico (#6366f1), Esmeralda Neón (#00e39f / #10b981) y Ámbar (#ffb50b)
   - Paneles de cristal esmerilado con 1 px de borde translúcido, brillo especular
     superior (--glass-hi), profundidad por blur y sombras ambientales.
   ========================================================================== */

@view-transition {
  navigation: auto;
}

/* ── Tokens por defecto: Modo Oscuro Obsidiana Violeta (Liquid Glass) ──────── */

:root {
  color-scheme: dark light;

  --navy: #0c0520;
  --navy-2: #190b3e;
  --purple: #9333ea;
  --purple-bright: #a855f7;
  --violet-light: #c084fc;
  --fuchsia: #e879f9;
  --indigo: #6366f1;
  --indigo-bright: #818cf8;
  --mint: #00e39f;
  --green: #10b981;
  --deep: #059669;
  --blue: #4f46e5;
  --sky: #818cf8;
  --sun: #ffb50b;
  --coral: #fb7185;
  --rose: #f43f5e;

  /* Compatibilidad con variables de marca existentes */
  --brand-purple: #9333ea;
  --brand-purple-bright: #c084fc;
  --brand-purple-glow: rgba(168, 85, 247, 0.38);
  --brand-indigo: #6366f1;
  --brand-indigo-bright: #818cf8;
  --brand-emerald: #10b981;
  --brand-emerald-bright: #00e39f;
  --brand-amber: #ffb50b;
  --brand-rose: #f43f5e;
  --brand-gold: #ffb50b;

  --page: #05030e;
  --bg: #05030e;
  --bg-elevated: #0b071a;
  --bg-mesh-1: rgba(147, 51, 234, 0.18);
  --bg-mesh-2: rgba(99, 102, 241, 0.15);
  --bg-mesh-3: rgba(0, 227, 159, 0.09);

  --surface: #0a0617;
  --surface-elevated: #120c26;
  --surface-soft: #171030;
  --surface-glass: rgba(16, 10, 34, 0.74);
  --surface-card: rgba(20, 13, 42, 0.72);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glass-strong: rgba(255, 255, 255, 0.18);

  --ink: #ffffff;
  --ink-soft: #cbd5e8;
  --text: #ffffff;
  --text-silver: #e2e8f0;
  --text-soft: #9ca3bf;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Tokens puros Liquid Glass (estilo Glisko) */
  --glass-bg: rgba(255, 255, 255, 0.068);
  --glass-bg-strong: rgba(255, 255, 255, 0.115);
  --glass-line: rgba(255, 255, 255, 0.17);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  --glass-shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
  --glass-blur: blur(22px) saturate(175%);
  --orb-opacity: 0.56;
  --stat-ink: #c084fc;

  --link: #c084fc;
  --link-hover: #e9d5ff;
  --accent: #9333ea;
  --accent-deep: #7e22ce;
  --accent-soft: rgba(168, 85, 247, 0.16);
  --focus: #a855f7;

  /* Sombras volumétricas */
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.82);
  --shadow-glass: var(--glass-hi), var(--glass-shadow);
  --shadow-glow: 0 0 42px rgba(147, 51, 234, 0.32);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    system-ui, sans-serif;
  --font-shout: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Tema Claro ("Puesta de Sol Lavanda") al conmutar el botón ───────────── */

html[data-theme="light"] {
  color-scheme: light;

  --page: #faf8ff;
  --bg: #faf8ff;
  --bg-elevated: #ffffff;
  --bg-mesh-1: rgba(147, 51, 234, 0.11);
  --bg-mesh-2: rgba(99, 102, 241, 0.10);
  --bg-mesh-3: rgba(0, 227, 159, 0.08);

  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-soft: #f2edfc;
  --surface-glass: rgba(255, 255, 255, 0.84);
  --surface-card: rgba(255, 255, 255, 0.88);
  --border-glass: rgba(46, 16, 101, 0.10);
  --border-glass-strong: rgba(126, 34, 206, 0.20);

  --ink: #14082e;
  --ink-soft: #473a66;
  --text: #14082e;
  --text-silver: #271b42;
  --text-soft: #594b78;
  --line: #e4dcf5;
  --line-strong: #cbbbe8;

  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-line: rgba(255, 255, 255, 0.94);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.98), inset 0 -1px 0 rgba(20, 8, 46, 0.05);
  --glass-shadow: 0 24px 60px rgba(88, 28, 135, 0.11);
  --orb-opacity: 0.36;
  --stat-ink: #7e22ce;

  --link: #7e22ce;
  --link-hover: #581c87;
  --accent: #7e22ce;
  --accent-deep: #6b21a8;
  --accent-soft: #f3e8ff;
  --brand-purple-bright: #7e22ce;

  --shadow-sm: 0 6px 20px rgba(20, 8, 46, 0.06);
  --shadow-md: 0 18px 42px rgba(20, 8, 46, 0.10);
  --shadow-lg: 0 28px 68px rgba(20, 8, 46, 0.14);
  --shadow-glass: var(--glass-hi), var(--glass-shadow);
  --shadow-glow: 0 12px 32px rgba(147, 51, 234, 0.18);
}

/* ── View Transitions: Puesta de Sol (Oscuro→Claro) y Absorción (Claro→Oscuro) ── */

html.vt-sunrise::view-transition-old(root),
html.vt-sunrise::view-transition-new(root),
html.vt-absorb::view-transition-old(root),
html.vt-absorb::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.vt-sunrise::view-transition-old(root) { z-index: 1; }
html.vt-sunrise::view-transition-new(root) { z-index: 2; }

html.vt-absorb::view-transition-new(root) { z-index: 1; }
html.vt-absorb::view-transition-old(root) { z-index: 2; }

.theme-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ── Reset y Base Cinematográfica ────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse 65% 42% at 12% 28%, rgba(147, 51, 234, 0.14), transparent),
    radial-gradient(ellipse 55% 42% at 88% 52%, rgba(99, 102, 241, 0.14), transparent),
    radial-gradient(ellipse 50% 36% at 28% 85%, rgba(0, 227, 159, 0.08), transparent);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.home main {
  padding: 0;
}

body.home main > section {
  position: relative;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  transition: all 0.2s var(--ease-out);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--purple-bright), var(--fuchsia), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.08s linear;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.wordmark .i {
  background: linear-gradient(135deg, #e879f9 0%, #a855f7 55%, #00e39f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="light"] .wordmark .i {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 60%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 1. Navbar Flotante estilo Píldora (Glisko Liquid Glass Island) ──────── */

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 12px;
  z-index: 110;
  padding: 0 clamp(10px, 3vw, 18px);
  margin-top: 0;
}

.site-header .wrap {
  max-width: 72rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--border-glass-strong);
  box-shadow: var(--glass-hi), var(--shadow-md);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled .wrap {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 28px rgba(147, 51, 234, 0.22);
  border-color: rgba(192, 132, 252, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, rgba(192, 132, 252, 0.35), rgba(15, 10, 32, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(192, 132, 252, 0.4);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover .brand-logo-icon {
  transform: rotate(-6deg) scale(1.08);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-actions nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-actions nav::-webkit-scrollbar {
  display: none;
}

.nav {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .nav a:hover {
  background: rgba(126, 34, 206, 0.08);
}

.lang-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--glass-bg);
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-glass-strong);
  box-shadow: var(--glass-hi);
  font-size: 11px;
  font-weight: 700;
}

.lang-switcher a {
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border-glass-strong);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-hi);
  color: var(--sun);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--sun);
  transform: scale(1.08) rotate(12deg);
  box-shadow: 0 0 22px rgba(255, 181, 11, 0.45);
}

.theme-toggle.is-pulsing {
  animation: buttonVortexPulse 0.75s var(--ease-spring);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--sun);
  transition: transform 0.55s var(--ease-spring);
}

.nav-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #6366f1 100%);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 22px rgba(147, 51, 234, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--border-glass-strong);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-toggle:hover {
  border-color: var(--purple-bright);
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: clamp(10px, 3vw, 24px);
  right: clamp(10px, 3vw, 24px);
  max-width: 72rem;
  margin: 0 auto;
  background: rgba(14, 9, 30, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  padding: 20px 24px 24px;
  box-shadow: var(--glass-hi), 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(147, 51, 234, 0.25);
  z-index: 89;
}

html[data-theme="light"] .mobile-menu-drawer {
  background: rgba(255, 255, 255, 0.95);
}

.mobile-menu-drawer.is-open {
  display: block;
  z-index: 120;
  animation: slideDownMenu 0.25s var(--ease-out) forwards;
}

.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.guide-card,
.audit-panel,
.form-card {
  min-width: 0;
  max-width: 100%;
}

@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-menu-links a:hover {
  color: var(--brand-purple-bright);
  background: rgba(147, 51, 234, 0.08);
}

/* ── Cristal Líquido y Reflejos Especulares (Sistema Glisko) ────────────── */

.hx-glass,
.hx-glass-panel {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Reflejo especular: una franja de luz que cruza el cristal al pasar el ratón */
.hx-shine {
  position: relative;
  overflow: hidden;
}

.hx-shine::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(0) skewX(-12deg);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

.hx-shine:hover::after {
  transform: translateX(420%) skewX(-12deg);
}

/* Orbes de color difuminados con Parallax */
.hx-hero-bg,
.hx-final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: var(--orb-opacity);
  translate: 0 var(--py, 0px);
  will-change: transform, translate;
}

.hx-orb-purple {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #a855f7 0%, #9333ea 45%, transparent 72%);
  left: -140px;
  top: 6%;
}

.hx-orb-indigo {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #6366f1 0%, #4338ca 50%, transparent 72%);
  right: -180px;
  top: -10%;
}

.hx-orb-emerald {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #00e39f 0%, #10b981 45%, transparent 72%);
  right: 22%;
  bottom: -8%;
  opacity: calc(var(--orb-opacity) * 0.72);
}

/* Utilidades de aparición Scrolltelling (con desenfoque progresivo estilo Glisko) */
html.js .reveal,
html.js .reveal-left,
html.js .reveal-right,
html.js .reveal-zoom {
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.95s var(--ease-out),
    filter 0.8s var(--ease-out);
}

html.js .reveal { transform: translateY(40px); }
html.js .reveal-left { transform: translateX(-70px); }
html.js .reveal-right { transform: translateX(70px); }
html.js .reveal-zoom { transform: scale(0.88); }

html.js .reveal.is-visible,
html.js .reveal-left.is-visible,
html.js .reveal-right.is-visible,
html.js .reveal-zoom.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.d1 { transition-delay: 0.12s !important; }
.d2 { transition-delay: 0.24s !important; }
.d3 { transition-delay: 0.36s !important; }

/* Etiquetas de sección con punto de neón (Liquid Glass Tag) */
.hx-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink);
  font-family: var(--font-shout);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hx-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.hx-tag-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.hx-section-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.hx-section-head h2 {
  margin: 0;
  font-family: var(--font-shout);
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Texto con degradado de marca */
.hx-grad {
  background: linear-gradient(120deg, #e879f9 0%, #c084fc 42%, #00e39f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="light"] .hx-grad {
  background-image: linear-gradient(120deg, #7e22ce 0%, #4f46e5 50%, #059669 100%);
}

/* ── Botones de Cristal Líquido (16 px de radio + cúpula especular ::before) ── */

.hx-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-pop {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-family: var(--font-shout);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s ease,
    background-color 0.25s ease;
}

/* Brillo superior del cristal líquido (Efecto Glisko) */
.btn-pop::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50% 1px;
  border-radius: 15px 15px 40% 40% / 15px 15px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-pop:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-pop-purple {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 48%, #6366f1 100%);
  color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(147, 51, 234, 0.42), inset 0 -2px 6px rgba(59, 7, 100, 0.35);
}

.btn-pop-purple:hover {
  box-shadow: 0 20px 46px rgba(168, 85, 247, 0.58), inset 0 -2px 6px rgba(59, 7, 100, 0.35);
}

.btn-pop-mint {
  background: linear-gradient(135deg, #3cf0b5 0%, var(--mint) 45%, var(--green) 100%);
  color: #06130e !important;
  box-shadow: 0 14px 34px rgba(0, 227, 159, 0.35), inset 0 -2px 6px rgba(0, 127, 87, 0.25);
}

.btn-pop-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 30px rgba(0, 0, 0, 0.22);
}

.btn-pop-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .hx-activate .btn-pop-ghost {
  background: rgba(126, 34, 206, 0.08);
  color: var(--ink) !important;
  border-color: rgba(126, 34, 206, 0.22);
}

.btn-pop-arrow {
  transition: transform 0.3s var(--ease-spring);
}

.btn-pop:hover .btn-pop-arrow {
  transform: translateX(5px);
}

/* ── 1. HERO: Bloque Violeta Noche Profundo con Orbes, Chasis 3D, Chips y Mascota ── */

.hx-hero {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, #3b0764 0%, #1e1b4b 48%, transparent 75%),
    var(--navy);
  color: #ffffff;
  padding: 138px 0 118px;
  --orb-opacity: 0.52;
}

.hx-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 60px);
}

.hx-hero-copy > * {
  animation: hxRise 0.9s var(--ease-out) both;
}

.hx-hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hx-hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.hx-hero-copy > :nth-child(4) { animation-delay: 0.34s; }
.hx-hero-copy > :nth-child(5) { animation-delay: 0.46s; }

.hx-hero-grid > *,
.hx-final-grid > * {
  min-width: 0;
}

.hx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-size: 0.84rem;
  font-weight: 600;
  color: #f3e8ff;
}

.hx-live-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: hxPing 2s ease-out 2;
}

section[id] {
  scroll-margin-top: 92px;
}

.hx-title {
  margin: 0;
  font-weight: 800;
  font-family: var(--font-shout);
  font-size: clamp(2.35rem, 5.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.hx-line {
  display: block;
}

.hx-rotator {
  display: inline-flex;
  vertical-align: bottom;
  height: 1.28em;
  overflow: hidden;
  padding-right: 0.08em;
}

.hx-rotator-track {
  display: flex;
  flex-direction: column;
  animation: hxWords 4.5s cubic-bezier(0.7, 0, 0.2, 1) 0.5s 1 both;
  will-change: transform;
}

.hx-rotator-track > span {
  display: block;
  height: 1.28em;
  line-height: 1.28em;
  background: linear-gradient(120deg, #f472b6 0%, #c084fc 45%, #00e39f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.hx-lede {
  max-width: 36rem;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.75vw, 1.18rem);
  line-height: 1.62;
  color: #d8d0ec;
}

.hx-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f3e8ff;
}

.hx-trust li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hx-trust li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--mint);
  font-weight: 800;
}

/* Escenario 3D del Móvil + Chips de Cristal + Mascota Centinela (Estilo Glisko) */
.hx-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 76px;
  animation: hxZoomIn 1.1s var(--ease-out) 0.2s both;
}

.hx-hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 82%;
  aspect-ratio: 1;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42), rgba(0, 227, 159, 0.22) 55%, transparent 72%);
  filter: blur(34px);
}

.hx-phone-wrap {
  width: min(100%, 356px);
  translate: 0 var(--py, 0px);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease-out);
  z-index: 2;
}

.iphone-chassis {
  position: relative;
  width: 100%;
  border-radius: 48px;
  padding: 11px;
  background: linear-gradient(145deg, #524769 0%, #191426 45%, #2b2240 100%);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 255, 255, 0.26) inset,
    0 0 52px rgba(147, 51, 234, 0.28);
  animation: hxFloat 2.4s ease-in-out 2;
}

.iphone-screen {
  background:
    radial-gradient(circle at 85% 12%, rgba(168, 85, 247, 0.20), transparent 45%),
    radial-gradient(circle at 15% 55%, rgba(0, 227, 159, 0.12), transparent 50%),
    #070510;
  color: #ffffff;
  border-radius: 38px;
  padding: 14px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.75rem;
}

.dynamic-island {
  min-width: 140px;
  height: 26px;
  border-radius: 999px;
  background: #000000;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #cbd5e1;
}

.dynamic-island-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

/* Tarjeta interceptada simulada dentro del iPhone */
.sim-req-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 11px 12px;
  margin-bottom: 10px;
}

.sim-req-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--sun);
  margin-bottom: 4px;
}

.sim-req-body {
  font-size: 0.72rem;
  color: #e2e8f0;
  font-family: Consolas, "SF Mono", monospace;
  line-height: 1.4;
}

/* Tarjeta Slack / Teams simulada dentro del iPhone */
.sim-guard-box {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3.5px solid var(--purple-bright);
  border-radius: 6px 16px 16px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
}

.sim-guard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.sim-guard-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
}

.sim-guard-time {
  font-size: 0.62rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.sim-guard-lines {
  font-size: 0.7rem;
  color: #d8d0ec;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 9px;
}

.sim-guard-ai {
  font-size: 0.68rem;
  color: var(--mint);
  font-weight: 700;
  background: rgba(0, 227, 159, 0.12);
  border: 1px solid rgba(0, 227, 159, 0.28);
  padding: 6px 9px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.sim-btn-row {
  display: flex;
  gap: 8px;
}

.sim-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.71rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease;
}

.sim-btn-app {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sim-btn-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 227, 159, 0.55);
}

.sim-btn-rej {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sim-btn-rej:hover {
  transform: translateY(-2px);
}

.sim-result-msg {
  display: none;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: left;
}

.sim-result-msg.is-approved {
  display: block;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(0, 227, 159, 0.45);
  color: var(--mint);
}

.sim-result-msg.is-rejected {
  display: block;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

.sim-hint {
  font-size: 0.66rem;
  color: #9ca3bf;
  text-align: center;
  margin-top: 9px;
}

/* Chips de Cristal Líquido Flotantes alrededor del iPhone (Exactamente como Glisko) */
.hx-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 20px;
  background: rgba(22, 11, 50, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 22px 50px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  animation: hxFloat 2.4s ease-in-out 2;
  pointer-events: none;
}

.hx-chip small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d8d0ec;
}

.hx-chip strong {
  font-family: var(--font-shout);
  font-size: 1.06rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hx-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hx-chip-drop {
  top: 0;
  left: 8px;
  animation-delay: -1.2s;
}

.hx-chip-drop .hx-chip-icon {
  background: linear-gradient(135deg, #3cf0b5, var(--green));
  color: #041f14;
}

.hx-chip-save {
  top: 0;
  right: 8px;
  animation-delay: -3s;
}

.hx-chip-save .hx-chip-icon {
  background: linear-gradient(135deg, #e879f9, #9333ea);
  color: #ffffff;
}

/* Mascota Centinela asomando en la esquina inferior izquierda del iPhone (como Cesty en Glisko) */
.hx-cesty {
  position: absolute;
  z-index: 4;
  left: -6%;
  bottom: 6%;
  width: clamp(96px, 11vw, 144px);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(168, 85, 247, 0.42));
  animation: hxBob 2.4s ease-in-out 2;
  transform-origin: 50% 100%;
  pointer-events: none;
}

.hx-visual-note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: #b8aed2;
}

.hx-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 44px);
}

.hx-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d8d0ec;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hx-scroll-cue:hover {
  color: #ffffff;
}

.hx-mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
}

.hx-mouse span {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--mint);
  animation: hxWheel 1.6s ease-in-out 3;
}

.hx-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  fill: var(--page);
}

/* ── 2. ECOSISTEMA: Squircle Tiles + Circuito Interactivo de Flujos ────── */

.hx-chains {
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}

.hx-chains-title {
  max-width: 46rem;
  margin: 0 auto 14px;
  font-family: var(--font-shout);
  font-size: clamp(1.7rem, 3.6vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hx-chains-sub {
  max-width: 44rem;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hx-hl {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.32em;
  border-radius: 0.38em;
  background: linear-gradient(135deg, #e879f9, #a855f7 50%, #6366f1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 26px rgba(147, 51, 234, 0.35);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.flow-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto 20px;
}

.flow-mode-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.flow-pill-btn:hover {
  color: var(--ink);
  border-color: var(--purple-bright);
}

.flow-pill-btn.is-active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(99, 102, 241, 0.24));
  border-color: var(--purple-bright);
  color: var(--ink);
  box-shadow: var(--glass-hi), 0 0 26px rgba(147, 51, 234, 0.35);
}

.flow-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-purple { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.dot-emerald { background: #00e39f; box-shadow: 0 0 8px #00e39f; }

.flow-motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.flow-motion-toggle:hover {
  color: var(--ink);
  border-color: var(--purple-bright);
}

.flow-desc-banner {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: 18px;
  padding: 13px 22px;
  max-width: 860px;
  margin: 0 auto 28px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.flow-diagram-board {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: 32px;
  padding: 38px 30px;
  display: grid;
  grid-template-columns: 1fr 70px 1.25fr 70px 1.1fr;
  align-items: center;
  gap: 12px;
}

.flow-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.flow-col-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.flow-nodes-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 240px;
}

/* Squircle Tiles estilo Glisko */
.logo-tile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.logo-squircle-tile {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  box-shadow:
    var(--glass-hi),
    0 0 0 4px rgba(168, 85, 247, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-shout);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}

.logo-tile-item:hover .logo-squircle-tile {
  transform: translateY(-6px) scale(1.06);
  border-color: var(--purple-bright);
  box-shadow:
    var(--glass-hi),
    0 0 0 5px rgba(168, 85, 247, 0.28),
    0 18px 34px rgba(147, 51, 234, 0.28);
}

.logo-tile-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.logo-tile-name::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-bright);
}

/* Conectores SVG Animados */
.flow-connector {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.flow-svg-line {
  width: 100%;
  height: 24px;
}

.flow-track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.flow-pulse {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 24 76;
  animation: flowLaser 1.8s linear infinite;
}

.flow-pulse-ai {
  stroke: #c084fc;
  filter: drop-shadow(0 0 6px #c084fc);
}

.flow-pulse-odoo {
  stroke: #00e39f;
  filter: drop-shadow(0 0 6px #00e39f);
}

@keyframes flowLaser {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.flow-badge-step {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  color: var(--ink-soft);
  margin-top: 6px;
  white-space: nowrap;
}

.flow-col-guard {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flow-approval-card {
  width: 100%;
  max-width: 320px;
  background: var(--glass-bg-strong);
  border: 1px solid rgba(192, 132, 252, 0.38);
  box-shadow: var(--glass-hi), 0 14px 32px rgba(0, 0, 0, 0.28);
  border-radius: 22px;
  padding: 15px 18px;
  transition: all 0.3s ease;
}

.flow-approval-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.flow-badge-live {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sun);
  background: rgba(255, 181, 11, 0.16);
  border: 1px solid rgba(255, 181, 11, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.flow-approval-apps {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
}

.flow-approval-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

.flow-vertical-connector {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 30px;
}

.flow-svg-vert {
  width: 24px;
  height: 30px;
}

.flow-track-vert {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.flow-pulse-vert {
  fill: none;
  stroke: var(--sun);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 36;
  animation: flowLaserVert 1.5s linear infinite;
  filter: drop-shadow(0 0 6px var(--sun));
}

@keyframes flowLaserVert {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}

.flow-core-chassis {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(160deg, rgba(46, 16, 101, 0.88) 0%, rgba(15, 10, 34, 0.96) 100%);
  border: 2px solid var(--purple-bright);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 34px rgba(147, 51, 234, 0.35);
  text-align: center;
  color: #ffffff;
}

.core-shield-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(192, 132, 252, 0.4), rgba(15, 10, 34, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.45);
}

.core-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 5px;
}

.core-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #e9d5ff;
  font-weight: 700;
  margin-bottom: 10px;
}

.core-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(0, 227, 159, 0.14);
  border: 1px solid rgba(0, 227, 159, 0.35);
  padding: 3px 11px;
  border-radius: 999px;
}

.core-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 6px var(--mint);
}

.flow-diagram-board.is-read-mode .flow-approval-card {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.flow-diagram-board.is-read-mode .flow-pulse-vert {
  animation: none;
  stroke: rgba(255, 255, 255, 0.1);
  filter: none;
}

.flow-diagram-board.is-read-mode .flow-pulse-ai {
  stroke: #00e39f;
  filter: drop-shadow(0 0 6px #00e39f);
}

.flow-diagram-board.is-paused .flow-pulse,
.flow-diagram-board.is-paused .flow-pulse-vert,
.flow-diagram-board.is-paused .status-pulse-dot,
.flow-diagram-board.is-paused .core-dot {
  animation-play-state: paused !important;
}

.flow-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.flow-fbadge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  padding: 7px 16px;
  border-radius: 999px;
}

/* ── 3. LA PROMESA CENTRAL: Frase grande y burbujas Liquid Glass flotando ── */

.hx-statement {
  padding: clamp(96px, 13vw, 185px) 0;
  text-align: center;
}

.hx-statement-title {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--font-shout);
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hx-statement-copy {
  max-width: 42rem;
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hx-statement-note {
  display: inline-block;
  margin: 24px 0 0;
  padding: 10px 20px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.hx-statement-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hx-pbubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 8px;
  border-radius: 18px 18px 18px 6px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), 0 14px 34px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  translate: 0 var(--py, 0px);
}

.hx-pb-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #090418;
  font-size: 0.85rem;
  font-weight: 800;
}

.hx-pb-mint { background: var(--mint); }
.hx-pb-purple { background: #d8b4fe; }
.hx-pb-gold { background: var(--sun); }
.hx-pb-blue { background: #a5b4fc; }

.hx-pb-1 { left: 6%; top: 14%; }
.hx-pb-2 { right: 7%; top: 18%; border-radius: 18px 18px 6px 18px; }
.hx-pb-3 { left: 10%; bottom: 14%; }
.hx-pb-4 { right: 6%; bottom: 12%; border-radius: 18px 18px 6px 18px; }

/* ── 4. CIFRAS: Contadores Grandes en Tarjetas Liquid Glass ─────────────── */

.hx-stats {
  padding: clamp(40px, 6vw, 80px) 0;
}

.hx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-stat {
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease;
}

.hx-stat:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.45);
}

.hx-stat strong {
  display: block;
  font-family: var(--font-shout);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #e879f9 0%, #c084fc 50%, #00e39f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--stat-ink);
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .hx-stat strong {
  background: linear-gradient(135deg, #7e22ce 0%, #4f46e5 55%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hx-stat span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ── 5. CÓMO FUNCIONA: Camino que se dibuja y Esferas 3D Brillantes ─────── */

.hx-steps {
  padding: clamp(64px, 9vw, 120px) 0;
}

.hx-steps-wrap {
  position: relative;
}

.hx-steps-path {
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  width: 100%;
  height: 120px;
  fill: none;
  stroke: var(--purple-bright);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.75;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.65));
  transition: stroke-dashoffset 1.8s var(--ease-out) 0.2s;
  pointer-events: none;
}

html:not(.js) .hx-steps-path,
.hx-steps-wrap.is-visible .hx-steps-path {
  stroke-dashoffset: 0;
}

.hx-steps-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-step {
  padding: 30px 28px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.4s var(--ease-spring), border-color 0.25s ease;
}

.hx-step:hover {
  transform: translateY(-8px);
  border-color: rgba(192, 132, 252, 0.45);
}

/* Esferas 3D con brillo especular estilo Glisko (Verde, Ámbar, Violeta/Coral) */
.hx-step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #3cf0b5, var(--green));
  box-shadow: inset 0 -4px 10px rgba(0, 80, 55, 0.35), 0 12px 26px rgba(0, 227, 159, 0.32);
  color: #051e14;
  font-family: var(--font-shout);
  font-weight: 800;
  font-size: 1.65rem;
}

.hx-step:nth-child(2) .hx-step-num {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #ffd66e, var(--sun));
  box-shadow: inset 0 -4px 10px rgba(140, 90, 0, 0.35), 0 12px 26px rgba(255, 181, 11, 0.32);
  color: #261600;
}

.hx-step:nth-child(3) .hx-step-num {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #e879f9, #9333ea);
  box-shadow: inset 0 -4px 10px rgba(59, 7, 100, 0.45), 0 12px 26px rgba(168, 85, 247, 0.38);
  color: #ffffff;
}

.hx-step h3 {
  margin: 22px 0 10px;
  font-family: var(--font-shout);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.hx-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* ── 6. FUNCIONES (Bento Showcase): Bloques Alternos con Mini-Phone y Mascota ── */

.hx-showcase {
  padding: clamp(64px, 9vw, 130px) 0;
}

.hx-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 6vw, 76px) 0;
}

.hx-row > * {
  min-width: 0;
}

.hx-row-rev .hx-row-text {
  order: 2;
}

.hx-row-text h3 {
  margin: 14px 0 16px;
  font-family: var(--font-shout);
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.hx-row-text p {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hx-row-kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: #0b051d;
  font-family: var(--font-shout);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hx-k-purple { background: linear-gradient(135deg, #e879f9, #c084fc); color: #1a0533; }
.hx-k-mint { background: var(--mint); color: #042217; }
.hx-k-gold { background: var(--sun); color: #241600; }
.hx-k-coral { background: #fda4af; color: #3b0718; }

.hx-row-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/* Disco de luz ambiental detrás de cada mini-phone (Estilo Glisko) */
.hx-row-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(420px, 90%);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32), rgba(168, 85, 247, 0.08) 60%, transparent 72%);
}

.hx-row:nth-of-type(2) .hx-row-visual::before {
  background: radial-gradient(circle, rgba(0, 227, 159, 0.28), rgba(0, 227, 159, 0.08) 60%, transparent 72%);
}

.hx-row:nth-of-type(3) .hx-row-visual::before {
  background: radial-gradient(circle, rgba(255, 181, 11, 0.28), rgba(255, 181, 11, 0.08) 60%, transparent 72%);
}

.hx-row:nth-of-type(4) .hx-row-visual::before {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28), rgba(244, 63, 94, 0.08) 60%, transparent 72%);
}

/* Mascota Centinela asomando junto a cada mini-phone (como Cesty en Glisko) */
.hx-row-cesty {
  position: absolute;
  z-index: 3;
  bottom: 2%;
  right: 2%;
  width: clamp(104px, 13.5vw, 156px);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(168, 85, 247, 0.32));
  transform-origin: 50% 100%;
  pointer-events: none;
}

.reveal-zoom.is-visible .hx-row-cesty,
html:not(.js) .hx-row-cesty {
  animation: hxBob 2.4s ease-in-out 0.5s 2;
}

.hx-row-rev .hx-row-cesty {
  right: auto;
  left: 2%;
}

.mini-phone {
  width: min(100%, 286px);
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(145deg, #524769 0%, #181524 45%, #2a233d 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  isolation: isolate;
}

.mini-screen {
  position: relative;
  min-height: 390px;
  padding: 36px 14px 18px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(168, 85, 247, 0.18), transparent 48%),
    #070510;
  color: #ffffff;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 74px;
  height: 18px;
  margin-left: -37px;
  border-radius: 999px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-title {
  margin: 4px 4px 12px;
  font-family: var(--font-shout);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.ms-notif strong,
.ms-notif small {
  display: block;
}

.ms-notif small {
  color: #cbd5e1;
  font-size: 0.7rem;
  margin-top: 2px;
}

.ms-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #0b051d;
  font-weight: 800;
}

.ms-mint { background: var(--mint); }
.ms-purple { background: #d8b4fe; }
.ms-gold { background: var(--sun); }
.ms-blue { background: #a5b4fc; }
.ms-coral { background: #fda4af; }

html.js .reveal-zoom .ms-notif {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-spring);
}

html.js .reveal-zoom.is-visible .ms-notif { opacity: 1; transform: none; }
html.js .reveal-zoom.is-visible .ms-n1 { transition-delay: 0.35s; }
html.js .reveal-zoom.is-visible .ms-n2 { transition-delay: 0.6s; }
html.js .reveal-zoom.is-visible .ms-n3 { transition-delay: 0.85s; }

/* ── 7. PLANES Y PRECIOS (Liquid Glass Pricing Cards) ─────────────────── */

.hx-pricing {
  padding: clamp(64px, 9vw, 110px) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 14px;
}

.price-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  padding: 36px 30px;
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.45);
}

.price-card-hero {
  background: linear-gradient(165deg, rgba(59, 7, 100, 0.78) 0%, rgba(23, 11, 54, 0.92) 100%);
  border: 2px solid var(--purple-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 28px 64px rgba(147, 51, 234, 0.36);
  color: #ffffff;
  transform: translateY(-8px);
}

.price-card-hero:hover {
  transform: translateY(-14px);
}

.price-card-hero.hx-shine {
  overflow: visible;
}

.price-card-hero.hx-shine::after {
  display: none;
}

.badge-rec {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(135deg, #e879f9 0%, #9333ea 50%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 22px rgba(147, 51, 234, 0.5);
  white-space: nowrap;
}

.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.price-head h3 {
  font-family: var(--font-shout);
  font-size: 1.4rem;
  font-weight: 800;
}

.price-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  color: var(--ink);
}

.price-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
  min-height: 44px;
}

.price-amount {
  font-family: var(--font-shout);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-card-hero .price-amount {
  color: #ffffff;
}

.price-amount small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.price-features {
  list-style: none;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.price-btn {
  position: relative;
  overflow: hidden;
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-shout);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 16px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.price-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50% 1px;
  border-radius: 15px 15px 40% 40% / 15px 15px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.price-btn-primary {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 50%, #6366f1 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.45);
}

.price-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(168, 85, 247, 0.6);
}

.price-btn-ghost {
  background: var(--glass-bg-strong);
  color: var(--ink) !important;
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
}

.price-btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--purple-bright);
}

/* ── 8. PORTAL DE ACTIVACIÓN Y AUDITORÍA D1 ──────────────────────────── */

.hx-activate {
  padding: clamp(60px, 8vw, 100px) 0;
}

.activate-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
}

.guide-card,
.form-card,
.audit-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.audit-panel {
  margin-top: 32px;
}

.audit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.tab-switch {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-line);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 20px;
}

html[data-theme="light"] .tab-switch {
  background: rgba(126, 34, 206, 0.06);
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.is-active {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.4);
}

.step-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.84rem;
}

.step-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-field {
  width: 100%;
  background: rgba(8, 5, 20, 0.65);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"] .input-field {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(126, 34, 206, 0.25);
}

.input-field:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ── 9. PREGUNTAS FRECUENTES (Acordeón de Cristal estilo Glisko) ───────── */

.hx-faq {
  padding: clamp(64px, 9vw, 120px) 0;
}

.hx-faq-list,
.faq-grid {
  display: grid;
  gap: 14px;
  max-width: 56rem;
  margin: 0 auto;
}

.hx-faq-item {
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: border-color 0.25s ease;
}

.hx-faq-item:hover {
  border-color: rgba(192, 132, 252, 0.45);
}

.hx-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  border-radius: 22px;
}

.hx-faq-item summary::-webkit-details-marker {
  display: none;
}

.hx-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
  transition: transform 0.3s var(--ease-spring);
}

.hx-faq-item[open] summary::after {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #3cf0b5, var(--green));
  color: #051e14;
}

.hx-faq-item summary h3 {
  margin: 0;
  font-family: var(--font-shout);
  font-size: clamp(1.02rem, 1.9vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hx-faq-item p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ── 10. CTA FINAL: Bloque Violeta Noche con Tarjeta Liquid Glass (Estilo Glisko) ── */

.hx-final {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 20% 100%, #3b0764 0%, #1e1b4b 50%, transparent 75%),
    var(--navy);
  color: #ffffff;
  padding: clamp(80px, 11vw, 140px) 0;
  --orb-opacity: 0.48;
}

.hx-final .hx-orb-purple { left: auto; right: 4%; top: 20%; }
.hx-final .hx-orb-indigo { right: auto; left: -200px; top: 30%; }

.hx-final-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 44px;
}

.hx-final-title {
  margin: 0;
  font-family: var(--font-shout);
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hx-final-lede {
  max-width: 36rem;
  margin: 20px 0 0;
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  color: #d8d0ec;
}

.hx-final-visual {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 26px 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 30px 70px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  color: #ffffff;
  text-align: center;
  max-width: 340px;
  width: 100%;
}

.hx-final-visual span {
  font-size: 0.84rem;
  color: #d8d0ec;
}

/* ── 11. CENTRO LEGAL Y FOOTER ────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.86rem;
  padding: 56px 0 40px;
}

.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.legal-hub-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 22px;
  line-height: 1.6;
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease;
}

.legal-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-bright);
}

.legal-hub-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-shout);
  font-size: 0.98rem;
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link);
}

/* ── Keyframes (Glisko Motion Engine) ─────────────────────────────────── */

@keyframes hxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes hxBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@keyframes hxRise {
  from { opacity: 0; transform: translateY(36px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes hxZoomIn {
  from { opacity: 0; transform: scale(0.9) translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes hxWords {
  0%, 16% { transform: translateY(0); }
  24%, 38% { transform: translateY(-1.28em); }
  46%, 60% { transform: translateY(-2.56em); }
  68%, 82% { transform: translateY(-3.84em); }
  90%, 100% { transform: translateY(-5.12em); }
}

@keyframes hxPing {
  0% { box-shadow: 0 0 0 0 rgba(0, 227, 159, 0.65); }
  100% { box-shadow: 0 0 0 12px rgba(0, 227, 159, 0); }
}

@keyframes hxWheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes buttonVortexPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.26) rotate(-18deg); box-shadow: 0 0 32px rgba(168, 85, 247, 0.8); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Responsive Design & Mobile Optimization ─────────────────────────── */

@media (max-width: 64rem) {
  .hx-hero-grid,
  .hx-final-grid {
    grid-template-columns: 1fr;
  }

  .hx-hero-copy {
    text-align: center;
  }

  .hx-lede,
  .hx-final-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hx-cta-row,
  .hx-trust {
    justify-content: center;
  }

  .hx-final-grid > div:first-child {
    text-align: center;
  }

  .hx-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-hero-visual {
    max-width: 500px;
    width: 100%;
    margin: 12px auto 0;
    padding-top: 0;
  }

  .hx-chip {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .price-card-hero {
    transform: none;
  }

  .activate-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram-board {
    grid-template-columns: 1fr;
    padding: 26px 18px;
    gap: 20px;
  }

  .flow-nodes-stack {
    max-width: 100%;
  }

  .flow-connector {
    transform: rotate(90deg);
    width: 60px;
    height: 40px;
    margin: 8px auto;
  }

  .flow-badge-step {
    transform: rotate(-90deg);
  }
}

@media (max-width: 58rem) {
  .hx-steps-list {
    grid-template-columns: 1fr;
  }

  .hx-steps-path {
    display: none;
  }

  .hx-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hx-row-rev .hx-row-text {
    order: 0;
  }

  .hx-row-text p {
    margin: 0 auto;
  }

  .hx-pb-1 { left: 3%; top: 4%; }
  .hx-pb-2 { right: 3%; top: 8%; }
  .hx-pb-3 { left: 3%; bottom: 5%; }
  .hx-pb-4 { right: 3%; bottom: 2%; }
}

@media (max-width: 40rem) {
  .site-header {
    top: 8px;
    padding: 0 8px;
  }

  .site-header .wrap {
    padding: 5px 8px 5px 10px;
    gap: 4px;
  }

  .brand {
    gap: 6px;
    min-width: 0;
  }

  .brand-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .header-actions {
    gap: 4px;
    min-width: 0;
  }

  .lang-switcher {
    font-size: 0.64rem;
    gap: 1px;
    padding: 2px 3px;
  }

  .lang-switcher a {
    padding: 2px 4px;
  }

  .theme-toggle,
  .mobile-nav-toggle {
    width: 32px;
    height: 32px;
  }

  .nav-cta {
    display: none;
  }

  .hx-hero {
    padding-top: 108px;
    padding-bottom: 88px;
  }

  .hx-chip {
    padding: 7px 11px 7px 7px;
  }

  .hx-chip strong {
    font-size: 0.92rem;
  }

  .hx-chip-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .hx-chip-drop {
    left: 0;
    top: 2%;
  }

  .hx-chip-save {
    right: 0;
    top: 52%;
  }

  .hx-cesty {
    left: -2%;
    bottom: 8%;
    width: 88px;
  }

  .hx-phone-wrap {
    width: min(100%, 315px);
  }

  .hx-pb-2,
  .hx-pb-3 {
    display: none;
  }

  .hx-statement {
    padding: 110px 0;
  }

  .hx-stats-grid {
    grid-template-columns: 1fr;
  }

  .hx-cta-row .btn-pop {
    width: 100%;
  }

  .form-two-col {
    grid-template-columns: 1fr;
  }
}

/* Movimiento reducido: nada se anima y todo se ve en su estado final */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal,
  html.js .reveal-left,
  html.js .reveal-right,
  html.js .reveal-zoom {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
