
/* Clash Display Fontshare Embedded */
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}


/* VITAMETRIC — Design System v2 — Dark Bioluminescent */
:root {
  /* Core dark palette — from Look&Feel images */
  --c-bg:           #020C1B;
  --c-bg-mid:       #041526;
  --c-bg-surface:   #071E33;
  --c-bg-card:      #0A2440;
  --c-bg-card-alt:  #081D37;

  /* Brand colors */
  --c-primary:      #E0F4FF;
  --c-heading:      #FFFFFF;
  --c-text:         rgba(210,235,255,0.82);
  --c-muted:        rgba(160,210,240,0.68); /* 0.6 daba 4.38:1 sobre --c-bg-card, por debajo del mínimo AA */

  /* Accents — electric cyan + bio-green */
  --c-cyan:         #00C8FF;
  --c-cyan-dark:    #0099CC;
  --c-cyan-glow:    rgba(0,200,255,0.25);
  --c-cyan-soft:    rgba(0,200,255,0.08);
  --c-green:        #00FF9D;
  --c-green-dark:   #00CC7A;
  --c-green-glow:   rgba(0,255,157,0.2);
  --c-green-soft:   rgba(0,255,157,0.07);

  /* Legacy aliases for components */
  --c-secondary:       var(--c-cyan);
  --c-secondary-dark:  var(--c-cyan-dark);
  --c-secondary-light: var(--c-cyan-soft);
  --c-accent:          var(--c-green);
  --c-accent-dark:     var(--c-green-dark);

  /* Borders */
  --c-border:       rgba(0,200,255,0.15);
  --c-border-light: rgba(0,200,255,0.07);

  /* Tema — triplete RGB para superficies translúcidas (rgba(var(--c-card-rgb), alpha)) */
  --c-card-rgb:     10,36,64;
  --c-navbar-rgb:   2,12,27;

  /* Máscara orgánica compartida: silueta de blob (no rectángulo) con borde suavizado.
     Usada por cualquier foto real que deba disolverse en la zona en vez de ir recortada. */
  --rizo-blob: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='3.5'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23b)' fill='%23000' d='M154.6,45.8C167.3,63.2,166.9,87.6,159.4,108.6C151.9,129.6,137.3,147.2,118.1,157.8C98.9,168.4,75.1,172,54.9,163.6C34.7,155.2,18.1,134.8,10.2,111.8C2.3,88.8,3.1,63.2,15.9,45.1C28.7,27,53.5,16.4,77.8,13.1C102.1,9.8,141.9,28.4,154.6,45.8Z'/%3E%3C/svg%3E");

  /* Safe Area Insets for iOS & Android notch / dynamic island */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);

  /* Typography — Fluid Scale with clamp() */
  --font-display: 'Clash Display', 'Inter', sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --fs-xs:   clamp(0.8rem, 0.74rem + 0.25vw, 0.95rem);
  --fs-sm:   clamp(0.925rem, 0.85rem + 0.3vw, 1.075rem);
  --fs-base: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  --fs-md:   clamp(1.18rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-lg:   clamp(1.35rem, 1.25rem + 0.75vw, 1.7rem);
  --fs-xl:   clamp(1.6rem, 1.45rem + 1.2vw, 2.15rem);
  --fs-2xl:  clamp(2rem, 1.75rem + 1.8vw, 2.85rem);
  --fs-3xl:  clamp(2.45rem, 2.05rem + 2.5vw, 3.65rem);
  --fs-4xl:  clamp(2.95rem, 2.45rem + 3.5vw, 4.85rem);
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --lh-tight:  1.15;
  --lh-normal: 1.6;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg:   6px;
  --radius-xl:   8px;
  --radius-full: 8px;

  /* Shadows — glowing */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4), 0 0 8px rgba(0,200,255,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5), 0 0 20px rgba(0,200,255,0.08);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.6), 0 0 40px rgba(0,200,255,0.12);
  --shadow-xl:   0 20px 50px rgba(0,0,0,0.7), 0 0 60px rgba(0,200,255,0.15);
  --glow-cyan:   0 0 20px rgba(0,200,255,0.5), 0 0 40px rgba(0,200,255,0.25);
  --glow-green:  0 0 20px rgba(0,255,157,0.5), 0 0 40px rgba(0,255,157,0.2);

  /* Easing */
  --ease-out:    cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:   150ms;
  --t-base:   250ms;
  --t-slow:   400ms;
  --t-reveal: 600ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 100px;
}

/* VITAMETRIC — Tema claro (clínico, día) — mismos tokens, valores invertidos.
   Las bandas de "tecnología" (dna-divider, cta-banner, #tecnología, footer) se
   quedan oscuras a propósito en ambos temas: son las zonas de autoridad/técnica,
   no cambian con el toggle. Todo lo demás lee estos tokens. */
:root[data-theme="light"] {
  --c-bg:           #FFFFFF;
  --c-bg-mid:       #F4F8FC;
  --c-bg-surface:   #FFFFFF;
  --c-bg-card:      #FFFFFF;
  --c-bg-card-alt:  #EFF5FB;

  --c-primary:      #071E3D;
  --c-heading:      #071E3D;
  --c-text:         rgba(7,30,61,0.85);
  --c-muted:        rgba(7,30,61,0.65); /* 0.60 daba <4.5:1 sobre las tarjetas claras */

  --c-cyan:         #0077B6;
  --c-cyan-dark:    #005B8C;
  --c-cyan-glow:    rgba(0,119,182,0.25);
  --c-cyan-soft:    rgba(0,119,182,0.08);
  --c-green:        #00875A;
  --c-green-dark:   #006644;
  --c-green-glow:   rgba(0,135,90,0.20);
  --c-green-soft:   rgba(0,135,90,0.08);

  --c-secondary:       var(--c-cyan);
  --c-secondary-dark:  var(--c-cyan-dark);
  --c-secondary-light: var(--c-cyan-soft);
  --c-accent:          var(--c-green);
  --c-accent-dark:     var(--c-green-dark);

  --c-border:       rgba(0,119,182,0.18);
  --c-border-light: rgba(0,119,182,0.08);

  --c-card-rgb:     255,255,255;
  --c-navbar-rgb:   255,255,255;

  --shadow-sm:  0 1px 3px rgba(7,30,61,0.06), 0 0 8px rgba(0,119,182,0.05);
  --shadow-md:  0 4px 16px rgba(7,30,61,0.08), 0 0 20px rgba(0,119,182,0.06);
  --shadow-lg:  0 10px 30px rgba(7,30,61,0.10), 0 0 40px rgba(0,119,182,0.08);
  --shadow-xl:  0 20px 50px rgba(7,30,61,0.12), 0 0 60px rgba(0,119,182,0.10);
  --glow-cyan:  0 0 20px rgba(0,119,182,0.30), 0 0 40px rgba(0,119,182,0.15);
  --glow-green: 0 0 20px rgba(0,135,90,0.25), 0 0 40px rgba(0,135,90,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-padding-top: var(--nav-h);
  width: 100%;
  height: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

main { flex: 1; width: 100%; }

img, video, iframe, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--c-cyan); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: #5DDEFF; }
[data-theme="light"] a:hover { color: #006B94; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--c-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}
::selection { background: var(--c-cyan); color: #020C1B; }

/* ── Layout & Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  width: 100%;
}
.section {
  padding: var(--sp-3xl) 0;
  position: relative;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--c-cyan);
  color: #020C1B;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--t-fast) ease;
}
.skip-link:focus {
  top: var(--sp-sm);
  outline: 2px solid white;
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  text-decoration: none;
  line-height: 1.35;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.btn:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #0099EE 100%);
  color: #020C1B;
  border-color: transparent;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  color: #020C1B;
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.btn-outline {
  background: transparent;
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}
.btn-outline:hover {
  background: var(--c-cyan-soft);
  color: var(--c-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0,200,255,0.2);
}
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-xs);
}
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--fs-base);
}
.btn-block { width: 100%; }

/* ── Modo alternativo (tarjeta-enlace) ──
   Ofrece una segunda vía sin competir con el CTA primario: el primario es sólido
   y llama; este es traslúcido y explica. Comunica el formato —cuántas preguntas,
   por qué menos— porque la diferencia entre ambos no es estética, es de tiempo. */
.alt-mode {
  --alt-accent: var(--c-cyan);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, var(--c-cyan-soft) 0%, transparent 55%),
    linear-gradient(315deg, var(--c-green-soft) 0%, transparent 45%);
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}

/* Barrido de luz: nace fuera del borde y cruza en hover. Puramente decorativo,
   por eso no captura el puntero. */
.alt-mode::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, var(--c-cyan-glow), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out);
}

.alt-mode:hover,
.alt-mode:focus-visible {
  border-color: var(--alt-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--c-cyan-glow);
}
.alt-mode:hover::after,
.alt-mode:focus-visible::after { left: 115%; }
.alt-mode:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

.alt-mode__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-cyan-soft);
  border: 1px solid var(--c-border);
  color: var(--c-cyan);
}
.alt-mode__icon svg { width: 19px; height: 19px; }

.alt-mode__body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.alt-mode__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--font);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--c-text);
  line-height: 1.25;
}

.alt-mode__badge {
  font-size: 0.62rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  color: var(--c-green);
  background: var(--c-green-soft);
  border: 1px solid var(--c-green-glow);
  white-space: nowrap;
}

.alt-mode__desc {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--c-muted);
}
.alt-mode__desc strong { color: var(--c-cyan); font-weight: var(--fw-semibold); }

.alt-mode__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--c-cyan);
  transition: transform var(--t-base) var(--ease-out);
}
.alt-mode__arrow svg { width: 17px; height: 17px; }
.alt-mode:hover .alt-mode__arrow,
.alt-mode:focus-visible .alt-mode__arrow { transform: translateX(4px); }

@media (max-width: 560px) {
  .alt-mode {
    width: 100%;
    padding: 0.75rem 0.9rem;
    gap: 0.7rem;
  }
  .alt-mode__icon { width: 34px; height: 34px; }
  .alt-mode__desc { font-size: 0.73rem; }
}

/* El barrido y el desplazamiento son adorno: se retiran si el sistema lo pide,
   conservando el cambio de borde para que el hover siga siendo perceptible. */
@media (prefers-reduced-motion: reduce) {
  .alt-mode,
  .alt-mode__arrow { transition: border-color var(--t-base) var(--ease-out); }
  .alt-mode:hover,
  .alt-mode:focus-visible { transform: none; }
  .alt-mode::after { display: none; }
  .alt-mode:hover .alt-mode__arrow,
  .alt-mode:focus-visible .alt-mode__arrow { transform: none; }
}

/* ── Header & Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--t-base) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(var(--c-navbar-rgb), 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.85rem; z-index: 10; flex-shrink: 0; }
.nav-logo-img { height: 96px; max-height: 100px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,200,255,0.2)); }
/* El logo es trazo blanco/azul muy pálido sobre transparente: invisible en fondo claro.
   invert+hue-rotate lo vuelve azul marino oscuro conservando el tono, sin necesitar
   un segundo archivo de logo. */
[data-theme="light"] .nav-logo-img,
[data-theme="light"] .subpage-logo-img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(85%) saturate(3000%) hue-rotate(220deg) brightness(1.08) contrast(1.02);
}
.nav-menu { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }

/* Animacion de los drawers moviles (nav home + nav subpagina). Se usan con display:none/block
   en el estado cerrado para que el drawer no ensanche el documento. */
@keyframes drawer-in  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes drawer-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
.nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast) ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--c-cyan); background: var(--c-cyan-soft); }
.nav-link.active { color: var(--c-cyan); }
.navbar.scrolled .nav-link { color: var(--c-text); }
.navbar.scrolled .nav-link:hover { color: var(--c-cyan); }
.navbar.scrolled .nav-link.active { color: var(--c-cyan); }
.nav-cta {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #0099EE 100%);
  color: #020C1B !important;
  font-weight: var(--fw-bold);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: var(--glow-cyan); transform: translateY(-1px); color: #020C1B !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 10; }
.hamburger {
  display: block; width: 24px; height: 2px;
  background: rgba(200,240,255,0.9);
  position: relative;
  transition: all var(--t-base) ease;
}
.hamburger::before, .hamburger::after {
  content: ''; position: absolute;
  width: 24px; height: 2px; background: inherit; left: 0;
  transition: all var(--t-base) ease;
}
.hamburger::before { top: -7px; }
.hamburger::after  { bottom: -7px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); background: var(--c-cyan); }
.nav-toggle.active .hamburger::after  { bottom: 0; transform: rotate(-45deg); background: var(--c-cyan); }

/* ── Theme toggle (claro/oscuro) ── */
.nav-actions-mobile {
  display: none;
  align-items: center;
  gap: 0.6rem;
  z-index: 1001;
}
@media (max-width: 768px) {
  .nav-actions-mobile {
    display: flex;
  }
  .nav-actions-mobile .theme-toggle {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 8px;
    background: var(--c-cyan-soft);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-actions-mobile .theme-toggle::after {
    display: none;
  }
  .nav-actions-mobile .theme-toggle-label {
    display: none !important;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  padding: 0;
  color: var(--c-cyan);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background var(--t-fast) ease;
  z-index: -1;
}
.theme-toggle:hover::after,
.theme-toggle:focus-visible::after { background: var(--c-cyan-soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle-moon { display: none; }
[data-theme="light"] .theme-toggle-sun { display: none; }
[data-theme="light"] .theme-toggle-moon { display: block; }
li.theme-toggle-item { display: flex; align-items: center; }
@media (max-width: 768px) {
  li.theme-toggle-item { border-bottom: 1px solid var(--c-border-light); padding: 0.25rem 1rem; }
  li.theme-toggle-item .theme-toggle { width: 100%; justify-content: flex-start; gap: 0.65rem; padding: 0.5rem 0; border: none; background: none; }
  li.theme-toggle-item .theme-toggle::after { display: none; }
  .theme-toggle-label { font-size: var(--fs-base); color: var(--c-text); display: inline; }
}
.theme-toggle-label { display: none; }

/* Nav logo tagline */
.nav-logo-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  line-height: 1.25;
  max-width: 145px;
  border-left: 2px solid rgba(0,200,255,0.3);
  padding-left: 0.75rem;
  transition: color var(--t-base), border-color var(--t-base);
  flex-shrink: 0;
}
.navbar.scrolled .nav-logo-tagline {
  color: var(--c-muted);
  border-left-color: var(--c-border);
}
@media (max-width: 1180px) {
  .nav-logo-tagline {
    display: none;
  }
}
/* Con 8 items (Inicio/Servicios/Test/Nosotros/Tecnología/Productos/Testimonios/Contacto)
   el menú desborda entre ~1024 y ~1114px. Se aprieta solo en ese rango; el drawer
   móvil (<=900px) conserva su tipografía. */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-link {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.88rem;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-menu { gap: 0; }
  .nav-link {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}



/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Animated background — deep space / cellular */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 45%, rgba(0,80,160,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0,180,100,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(0,100,200,0.25) 0%, transparent 65%),
    linear-gradient(160deg, #010A16 0%, #030F20 35%, #041828 65%, #020C1B 100%);
}
[data-theme="light"] .hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 65% 35%, rgba(0, 119, 182, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(0, 135, 90, 0.05) 0%, transparent 65%),
    linear-gradient(160deg, #FFFFFF 0%, #F4F8FC 45%, #E8F2FA 100%);
}

/* El motivo rizomático real es el canvas animado (#heroCanvas, ver js/main.js
   setupHeroParticles): red de nodos que deriva y se conecta con curvas. Un
   SVG plano de líneas+círculos era redundante y más simple que eso. */

/* Masas fluidas — blobs orgánicos de borde asimétrico, no esferas perfectas: deriva lenta. */
.hero-orb {
  position: absolute;
  pointer-events: none;
}
.hero-orb-1 {
  width: 420px; height: 380px;
  right: -4%; top: 6%;
  border-radius: 42% 58% 68% 32% / 45% 40% 60% 55%;
  background: radial-gradient(circle at 35% 35%, rgba(0,180,255,0.16), rgba(0,80,180,0.05) 55%, transparent 75%);
  border: 1px solid rgba(0,200,255,0.1);
  animation: blob-drift 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 260px;
  right: 22%; bottom: 8%;
  border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%;
  background: radial-gradient(circle at 40% 40%, rgba(0,255,140,0.13), rgba(0,120,80,0.04) 55%, transparent 75%);
  border: 1px solid rgba(0,255,157,0.08);
  animation: blob-drift 22s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 180px; height: 200px;
  right: 8%; top: 55%;
  border-radius: 50% 50% 65% 35% / 40% 55% 45% 60%;
  background: radial-gradient(circle at 40% 40%, rgba(0,160,255,0.16), transparent 70%);
  border: 1px solid rgba(0,200,255,0.08);
  animation: blob-drift 15s ease-in-out infinite 2s;
}
[data-theme="light"] .hero-orb-1 { background: radial-gradient(circle at 35% 35%, rgba(0,119,182,0.12), rgba(0,119,182,0.03) 55%, transparent 75%); border-color: rgba(0,119,182,0.14); }
[data-theme="light"] .hero-orb-2 { background: radial-gradient(circle at 40% 40%, rgba(0,135,90,0.10), rgba(0,135,90,0.02) 55%, transparent 75%); border-color: rgba(0,135,90,0.12); }
[data-theme="light"] .hero-orb-3 { background: radial-gradient(circle at 40% 40%, rgba(0,119,182,0.12), transparent 70%); border-color: rgba(0,119,182,0.12); }
@keyframes blob-drift {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  33%       { transform: translateY(-16px) rotate(4deg) scale(1.03); }
  66%       { transform: translateY(10px) rotate(-3deg) scale(0.98); }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}
/* Etiqueta suelta en versalitas con hairline inferior, no píldora. */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,200,255,0.3);
  border-radius: 0;
  color: var(--c-cyan);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--c-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,157,0.6); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 7px rgba(0,255,157,0); }
}
@media (max-width: 768px) {
  .hero-container { display: flex !important; flex-direction: column !important; padding-left: 1.25rem !important; padding-right: 1.25rem !important; width: 100% !important; max-width: 100vw !important; box-sizing: border-box !important; text-align: center !important; }
  .hero-title { font-size: clamp(1.6rem, 1.3rem + 2vw, 2.1rem) !important; line-height: 1.25 !important; max-width: 100% !important; word-break: normal !important; overflow-wrap: break-word !important; }
  .hero-subtitle { font-size: 0.95rem !important; line-height: 1.5 !important; max-width: 100% !important; }
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-md);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.35rem, 1.8rem + 2.2vw, 3.65rem);
  font-weight: var(--fw-extrabold);
  color: var(--c-heading);
  line-height: 1.14;
  margin-bottom: var(--sp-md);
  letter-spacing: -0.025em;
  max-width: 640px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero-accent {
  background: linear-gradient(135deg, #1A36B8 0%, #3658F1 50%, #068A5B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.25rem, 1.15rem + 0.6vw, 1.55rem);
  color: var(--c-text);
  line-height: 1.65;
  margin-bottom: var(--sp-lg);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}
.hero-actions .btn-outline {
  border-color: rgba(0,200,255,0.35);
  color: var(--c-cyan);
}
.hero-actions .btn-outline:hover {
  background: rgba(0,200,255,0.08);
  border-color: var(--c-cyan);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.stat { text-align: center; }
.stat-number { display: block; font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--c-cyan); }
.stat-label  { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: rgba(0,200,255,0.2); }

/* Hero visual side — floating cards */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0,200,255,0.28) 0%, rgba(0,255,157,0.12) 50%, transparent 72%);
  border-radius: 50%;
  filter: blur(65px);
  animation: glow-pulse 5s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 1; }
}
/* Chip flotante: hairline superior que se ilumina, sin caja ni sombra dura. */
.hero-card {
  position: absolute;
  display: flex; align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(var(--c-card-rgb),0.55);
  border: none;
  border-top: 1px solid rgba(0,200,255,0.35);
  border-radius: 0;
  backdrop-filter: blur(20px);
  color: var(--c-heading);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  animation: float 6s ease-in-out infinite;
  transition: border-color var(--t-base) ease;
}
.hero-card:hover { border-top-color: var(--c-cyan); }
.hero-card-1 { top: 15%; left: 5%; animation-delay: 0s; }
.hero-card-2 { top: 45%; right: 0;  animation-delay: -2s; }
.hero-card-3 { bottom: 15%; left: 15%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.hero-scroll-indicator {
  position: absolute; bottom: var(--sp-lg); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 1;
}
.hero-scroll-indicator span { font-size: var(--fs-xs); color: rgba(0,200,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="light"] .hero-scroll-indicator span { color: var(--c-cyan-dark); }
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(0,200,255,0.4);
  border-bottom: 2px solid rgba(0,200,255,0.4);
  transform: rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.4; }
  50%       { transform: rotate(45deg) translate(4px,4px); opacity: 1; }
}

/* ── Section shared ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--sp-2xl); }
/* Etiqueta suelta en versalitas con hairline inferior, no píldora. */
.section-tag {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--c-cyan);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: var(--sp-sm);
  padding: 0 0 0.4rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,200,255,0.3);
  border-radius: 0;
}
.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-sm);
  letter-spacing: -0.01em;
  color: var(--c-heading);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.section-subtitle { font-size: var(--fs-md); color: var(--c-muted); line-height: var(--lh-normal); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--c-bg-mid);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 2.5rem 0;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
/* Zona con hairline superior; el hover ilumina la línea, no levanta la tarjeta. */
.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 0.5rem 0;
  background: none;
  border: none;
  border-radius: 0;
  transition: none;
}
.trust-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(0,200,255,0.4) 0%, rgba(0,200,255,0.05) 85%, transparent 100%);
  transition: background 0.35s ease;
}
.trust-item:hover::before {
  background: linear-gradient(90deg, rgba(0,200,255,0.8) 0%, rgba(0,200,255,0.15) 85%, transparent 100%);
}
.trust-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cyan-soft);
  color: var(--c-cyan);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.trust-icon svg {
  width: 30px;
  height: 30px;
}
.trust-item strong { display: block; color: var(--c-heading); font-size: 1.18rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.3; }
.trust-item span  { display: block; color: var(--c-muted); font-size: 0.98rem; line-height: 1.45; }
@media (max-width: 1024px) {
  .trust-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-items { grid-template-columns: 1fr; }
}

/* ── NOSOTROS ── */
.section-nosotros { background: var(--c-bg-mid); }
.nosotros-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md); margin-bottom: var(--sp-2xl);
}
/* Zona con hairline superior; el hover ilumina la línea, no levanta la tarjeta. */
.nosotros-card {
  position: relative;
  padding: var(--sp-lg) var(--sp-sm) 0;
  background: none;
  border: none;
  border-radius: 0;
  transition: none;
}
.nosotros-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(0,200,255,0.4) 0%, rgba(0,200,255,0.05) 85%, transparent 100%);
  transition: background 0.35s ease;
}
.nosotros-card:hover::before {
  background: linear-gradient(90deg, rgba(0,200,255,0.8) 0%, rgba(0,200,255,0.15) 85%, transparent 100%);
}
.nosotros-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-cyan-soft);
  color: var(--c-cyan);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-sm);
}
.nosotros-icon svg { stroke: var(--c-cyan); }
.nosotros-card h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); margin-bottom: 0.5rem; color: var(--c-heading); }
.nosotros-card p  { font-size: var(--fs-sm); color: var(--c-muted); line-height: var(--lh-normal); }
.nosotros-cta { text-align: center; }
.nosotros-quote {
  display: inline-block;
  font-size: var(--fs-xl); font-weight: var(--fw-medium); font-style: italic;
  color: var(--c-cyan);
  padding: var(--sp-md) var(--sp-lg);
  border-left: 4px solid var(--c-green);
  background: var(--c-cyan-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.nosotros-quote p { margin: 0; }

/* ── TECNOLOGÍA ── */
.section-tecnología { background: var(--c-bg-surface); }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* grid-auto-rows flexible */
  gap: var(--sp-md);
}
.tech-card {
  background: rgba(var(--c-card-rgb),0.88);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: all var(--t-base) var(--ease-out);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px) saturate(130%);
}
.tech-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0,200,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.tech-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0,200,255,0.4);
}
.tech-card-badge {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--c-green);
  background: var(--c-green-soft);
  border: 1px solid rgba(0,255,157,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-sm);
}
.tech-card-img {
  width: 100%; height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-sm);
  border: 1px solid var(--c-border);
}
.tech-card-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: 0.5rem; color: var(--c-heading); }
.tech-card-desc  { font-size: var(--fs-sm); color: var(--c-muted); line-height: var(--lh-normal); margin-bottom: var(--sp-sm); }
.tech-card-features { margin-bottom: var(--sp-md); }
.tech-card-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); padding: 0.375rem 0;
  color: var(--c-text);
}
.tech-card-features li::before {
  content: '▸';
  color: var(--c-cyan);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.tech-card-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--c-cyan);
  transition: gap var(--t-base) ease, color var(--t-base) ease;
}
.tech-card-link:hover { gap: 0.75rem; color: #5DDEFF; }
.tech-card-disclaimer {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--c-border-light);
  line-height: 1.4; font-style: italic;
}

/* ── PRODUCTOS ── */
.section-productos { background: var(--c-bg-mid); overflow-x: hidden; }
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  /* grid-auto-rows flexible */
  gap: var(--sp-md); margin-bottom: var(--sp-2xl);
}
.product-card {
  background: rgba(var(--c-card-rgb),0.88);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: all var(--t-base) var(--ease-out);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px) saturate(130%);
}
.product-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-green));
  opacity: 0;
  transition: opacity var(--t-base) ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0,200,255,0.4);
}
.product-card:hover::after { opacity: 1; }
.product-card-top { padding: var(--sp-lg) var(--sp-lg) var(--sp-sm); text-align: center; }
.product-badge {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: #020C1B;
  background: linear-gradient(135deg, var(--c-cyan), #0099EE);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-sm);
}
.product-badge-alt { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.product-img {
  width: 120px; height: 120px;
  object-fit: contain; border-radius: var(--radius-lg);
  margin: 0 auto var(--sp-sm); display: block;
  border: 1px solid var(--c-border);
  background-color: white;
}
.product-card-top h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: 0.25rem; color: var(--c-heading); }
.product-tagline { font-size: var(--fs-sm); color: var(--c-muted); }
.product-card-body { padding: 0 var(--sp-lg); flex: 1; }
.product-card-body p { font-size: var(--fs-sm); color: var(--c-muted); line-height: var(--lh-normal); margin-bottom: var(--sp-sm); }
.product-benefits { margin-bottom: var(--sp-sm); }
.product-benefits li {
  font-size: var(--fs-sm); padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative; color: var(--c-text);
}
.product-benefits li::before {
  content: '✦';
  position: absolute; left: 0;
  color: var(--c-green); font-size: 0.6rem; top: 0.45rem;
}
.product-card-footer { padding: var(--sp-sm) var(--sp-lg) var(--sp-lg); }
.products-info { max-width: 720px; margin: 3.5rem auto 0; }
.info-card {
  display: flex; gap: var(--sp-sm);
  padding: var(--sp-md);
  background: var(--c-cyan-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.info-card svg { flex-shrink: 0; margin-top: 2px; stroke: var(--c-cyan); }
.info-card strong { display: block; font-size: var(--fs-sm); color: var(--c-cyan); margin-bottom: 0.25rem; }
.info-card p { font-size: var(--fs-sm); color: var(--c-muted); line-height: var(--lh-normal); margin: 0; }

/* ── TESTIMONIOS ── */
.section-testimonios { background: var(--c-bg-surface); }
.testimonial-slider { max-width: 720px; margin: 0 auto; overflow: hidden; position: relative; }
.testimonial-track { display: flex; transition: transform var(--t-slow) var(--ease-in-out); }
.testimonial-slide { min-width: 100%; padding: var(--sp-xl) var(--sp-lg); text-align: center; }
.testimonial-stars { font-size: var(--fs-xl); color: #FFD700; margin-bottom: var(--sp-sm); letter-spacing: 0.15em; }
.testimonial-text {
  font-size: var(--fs-lg); color: var(--c-heading);
  line-height: var(--lh-normal); font-style: italic;
  margin-bottom: var(--sp-md); border: none; padding: 0;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: var(--sp-sm); }
.testimonial-avatar {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-cyan), #0077BB);
  color: #020C1B;
  font-weight: var(--fw-bold); font-size: var(--fs-sm);
  border-radius: 50%;
}
.testimonial-author strong { display: block; font-size: var(--fs-sm); color: var(--c-heading); }
.testimonial-author span  { font-size: var(--fs-xs); color: var(--c-muted); }
.testimonial-controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-sm); margin-top: var(--sp-sm);
}
.testimonial-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: 50%; cursor: pointer; color: var(--c-cyan);
  transition: all var(--t-fast) ease;
}
.testimonial-btn:hover { background: var(--c-cyan); border-color: var(--c-cyan); color: #020C1B; box-shadow: var(--glow-cyan); }
.testimonial-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--c-border);
  border: none; cursor: pointer;
  transition: all var(--t-fast) ease; padding: 0;
}
.dot.active { background: var(--c-cyan); width: 28px; border-radius: var(--radius-full); }

/* ── CONTACTO ── */
.section-contacto { background: var(--c-bg-mid); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); align-items: start; }
.contacto-info-card { margin-bottom: var(--sp-md); }
.contacto-info-card h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: var(--sp-md); color: var(--c-heading); }
.contacto-item { display: flex; gap: var(--sp-sm); margin-bottom: var(--sp-md); }
.contacto-item svg { flex-shrink: 0; margin-top: 2px; stroke: var(--c-cyan); }
.contacto-item strong { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-heading); margin-bottom: 0.125rem; }
.contacto-item p    { font-size: var(--fs-sm); color: var(--c-muted); line-height: var(--lh-normal); margin: 0; }
.contacto-item a    { color: var(--c-cyan); font-weight: var(--fw-medium); }
.contacto-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.contacto-map iframe {
  width: 100%;
  height: 240px;
  display: block;
  border: 0;
}
.contacto-form {
  background: rgba(var(--c-card-rgb),0.92);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-xl);
  position: relative; overflow: hidden;
  backdrop-filter: blur(12px) saturate(140%);
}
.contacto-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-green));
}
.contacto-form h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin-bottom: 0.25rem; color: var(--c-heading); }
.form-note { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--sp-md); }
.form-group { margin-bottom: var(--sp-sm); }
.form-group label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text); margin-bottom: 0.375rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font); font-size: var(--fs-base);
  color: var(--c-heading);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  transition: all var(--t-fast) ease;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
  background: rgba(0,200,255,0.04);
}
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(0,255,157,0.1);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300C8FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  color: var(--c-text);
}
.form-group select option { background: var(--c-bg-card); color: var(--c-heading); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-privacy { margin-bottom: var(--sp-md); }
.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-normal);
  cursor: pointer;
}
.privacy-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--c-cyan);
  cursor: pointer;
}
.privacy-label a { text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.contacto-form .btn { margin-top: var(--sp-xs); }
.form-success, .form-error {
  display: flex; align-items: flex-start; gap: var(--sp-sm);
  padding: var(--sp-sm); border-radius: var(--radius-md); margin-top: var(--sp-sm);
}
.form-success { background: rgba(0,255,157,0.06); border: 1px solid rgba(0,255,157,0.2); }
.form-error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.form-success p, .form-error p { font-size: var(--fs-sm); margin: 0; line-height: var(--lh-normal); }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
  background: #010810;
  color: rgba(160,210,240,0.65);
  padding: var(--sp-2xl) 0 var(--sp-md);
  border-top: 1px solid var(--c-border);
  margin-bottom: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl); margin-bottom: var(--sp-xl);
}
.footer-logo { height: 80px; width: auto; margin-bottom: var(--sp-sm); }
.footer-brand p { font-size: var(--fs-sm); line-height: var(--lh-normal); margin-bottom: var(--sp-sm); max-width: 280px; }
.footer-tag { display: inline-block; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-green); }
.footer h3 { color: white; font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-sm); }
.footer ul li { margin-bottom: 0.375rem; }
.footer ul a { font-size: var(--fs-sm); color: rgba(180,225,255,0.9); transition: color var(--t-fast) ease; }
.footer ul a:hover { color: var(--c-cyan); }
.footer-contacto p { font-size: var(--fs-sm); margin-bottom: 0.375rem; }
.footer-contacto a { color: rgba(180,225,255,0.9); }
.footer-contacto a:hover { color: var(--c-cyan); }
.footer-disclaimer {
  margin-top: 2rem; padding: 1.5rem;
  background: rgba(0,200,255,0.03);
  border-radius: 8px; border: 1px solid var(--c-border-light);
}
.footer-disclaimer p { font-size: var(--fs-xs); color: #6b8fa0; line-height: 1.5; margin-bottom: 0.5rem; }
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-bottom { border-top: 1px solid var(--c-border-light); padding-top: var(--sp-md); text-align: center; }
.footer-bottom p { font-size: var(--fs-xs); color: #7399aa; margin: 0; }

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed; bottom: var(--sp-md); right: var(--sp-md); z-index: 900;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: all var(--t-base) var(--ease-out);
  animation: whatsapp-pulse 3s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); background: #20BD5A; }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 24px rgba(37,211,102,0.65), 0 0 0 10px rgba(37,211,102,0.07); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-container  { grid-template-columns: 1fr; text-align: center; gap: var(--sp-xl); }
  .hero-content    { order: 1; }
  .hero-visual     { order: 2; display: none; }
  .hero-subtitle   { max-width: 100%; margin: 0 auto var(--sp-lg); }
  .hero-actions    { justify-content: center; }
  .hero-stats      { justify-content: center; }
  .nosotros-grid   { grid-template-columns: repeat(2, 1fr); }
  .tech-grid       { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid   { grid-template-columns: 1fr; }
  .nav-logo-tagline { display: none; }
  .nav-logo-img    { height: 48px; max-height: 48px; width: auto; object-fit: contain; }

  .hero-container { position: relative; z-index: 2; }
}


/* Etiqueta suelta en versalitas con hairline inferior, no píldora. */
.subpage-hero-badge {
  display: block;
  width: fit-content;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.3);
  color: var(--c-cyan);
  padding: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  margin-bottom: 1.25rem;
}

.subpage-play-btn {
  background: rgba(2, 12, 27, 0.85);
  border: 2px solid var(--c-cyan);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease;
}

.subpage-play-icon {
  color: var(--c-cyan);
  font-size: 2.4rem;
  margin-left: 6px;
  line-height: 1;
}

.subpage-play-label {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  background: rgba(7, 30, 51, 0.85);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  letter-spacing: 0.5px;
}

.subpage-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Etiqueta suelta en versalitas con hairline inferior, no píldora. */
.subpage-cert-badge {
  background: none;
  color: var(--c-cyan);
  font-size: 0.75rem;
  padding: 0 0 0.3rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.subpage-footer-content {
  text-align: center;
  color: rgba(160, 210, 240, 0.75) !important;
  font-size: var(--fs-sm);
}
.subpage-footer-content p {
  color: rgba(160, 210, 240, 0.75) !important;
}
.subpage-footer-content strong {
  color: rgba(220, 240, 255, 0.95) !important;
}

.subpage-main {
  padding: 3rem 0 5rem;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
}

/* Zona rizomática: sin caja cerrada, delimitada por una hairline superior. */
.subpage-article {
  background: none;
  border: none;
  border-top: 1px solid var(--c-border);
  border-radius: 0;
  padding: 2rem 0 0;
}

.subpage-article h2 {
  color: var(--c-cyan);
  font-size: var(--fs-xl);
  margin-bottom: 1rem;
}

.subpage-article h2 + h2,
.subpage-article h2:not(:first-child) {
  margin-top: 2rem;
}

.subpage-article p {
  margin-bottom: 1.5rem;
  color: var(--c-text);
  line-height: 1.7;
}

.subpage-article ol {
  margin-left: 1.25rem;
  margin-bottom: 2rem;
  color: var(--c-text);
  line-height: 1.8;
}

/* Zona rizomática: sin caja cerrada, delimitada por una hairline superior. */
.subpage-sidebar-card {
  background: none;
  border: none;
  border-top: 1px solid var(--c-border);
  border-radius: 0;
  padding: 1.5rem 0 0;
}

.subpage-sidebar-card + .subpage-sidebar-card {
  margin-top: 1.5rem;
}

.subpage-sidebar-card h3 {
  color: var(--c-heading);
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--c-border-light);
  padding-bottom: 0.5rem;
}

.subpage-sidebar-card p,
.subpage-sidebar-card li {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: 1.5;
}

.subpage-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subpage-sidebar-card ul li {
  margin-bottom: 0.75rem;
}

.subpage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Zona rizomática: sin caja cerrada, delimitada por una hairline superior. */
.subpage-feature-card {
  background: none;
  padding: 1.25rem 0 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--c-border-light);
}

.subpage-feature-card h3 {
  color: var(--c-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.subpage-feature-card p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Zona rizomática: sin caja cerrada, delimitada por una hairline superior. */
.subpage-color-list {
  background: none;
  border-radius: 0;
  padding: 1.25rem 0 0;
  margin-bottom: 2rem;
  border: none;
  border-top: 1px solid var(--c-border);
}

.subpage-color-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subpage-color-item:last-child {
  margin-bottom: 0;
}

.subpage-color-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  margin-top: 4px;
}

.subpage-inline-cta {
  margin-top: 3rem;
  padding: 2.25rem 2rem;
  background: linear-gradient(135deg, rgba(7, 30, 61, 0.7) 0%, rgba(4, 21, 38, 0.9) 100%);
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
[data-theme="light"] .subpage-inline-cta {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FC 100%);
  border: 1px solid rgba(0, 119, 182, 0.22);
  box-shadow: 0 10px 25px rgba(7, 30, 61, 0.08);
}
.subpage-inline-cta-title {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 700;
  color: var(--c-heading);
  letter-spacing: -0.01em;
  margin: 0;
}
.subpage-inline-cta-desc {
  font-size: 0.96rem;
  color: var(--c-muted);
  max-width: 560px;
  line-height: 1.5;
  margin: 0;
}
.subpage-inline-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.3);
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}
.subpage-inline-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 200, 255, 0.45);
}

.subpage-content {
  min-width: 0;
  width: 100%;
}

.subpage-sidebar {
  min-width: 0;
  width: 100%;
  display: grid;
  /* minmax(0, 1fr) en lugar de 1fr: sin eso, el contenido min-content del
     bloque (palabras largas) engorda la columna y el aside se sale del grid. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.subpage-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(var(--c-navbar-rgb), 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  padding: 0.85rem 0;
}

.subpage-nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.subpage-logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform var(--t-fast) ease;
  flex-shrink: 0;
}

.subpage-logo-link:hover {
  transform: scale(1.02);
}

.subpage-logo-img {
  height: 80px;
  max-height: 84px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 200, 255, 0.35));
}

.subpage-logo-tagline {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-left: 1px solid rgba(0, 200, 255, 0.3);
  padding-left: 0.75rem;
  line-height: 1.25;
  max-width: 170px;
  flex-shrink: 0;
}

.subpage-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.subpage-nav-link {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-primary);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.subpage-nav-link:hover {
  color: var(--c-cyan);
  background: var(--c-cyan-soft);
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.subpage-nav-link.active {
  color: var(--c-cyan);
  font-weight: 600;
}

.subpage-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
  border-radius: 2px;
}


.subpage-cta-btn {
  background: rgba(0, 200, 255, 0.12);
  color: var(--c-cyan) !important;
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: 6px !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 200, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 200, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
}




/* ── Full-Width Subpage Hero Zone ── */
.subpage-hero-zone {
  width: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 200, 255, 0.16) 0%, rgba(4, 21, 38, 0.92) 55%, var(--c-bg) 100%);
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
/* La versión oscura de arriba dejaba una viñeta oscura en medio de una página
   ya clara (texto oscuro sobre fondo oscuro). En claro, el degradado es pálido. */
[data-theme="light"] .subpage-hero-zone {
  background: radial-gradient(circle at 50% 0%, rgba(54, 88, 241, 0.22) 0%, var(--c-bg-mid) 55%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
}
[data-theme="light"] .subpage-hero-title {
  text-shadow: none;
}
[data-theme="light"] .breadcrumb-nav {
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.subpage-hero-zone::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(0, 200, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

/* Breadcrumbs Pills Estilizadas */
.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(var(--c-navbar-rgb), 0.65);
  border: 1px solid rgba(0, 200, 255, 0.2);
  padding: 0.45rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 2.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.breadcrumb-link {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--t-fast) ease;
}

.breadcrumb-link:hover {
  color: var(--c-cyan);
}

.breadcrumb-sep {
  color: var(--c-cyan);
  font-size: 0.85rem;
  opacity: 0.7;
}

.breadcrumb-current {
  color: var(--c-cyan);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.subpage-hero-title {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: clamp(2.85rem, 5.2vw, 4.4rem);
  color: var(--c-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
  text-shadow: 0 0 30px rgba(0, 200, 255, 0.25);
}

.subpage-hero-desc {
  font-size: var(--fs-md);
  color: var(--c-text);
  max-width: 900px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Subpage Card Bezel & Panels */
/* Zona rizomática: sin caja cerrada, delimitada por una hairline superior. */
.subpage-panel {
  background: none;
  border: none;
  border-top: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: 0 !important;
  padding: 2rem 0 0;
  box-shadow: none;
}
@media (max-width: 900px) {
  .subpage-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .subpage-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ── Subpage Header ── */

@media (max-width: 768px) {
  html { width: 100%; height: auto; }
  body { overflow-x: hidden; width: 100%; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  :root { --fs-4xl: 2.25rem; --fs-3xl: 1.875rem; --nav-h: 64px; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-title { max-width: 100%; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + var(--sp-xl)) 0 var(--sp-xl); }
  .nav-toggle { display: block; }
  /* Cerrado = display:none. Un drawer fixed estacionado con right:-100% (o con transform,
     medido: tambien cuenta para el scroll) ensancha el documento a 2x el viewport, y
     overflow-x:hidden NO recorta descendientes position:fixed en Safari iOS -> shrink-to-fit.
     display:none es lo unico que lo saca del area de scroll. Se anima al abrir/cerrar. */
  .nav-menu {
    position: fixed; top: 0; right: 0;
    width: min(300px, 85vw); height: 100vh;
    display: none;
    flex-direction: column;
    background: var(--c-bg-card);
    border-left: 1px solid var(--c-border);
    padding: calc(var(--nav-h) + var(--sp-md)) var(--sp-md) var(--sp-md);
    box-shadow: var(--shadow-xl);
    gap: 0; align-items: stretch;
  }
  .nav-menu.open { display: flex; animation: drawer-in var(--t-slow) var(--ease-out); }
  .nav-menu.closing { display: flex; animation: drawer-out var(--t-slow) var(--ease-out) forwards; }
  .nav-link { color: var(--c-text); padding: 0.75rem 1rem; font-size: var(--fs-base); border-bottom: 1px solid var(--c-border-light); }
  .nav-link:hover { background: var(--c-cyan-soft); color: var(--c-cyan); }
  .nav-cta { text-align: center; margin-left: 0; margin-top: var(--sp-sm); border-bottom: none; }
  .hero-stats { flex-direction: column; gap: var(--sp-sm); }
  .stat-divider { width: 40px; height: 1px; }
  .trust-items { grid-template-columns: 1fr; }
  .nosotros-grid   { grid-template-columns: 1fr; }
  .nosotros-quote  { font-size: var(--fs-lg); }
  .tech-grid       { grid-template-columns: 1fr; }
  .products-grid   { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .whatsapp-fab    { width: 52px; height: 52px; bottom: var(--sp-sm); right: var(--sp-sm); }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .hero-scroll-indicator { display: none; }
  .nav-logo-img    { height: 86px; max-height: 90px; max-width: calc(100vw - 90px); width: auto; object-fit: contain; }
  .hero-orb-1 { width: 200px; height: 200px; }
  .hero-orb-2 { width: 140px; height: 140px; }
  .hero-orb-3 { width: 100px; height: 100px; }
  .dna-divider { background-attachment: scroll; }
  .cta-banner { background-attachment: scroll; }

  /* ── SUBPAGE NAV MOBILE ── */
  .subpage-navbar { padding: 0.6rem 0; }
  .subpage-nav-container { padding: 0 1rem; }
  .subpage-logo-tagline { display: none; }
  .subpage-logo-img { height: 70px; max-height: 74px; }
  .subpage-nav-container .theme-toggle {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 200, 255, 0.25);
    border-radius: 8px;
    background: var(--c-cyan-soft);
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
    margin-right: 0.5rem;
    cursor: pointer;
    z-index: 1001;
  }
  .subpage-nav-container .theme-toggle::after { display: none; }
  .subpage-nav-container .theme-toggle-label { display: none !important; }
  /* Ver nota en .nav-menu: cerrado = display:none, si no ensancha el documento. */
  .subpage-nav-container > nav {
    position: fixed; top: 0; right: 0;
    width: min(300px, 85vw); height: 100vh;
    display: none;
    background: rgba(var(--c-navbar-rgb), 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 200, 255, 0.2);
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 1.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    overflow-y: auto;
  }
  .subpage-nav-container > nav.open { display: block; animation: drawer-in 0.3s ease; }
  .subpage-nav-container > nav.closing { display: block; animation: drawer-out 0.3s ease forwards; }
  .rizo-nav-pills { flex-direction: column; gap: 0; }
  .rizo-nav-pill { padding: 0.85rem 0; border-bottom: 1px solid rgba(0, 200, 255, 0.1); font-size: 1.05rem; }
  .rizo-nav-pill svg { width: 20px; height: 20px; margin-right: 0.75rem; vertical-align: middle; }
  .subpage-cta-btn { display: none; }
  .subpage-nav-toggle { order: 3; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid rgba(0,200,255,0.25); border-radius: 8px; padding: 0.5rem; cursor: pointer; z-index: 1001; }
  .subpage-hamburger { display: block; width: 22px; height: 2px; background: rgba(200,240,255,0.9); position: relative; transition: all 0.3s ease; }
  .subpage-hamburger::before, .subpage-hamburger::after { content: ''; position: absolute; width: 22px; height: 2px; background: inherit; left: 0; transition: all 0.3s ease; }
  .subpage-hamburger::before { top: -7px; }
  .subpage-hamburger::after { bottom: -7px; }
  .subpage-nav-toggle.active .subpage-hamburger { background: transparent; }
  .subpage-nav-toggle.active .subpage-hamburger::before { top: 0; transform: rotate(45deg); background: var(--c-cyan); }
  .subpage-nav-toggle.active .subpage-hamburger::after { bottom: 0; transform: rotate(-45deg); background: var(--c-cyan); }
  .subpage-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
  .subpage-nav-overlay.open { display: block; }

  /* ── AREAS TACTILES (medidas antes: toggles 40x20, breadcrumbs 22px de alto, dots 10x10) ── */
  .subpage-nav-toggle, .nav-toggle { min-width: 44px; min-height: 44px; }
  .breadcrumb-link, .consultor-link { display: inline-block; padding: 0.6rem 0; }
  /* Los dots quedan 28x44: el ancho lo limita la separacion entre ellos (si se les da 44 de
     ancho los blancos se enciman y se toca el equivocado). Cumple el minimo AA de 24x24. */
  .testimonial-dots { gap: 1rem; align-items: center; }
  .dot { position: relative; }
  .dot::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%); width: 28px; height: 44px;
  }
  /* Enlaces de footer y de contacto (tel:/mailto:): median 16px de alto. */
  .footer-nav a, .footer-servicios a, .footer-contacto a, .contacto-item a {
    display: inline-block; padding: 0.45rem 0;
  }

  /* ── SUBPAGE HERO MOBILE ── */
  .subpage-hero-zone { padding: 1.5rem 1rem 1rem; text-align: center; }
  .subpage-hero-zone .container { padding: 0; }
  .subpage-hero-title { font-size: 1.5rem; line-height: 1.25; }
  .subpage-hero-desc { font-size: 0.88rem; line-height: 1.55; }

  /* ── SUBPAGE SIBLING STRIP MOBILE ── */
  .rizo-sibling-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0.5rem 0; }
  .rizo-sibling-inner { justify-content: flex-start; flex-wrap: nowrap; padding: 0 1rem; }
  .rizo-sibling-pill { flex-shrink: 0; font-size: 0.8rem; padding: 0.35rem 0.75rem; }
  .rizo-sibling-label { font-size: 0.7rem; padding: 0.3rem 0.6rem; }

  /* ── SUBPAGE MAIN MOBILE ── */
  .subpage-main { padding: 1.5rem 0 2rem; }
  .subpage-main .container { padding: 0 1rem; }
  .subpage-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* ── SUBPAGE ARTICLE MOBILE ── */
  .subpage-article { padding: 1.25rem; }
  .subpage-article h2 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
  .subpage-article h2:first-child { margin-top: 0; }
  .subpage-article p { font-size: 0.88rem; line-height: 1.65; margin-bottom: 1rem; }
  .subpage-article ol { margin-left: 1rem; margin-bottom: 1.5rem; }
  .subpage-article ol li { font-size: 0.88rem; margin-bottom: 0.6rem; }

  /* ── SUBPAGE FEATURE GRID MOBILE ── */
  .subpage-feature-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
  .subpage-feature-card { padding: 1rem; }
  .subpage-feature-card h3 { font-size: 0.95rem; }
  .subpage-feature-card p { font-size: 0.82rem; line-height: 1.5; }

  /* ── SUBPAGE SIDEBAR MOBILE ── */
  .subpage-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .subpage-sidebar-card { padding: 1rem; }
  .subpage-sidebar-card h3 { font-size: 0.85rem; }
  .subpage-sidebar-card p, .subpage-sidebar-card li { font-size: 0.78rem; }

  /* ── SUBPAGE CTA MOBILE ── */
  .subpage-inline-cta { margin-top: 1.5rem; }
  .subpage-inline-cta .btn { padding: 0.75rem 1.25rem; font-size: 0.95rem; width: 100%; box-sizing: border-box; display: block; text-align: center; }
  /* .btn trae white-space:nowrap (linea ~210): en movil el texto no puede partirse, el ancho
     minimo del boton supera el del contenedor y ensancha el documento. Aqui se le permite partir. */
  .btn { white-space: normal; max-width: 100%; }

  /* ── SUBPAGE VIDEO MOBILE ── */
  #video-cover-container { border-radius: var(--radius-md) !important; }
  .subpage-play-btn { width: 64px; height: 64px; }
  .subpage-play-icon { font-size: 1.8rem; }
  .subpage-play-label { font-size: 0.85rem; padding: 0.4rem 1rem; }

  /* ── SUBPAGE SIDEBAR MOBILE ── */
}

@media (max-width: 480px) {
  .subpage-nav-container > nav { width: min(280px, 82vw); }
  .subpage-hero-zone { padding: 1rem 0.75rem 0.75rem; }
  .subpage-hero-title { font-size: 1.3rem; }
  .subpage-hero-desc { font-size: 0.82rem; }
  .subpage-main .container { padding: 0 0.75rem; }
  .subpage-article { padding: 1rem; }
  .subpage-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .nav-logo-img { height: 96px; max-height: 100px; }
}

/* ── NEW BIOLUMINISCENT REDESIGN CLASSES ── */

/* Hero Canvas & Image Wrap */
#heroCanvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-container {
  position: relative;
  z-index: 2;
}
/* La foto se disuelve en el fondo (mask-image, como .tech-card-img) en vez de ir
   enmarcada por un borde de gradiente con doble glow. */
.hero-visual-img-wrap {
  width: 100%;
  max-width: 560px;
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.hero-visual-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--t-slow) var(--ease-out), opacity 0.35s ease, filter 0.35s ease;
  opacity: 0.98;
  filter: drop-shadow(0 0 35px rgba(0, 200, 255, 0.45)) drop-shadow(0 0 70px rgba(0, 255, 157, 0.25));
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 50%, rgba(0,0,0,0.6) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 50%, rgba(0,0,0,0.6) 78%, transparent 100%);
}
.hero-visual-img-wrap:hover .hero-visual-img {
  opacity: 1;
  transform: scale(1.04);
  filter: drop-shadow(0 0 45px rgba(0, 200, 255, 0.6)) drop-shadow(0 0 85px rgba(0, 255, 157, 0.35));
}

/* DNA Divider */
.dna-divider {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/img/dna-bg.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 4.5rem var(--sp-md);
}
.dna-divider::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(2, 12, 27, 0.55) 0%, rgba(2, 12, 27, 0.82) 100%);
  backdrop-filter: blur(1px);
  z-index: 1;
}
.dna-divider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp-md);
  max-width: 950px;
}
.dna-divider-content h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: var(--fw-semibold);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.35;
  background: linear-gradient(90deg, #FFFFFF 15%, #00C8FF 50%, #00FF9D 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 200, 255, 0.35);
}

/* Nosotros Split Section */
.nosotros-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  margin-top: var(--sp-3xl);
  margin-bottom: var(--sp-2xl);
}
/* Sin marco: la foto se disuelve en el fondo (misma técnica que .tech-card-img),
   en vez de ir recortada por un borde+radio+sombra. */
.cell-img-wrap {
  width: 100%;
  display: flex;
}
.cell-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.92;
  transition: transform var(--t-slow) var(--ease-out), opacity 0.35s ease;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.35) 85%, transparent 100%),
    linear-gradient(to right, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.35) 85%, transparent 100%),
    linear-gradient(to right, #000 85%, transparent 100%);
  mask-composite: intersect;
}
.cell-img-wrap:hover .cell-img { opacity: 1; }
.cell-img-wrap:hover .cell-img {
  transform: scale(1.03);
}
.nosotros-split-right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}
.stat-counter {
  background: var(--c-bg-card-alt);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  transition: all var(--t-base) var(--ease-out);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}
.stat-counter:hover {
  border-color: var(--c-border);
  transform: translateX(6px);
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 200, 255, 0.05);
}
.counter-number {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--c-green);
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.counter-label {
  font-size: var(--fs-sm);
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

/* CTA Banner */
.cta-banner {
  position: relative;
  background-image: url('../assets/img/dna-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 12, 27, 0.9) 0%, rgba(1, 8, 16, 0.95) 100%);
  z-index: 1;
}
.cta-banner-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}
.cta-banner h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: white;
}
/* Fijo, no var(--c-text): esta banda es siempre oscura (foto real de fondo),
   así que el texto reactivo al tema se volvía oscuro-sobre-oscuro en modo claro. */
.cta-banner p {
  font-size: var(--fs-md);
  color: rgba(210,235,255,0.82);
  max-width: 600px;
}
.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
  animation: button-glow 3s ease-in-out infinite;
}
@keyframes button-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 200, 255, 0.3); }
  50%       { box-shadow: 0 0 35px rgba(0, 255, 157, 0.5); }
}

/* Technology DNA Decors */
.tech-dna-deco {
  margin-top: var(--sp-2xl);
  display: flex;
  justify-content: center;
  width: 100%;
}
.tech-dna-deco svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  opacity: 0.25;
  transition: opacity var(--t-base) ease;
}
.tech-dna-deco:hover svg {
  opacity: 0.6;
}

/* ── RESPONSIVE OVERRIDES FOR NEW SECTIONS ── */
@media (max-width: 1024px) {
  .nosotros-split {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
  .cell-img {
    height: 280px;
  }
}
@media (max-width: 768px) {
  .dna-divider {
    min-height: 160px;
    height: auto;
    padding: 3rem 1.25rem;
  }
  .dna-divider-content h2 {
    font-size: 1.25rem;
  }
  .cta-banner h2 {
    font-size: var(--fs-2xl);
  }
  .cta-banner p {
    font-size: var(--fs-base);
  }
}


/* === CONSULTOR INDEPENDIENTE + INFO BAJO PRODUCTOS (rizomático) === */
/* Espacio liso: sin cajas cerradas; delimitación por hairlines y proximidad */
.products-info .info-card {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 0;
  padding: var(--sp-lg) 0;
}

.consultor-card {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.consultor-badge-wrap {
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consultor-badge {
  max-width: 190px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px var(--c-cyan-soft, rgba(0, 200, 255, 0.3)));
}

.consultor-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.consultor-name {
  color: var(--c-heading);
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.consultor-title {
  color: var(--c-cyan);
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.consultor-disclaimer {
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

.consultor-link {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.consultor-link:hover {
  color: var(--c-heading);
  border-color: var(--c-cyan);
}

@media (max-width: 768px) {
  .consultor-card {
    flex-direction: column;
    text-align: center;
  }
  .consultor-name-row {
    justify-content: center;
  }
}

/* ── PREFERS-REDUCED-MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #heroCanvas {
    display: none !important;
  }
  .hero-orb,
  .hero-card,
  .hero-glow,
  .scroll-arrow,
  .badge-dot,
  .whatsapp-fab,
  .btn-glow {
    animation: none !important;
  }
  .hero-visual-img-wrap {
    animation: none !important;
  }
}

/* ── CARDS CLICKEABLES UI/UX ── */
.tech-card-link-block, .product-card-link-block {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-text);
  cursor: pointer;
  height: 100%;
}
.tech-card-link-block:hover .tech-card-title,
.product-card-link-block:hover h3 {
  color: var(--c-cyan) !important;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}
.tech-card-link-block:hover .tech-card-img,
.product-card-link-block:hover .product-img {
  transform: scale(1.03);
  border-color: var(--c-cyan);
}
.tech-card-action-bar {
  margin-top: auto;
  padding: 0.65rem 1rem;
  background: var(--c-cyan-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  color: var(--c-cyan);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--t-fast) ease;
}
.tech-card-link-block:hover .tech-card-action-bar,
.product-card-link-block:hover .tech-card-action-bar {
  background: var(--c-cyan);
  color: #020C1B;
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.4);
}

/* ══════════════════════════════════════════════════════════
   RIZOMATIC DESIGN SYSTEM — Chunk 1
   Fluid boundaries, hairline delimiters, no rigid boxes
   ══════════════════════════════════════════════════════════ */

/* ── Hairline Separator ── */
.rizo-hairline {
  border: none;
  border-top: 1px solid rgba(0, 200, 255, 0.15);
  margin: 2.5rem 0;
}

/* ── Micro-Section: each h2 gets its own visual space ── */
.rizo-micro-section {
  position: relative;
  padding: 2rem 2rem 2rem 2.5rem;
  margin-bottom: 2rem;
  background: rgba(0, 200, 255, 0.03);
  border-left: 3px solid var(--c-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[data-theme="light"] .rizo-micro-section {
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-cyan);
  box-shadow: var(--shadow-sm);
}

.rizo-micro-section h2 {
  font-family: var(--font-display, 'Clash Display', var(--font));
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-cyan);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.rizo-micro-section p,
.rizo-micro-section ul {
  color: var(--c-text);
  line-height: 1.75;
}

/* ── Micro-Section with SVG icon ── */
.rizo-micro-section--icon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.25rem;
  align-items: start;
}

.rizo-micro-section--icon .rizo-section-icon {
  grid-row: 1 / -1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

[data-theme="light"] .rizo-micro-section--icon .rizo-section-icon {
  background: var(--c-cyan-soft);
  border-color: var(--c-border);
}

.rizo-micro-section--icon .rizo-section-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--c-cyan);
  fill: none;
}

/* ── Micro-Section color variants ── */
.rizo-micro-section--green {
  background: rgba(0, 255, 157, 0.03);
  border-left-color: var(--c-green);
}

[data-theme="light"] .rizo-micro-section--green {
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-green);
  box-shadow: var(--shadow-sm);
}

.rizo-micro-section--green h2 {
  color: var(--c-green);
}

.rizo-micro-section--green .rizo-section-icon {
  background: rgba(0, 255, 157, 0.08);
  border-color: rgba(0, 255, 157, 0.2);
}

[data-theme="light"] .rizo-micro-section--green .rizo-section-icon {
  background: var(--c-green-soft);
  border-color: var(--c-border);
}

.rizo-micro-section--green .rizo-section-icon svg {
  stroke: var(--c-green);
}

/* ── Sidebar Block (compact, rizomatic) ── */
.rizo-sidebar-block {
  min-width: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 200, 255, 0.03);
  border-top: 1px solid rgba(0, 200, 255, 0.15);
}

[data-theme="light"] .rizo-sidebar-block {
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}

.rizo-sidebar-block h3 {
  font-family: var(--font-display, 'Clash Display', var(--font));
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  /* block y no flex: como contenedor flex, el texto anónimo del título no se
     contrae por debajo de su min-content y desbordaba la columna en 1024px. */
  display: block;
  overflow-wrap: anywhere;
}

.rizo-sidebar-block h3 svg {
  width: 16px;
  height: 16px;
  stroke: var(--c-cyan);
  fill: none;
  flex-shrink: 0;
  vertical-align: -3px;
  margin-right: 0.55rem;
}

.rizo-sidebar-block p,
.rizo-sidebar-block li {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rizo-sidebar-block ul {
  list-style: none;
}

.rizo-sidebar-block li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 200, 255, 0.07);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.rizo-sidebar-block li:last-child {
  border-bottom: none;
}

.rizo-sidebar-block li strong {
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

/* ── Benefits Hybrid: SVG check + micro-layout ── */
.rizo-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rizo-benefit-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 200, 255, 0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  align-items: start;
}

.rizo-benefit-item:last-child {
  border-bottom: none;
}

.rizo-benefit-check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
}

.rizo-benefit-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--c-green);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rizo-benefit-content strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--c-heading);
  margin-bottom: 0.35rem;
}

.rizo-benefit-content span {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── Sticky CTA (WhatsApp) ── */
.sticky-cta {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(135deg, #00C8FF 0%, #0088CC 100%);
  color: #020C1B;
  font-family: var(--font-display, 'Clash Display', var(--font));
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 24px rgba(0, 200, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .sticky-cta a {
  background: linear-gradient(135deg, #0077B6 0%, #0096C7 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35);
}

.sticky-cta a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(0, 200, 255, 0.6);
}

[data-theme="light"] .sticky-cta a:hover {
  box-shadow: 0 10px 30px rgba(0, 119, 182, 0.55);
}

.sticky-cta a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#video-cover-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  background: var(--c-bg-surface);
}

/* ── Subpage Layout ── */

@media (max-width: 900px) {
  .subpage-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ── Tech Grid & Cards (Homepage) ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4.5rem 4rem;
  position: relative;
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* ── Zonas rizomáticas ──────────────────────────────────────────────────────
   La información fluye por zonas delimitadas por hairlines, no por recuadros
   auto contenidos. Nada aquí lleva marco cerrado ni esquinas redondeadas: la
   imagen se disuelve en el fondo con una máscara, el badge es una etiqueta
   suelta y la acción es un enlace subrayado. El único límite es la línea
   superior, que marca dónde empieza la zona sin encerrarla. */
.tech-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: -1.25rem; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.45) 0%, rgba(0, 200, 255, 0.06) 80%, transparent 100%);
  transition: background 0.35s ease;
}

/* El hover ilumina la zona, no levanta una tarjeta. */
.tech-card:hover::before {
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.85) 0%, rgba(0, 200, 255, 0.15) 80%, transparent 100%);
}

.tech-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  /* Se desvanece por abajo y por la derecha: la imagen se derrama en la zona
     en vez de quedar recortada por un marco o por una silueta ajena a su contenido. */
  -webkit-mask-image:
    linear-gradient(to bottom, #000 52%, rgba(0,0,0,0.4) 84%, transparent 100%),
    linear-gradient(to right, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 52%, rgba(0,0,0,0.4) 84%, transparent 100%),
    linear-gradient(to right, #000 82%, transparent 100%);
  mask-composite: intersect;
  transition: opacity 0.35s ease;
}

.tech-card-link-block {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

.tech-card-link-block:hover .tech-card-img {
  opacity: 1;
}

.tech-card-title {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 1.65rem;
  color: var(--c-heading);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.tech-card-desc {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.tech-card-features {
  margin-bottom: 1.75rem;
  border-left: 2px solid rgba(0, 200, 255, 0.25);
  padding-left: 1.1rem;
  list-style: none;
}

.tech-card-features li {
  font-size: 0.875rem;
  color: var(--c-primary);
  padding: 0.3rem 0;
}

/* Etiqueta suelta, no píldora: anuncia la zona sin encerrarla. */
.tech-card-badge {
  display: inline-block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.9rem;
  color: var(--c-green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Acción como enlace subrayado, no como botón enmarcado. */
.tech-card-action-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.35);
  border-radius: 0;
  padding: 0.55rem 0;
  color: var(--c-cyan);
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.35s ease, gap 0.35s ease;
}

/* Neutraliza el hover previo (~línea 2046), que rellenaba el enlace de cian
   sólido con sombra y volvía a leerse como botón. */
.tech-card-link-block:hover .tech-card-action-bar {
  background: none;
  color: #5DDEFF;
  box-shadow: none;
  border-bottom-color: var(--c-cyan);
  gap: 1.1rem;
}
[data-theme="light"] .tech-card-link-block:hover .tech-card-action-bar { color: var(--c-cyan); }

.tech-card-disclaimer {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 200, 255, 0.12);
  line-height: 1.45;
  font-style: italic;
}

/* ── Clinical Selector Section ── */
/* Antes duplicado inline en index.html con valores distintos (que ganaban por
   especificidad); consolidado aquí para que el toggle de tema lo alcance. */
#clinical-selector-section {
  background: var(--c-bg-mid);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 5rem 0;
  position: relative;
}

.clinical-double-bezel {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 200, 255, 0.2);
  border-bottom: 1px solid rgba(0, 200, 255, 0.2);
  padding: 3.5rem 0;
}

/* Antes iba inline en index.html con grid-template-columns:1fr 1fr, que ninguna media query
   podia sobrescribir (los estilos inline ganan) -> dos columnas de ~322px en pantalla de 390. */
.clinical-selector-grid {
  background: var(--c-bg-surface);
  border: 1px solid var(--hair-strong, rgba(0, 200, 255, 0.3));
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
/* Sin esto los items de grid usan min-width:auto y no pueden encoger por debajo de su
   contenido: la columna se resolvia a 388px dentro de un contenedor de 342. */
.clinical-selector-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .clinical-selector-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
}
@media (max-width: 480px) {
  .clinical-selector-grid { padding: 1.15rem; gap: 1.25rem; }
}

/* ── Product Hero Image ──
   Renders con alfa (silueta transparente): no hay borde de foto que disolver,
   así que el fix rizomático es simplemente no enmarcarla — antes llevaba
   border + border-radius, un marco rectangular alrededor de espacio vacío. */
.rizo-product-hero-img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(0, 200, 255, 0.18));
}

/* ── Product Marquee (scroll infinito — rizomático) ── */
.product-marquee {
  overflow: hidden;
  width: 100%;
  padding: 24px 0 44px;
}

.product-marquee-inner {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: product-marquee-scroll 50s linear infinite;
  align-items: flex-start;
}

.product-marquee:hover .product-marquee-inner {
  animation-play-state: paused;
}

.product-marquee-card {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--c-text);
  position: relative;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.product-marquee-card img {
  max-width: 180px;
  max-height: 180px;
  width: auto;
  height: 180px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 200, 255, 0.15));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  object-fit: contain;
}

/* El zoom aplica exclusivamente al render del producto para no recortar la caja de texto */
.product-marquee-card:hover img {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 14px 30px rgba(54, 88, 241, 0.35));
}

.product-marquee-card-body {
  margin-top: 14px;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.product-marquee-card-body h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--c-heading);
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.product-marquee-card-body p {
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  color: var(--c-cyan);
  margin: 3px 0 0;
  text-shadow: none;
  letter-spacing: 0.01em;
}

[data-theme="light"] .product-marquee-card-body h3 {
  color: var(--c-heading) !important;
  text-shadow: none !important;
}

[data-theme="light"] .product-marquee-card-body p {
  color: var(--c-cyan) !important;
  text-shadow: none !important;
}

@keyframes product-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── LIGHT THEME SUBPAGE REINFORCEMENTS ── */
[data-theme="light"] .subpage-hero-title {
  color: #06283D !important;
  text-shadow: none !important;
}

[data-theme="light"] .subpage-hero-desc {
  color: rgba(6, 40, 61, 0.85) !important;
}

[data-theme="light"] .subpage-hero-badge {
  color: #006B94 !important;
  border-bottom: 1px solid rgba(6, 59, 92, 0.2) !important;
}

[data-theme="light"] .breadcrumb-current {
  color: #006B94 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .breadcrumb-link {
  color: rgba(6, 40, 61, 0.7) !important;
}

[data-theme="light"] .subpage-nav-link {
  color: #06283D !important;
}

[data-theme="light"] .subpage-nav-link:hover,
[data-theme="light"] .subpage-nav-link.active {
  color: #006B94 !important;
  text-shadow: none !important;
}

/* ── CATALOG HUB SECTION & FILTER BAR (ARQUITECTURA DE CATÁLOGO PROPIO) ── */
.catalog-section {
  padding: 3rem 0 5rem;
  background: var(--c-bg);
}

.catalog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

.catalog-filter-btn {
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.catalog-filter-btn:hover {
  border-color: var(--c-cyan);
  color: var(--c-heading);
  transform: translateY(-1px);
}

.catalog-filter-btn.active {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: #020C1B;
  font-weight: 700;
  box-shadow: var(--shadow-sm), 0 0 15px var(--c-cyan-glow);
}

[data-theme="light"] .catalog-filter-btn.active {
  background: #051338;
  border-color: #051338;
  color: #FFFFFF;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.catalog-card {
  background: var(--c-bg-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-cyan);
  box-shadow: var(--shadow-lg), 0 0 25px var(--c-cyan-glow);
}

.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.catalog-card-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: var(--c-cyan-soft);
  color: var(--c-cyan);
  border: 1px solid var(--c-cyan-glow);
}

.catalog-card-category {
  font-size: 0.8rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-card-media {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  background: radial-gradient(circle at center, var(--c-cyan-soft) 0%, transparent 70%);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.catalog-card-media img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.catalog-card:hover .catalog-card-media img {
  transform: scale(1.06);
}

.catalog-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.catalog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.catalog-card-title a:hover {
  color: var(--c-cyan);
}

.catalog-card-subtitle {
  font-size: 0.92rem;
  color: var(--c-green);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.catalog-card-desc {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.catalog-card-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--c-muted);
  background: var(--c-bg-mid);
  border: 1px solid var(--c-border);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 1.35rem;
  width: fit-content;
}

.catalog-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
}

.btn-card-detail {
  background: transparent;
  border: 1px solid var(--c-cyan);
  color: var(--c-cyan) !important;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.btn-card-detail:hover,
.btn-card-detail:focus,
.btn-card-detail:active {
  background: var(--c-cyan-soft);
  border-color: var(--c-cyan);
  color: var(--c-heading) !important;
}

[data-theme="light"] .btn-card-detail {
  border-color: #3658F1;
  color: #051338 !important;
  background: rgba(54, 88, 241, 0.08);
}

[data-theme="light"] .btn-card-detail:hover,
[data-theme="light"] .btn-card-detail:focus,
[data-theme="light"] .btn-card-detail:active {
  background: #3658F1;
  border-color: #3658F1;
  color: #FFFFFF !important;
}

.btn-card-wa {
  background: #00FF9D;
  border: 1px solid #00FF9D;
  color: #020C1B !important;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s;
  user-select: none;
}

.btn-card-wa:hover,
.btn-card-wa:focus,
.btn-card-wa:active {
  background: #00CC7A;
  border-color: #00CC7A;
  color: #020C1B !important;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.4);
}

[data-theme="light"] .btn-card-wa {
  background: #045C3D;
  border-color: #045C3D;
  color: #FFFFFF !important;
}

[data-theme="light"] .btn-card-wa:hover,
[data-theme="light"] .btn-card-wa:focus,
[data-theme="light"] .btn-card-wa:active {
  background: #068A5B;
  border-color: #068A5B;
  color: #FFFFFF !important;
  box-shadow: 0 0 12px rgba(6, 138, 91, 0.35);
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* === END RIZOMATIC FOUNDATION === */


/* ── AVISO DE COOKIES (consent-first — lo monta js/analytics-gate.js) ── */
.vt-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* por encima de los elementos fijos del sitio (sticky-cta 9999, otros 10001)
     para que no tapen los botones del aviso */
  z-index: 11000;
  background: var(--c-bg-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  animation: vt-cookie-in 0.28s ease-out;
}
[data-theme="light"] .vt-cookie-banner {
  background: #FFFFFF;
  box-shadow: 0 -12px 40px rgba(0, 32, 64, 0.12);
}
@keyframes vt-cookie-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .vt-cookie-banner { animation: none; }
}
.vt-cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.vt-cookie-copy { flex: 1 1 420px; min-width: 0; }
.vt-cookie-title {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
[data-theme="light"] .vt-cookie-title { color: var(--c-cyan-dark); }
.vt-cookie-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--c-text);
}
.vt-cookie-link {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
[data-theme="light"] .vt-cookie-link { color: var(--c-cyan-dark); }
.vt-cookie-actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.vt-cookie-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vt-cookie-btn--accept {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: #02121F;
}
.vt-cookie-btn--accept:hover { background: var(--c-cyan-dark); border-color: var(--c-cyan-dark); }
.vt-cookie-btn--reject { background: transparent; color: var(--c-text); }
.vt-cookie-btn--reject:hover { border-color: var(--c-cyan); color: var(--c-primary); }
.vt-cookie-btn:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
@media (max-width: 640px) {
  .vt-cookie-inner { padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px)); }
  .vt-cookie-actions { width: 100%; gap: 0.75rem; }
  .vt-cookie-btn { flex: 1 1 0; min-height: 48px; }
}
