/**
 * ==============================================================================
 * HISTRIX ERP · LANDING STORYTELLING — ESTILOS PRINCIPALES (2026)
 * Estructura inspirada en la arquitectura de interacción de Anime.js v4
 * Adaptada 100% al Sistema de Diseño Oficial "Familia Hipocampo" de Mundo IT
 * ==============================================================================
 */

@import url('./histrix-tokens.css');

/* --- Reset y Configuración Global --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--canvas-pure);
  color: var(--ink);
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  font-family: var(--font-body);
  background-color: var(--canvas-pure);
  color: var(--ink);
  overflow-x: clip;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
}

html.dark,
html.dark body {
  background-color: var(--canvas-dark);
  color: var(--ink-dark);
}

/* Selección de texto con identidad de marca */
::selection {
  background: rgba(101, 99, 174, 0.2);
  color: #1a1923;
}

html.dark ::selection {
  background: rgba(2, 254, 205, 0.25);
  color: #fefffe;
}

/* Enlaces y botones base */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Layout Contenedor --- */
.layout-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .layout-container {
    padding: 0 48px;
  }
}

/* ==============================================================================
   BARRA DE NAVEGACIÓN SUPERIOR (FROSTED GLASS ESTILO APPLE)
   ============================================================================== */
#site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 16px;
  pointer-events: none;
}

.header-glass-bar {
  pointer-events: auto;
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(27, 26, 40, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(61, 59, 88, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px -4px rgba(10, 9, 16, 0.5);
  transition: all 0.3s ease;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(101, 99, 174, 0.6));
  transition: transform 0.3s ease;
}

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

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
  line-height: 1.1;
}

.brand-endorsement {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-mint);
  line-height: 1;
}


/* Navegación Principal */
.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-300);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-mint);
  border-radius: 2px;
}

/* Acciones en Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--violet-600);
  color: #fefffe;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--violet-700);
  box-shadow: var(--shadow-btn);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary-cta:hover {
  background: var(--violet-700);
  box-shadow: 0 6px 20px rgba(81, 79, 150, 0.5);
  transform: translateY(-1px);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

/* Menú Móvil Botón */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-dark);
  border-radius: var(--radius-md);
  background: rgba(44, 42, 66, 0.5);
}

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

/* ==============================================================================
   VIEWPORT FIJO DE LA ANIMACIÓN (STAGE DEL HIPOCAMPO SVG)
   Equivalente al #engine de Anime.js pero renderizando nuestro caballito en SVG
   ============================================================================== */
#stage-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: var(--canvas-pure);
  opacity: 0;
  transition: opacity 0.35s ease, background-color 0.35s ease;
}

html.dark #stage-viewport {
  background: var(--canvas-dark);
}

/* Halos y Atmósfera Bioluminiscente */
.ambient-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-radial-violet {
  position: absolute;
  top: -15%;
  left: 10%;
  width: 90vw;
  height: 90vh;
  background: radial-gradient(circle, rgba(101, 99, 174, 0.1) 0%, rgba(244, 244, 248, 0.65) 65%, transparent 80%);
  filter: blur(50px);
}

html.dark .glow-radial-violet {
  background: radial-gradient(circle, rgba(101, 99, 174, 0.18) 0%, rgba(27, 26, 40, 0.8) 65%, transparent 80%);
}

.glow-radial-mint {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(11, 191, 157, 0.08) 0%, rgba(101, 99, 174, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  transition: opacity 0.5s ease;
}

html.dark .glow-radial-mint {
  background: radial-gradient(circle, rgba(2, 254, 205, 0.09) 0%, rgba(101, 99, 174, 0.12) 40%, transparent 70%);
}

/* Canvas de partículas de datos flotantes */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Grilla técnica isométrica de fondo */
.blueprint-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(101, 99, 174, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(101, 99, 174, 0.16) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}

html.dark .blueprint-grid-canvas {
  opacity: 0.12;
  background-image: 
    linear-gradient(to right, rgba(101, 99, 174, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(101, 99, 174, 0.3) 1px, transparent 1px);
}

/* Contenedor SVG Maestro del Hipocampo */
.seahorse-master-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 920px);
  height: min(88vh, 880px);
  z-index: 5;
  perspective: 1200px;
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
}

.seahorse-svg-root {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 38px rgba(81, 79, 150, 0.22));
  will-change: transform;
}

html.dark .seahorse-svg-root {
  filter: drop-shadow(0 20px 45px rgba(10, 9, 16, 0.75)) drop-shadow(0 0 25px rgba(101, 99, 174, 0.35));
}

/* ==============================================================================
   DETALLES Y PIEZAS DEL HIPOCAMPO SVG
   ============================================================================== */
.seahorse-armor-plate {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  will-change: transform;
}

.spine-pulse {
  transform-origin: center;
  animation: pulseSpine 2.4s infinite ease-in-out;
}

@keyframes pulseSpine {
  0% { r: 5px; opacity: 0.9; }
  50% { r: 16px; opacity: 0.15; }
  100% { r: 24px; opacity: 0; }
}

.fin-undulate {
  transform-origin: 500px 520px;
  animation: undulateFin 1.8s infinite ease-in-out alternate;
}

@keyframes undulateFin {
  0% { transform: scaleX(0.96) rotate(-1.5deg); }
  100% { transform: scaleX(1.04) rotate(2deg); }
}

.data-stream-pulse {
  stroke-dasharray: 8 16;
  animation: dataStreamRun 2s linear infinite;
}

@keyframes dataStreamRun {
  to { stroke-dashoffset: -96; }
}

/* ==============================================================================
   CAPA DE CONTENIDO STORYTELLING (SCROLLING SECTIONS)
   ============================================================================== */
#story-main {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 60px;
}

/* Capítulo Individual */
.story-chapter {
  position: relative;
  min-height: 125vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.story-chapter.short {
  min-height: 90vh;
}

/* Tarjeta Narrativa Flotante */
.narrative-card {
  position: relative;
  max-width: 540px;
  background: rgba(33, 31, 51, 0.86);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(61, 59, 88, 0.75);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: 0 16px 48px -8px rgba(10, 9, 16, 0.65);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-align-left {
  margin-right: auto;
}

.card-align-right {
  margin-left: auto;
}

.card-align-center {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}

/* Meta Pill del Capítulo */
.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44, 42, 66, 0.8);
  border: 1px solid rgba(101, 99, 174, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-mint);
  margin-bottom: 20px;
}

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

/* Titulares y Tipografía Narrativa */
.chapter-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-dark);
  margin-bottom: 18px;
}

.chapter-title span.highlight-mint {
  color: var(--brand-mint);
}

.chapter-title span.highlight-violet {
  color: #a9a8cf;
}

.chapter-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted-dark);
  margin-bottom: 24px;
}

.chapter-desc strong {
  color: #fefffe;
  font-weight: 600;
}

/* Lista de Métricas Técnicas */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(61, 59, 88, 0.6);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-300);
  margin-top: 4px;
}

/* ==============================================================================
   SECCIÓN 2: ARQUITECTURA DESPIEZADA (BLUEPRINT VISTA EXPLODED)
   ============================================================================== */
.blueprint-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .blueprint-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blueprint-item {
  background: rgba(27, 26, 40, 0.7);
  border: 1px solid rgba(101, 99, 174, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: left;
}

.blueprint-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.blueprint-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-mint);
}

.blueprint-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 4px;
}

.blueprint-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted-dark);
}

/* ==============================================================================
   SECCIÓN 3: LAS 6 ESPINAS DE HISTRIX (BENTO DE MÓDULOS CORE)
   ============================================================================== */
.spines-interactive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.spine-row-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(27, 26, 40, 0.6);
  border: 1px solid rgba(61, 59, 88, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.spine-row-btn:hover, .spine-row-btn.active {
  background: rgba(44, 42, 66, 0.85);
  border-color: var(--brand-mint);
  transform: translateX(4px);
}

.spine-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-mint);
  background: rgba(2, 254, 205, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.spine-info {
  flex: 1;
}

.spine-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-dark);
  line-height: 1.2;
}

.spine-sub {
  font-size: 11.5px;
  color: var(--violet-300);
}

/* ==============================================================================
   SECCIÓN 5: TRAYECTORIA, MEMORIA Y CERTIFICACIÓN ISO 9001
   ============================================================================== */
.iso-certificate-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(44, 42, 66, 0.6);
  border: 1px solid rgba(101, 99, 174, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
}

.iso-seal-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-seal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.iso-details {
  text-align: left;
}

.iso-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-dark);
}

.iso-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-mint);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.iso-sub {
  font-size: 12px;
  color: var(--violet-300);
  margin-top: 4px;
}

/* Carrusel / Grilla de Clientes Industriales */
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  opacity: 0.85;
}

.client-logo-box {
  background: rgba(27, 26, 40, 0.7);
  border: 1px solid rgba(61, 59, 88, 0.5);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) brightness(1.2);
  transition: all 0.25s ease;
}

.client-logo-box:hover {
  filter: grayscale(0%) brightness(1);
  border-color: var(--brand-violet);
  transform: translateY(-2px);
}

.client-logo-img {
  max-height: 28px;
  max-width: 110px;
  object-fit: contain;
}


/* ==============================================================================
   MODAL DE DEMO TÉCNICA (CONVERTIR VISITANTE EN CONTACTO INDUSTRIAL)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 32px 36px 30px;
  box-shadow: 0 24px 54px -12px rgba(0, 0, 0, 0.45);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .modal-dialog {
    padding: 24px 20px 22px;
    border-radius: 16px;
  }
  .modal-grid-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--violet-300);
  background: rgba(44, 42, 66, 0.5);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--ink-dark);
  background: rgba(101, 99, 174, 0.3);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dark);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(27, 26, 40, 0.8);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--ink-dark);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-mint);
  box-shadow: 0 0 0 2px rgba(2, 254, 205, 0.2);
}

/* ==============================================================================
   FOOTER INSTITUCIONAL (FAMILIA HIPOCAMPO)
   ============================================================================== */
#site-footer {
  position: relative;
  z-index: 10;
  background: #141320;
  border-top: 1px solid var(--border-dark);
  padding: 64px 0 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-subbrand-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.footer-subbrand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--violet-300);
}

.footer-subbrand-item strong {
  color: var(--ink-dark);
}

.footer-subbrand-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(44, 42, 66, 0.6);
  border-radius: var(--radius-xs);
  color: var(--brand-mint);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(61, 59, 88, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint-dark);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* ==============================================================================
   SISTEMA DUAL DÍA (BLANCO POR DEFECTO) / NOCHE (VIOLETA CANÓNICO #1B1A28)
   Contraste Profesional WCAG AAA — Tokens Oficiales Familia Hipocampo (Mundo IT)
   ============================================================================== */

/* --- 1. SWITCH MINIMALISTA SQUIRCLE DÍA / NOCHE (#theme-edge-dock / .theme-edge-switch-dock) --- */
.theme-edge-switch-dock {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 95;
  /* En reposo: asoma discretamente 18px con el handle cilíndrico en el borde */
  transform: translateY(-50%) translateX(calc(100% - 18px));
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.theme-edge-switch-dock:hover,
.theme-edge-switch-dock:focus-within,
.theme-edge-switch-dock.is-open {
  transform: translateY(-50%) translateX(0);
}

.theme-edge-switch-wrapper {
  display: inline-flex;
  align-items: center;
  background: #191826;
  padding: 5px 9px 5px 6px;
  border-radius: 11px 0 0 11px;
  border: 1px solid #35334a;
  border-right: none;
  box-shadow: -6px 10px 28px rgba(0, 0, 0, 0.45);
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.theme-edge-switch-dock:hover .theme-edge-switch-wrapper {
  border-color: #02fecd;
  box-shadow: -8px 12px 32px rgba(2, 254, 205, 0.16), -4px 6px 20px rgba(0, 0, 0, 0.55);
}

.edge-switch-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 32px;
  flex-shrink: 0;
}

.edge-switch-handle .handle-bar {
  width: 3px;
  height: 18px;
  border-radius: 9999px;
  background: #02fecd;
  box-shadow: 0 0 6px #02fecd;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.theme-edge-switch-dock:hover .edge-switch-handle .handle-bar {
  opacity: 0.5;
  transform: scaleY(0.85);
}

/* =============================================================================
   MINIMAL SQUIRCLE SWITCH (Formato cuadrado con esquinas suavemente redondeadas)
   ============================================================================= */
.minimal-theme-switch {
  position: relative;
  width: 64px;
  height: 34px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: block;
  flex-shrink: 0;
}

/* Track: Rectangular con esquinas redondeadas suaves */
.minimal-switch-track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #232233;
  border: 1px solid #3a384f;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.55),
    inset 0 1px 2px rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Micro-iconos integrados en el fondo del track */
.track-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.track-icon-sun {
  color: #d97706;
  opacity: 0.35;
}

.track-icon-moon {
  color: #02fecd;
  opacity: 0.35;
}

/* Knob: Cuadrado con puntas un poco redondeadas e inserción de 3 estrías táctiles (|||) */
.minimal-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #eceaf3 48%, #dad8e8 100%);
  border: 1px solid #ffffff;
  border-bottom: 1px solid #b2b0c4;
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2px;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2), background 0.25s ease;
  z-index: 2;
  box-sizing: border-box;
}

/* 3 Estrías táctiles de agarre */
.knob-ridge {
  width: 1.5px;
  height: 11px;
  border-radius: 1px;
  background: #aba8be;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.7);
}

/* Estado Activo en Modo Noche (Knob a la derecha) */
html.dark .minimal-theme-switch .minimal-switch-knob {
  transform: translateX(30px);
}
html.dark .minimal-theme-switch .track-icon-moon {
  opacity: 0.95;
}
html.dark .minimal-theme-switch .track-icon-sun {
  opacity: 0.2;
}

/* Estado Activo en Modo Día (Knob a la izquierda) */
html:not(.dark) .theme-edge-switch-wrapper {
  background: #ffffff;
  border-color: #d0cfde;
  box-shadow: -6px 10px 28px rgba(81, 79, 150, 0.15);
}
html:not(.dark) .theme-edge-switch-dock:hover .theme-edge-switch-wrapper {
  border-color: #514f96;
  box-shadow: -8px 12px 32px rgba(81, 79, 150, 0.22);
}
html:not(.dark) .edge-switch-handle .handle-bar {
  background: #514f96;
  box-shadow: 0 0 6px rgba(81, 79, 150, 0.4);
}
html:not(.dark) .minimal-switch-track {
  background: #dedce8;
  border-color: #bcbacd;
  box-shadow: 
    inset 0 2px 4px rgba(26, 25, 35, 0.14),
    inset 0 1px 2px rgba(26, 25, 35, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8);
}
html:not(.dark) .minimal-theme-switch .minimal-switch-knob {
  transform: translateX(0);
  background: linear-gradient(180deg, #ffffff 0%, #f5f4f9 48%, #e4e3ee 100%);
}
html:not(.dark) .minimal-theme-switch .track-icon-sun {
  opacity: 0.95;
}
html:not(.dark) .minimal-theme-switch .track-icon-moon {
  opacity: 0.2;
}

/* Selector en el menú móvil (#mobile-menu) */
.theme-edge-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0eff8;
  border: 1px solid #d0cfd8;
  border-radius: 9999px;
  padding: 3px;
}

.theme-edge-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
}

/* Estado Activo en Modo Día (Blanco) */
html:not(.dark) .theme-edge-opt-light {
  background: #514f96;
  color: #fefffe;
  box-shadow: 0 2px 6px rgba(81, 79, 150, 0.28);
}

html:not(.dark) .theme-edge-opt-light svg {
  color: #02fecd;
}

html:not(.dark) .theme-edge-opt-dark {
  background: transparent;
  color: #3e3c50;
}

html:not(.dark) .theme-edge-opt-dark:hover {
  color: #1a1923;
  background: #f0eff8;
}

/* Estado Activo en Modo Noche (Violeta Canónico) */


html.dark .theme-edge-pill-group {
  background: #1b1a28;
  border-color: #3d3b58;
}

html.dark .theme-edge-opt-light {
  background: transparent;
  color: #a9a8cf;
}

html.dark .theme-edge-opt-light:hover {
  color: #fefffe;
  background: #2c2a42;
}

html.dark .theme-edge-opt-dark {
  background: #514f96;
  color: #fefffe;
  border: 1px solid #6563ae;
}

html.dark .theme-edge-opt-dark svg {
  color: #02fecd;
}

/* --- 2. BARRA SUPERIOR DE MENÚ (EFECTO FROSTED GLASS TRANSLÚCIDO ESTILO ZINIT · DÍA & NOCHE) --- */
.apple-nav-wrapper::before {
  display: none !important;
  content: none !important;
}

html:not(.dark) .apple-nav-container,
html:not(.dark) .apple-nav-container.is-scrolled {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(244, 244, 248, 0.42) 52%,
    rgba(255, 255, 255, 0.50) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(185%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(185%) !important;
  border: 1px solid rgba(81, 79, 150, 0.18) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 32px -6px rgba(26, 25, 35, 0.10) !important;
}

html:not(.dark) .apple-nav-container .brand-text-title {
  color: #1a1923 !important;
}

html:not(.dark) .apple-nav-container .brand-text-endorse {
  color: #514f96 !important;
  font-weight: 600 !important;
}

html:not(.dark) .apple-nav-link {
  color: #1a1923 !important;
  font-weight: 600 !important;
}

html:not(.dark) .apple-nav-link:hover,
html:not(.dark) .apple-nav-item:hover .apple-nav-link,
html:not(.dark) .apple-nav-item.is-open .apple-nav-link {
  color: #514f96 !important;
  background: rgba(240, 239, 248, 0.72) !important;
}

html:not(.dark) .apple-search-box {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(81, 79, 150, 0.18) !important;
}

html:not(.dark) .apple-search-box.is-expanded {
  background: rgba(255, 255, 255, 0.88) !important;
}

html:not(.dark) .apple-search-input {
  color: #1a1923 !important;
}

html:not(.dark) .apple-search-input::placeholder {
  color: #4a485c !important;
}

html:not(.dark) .nav-portal-link {
  color: #1a1923 !important;
  font-weight: 600 !important;
}

html:not(.dark) .nav-portal-link:hover {
  color: #514f96 !important;
  background: rgba(240, 239, 248, 0.72) !important;
}

/* --- 3. ADAPTACIÓN ARQUITECTÓNICA DEL HIPOCAMPO SVG EN MODO DÍA (FONDO BLANCO) --- */
html:not(.dark) #seahorse-svg #g-dorsal-fin path:first-child,
html:not(.dark) #seahorse-svg #g-internal-core polygon,
html:not(.dark) #seahorse-svg #g-coronet path,
html:not(.dark) #seahorse-svg #g-pectoral-fin path,
html:not(.dark) #seahorse-svg #g-spine-1 path,
html:not(.dark) #seahorse-svg #g-spine-2 path,
html:not(.dark) #seahorse-svg #g-spine-3 path,
html:not(.dark) #seahorse-svg #g-spine-4 path,
html:not(.dark) #seahorse-svg #g-spine-5 path,
html:not(.dark) #seahorse-svg #g-spine-6 path {
  fill: #ecebf6 !important;
  stroke: #514f96 !important;
}

html:not(.dark) #seahorse-svg #g-chest-upper path:first-child,
html:not(.dark) #seahorse-svg #g-chest-mid path:first-child,
html:not(.dark) #seahorse-svg #g-chest-lower path:first-child,
html:not(.dark) #seahorse-svg #g-head-cranium path:first-child,
html:not(.dark) #seahorse-svg #g-snout path:first-child,
html:not(.dark) #seahorse-svg #g-tail-upper path:first-child,
html:not(.dark) #seahorse-svg #g-tail-mid path:first-child {
  fill: #e2e0f2 !important;
  stroke: #514f96 !important;
}

html:not(.dark) #seahorse-svg #g-eye-socket circle:first-child {
  fill: #ffffff !important;
  stroke: #514f96 !important;
}

html:not(.dark) #seahorse-svg #seahorse-pupil circle {
  fill: #1a1923 !important;
}

html:not(.dark) #seahorse-svg text[fill="#fefffe"] {
  fill: #1a1923 !important;
}

html:not(.dark) #seahorse-svg #g-internal-core text {
  fill: #fefffe !important;
}

html:not(.dark) #seahorse-svg text[fill="#02fecd"] {
  fill: #0a7562 !important;
}

html:not(.dark) #seahorse-svg text[fill="#a9a8cf"] {
  fill: #3e3c73 !important;
}

html:not(.dark) #seahorse-svg rect[fill="#1b1a28"],
html:not(.dark) #seahorse-svg rect[fill="#211f33"] {
  fill: #ffffff !important;
  stroke: #514f96 !important;
  stroke-width: 1.5px !important;
}

html:not(.dark) #seahorse-svg [stroke="#02fecd"] {
  stroke: #0bbf9d !important;
}

html:not(.dark) #seahorse-svg circle[fill="#02fecd"] {
  fill: #0bbf9d !important;
  stroke: #0a7562 !important;
  stroke-width: 1.5px !important;
}

html:not(.dark) #seahorse-svg #g-blueprint-hud line {
  stroke: #514f96 !important;
}

/* --- 4. STORYTELLING EN MODO DÍA (BLANCO POR DEFECTO - ALTO CONTRASTE AAA) --- */
.narrative-card {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid #d0cfd8 !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px -8px rgba(26, 25, 35, 0.1), 0 2px 8px rgba(26, 25, 35, 0.05) !important;
  padding: 38px !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.chapter-badge {
  background: #f0eff8 !important;
  border: 1px solid #c8c6d8 !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  font-family: 'Geist Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: #3e3c73 !important;
}

.chapter-badge-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #0bbf9d !important;
  box-shadow: none !important;
}

.chapter-title {
  font-family: 'Archivo', sans-serif !important;
  font-size: clamp(27px, 3.5vw, 44px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.12 !important;
  color: #1a1923 !important;
  margin-bottom: 18px !important;
}

.highlight-mint,
.highlight-violet {
  color: #514f96 !important;
  text-shadow: none !important;
}

.chapter-desc {
  font-family: 'Archivo', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 450 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  color: #2e2c3d !important;
  margin-bottom: 26px !important;
}

.chapter-desc strong {
  color: #1a1923 !important;
  font-weight: 600 !important;
}

.btn-primary-cta {
  background: #514f96 !important;
  color: #fefffe !important;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  border: 1px solid #3e3c73 !important;
  box-shadow: none !important;
}

.btn-primary-cta:hover {
  background: #3e3c73 !important;
  box-shadow: none !important;
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f4f4f8;
  color: #1a1923;
  border: 1px solid #c8c6d8;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary-cta:hover {
  background: #f0eff8;
  border-color: #514f96;
  color: #3e3c73;
}

.story-callout-box {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f4f4f8;
  border: 1px solid #d0cfd8;
  border-radius: 11px;
  text-align: left;
}

.story-callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.story-callout-title {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1923;
}

.story-callout-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #3e3c73;
  letter-spacing: 0.09em;
}

.story-callout-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 12.5px;
  color: #2e2c3d;
  line-height: 1.5;
  margin: 0;
}

.metrics-row {
  border-top: 1px solid #d0cfd8;
}

.blueprint-item,
.spine-row-btn,
.iso-certificate-card,
.client-logo-box {
  background: #f4f4f8 !important;
  border: 1px solid #d0cfd8 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

.spine-row-btn:hover,
.spine-row-btn.active {
  background: #f0eff8 !important;
  border-color: #514f96 !important;
}

.blueprint-code,
.spine-index,
.metric-label {
  font-family: 'Geist Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  color: #3e3c73 !important;
}

.spine-index {
  background: #e6e4f5 !important;
}

.blueprint-name,
.spine-title,
.iso-title {
  font-family: 'Archivo', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #1a1923 !important;
}

.blueprint-desc,
.spine-sub,
.iso-sub {
  color: #2e2c3d !important;
}

.iso-code {
  color: #0a7562 !important;
  font-weight: 600;
}

.metric-value {
  font-family: 'Geist Mono', monospace !important;
  font-size: 27px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  color: #1a1923 !important;
}

/* Tabla de la Familia Hipocampo en Modo Día (Blanco) */
.hipocampo-family-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid #d0cfd8;
  border-radius: 11px;
  overflow: hidden;
  text-align: left;
}

.hipocampo-family-table th {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #3e3c73;
  padding: 10px 14px;
  border-bottom: 1px solid #d0cfd8;
  background: #f4f4f8;
}

.hipocampo-family-table td {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  font-weight: 450;
  color: #1a1923;
  padding: 10px 14px;
  border-bottom: 1px solid #e4e4ea;
}

.hipocampo-family-table tr:last-child td {
  border-bottom: none;
}

.table-year-cell {
  font-family: 'Geist Mono', monospace;
  color: #4a485c;
  font-weight: 500;
}

.table-year-highlight {
  font-family: 'Geist Mono', monospace;
  color: #3e3c73;
  font-weight: 600;
}

/* --- 5. FOOTER INSTITUCIONAL Y BOTÓN SCROLL UP EN MODO DÍA (BLANCO) --- */
#main-footer {
  background-color: #f4f4f8 !important;
  color: #2e2c3d !important;
  border-top: 1px solid #d0cfd8 !important;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.brand-logo-light {
  display: block;
}

.brand-logo-dark {
  display: none;
}

html.dark .brand-logo-light {
  display: none;
}

html.dark .brand-logo-dark {
  display: block;
}

.footer-brand-title {
  color: #1a1923 !important;
}

.footer-brand-endorse {
  color: #514f96 !important;
}

.footer-desc {
  color: #2e2c3d !important;
}

.footer-lead-label {
  color: #1a1923 !important;
}

.footer-lead-input {
  background: #ffffff !important;
  border: 1px solid #c8c6d8 !important;
  color: #1a1923 !important;
}

.footer-lead-input::placeholder {
  color: #5f5d73 !important;
}

.footer-lead-input:focus {
  border-color: #514f96 !important;
  box-shadow: 0 0 0 2px rgba(81, 79, 150, 0.16) !important;
}

.footer-telemetry-card {
  background: #ffffff !important;
  border: 1px solid #d0cfd8 !important;
}

.footer-telemetry-label,
.footer-telemetry-icon {
  color: #3e3c73 !important;
}

.footer-mint-dot {
  background: #0bbf9d !important;
}

.footer-telemetry-val {
  color: #1a1923 !important;
}

.footer-telemetry-sub {
  color: #4a485c !important;
  font-weight: 500;
}

.footer-col-heading {
  color: #3e3c73 !important;
  border-bottom-color: #d0cfd8 !important;
}

.footer-nav-link {
  color: #2e2c3d !important;
  font-weight: 450;
}

.footer-nav-link:hover {
  color: #514f96 !important;
}

.footer-text-strong {
  color: #1a1923 !important;
}

.footer-text-soft {
  color: #2e2c3d !important;
}

.footer-text-muted,
.footer-copy-line {
  color: #3e3c50 !important;
}

.footer-schedule-pill {
  background: #ffffff !important;
  border: 1px solid #c8c6d8 !important;
  color: #3e3c73 !important;
}

.footer-zinit-link {
  color: #514f96 !important;
}

.footer-zinit-link:hover {
  color: #1a1923 !important;
}

.footer-watermark {
  color: #514f96 !important;
  opacity: 0.08 !important;
}

/* Botón Scroll Up en Modo Día */
.back-to-top-btn {
  background-color: #ffffff !important;
  border: 1.5px solid #c8c6d8 !important;
  color: #1a1923 !important;
  box-shadow: 0 8px 22px rgba(26, 25, 35, 0.14) !important;
}

.back-to-top-btn:hover {
  background-color: #514f96 !important;
  border-color: #3e3c73 !important;
  color: #fefffe !important;
  transform: translateY(-2px);
}

/* --- 6. MODAL DE DEMO EN MODO DÍA (BLANCO) --- */
.modal-dialog {
  background: #ffffff;
  border: 1px solid #d0cfd8;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(26, 25, 35, 0.22);
}

.modal-heading {
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1a1923;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  color: #2e2c3d;
  margin-bottom: 24px;
}

.modal-close-btn {
  color: #3e3c50;
  background: #f4f4f8;
}

.modal-close-btn:hover {
  color: #1a1923;
  background: #e4e4ea;
}

.form-label {
  color: #1a1923;
}

.form-input,
.form-select,
.form-textarea {
  background: #f4f4f8;
  border: 1px solid #c8c6d8;
  color: #1a1923;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #514f96;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(81, 79, 150, 0.15);
}

/* Logos monocromáticos en sección de clientes (Modo Día) */
.relume-brand-img {
  filter: brightness(0) !important;
  opacity: 0.65 !important;
}

.relume-logo-item:hover .relume-brand-img {
  filter: brightness(0) !important;
  opacity: 0.95 !important;
}

/* ==============================================================================
   MODO NOCHE (html.dark) — VIOLETA CANÓNICO FAMILIA HIPOCAMPO
   Superficies: #1b1a28 (lienzo) · #211f33 (superficie 1) · #2c2a42 (superficie 2)
   Bordes: #3d3b58 · Texto: #fefffe / #dddce8 / #a9a8cf · Menta: #02fecd
   ============================================================================== */

/* 1. Barra de Navegación Superior en Modo Noche (Efecto Frosted Glass Translúcido estilo Zinit) */
html.dark .apple-nav-container,
html.dark .apple-nav-container.is-scrolled {
  background: linear-gradient(
    135deg,
    rgba(44, 42, 66, 0.46) 0%,
    rgba(27, 26, 40, 0.36) 52%,
    rgba(20, 19, 31, 0.48) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(185%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(185%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 36px -8px rgba(8, 7, 15, 0.48) !important;
}

html.dark .apple-nav-container .brand-text-title {
  color: #fefffe !important;
  font-family: var(--font-heading, 'Archivo', sans-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-transform: uppercase !important;
  font-synthesis: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

html.dark .apple-nav-link {
  color: #fefffe !important;
}

html.dark .apple-nav-container .brand-text-endorse {
  color: #02fecd !important;
  font-family: var(--font-mono, 'Geist Mono', monospace) !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
}

.apple-nav-brand .brand-product-tag {
  font-size: 9px !important;
  font-family: var(--font-mono, 'Geist Mono', monospace) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  padding: 1.5px 6px !important;
  border-radius: 5px !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 640px) {
  .apple-nav-brand .brand-product-tag {
    font-size: 8.5px !important;
    padding: 1px 5.5px !important;
  }
}

html.dark .brand-product-tag {
  background: rgba(44, 42, 66, 0.7) !important;
  color: #02fecd !important;
  border: 1px solid rgba(101, 99, 174, 0.55) !important;
  border-radius: 6px !important;
  font-family: var(--font-mono, 'Geist Mono', monospace) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

html.dark .apple-nav-link .chevron-icon {
  color: #a9a8cf !important;
}

html.dark .apple-nav-link:hover,
html.dark .apple-nav-item:hover .apple-nav-link,
html.dark .apple-nav-item.is-open .apple-nav-link,
html.dark .nav-portal-link:hover {
  color: #02fecd !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html.dark .apple-nav-link:hover .chevron-icon,
html.dark .apple-nav-item:hover .apple-nav-link .chevron-icon,
html.dark .apple-nav-item.is-open .apple-nav-link .chevron-icon {
  color: #02fecd !important;
}

html.dark .apple-nav-link.active {
  background: rgba(81, 79, 150, 0.32) !important;
  color: #02fecd !important;
  border: 1px solid rgba(101, 99, 174, 0.55) !important;
}

html.dark .nav-portal-link {
  color: #dddce8 !important;
}

html.dark .nav-divider {
  background-color: rgba(255, 255, 255, 0.14) !important;
}

html.dark .apple-search-box,
html.dark .mobile-search-bar {
  background: rgba(255, 255, 255, 0.07) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

html.dark .apple-search-box.is-expanded {
  background: rgba(27, 26, 40, 0.72) !important;
  border-color: rgba(101, 99, 174, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

html.dark .apple-search-input,
html.dark #mobile-search-input {
  color: #fefffe !important;
}

html.dark .apple-search-input::placeholder,
html.dark #mobile-search-input::placeholder {
  color: #a9a8cf !important;
}

html.dark .apple-search-btn {
  color: #dddce8 !important;
  background: transparent !important;
  border: none !important;
}

html.dark .apple-search-btn:hover,
html.dark #nav-search-close:hover {
  color: #02fecd !important;
}

html.dark #nav-search-close {
  color: #a9a8cf !important;
}

html.dark .apple-search-badge {
  color: #02fecd !important;
  border: 1px solid #514f96 !important;
  background: #211f33 !important;
}

html.dark .apple-cta-btn {
  background: #514f96 !important;
  border: 1px solid #6563ae !important;
  color: #fefffe !important;
  box-shadow: none !important;
}

html.dark .apple-cta-btn:hover {
  background: #6563ae !important;
  border-color: #02fecd !important;
  color: #fefffe !important;
}

html.dark .apple-dropdown,
html.dark .apple-search-results,
html.dark #mobile-search-results,
html.dark #mobile-menu {
  background: #211f33 !important;
  background-image: none !important;
  border: 1px solid #3d3b58 !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45) !important;
}

html.dark .apple-dropdown-item:hover,
html.dark #mobile-menu a:hover {
  background: #2c2a42 !important;
  border-color: #514f96 !important;
}

html.dark .apple-dropdown-item .item-icon {
  background-color: #2c2a42 !important;
  border-color: #3d3b58 !important;
  color: #02fecd !important;
}

html.dark .apple-dropdown-item div,
html.dark #mobile-menu a,
html.dark #mobile-menu span {
  color: #fefffe !important;
}

html.dark #mobile-menu-btn {
  background: #2c2a42 !important;
  border: 1px solid #3d3b58 !important;
  color: #fefffe !important;
}

html.dark #mobile-menu-btn:hover {
  border-color: #02fecd !important;
  color: #02fecd !important;
}

html.dark .mobile-portal-btn {
  background-color: #2c2a42 !important;
  border-color: #3d3b58 !important;
  color: #fefffe !important;
}

/* 2. Storytelling Cards en Modo Noche (Cero sombras, superficies escalonadas) */
html.dark .narrative-card {
  background: #211f33 !important;
  border: 1px solid #3d3b58 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.dark .chapter-badge {
  background: #2c2a42 !important;
  border: 1px solid #3d3b58 !important;
  color: #dddce8 !important;
}

html.dark .chapter-badge-dot {
  background: #02fecd !important;
}

html.dark .chapter-title,
html.dark .chapter-desc strong,
html.dark .metric-value,
html.dark .blueprint-name,
html.dark .spine-title,
html.dark .iso-title {
  color: #fefffe !important;
}

html.dark .chapter-desc,
html.dark .blueprint-desc,
html.dark .spine-sub,
html.dark .iso-sub {
  color: #dddce8 !important;
}

html.dark .highlight-mint,
html.dark .highlight-violet,
html.dark .blueprint-code,
html.dark .spine-index,
html.dark .metric-label {
  color: #a9a8cf !important;
}

html.dark .iso-code {
  color: #02fecd !important;
}

html.dark .spine-index {
  background: #211f33 !important;
}

html.dark .metrics-row {
  border-top-color: #3d3b58 !important;
}

html.dark .blueprint-item,
html.dark .spine-row-btn,
html.dark .iso-certificate-card,
html.dark .client-logo-box {
  background: #2c2a42 !important;
  border: 1px solid #3d3b58 !important;
}

html.dark .spine-row-btn:hover,
html.dark .spine-row-btn.active {
  background: #2c2a42 !important;
  border-color: #02fecd !important;
}

html.dark .btn-secondary-cta {
  background: #2c2a42;
  color: #fefffe;
  border-color: #3d3b58;
}

html.dark .btn-secondary-cta:hover {
  background: #3d3b58;
  border-color: #6563ae;
  color: #fefffe;
}

html.dark .story-callout-box {
  background: #2c2a42;
  border-color: #3d3b58;
}

html.dark .story-callout-title {
  color: #fefffe;
}

html.dark .story-callout-meta {
  color: #02fecd;
}

html.dark .story-callout-desc {
  color: #dddce8;
}

html.dark .hipocampo-family-table {
  background: #2c2a42;
  border-color: #3d3b58;
}

html.dark .hipocampo-family-table th {
  background: #211f33;
  color: #a9a8cf;
  border-bottom-color: #3d3b58;
}

html.dark .hipocampo-family-table td {
  color: #fefffe;
  border-bottom-color: #3d3b58;
}

html.dark .table-year-cell {
  color: #a9a8cf;
}

html.dark .table-year-highlight {
  color: #02fecd;
}

/* 3. Hero Suite (#hero-suite) y Suite de Producto (#product-suite) en Modo Noche */
html.dark #hero-suite,
html.dark #hero-suite > section,
html.dark #product-suite,
html.dark #product-suite > section,
html.dark #product-suite .hero-bg-mesh {
  background-color: #1b1a28 !important;
  background-image: none !important;
  color: #fefffe !important;
  border-color: #3d3b58 !important;
}

html.dark #hero-suite > section:nth-child(even),
html.dark #product-suite > section:nth-child(even) {
  background-color: #211f33 !important;
}

/* Tarjetas y Contenedores en #hero-suite y #product-suite */
html.dark #hero-suite .bg-white,
html.dark #hero-suite .hero-glass-card,
html.dark #hero-suite .relume-brands-card,
html.dark #product-suite .bg-white,
html.dark #product-suite .hero-glass-card,
html.dark #product-suite .console-wrapper,
html.dark #product-suite .relume-brands-card,
html.dark #product-suite .link-card,
html.dark #product-suite .card-material {
  background-color: #211f33 !important;
  background-image: none !important;
  border-color: #3d3b58 !important;
  box-shadow: none !important;
}

html.dark #product-suite > section:nth-child(even) .bg-white,
html.dark #product-suite > section:nth-child(even) .link-card,
html.dark #product-suite > section:nth-child(even) .card-material,
html.dark #product-suite > section:nth-child(even) .console-wrapper,
html.dark #product-suite .bg-\[\#f8f8fb\],
html.dark #product-suite .bg-\[\#f9f9fc\],
html.dark #product-suite .bg-\[\#f4f4f8\],
html.dark #product-suite .bg-\[\#f0eff8\],
html.dark #product-suite .from-\[\#f0eff8\],
html.dark #product-suite .from-\[\#e6fbf5\],
html.dark #product-suite .console-titlebar,
html.dark #product-suite .console-tabs-row,
html.dark #product-suite .module-pill,
html.dark #product-suite .diag-check-pill {
  background-color: #2c2a42 !important;
  background-image: none !important;
  border-color: #3d3b58 !important;
  color: #fefffe !important;
  box-shadow: none !important;
}

html.dark #product-suite .console-tab {
  color: #a9a8cf !important;
  border-color: transparent !important;
}

html.dark #product-suite .console-tab.active,
html.dark #product-suite .console-tab:hover {
  background-color: #211f33 !important;
  color: #fefffe !important;
  border-color: #514f96 !important;
}

html.dark #product-suite .badge-subtle {
  background-color: #2c2a42 !important;
  border-color: #514f96 !important;
  color: #dddce8 !important;
}

html.dark #product-suite .badge-iso,
html.dark #product-suite .badge-cyan,
html.dark #product-suite .bg-\[\#e6fbf5\] {
  background-color: rgba(2, 254, 205, 0.12) !important;
  border-color: rgba(2, 254, 205, 0.35) !important;
  color: #02fecd !important;
}

/* Tipografía y Contraste en #product-suite (Excluyendo el simulador de pantalla blanca dentro de la laptop) */
html.dark #product-suite h1,
html.dark #product-suite h2,
html.dark #product-suite h3,
html.dark #product-suite h4,
html.dark #product-suite .section-headline,
html.dark #product-suite .text-\[\#1a1923\] {
  color: #fefffe !important;
}

html.dark #product-suite p,
html.dark #product-suite .text-\[\#3e3c50\] {
  color: #dddce8 !important;
}

html.dark #product-suite .text-\[\#5f5d73\],
html.dark #product-suite .relume-brands-label {
  color: #a9a8cf !important;
}

html.dark #product-suite .text-\[\#514f96\] {
  color: #a9a8cf !important;
}

html.dark #product-suite .text-\[\#0a7562\] {
  color: #02fecd !important;
}

/* Mantener la interfaz simulada dentro de la pantalla de la laptop con su contraste propio */
html.dark #product-suite .laptop-display-viewport .bg-white {
  background-color: #ffffff !important;
}

/* Bordes y Tablas en #product-suite */
html.dark #product-suite .border-\[\#e4e4ea\],
html.dark #product-suite .border-\[\#dddce8\],
html.dark #product-suite .divide-\[\#e4e4ea\] > :not([hidden]) ~ :not([hidden]) {
  border-color: #3d3b58 !important;
}

html.dark #product-suite tr.hover\:bg-\[\#f0eff8\]:hover {
  background-color: #2c2a42 !important;
}

html.dark #product-suite .diag-input,
html.dark #product-suite input:not([type="range"]):not([type="checkbox"]),
html.dark #product-suite select,
html.dark #product-suite textarea {
  background-color: #2c2a42 !important;
  border-color: #3d3b58 !important;
  color: #fefffe !important;
}

html.dark #product-suite .diag-input::placeholder {
  color: #a9a8cf !important;
}

/* Logos de clientes en Modo Noche sobre tarjeta #211f33 */
html.dark #product-suite .relume-brand-img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.8 !important;
}

html.dark #product-suite .relume-logo-item:hover .relume-brand-img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* 4. Footer Institucional en Modo Noche (#1b1a28 / #211f33) */
html.dark #main-footer {
  background-color: #1b1a28 !important;
  color: #dddce8 !important;
  border-top-color: #3d3b58 !important;
}

html.dark .footer-brand-title,
html.dark .footer-telemetry-val,
html.dark .footer-text-strong,
html.dark .footer-lead-label {
  color: #fefffe !important;
}

html.dark .footer-brand-endorse {
  color: #02fecd !important;
}

html.dark .footer-desc,
html.dark .footer-nav-link,
html.dark .footer-text-soft,
html.dark .footer-copy-line {
  color: #dddce8 !important;
}

html.dark .footer-telemetry-label,
html.dark .footer-telemetry-icon,
html.dark .footer-telemetry-sub,
html.dark .footer-col-heading,
html.dark .footer-text-muted {
  color: #a9a8cf !important;
}

html.dark .footer-col-heading {
  border-bottom-color: #3d3b58 !important;
}

html.dark .footer-nav-link:hover {
  color: #02fecd !important;
}

html.dark .footer-lead-input {
  background: #211f33 !important;
  border-color: #3d3b58 !important;
  color: #fefffe !important;
}

html.dark .footer-lead-input::placeholder {
  color: #a9a8cf !important;
}

html.dark .footer-telemetry-card,
html.dark .footer-schedule-pill {
  background: #211f33 !important;
  border-color: #3d3b58 !important;
  color: #fefffe !important;
}

html.dark .footer-schedule-pill {
  color: #dddce8 !important;
}

html.dark .footer-mint-dot {
  background: #02fecd !important;
}

html.dark .footer-zinit-link {
  color: #02fecd !important;
}

html.dark .footer-zinit-link:hover {
  color: #fefffe !important;
}

html.dark .footer-watermark {
  color: #fefffe !important;
  opacity: 0.05 !important;
}

/* 5. Modal y Botón Scroll Up en Modo Noche */
html.dark .modal-dialog {
  background: #211f33;
  border-color: #3d3b58;
  box-shadow: none;
}

html.dark .modal-heading,
html.dark .form-label {
  color: #fefffe;
}

html.dark .modal-subtitle {
  color: #dddce8;
}

html.dark .modal-close-btn {
  background: #2c2a42;
  color: #a9a8cf;
}

html.dark .modal-close-btn:hover {
  background: #3d3b58;
  color: #fefffe;
}

html.dark .form-input,
html.dark .form-select,
html.dark .form-textarea {
  background: #2c2a42;
  border-color: #3d3b58;
  color: #fefffe;
}

html.dark .back-to-top-btn {
  background-color: #211f33 !important;
  border-color: #514f96 !important;
  color: #02fecd !important;
  box-shadow: none !important;
}

html.dark .back-to-top-btn:hover {
  background-color: #514f96 !important;
  border-color: #02fecd !important;
  color: #fefffe !important;
}

/* ==============================================================================
   EFECTO ZÓCALO DE FOOTER ESTILO LOADERSZ (CON TOKENS FAMILIA HIPOCAMPO)
   - Halo radial superior (radial-gradient at 50% 0%)
   - Grilla vertical técnica de 23px en deriva continua (footer-grid-drift 18s)
   - Barrido láser inferior de 2px (footer-scan 5.5s)
   - Pastillas interactivas con borde estelar (.star-border + --footer-sweep-x)
   ============================================================================== */

.histrix-zocalo-loadersz {
  --zocalo-bg: #ecebf4;
  --zocalo-surface: #ffffff;
  --zocalo-line: #c8c6d8;
  --zocalo-accent: #514f96;
  --zocalo-accent-bright: #0bbf9d;
  --zocalo-scan: #514f96;
  --zocalo-text: #1a1923;
  --zocalo-muted: #2e2c3d;
  --zocalo-faint: #3e3c50;

  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--zocalo-line);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(101, 99, 174, 0.2), transparent 56%),
    var(--zocalo-bg);
  transition: background 0.35s ease, border-color 0.35s ease;
}

html.dark .histrix-zocalo-loadersz {
  --zocalo-bg: #1b1a28;
  --zocalo-surface: #211f33;
  --zocalo-line: #3d3b58;
  --zocalo-accent: #6563ae;
  --zocalo-accent-bright: #02fecd;
  --zocalo-scan: #02fecd;
  --zocalo-text: #fefffe;
  --zocalo-muted: #dddce8;
  --zocalo-faint: #a9a8cf;

  background:
    radial-gradient(120% 100% at 50% 0%, rgba(101, 99, 174, 0.32), rgba(2, 254, 205, 0.06) 34%, transparent 58%),
    var(--zocalo-bg);
}

/* Grilla vertical de 23px en deriva continua (idéntica a loadersz.vercel.app) */
.histrix-zocalo-loadersz::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -23px;
  right: -23px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 22px,
    var(--zocalo-line) 22px,
    var(--zocalo-line) 23px
  );
  opacity: 0.45;
  pointer-events: none;
  transform: translateX(0);
  animation: 18s linear infinite footer-grid-drift;
  z-index: 1;
}

html.dark .histrix-zocalo-loadersz::before {
  opacity: 0.32;
}

/* Barrido láser inferior de 2px (idéntico a loadersz.vercel.app) */
.histrix-zocalo-loadersz::after {
  content: "";
  position: absolute;
  top: auto;
  bottom: 0;
  left: -24%;
  right: -24%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--zocalo-scan), transparent);
  opacity: 0.9;
  pointer-events: none;
  animation: 5.5s ease-in-out infinite footer-scan;
  z-index: 25;
}

@keyframes footer-grid-drift {
  to {
    transform: translateX(23px);
  }
}

@keyframes footer-scan {
  0%, 100% {
    opacity: 0;
    transform: translateX(-46%);
  }
  18% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.8;
    transform: translateX(46%);
  }
  80% {
    opacity: 0;
  }
}

.histrix-zocalo-loadersz .footer-middle-bar {
  border-top: none !important;
  border-bottom: 1px solid var(--zocalo-line) !important;
}

/* Pastillas del zócalo (.footer-links + .star-border) con barrido de luz y tracking de mouse */
.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--zocalo-line);
  background: var(--zocalo-surface);
  color: var(--zocalo-muted);
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.footer-links a.star-border,
.plane-action-pill.star-border,
.footer-zinit-pill.star-border {
  position: relative;
  border: 1px solid transparent !important;
  background:
    linear-gradient(var(--zocalo-surface, #ffffff), var(--zocalo-surface, #ffffff)) padding-box,
    radial-gradient(
      ellipse 30% 220% at var(--footer-sweep-x, -40%) 50%,
      var(--zocalo-accent-bright, #0bbf9d),
      var(--zocalo-accent, #514f96) 42%,
      var(--zocalo-line, #c8c6d8) 72%
    ) border-box !important;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  background-size: auto, 100% 100%;
}

.footer-links a.star-border:hover,
.plane-action-pill.star-border:hover,
.footer-zinit-pill.star-border:hover {
  color: var(--zocalo-text, #1a1923) !important;
  border-color: transparent !important;
  transform: translateY(-1.5px);
  background:
    linear-gradient(var(--zocalo-surface, #ffffff), var(--zocalo-surface, #ffffff)) padding-box,
    radial-gradient(
      88px circle at var(--star-x, 50%) var(--star-y, 50%),
      var(--zocalo-accent-bright, #0bbf9d),
      var(--zocalo-accent, #514f96) 32%,
      var(--zocalo-line, #c8c6d8) 76%
    ) border-box !important;
  box-shadow: 0 0 16px rgba(81, 79, 150, 0.28);
}

html.dark .footer-links a.star-border,
html.dark .plane-action-pill.star-border,
html.dark .footer-zinit-pill.star-border {
  background:
    linear-gradient(var(--zocalo-surface, #211f33), var(--zocalo-surface, #211f33)) padding-box,
    radial-gradient(
      ellipse 30% 220% at var(--footer-sweep-x, -40%) 50%,
      var(--zocalo-accent-bright, #02fecd),
      var(--zocalo-accent, #6563ae) 42%,
      var(--zocalo-line, #3d3b58) 72%
    ) border-box !important;
}

html.dark .footer-links a.star-border:hover,
html.dark .plane-action-pill.star-border:hover,
html.dark .footer-zinit-pill.star-border:hover {
  color: var(--zocalo-text, #fefffe) !important;
  background:
    linear-gradient(var(--zocalo-surface, #211f33), var(--zocalo-surface, #211f33)) padding-box,
    radial-gradient(
      88px circle at var(--star-x, 50%) var(--star-y, 50%),
      var(--zocalo-accent-bright, #02fecd),
      var(--zocalo-accent, #6563ae) 32%,
      var(--zocalo-line, #3d3b58) 76%
    ) border-box !important;
  box-shadow: 0 0 18px rgba(2, 254, 205, 0.25);
}

.star-border-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0eff8;
  border: 1px solid var(--zocalo-line);
  color: #3e3c73;
  line-height: 1.2;
}

html.dark .star-border-tag {
  background: #2c2a42;
  border-color: #3d3b58;
  color: #02fecd;
}

.footer-credit-text {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--zocalo-faint);
  white-space: nowrap;
}

/* Neutralizar pseudo-elemento ::before heredado de histrix-product.css en .star-border del zócalo */
.footer-links a.star-border::before {
  display: none !important;
  content: none !important;
}

/* ==============================================================================
   TUNEO INTEGRAL ARGON 100% — TELEMETRÍA, HUD, SVG SINÁPTICO & MICRO-INTERACCIONES
   Sistema de Diseño Oficial: Familia Hipocampo (Modo Día #ffffff / Modo Noche #1b1a28)
   ============================================================================== */

/* 1. View Transitions API suave al alternar Día / Noche */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Estado activo del enlace "Historia" en la barra superior */
html:not(.dark) .apple-nav-link.active {
  color: #514f96 !important;
  background: #f0eff8 !important;
}

html.dark .apple-nav-link.active {
  color: #02fecd !important;
  background: #2c2a42 !important;
}

/* 3. Escala tipográfica jerárquica H2 en secciones de producto */
#product-suite .section-headline {
  font-family: 'Archivo', sans-serif !important;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.12 !important;
}

/* 4. Halos ambientales sutiles detrás del Hipocampo SVG (#stage-viewport) */
.ambient-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-radial-violet {
  position: absolute;
  width: 620px;
  height: 620px;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 99, 174, 0.12) 0%, rgba(101, 99, 174, 0.04) 45%, transparent 72%);
}

.glow-radial-mint {
  position: absolute;
  width: 440px;
  height: 440px;
  top: 44%;
  left: 48%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 191, 157, 0.08) 0%, transparent 68%);
}

html.dark .glow-radial-violet {
  background: radial-gradient(circle, rgba(101, 99, 174, 0.22) 0%, rgba(81, 79, 150, 0.08) 48%, transparent 72%);
}

html.dark .glow-radial-mint {
  background: radial-gradient(circle, rgba(2, 254, 205, 0.09) 0%, transparent 68%);
}

/* 5. Red Sináptica de Datos (#g-synapses) y Pastillas de Etiquetas SVG */
@keyframes synapse-stream {
  to {
    stroke-dashoffset: -48;
  }
}

#seahorse-svg #g-synapses .synapse-line {
  animation: synapse-stream 2.8s linear infinite;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

html:not(.dark) #seahorse-svg #g-synapses .synapse-line {
  stroke: #514f96 !important;
}

html:not(.dark) #seahorse-svg #g-synapses #synapse-eye {
  stroke: #0bbf9d !important;
}

html:not(.dark) #seahorse-svg .spine-tag-bg,
html:not(.dark) #seahorse-svg .hud-tag-bg {
  fill: #ffffff !important;
  stroke: #514f96 !important;
  stroke-width: 1.5px !important;
}

html.dark #seahorse-svg .spine-tag-bg,
html.dark #seahorse-svg .hud-tag-bg {
  fill: #211f33 !important;
  stroke: #514f96 !important;
  stroke-width: 1.2px !important;
}

html:not(.dark) #seahorse-svg .spine-tag-text {
  fill: #1a1923 !important;
}

html.dark #seahorse-svg .spine-tag-text {
  fill: #fefffe !important;
}

/* 6. Barra HUD Scrubber Interactiva de Capítulos (#story-hud-bar) */
.story-hud-bar {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid #c8c6d8;
  box-shadow: 0 12px 32px -6px rgba(26, 25, 35, 0.14);
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.story-hud-bar.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(18px);
}

html.dark .story-hud-bar {
  background: rgba(33, 31, 51, 0.95);
  border-color: #3d3b58;
  box-shadow: none;
}

.story-hud-status {
  display: none;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid #d0cfd8;
}

@media (min-width: 768px) {
  .story-hud-status {
    display: inline-flex;
  }
}

html.dark .story-hud-status {
  border-right-color: #3d3b58;
}

.story-hud-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0bbf9d;
  flex-shrink: 0;
}

html.dark .story-hud-pulse {
  background: #02fecd;
}

.story-hud-chapter-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1a1923;
  white-space: nowrap;
}

html.dark .story-hud-chapter-label {
  color: #fefffe;
}

.story-hud-steps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.story-hud-step {
  width: 28px;
  height: 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #4a485c;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.story-hud-step:hover {
  color: #1a1923;
  background: #f0eff8;
}

.story-hud-step.active {
  background: #514f96;
  color: #fefffe;
  border-color: #3e3c73;
}

html.dark .story-hud-step {
  color: #a9a8cf;
}

html.dark .story-hud-step:hover {
  color: #fefffe;
  background: #2c2a42;
}

html.dark .story-hud-step.active {
  background: #514f96;
  color: #02fecd;
  border-color: #6563ae;
}

.story-hud-progress-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid #d0cfd8;
}

html.dark .story-hud-progress-wrap {
  border-left-color: #3d3b58;
}

.story-hud-progress-track {
  width: 64px;
  height: 5px;
  border-radius: 9999px;
  background: #e4e4ea;
  overflow: hidden;
}

html.dark .story-hud-progress-track {
  background: #1b1a28;
}

.story-hud-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #514f96, #0bbf9d);
  transition: width 0.15s linear;
}

html.dark .story-hud-progress-fill {
  background: linear-gradient(90deg, #6563ae, #02fecd);
}

.story-hud-pct {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #3e3c73;
  min-width: 30px;
  text-align: right;
}

html.dark .story-hud-pct {
  color: #02fecd;
}

/* 7. Consola Laptop 3D Tilt & Tarjeta de Detalle de Módulo (.console-overlay-card) */
.laptop-mockup-wrapper {
  transform: perspective(1200px) rotateX(var(--laptop-rx, 0deg)) rotateY(var(--laptop-ry, 0deg));
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

html.dark #product-suite .laptop-display-viewport .console-overlay-card {
  background: rgba(33, 31, 51, 0.96) !important;
  border-color: #514f96 !important;
  box-shadow: none !important;
}

/* 8. Calculador de ROI: Slider con Progreso Dinámico y Botones de Presets */
.roi-range-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    #514f96 0%,
    #0bbf9d var(--slider-pct, 16%),
    #e4e4ea var(--slider-pct, 16%),
    #e4e4ea 100%
  ) !important;
  outline: none;
}

html.dark .roi-range-slider {
  background: linear-gradient(
    90deg,
    #6563ae 0%,
    #02fecd var(--slider-pct, 16%),
    #1b1a28 var(--slider-pct, 16%),
    #1b1a28 100%
  ) !important;
}

.roi-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #514f96;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(26, 25, 35, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.roi-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  background: #3e3c73;
}

html.dark .roi-range-slider::-webkit-slider-thumb {
  background: #02fecd;
  border-color: #1b1a28;
  box-shadow: none;
}

.roi-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  padding: 8px 6px;
  min-height: 52px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d6d4e2;
  color: #1a1923;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(26, 25, 35, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.roi-preset-btn:hover {
  border-color: #514f96;
  background: #f0eff8;
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(81, 79, 150, 0.12);
}

.roi-preset-btn:active {
  transform: scale(0.97);
}

.roi-preset-btn.active {
  background: #514f96;
  border-color: #3e3c73;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(81, 79, 150, 0.25);
  transform: translateY(-1px);
}

.roi-preset-metric,
.roi-preset-btn > span:first-child {
  font-family: 'Geist Mono', monospace;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1a1923;
  display: block;
  transition: color 0.18s ease;
}

.roi-preset-label,
.roi-preset-btn > span:last-child {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #5f5d73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  transition: color 0.18s ease;
}

.roi-preset-btn:hover .roi-preset-metric,
.roi-preset-btn:hover > span:first-child {
  color: #514f96;
}

.roi-preset-btn:hover .roi-preset-label,
.roi-preset-btn:hover > span:last-child {
  color: #1a1923;
}

.roi-preset-btn.active .roi-preset-metric,
.roi-preset-btn.active > span:first-child {
  color: #ffffff;
}

.roi-preset-btn.active .roi-preset-label,
.roi-preset-btn.active > span:last-child {
  color: #e2e0fb;
  font-weight: 600;
}

.roi-preset-btn:focus-visible {
  outline: 2px solid #514f96;
  outline-offset: 2px;
}

/* Dark mode */
html.dark .roi-preset-btn {
  background: #1e1d2c;
  border-color: #38364e;
  color: #dddce8;
  box-shadow: none;
}

html.dark .roi-preset-metric,
html.dark .roi-preset-btn > span:first-child {
  color: #ffffff;
}

html.dark .roi-preset-label,
html.dark .roi-preset-btn > span:last-child {
  color: #a4a2be;
}

html.dark .roi-preset-btn:hover {
  background: #252338;
  border-color: #6563ae;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

html.dark .roi-preset-btn:hover .roi-preset-metric,
html.dark .roi-preset-btn:hover > span:first-child {
  color: #ffffff;
}

html.dark .roi-preset-btn:hover .roi-preset-label,
html.dark .roi-preset-btn:hover > span:last-child {
  color: #ffffff;
}

html.dark .roi-preset-btn.active {
  background: #514f96;
  border-color: #02fecd;
  color: #fefffe;
  box-shadow: 0 0 0 1px #02fecd, 0 4px 14px rgba(81, 79, 150, 0.45);
}

html.dark .roi-preset-btn.active .roi-preset-metric,
html.dark .roi-preset-btn.active > span:first-child {
  color: #ffffff;
}

html.dark .roi-preset-btn.active .roi-preset-label,
html.dark .roi-preset-btn.active > span:last-child {
  color: #ffffff;
  font-weight: 600;
}

html.dark .roi-preset-btn:focus-visible {
  outline: 2px solid #02fecd;
  outline-offset: 2px;
}

html.dark #product-suite .roi-card-container {
  background: #2c2a42 !important;
  border-color: #3d3b58 !important;
  box-shadow: none !important;
}

html.dark #product-suite .roi-result-panel {
  background: #211f33 !important;
  border-color: #514f96 !important;
}

/* 9. Spotlight Interactivo en Bento Cards & Estados Activos de Diagnóstico / FAQ */
#product-suite .link-card,
#product-suite .card-material {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

#product-suite .link-card::after,
#product-suite .card-material::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(101, 99, 174, 0.09),
    transparent 70%
  );
  transition: opacity 0.25s ease;
}

html.dark #product-suite .link-card::after,
html.dark #product-suite .card-material::after {
  background: radial-gradient(
    320px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(2, 254, 205, 0.08),
    transparent 70%
  );
}

#product-suite .link-card:hover::after,
#product-suite .card-material:hover::after {
  opacity: 1;
}

/* ==========================================================================
   SISTEMA DE DISEÑO OFICIAL 'FAMILIA HIPOCAMPO' - BOTONES DE DIAGNÓSTICO
   Pastillas interactivas (.diag-check-pill) con cajas y tildes vectoriales SVG
   de alta fidelidad, excelente contraste WCAG AAA y micro-interacciones táctiles.
   ========================================================================== */

/* 1. Contenedor Pill */
.diag-check-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 8px 12px !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e4e4ea !important;
  background: #ffffff !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  font-family: var(--font-body, 'Archivo', sans-serif) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.diag-check-pill:hover {
  border-color: #6563ae !important;
  background: #fbfbfe !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(81, 79, 150, 0.08) !important;
}

.diag-check-pill:active {
  transform: scale(0.98);
}

.diag-check-pill.is-checked,
#product-suite .diag-check-pill.is-checked {
  background: linear-gradient(135deg, #f0eff8 0%, #ffffff 100%) !important;
  border-color: #514f96 !important;
  box-shadow: 0 3px 10px rgba(81, 79, 150, 0.12) !important;
}

/* 2. Caja de Checkbox Squircle (.diag-check-box) */
.diag-check-box {
  width: 18px !important;
  height: 18px !important;
  border-radius: 5px !important;
  border: 1.5px solid #d5d4e2 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 3. Tilde Vectorial SVG (.diag-check-icon) */
.diag-check-icon {
  width: 11px !important;
  height: 11px !important;
  stroke: #ffffff !important;
  stroke-width: 2.3 !important;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Estado Activo en Modo Claro */
.diag-check-pill.is-checked .diag-check-box,
.diag-checkbox-input:checked + .diag-check-box {
  background: #514f96 !important;
  border-color: #514f96 !important;
  box-shadow: 0 2px 6px rgba(81, 79, 150, 0.35) !important;
}

.diag-check-pill.is-checked .diag-check-icon,
.diag-checkbox-input:checked + .diag-check-box .diag-check-icon {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* 4. Etiqueta de Texto (.diag-check-label) */
.diag-check-label {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #3e3c50 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  transition: color 0.18s ease, font-weight 0.18s ease !important;
}

.diag-check-pill.is-checked .diag-check-label,
.diag-check-pill input:checked ~ .diag-check-label {
  color: #1a1923 !important;
  font-weight: 600 !important;
}

/* Foco accesible para teclado */
.diag-checkbox-input:focus-visible + .diag-check-box {
  outline: 2px solid #514f96 !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   MODO OSCURO / NOCHE (#product-suite y tema .dark)
   ========================================================================== */
html.dark #product-suite .diag-check-pill {
  background: rgba(33, 31, 51, 0.75) !important;
  border-color: rgba(75, 73, 107, 0.55) !important;
  box-shadow: none !important;
}

html.dark #product-suite .diag-check-pill:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(44, 42, 66, 0.85) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

/* Pastilla Activa en Modo Oscuro: Acento Menta oficial #02fecd con sutil velo de profundidad */
html.dark #product-suite .diag-check-pill.is-checked {
  background: linear-gradient(135deg, rgba(2, 254, 205, 0.10) 0%, rgba(33, 31, 51, 0.95) 100%) !important;
  border-color: #02fecd !important;
  box-shadow: 0 0 16px -2px rgba(2, 254, 205, 0.22), inset 0 0 12px rgba(2, 254, 205, 0.04) !important;
}

/* Caja de Checkbox en Modo Oscuro */
html.dark #product-suite .diag-check-pill .diag-check-box {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

html.dark #product-suite .diag-check-pill:hover .diag-check-box {
  border-color: rgba(255, 255, 255, 0.40) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

/* Caja Activa con Tilde Nítida en Modo Oscuro */
html.dark #product-suite .diag-check-pill.is-checked .diag-check-box,
html.dark #product-suite .diag-checkbox-input:checked + .diag-check-box {
  background: #02fecd !important;
  border-color: #02fecd !important;
  box-shadow: 0 0 10px rgba(2, 254, 205, 0.45) !important;
}

html.dark #product-suite .diag-check-pill.is-checked .diag-check-icon,
html.dark #product-suite .diag-checkbox-input:checked + .diag-check-box .diag-check-icon {
  stroke: #12111a !important;
  stroke-width: 2.5 !important;
}

/* Texto de la etiqueta con contraste óptimo certificado (WCAG AAA) */
html.dark #product-suite .diag-check-pill .diag-check-label {
  color: #b3b0cc !important;
}

html.dark #product-suite .diag-check-pill.is-checked .diag-check-label,
html.dark #product-suite .diag-check-pill input:checked ~ .diag-check-label {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

html.dark #product-suite .diag-checkbox-input:focus-visible + .diag-check-box {
  outline: 2px solid #02fecd !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   ILUMINACIÓN VERDE INTERACTIVA EN CAJAS DE PREGUNTAS (FAQ CARDS)
   Efecto de halo verde (#0bbf9d día / #02fecd noche) con spotlight radial reactivo
   ========================================================================== */

#faq .faq-card {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.24s ease,
              box-shadow 0.24s ease,
              background-color 0.24s ease !important;
}

#faq .faq-card > * {
  position: relative;
  z-index: 2;
}

/* Spotlight de luz radial que sigue al cursor */
#faq .faq-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(11, 191, 157, 0.12),
    transparent 70%
  );
  transition: opacity 0.25s ease;
  z-index: 1;
}

html.dark #faq .faq-card::after {
  background: radial-gradient(
    320px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(2, 254, 205, 0.14),
    transparent 70%
  );
}

/* Efecto de iluminación verde al posicionar el puntero (Hover) */
#faq .faq-card:hover {
  transform: translateY(-2px);
  border-color: #0bbf9d !important;
  box-shadow: 0 0 20px -2px rgba(11, 191, 157, 0.25),
              0 8px 24px -4px rgba(26, 25, 35, 0.08) !important;
}

#faq .faq-card:hover::after {
  opacity: 1;
}

#faq .faq-card:hover h3 {
  color: #0a7562 !important;
}

#faq .faq-card:hover i,
#faq .faq-card:hover svg {
  color: #0bbf9d !important;
}

/* Modo Noche / Dark Mode: Iluminación verde menta oficial (#02fecd) */
html.dark #faq .faq-card:hover {
  border-color: #02fecd !important;
  box-shadow: 0 0 22px -1px rgba(2, 254, 205, 0.32),
              0 10px 28px -4px rgba(0, 0, 0, 0.55) !important;
}

html.dark #faq .faq-card:hover h3 {
  color: #fefffe !important;
}

html.dark #faq .faq-card:hover i,
html.dark #faq .faq-card:hover svg {
  color: #02fecd !important;
}

/* Estado Activo / Abierto (faq-open) */
#faq .faq-card.faq-open {
  border-color: #0bbf9d !important;
  box-shadow: 0 0 16px -2px rgba(11, 191, 157, 0.20) !important;
}

html.dark #faq .faq-card.faq-open {
  border-color: #02fecd !important;
  box-shadow: 0 0 20px -2px rgba(2, 254, 205, 0.26) !important;
}

html.dark #faq .faq-card.faq-open i,
html.dark #faq .faq-card.faq-open svg {
  color: #02fecd !important;
}

/* ============================================================================
   10. OPTIMIZACIÓN INTEGRAL DE CONTRASTE DÍA/NOCHE (WCAG AAA) +
       ARQUITECTURA 100% RESPONSIVE (PC · LAPTOP · TABLET · MÓVIL) + UI/UX POLISH
   ============================================================================ */

/* 10.1 Prevención absoluta de desborde horizontal en todos los viewports */
html,
body {
  max-width: 100vw;
  overflow-x: clip;
}

/* 10.2 Sincronización de clases del HUD Inferior (.story-hud-dot / .story-hud-label) */
.story-hud-dot,
.story-hud-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0bbf9d;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(11, 191, 157, 0.2);
  animation: hudDotPulse 2.2s infinite ease-in-out;
}

html.dark .story-hud-dot,
html.dark .story-hud-pulse {
  background: #02fecd;
  box-shadow: 0 0 8px rgba(2, 254, 205, 0.55);
}

@keyframes hudDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.78; }
}

.story-hud-label,
.story-hud-chapter-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #1a1923;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

html.dark .story-hud-label,
html.dark .story-hud-chapter-label {
  color: #fefffe;
}

/* 10.3 Contraste Dual-Accent en Títulos del Storytelling (.highlight-mint / .highlight-violet) */
html:not(.dark) .chapter-title .highlight-mint {
  color: #0a7562 !important;
}

html:not(.dark) .chapter-title .highlight-violet {
  color: #514f96 !important;
}

html.dark .chapter-title .highlight-mint {
  color: #02fecd !important;
}

html.dark .chapter-title .highlight-violet {
  color: #a9a8cf !important;
}

/* 10.4 Botones Interactivos de las 6 Espinas (Capítulo 03) */
.spine-row-btn {
  position: relative;
  user-select: none;
}

.spine-row-indicator {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #c8c6d8;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.spine-row-btn:hover .spine-row-indicator,
.spine-row-btn.active .spine-row-indicator {
  background: #0a7562;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(11, 191, 157, 0.2);
}

html.dark .spine-row-indicator {
  background: #514f96;
}

html.dark .spine-row-btn:hover .spine-row-indicator,
html.dark .spine-row-btn.active .spine-row-indicator {
  background: #02fecd;
  box-shadow: 0 0 0 3px rgba(2, 254, 205, 0.22);
}

/* 10.5 Jerarquía y Contraste AAA en Dropdowns del Menú Superior y Buscador Rápido (⌘K + Móvil) */
html.dark .apple-dropdown-item div.text-xs {
  color: #fefffe !important;
}

html.dark .apple-dropdown-item div.text-\[\#5f5d73\] {
  color: #a9a8cf !important;
}

html.dark .apple-dropdown-item:hover div.text-xs {
  color: #02fecd !important;
}

html.dark .apple-dropdown-item span.bg-\[\#e6fbf5\] {
  background-color: rgba(2, 254, 205, 0.14) !important;
  color: #02fecd !important;
  border: 1px solid rgba(2, 254, 205, 0.35) !important;
}

html.dark .apple-dropdown-item span.bg-\[\#f0eff8\] {
  background-color: rgba(101, 99, 174, 0.28) !important;
  color: #dddce8 !important;
  border: 1px solid rgba(169, 168, 207, 0.35) !important;
}

html.dark #dropdown-modulos .border-t {
  border-color: #3d3b58 !important;
}

html.dark #dropdown-modulos .border-t > span {
  color: #a9a8cf !important;
}

html.dark #dropdown-modulos .border-t > a {
  color: #02fecd !important;
}

/* Buscador Rápido (Desktop #nav-search-results y Móvil #mobile-search-results) */
html.dark #nav-search-results .text-\[\#5f5d73\] {
  color: #a9a8cf !important;
}

html.dark .search-result-row {
  background: transparent !important;
  color: #fefffe !important;
}

html.dark .search-result-row:hover {
  background: #2c2a42 !important;
}

html.dark .search-result-title {
  color: #fefffe !important;
}

html.dark .search-result-row:hover .search-result-title {
  color: #02fecd !important;
}

html.dark .search-result-desc {
  color: #a9a8cf !important;
}

html.dark .search-result-badge {
  background: #2c2a42 !important;
  border-color: #514f96 !important;
  color: #02fecd !important;
}

/* 10.6 Simulador Interactivo Histrix ERP dentro del Laptop del Hero (.sim-erp-shell) */
html.dark #hero-suite .sim-erp-shell,
html.dark #product-suite .sim-erp-shell,
html.dark .sim-erp-shell {
  background-color: #1b1a28 !important;
  color: #fefffe !important;
}

html.dark #hero-suite .sim-erp-header,
html.dark #product-suite .sim-erp-header,
html.dark .sim-erp-header {
  background-color: #211f33 !important;
  border-color: #3d3b58 !important;
}

html.dark #hero-suite .sim-erp-title,
html.dark #product-suite .sim-erp-title,
html.dark .sim-erp-title {
  color: #fefffe !important;
}

html.dark #hero-suite .sim-erp-badge,
html.dark #product-suite .sim-erp-badge,
html.dark .sim-erp-badge {
  background-color: rgba(2, 254, 205, 0.14) !important;
  border-color: rgba(2, 254, 205, 0.4) !important;
  color: #02fecd !important;
}

html.dark #hero-suite .sim-erp-search,
html.dark #product-suite .sim-erp-search,
html.dark .sim-erp-search {
  background-color: #2c2a42 !important;
  border-color: #514f96 !important;
  color: #dddce8 !important;
}

html.dark #hero-suite .sim-erp-thead,
html.dark #product-suite .sim-erp-thead,
html.dark .sim-erp-thead {
  background-color: #252338 !important;
  border-color: #3d3b58 !important;
  color: #a9a8cf !important;
}

html.dark #hero-suite .sim-erp-tbody,
html.dark #product-suite .sim-erp-tbody,
html.dark .sim-erp-tbody {
  background-color: #211f33 !important;
  border-color: #2c2a42 !important;
}

html.dark #hero-suite .sim-erp-row,
html.dark #product-suite .sim-erp-row,
html.dark .sim-erp-row {
  border-color: #2c2a42 !important;
}

html.dark #hero-suite .sim-erp-row:hover,
html.dark #product-suite .sim-erp-row:hover,
html.dark .sim-erp-row:hover {
  background-color: #28263e !important;
}

html.dark #hero-suite .sim-erp-row-active,
html.dark #product-suite .sim-erp-row-active,
html.dark .sim-erp-row-active {
  background-color: rgba(81, 79, 150, 0.28) !important;
}

html.dark #hero-suite .sim-erp-item,
html.dark #product-suite .sim-erp-item,
html.dark .sim-erp-item {
  color: #fefffe !important;
}

html.dark #hero-suite .sim-erp-cat,
html.dark #product-suite .sim-erp-cat,
html.dark .sim-erp-cat {
  color: #a9a8cf !important;
}

html.dark #hero-suite .sim-erp-qty,
html.dark #product-suite .sim-erp-qty,
html.dark .sim-erp-qty {
  color: #fefffe !important;
}

html.dark #hero-suite .sim-erp-chk-empty,
html.dark #product-suite .sim-erp-chk-empty,
html.dark .sim-erp-chk-empty {
  background-color: #1b1a28 !important;
  border-color: #514f96 !important;
}

/* 10.7 Corrección de Contraste en Consola Operativa (#consola) y Tarjetas Flotantes en Modo Noche */
html.dark #product-suite .console-overlay-card {
  background: rgba(33, 31, 51, 0.96) !important;
  border-color: #514f96 !important;
  color: #fefffe !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

html.dark #product-suite .console-overlay-card .text-\[\#1a1923\] {
  color: #fefffe !important;
}

html.dark #product-suite .console-overlay-card .text-\[\#5f5d73\] {
  color: #dddce8 !important;
}

html.dark #product-suite .relume-play-circle {
  background: rgba(33, 31, 51, 0.95) !important;
  border-color: #02fecd !important;
  color: #02fecd !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
}

html.dark #product-suite .relume-play-button-group:hover .relume-play-circle {
  background: #02fecd !important;
  color: #1a1923 !important;
}

html.dark #product-suite .relume-play-label {
  background: rgba(44, 42, 66, 0.96) !important;
  border-color: #514f96 !important;
  color: #fefffe !important;
}

html.dark #product-suite .console-screenshot-card {
  background: #2c2a42 !important;
  border-color: #3d3b58 !important;
}

html.dark #product-suite .console-screenshot-card:hover {
  border-color: #02fecd !important;
}

html.dark #product-suite .card-icon-wrapper {
  background-color: #211f33 !important;
  border-color: #514f96 !important;
  color: #02fecd !important;
}

/* 10.8 Sello Bureau Veritas ISO 9001 en Modo Día y Modo Noche */
.footer-iso-sticker {
  box-shadow: 0 10px 26px rgba(26, 25, 35, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html.dark .footer-iso-sticker {
  border-color: #2c2a42 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* 10.9 Contenedor Scrollable para Tablas Técnicas en Móvil (.story-table-scroll) */
.story-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

/* 10.10 Grilla Adaptativa para las 4 Tarjetas de Telemetría del Hero (.hero-floating-cards-grid) */
@media (min-width: 640px) {
  .hero-floating-cards-grid {
    display: contents;
  }
}

@media (max-width: 639px) {
  .hero-floating-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    width: 100%;
  }

  #hero-suite .hero-floating-cards-grid .hero-glass-card,
  #product-suite .hero-floating-cards-grid .hero-glass-card,
  .hero-floating-cards-grid .hero-glass-card {
    position: static !important;
    inset: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px 14px !important;
    animation: none !important;
    transform: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px -2px rgba(26, 25, 35, 0.06) !important;
  }
}

@media (max-width: 390px) {
  .hero-floating-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 10.11 Responsive Breakpoint: TABLET & LAPTOP COMPACTA (max-width: 1023px) */
@media (max-width: 1023px) {
  .story-chapter {
    min-height: auto;
    padding: 44px 0 32px;
  }

  .narrative-card {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 640px !important;
    padding: 28px 28px !important;
  }

  #seahorse-container {
    width: min(78vw, 650px);
    height: min(78vw, 650px);
  }

  .apple-dropdown#dropdown-modulos {
    width: min(540px, calc(100vw - 32px)) !important;
  }
}

/* 10.12 Responsive Breakpoint: MÓVIL & PHABLET (max-width: 767px) */
@media (max-width: 767px) {
  /* Capítulos de Storytelling fluidos sin espacios muertos */
  .story-chapter {
    min-height: auto;
    padding: 36px 0 28px;
  }

  #intro.story-chapter {
    min-height: auto;
    padding: calc(42vh + 16px) 0 28px;
  }

  .chapter-grid {
    padding: 0 14px;
  }

  .narrative-card {
    padding: 22px 18px !important;
    border-radius: 14px !important;
  }

  .chapter-title {
    font-size: clamp(23px, 6.2vw, 31px) !important;
    line-height: 1.14 !important;
    margin-bottom: 14px !important;
  }

  .chapter-lead {
    font-size: 14.5px !important;
    line-height: 1.58 !important;
    margin-bottom: 18px !important;
  }

  .kpi-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kpi-value {
    font-size: 20px;
  }

  /* Stage del Hipocampo proporcionado en móvil */
  #seahorse-container {
    width: min(92vw, 430px);
    height: min(92vw, 430px);
  }

  /* Ocultar etiquetas laterales del SVG que exceden el ancho de pantallas pequeñas */
  #seahorse-svg .spine-tag,
  #g-blueprint-hud {
    display: none;
  }

  /* Tablas del Hipocampo desplazables horizontalmente sin romper layout */
  .hipocampo-family-table {
    min-width: 440px;
    font-size: 12px;
  }

  /* HUD Inferior compacto en móvil */
  #story-hud-bar {
    bottom: 10px;
    padding: 6px 10px;
    gap: 6px;
    max-width: calc(100vw - 20px);
  }

  .story-hud-step {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  /* Botón Scroll-Up posicionado cómodamente encima del Floating Dock sin colisionar */
  #back-to-top-btn,
  .back-to-top-btn {
    bottom: 76px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 49 !important;
  }

  /* Pestaña lateral Día/Noche en tablet y móvil: asoma discretamente en el borde derecho */
  #theme-edge-dock,
  .theme-edge-switch-dock {
    display: block !important;
    pointer-events: auto !important;
    top: 46% !important;
    transform: translateY(-50%) translateX(calc(100% - 16px)) scale(0.88) !important;
    transform-origin: right center !important;
  }

  #theme-edge-dock:hover,
  #theme-edge-dock:focus-within,
  #theme-edge-dock.is-open,
  .theme-edge-switch-dock:hover,
  .theme-edge-switch-dock:focus-within,
  .theme-edge-switch-dock.is-open {
    transform: translateY(-50%) translateX(0) scale(0.88) !important;
  }

  /* Prevención de auto-zoom en iOS Safari (inputs >= 16px) */
  #demo-form input,
  #demo-form select,
  #demo-form textarea,
  #mobile-search-input,
  .plane-lead-input,
  .apple-search-input {
    font-size: 16px !important;
  }
}

/* 10.13 Sello ISO 9001 en Flujo Limpio en Móvil (< 640px) sin superponerse al Zócalo */
@media (max-width: 639px) {
  .footer-iso-sticker-wrap {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    display: flex;
    justify-content: center;
    margin: 12px 16px 16px;
    transform: rotate(-1.5deg) !important;
  }

  .footer-iso-sticker {
    max-width: 100% !important;
    width: 100% !important;
  }

  #main-footer .footer-watermark {
    font-size: 21vw !important;
    line-height: 0.78 !important;
    transform: translateY(2%) !important;
  }
}

/* 10.14 Accesibilidad de Teclado (:focus-visible) en Modo Día y Modo Noche */
a:focus-visible,
button:focus-visible,
input:not(.apple-search-input):not(#mobile-search-input):focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #514f96;
  outline-offset: 2px;
}

html.dark a:focus-visible,
html.dark button:focus-visible,
html.dark input:not(.apple-search-input):not(#mobile-search-input):focus-visible,
html.dark select:focus-visible,
html.dark [role="button"]:focus-visible {
  outline: 2px solid #02fecd;
  outline-offset: 2px;
}

/* Eliminar cualquier raya vertical u outline interno dentro de la píldora del buscador */
.apple-search-input,
.apple-search-input:focus,
.apple-search-input:focus-visible,
#mobile-search-input,
#mobile-search-input:focus,
#mobile-search-input:focus-visible,
.apple-search-btn:focus,
.apple-search-btn:focus-visible,
#nav-search-close:focus,
#nav-search-close:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

html:not(.dark) .apple-search-box.is-expanded:focus-within,
html:not(.dark) .mobile-search-bar:focus-within {
  border-color: #514f96 !important;
  box-shadow: 0 4px 16px rgba(81, 79, 150, 0.14) !important;
}

html.dark .apple-search-box.is-expanded:focus-within,
html.dark .mobile-search-bar:focus-within {
  border-color: #6563ae !important;
  box-shadow: none !important;
}


/* ============================================================================
   11. REINTERPRETACIÓN ESTRUCTURAL ANIMEJS.COM × FAMILIA HIPOCAMPO (MUNDO IT)
   - Prevención absoluta de superposición con la barra superior (#product-navbar)
   - Columna editorial arquitectónica izquierda + Stage derecho permanente (#stage-viewport)
   - Barra de filtros de Consola (#consola .console-tabs-row) 100% balanceada sin recortes
   - Mapa de Cobertura Modular (.anime-modules-meter) inspirado en #modules de animejs.com
   ============================================================================ */

/* 11.0 Zona Segura Superior Anti-Superposición con el Menú Fijo (Screen #1) */
#story-main .story-chapter,
#story-main section[id].story-chapter {
  padding-top: 108px !important;
  padding-bottom: 64px !important;
  scroll-margin-top: 96px !important;
}

#product-suite > section#hero {
  padding-top: 96px !important;
  scroll-margin-top: 96px !important;
}

@media (max-width: 767px) {
  #story-main #intro.story-chapter {
    padding-top: calc(42vh + 16px) !important;
    padding-bottom: 28px !important;
  }

  #story-main .story-chapter:not(#intro),
  #story-main section[id].story-chapter:not(#intro) {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }
}

/* 11.1 Punto de acento tipográfico en titulares (.anime-title-dot) estilo animejs.com */
.anime-title-dot {
  color: #0bbf9d;
  font-weight: 700;
  margin-left: 1px;
}

html.dark .anime-title-dot {
  color: #02fecd;
}

/* 11.2 Columna Editorial Arquitectónica en #story-main (Estilo .section-text de animejs.com) */
@media (min-width: 1024px) {
  #story-main .anime-section-shell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  #story-main .narrative-card.anime-editorial-panel {
    margin: 0 !important;
    max-width: 510px !important;
    width: 100%;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    border: 1px solid #d0cfd8 !important;
    border-left: 3px solid #514f96 !important;
    border-radius: 0 16px 16px 0 !important;
    padding: 30px 32px !important;
    box-shadow: 0 14px 36px -10px rgba(26, 25, 35, 0.08) !important;
  }

  #story-main #demo .narrative-card.anime-editorial-panel {
    max-width: 580px !important;
  }

  html.dark #story-main .narrative-card.anime-editorial-panel {
    background: rgba(27, 26, 40, 0.92) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    border: 1px solid #3d3b58 !important;
    border-left: 3px solid #02fecd !important;
    box-shadow: none !important;
  }
}

.anime-display-title {
  font-family: 'Archivo', sans-serif !important;
  font-size: clamp(28px, 3.4vw, 44px) !important;
  font-weight: 600 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 16px !important;
}

/* 11.3 UI Group de Comando Inicial (.anime-ui-group / .anime-npm-pill) estilo #intro de animejs.com */
.anime-ui-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 16px;
}

.anime-npm-pill {
  margin: 0;
  padding: 9px 14px;
  border-radius: 8px;
  background: #f0eff8;
  border: 1px solid #c8c6d8;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #3e3c73;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.anime-npm-pill code {
  font-family: inherit;
}

.anime-npm-pill::before {
  content: "$";
  color: #0a7562;
  font-weight: 700;
  margin-right: 8px;
}

html.dark .anime-npm-pill {
  background: #211f33;
  border-color: #514f96;
  color: #fefffe;
}

html.dark .anime-npm-pill::before {
  color: #02fecd;
}

/* 11.4 Lista de Enlaces Técnicos (.anime-feature-links) idéntica a ul.feature-links de animejs.com */
.anime-feature-links {
  list-style: none;
  padding: 0;
  margin: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #e4e4ea;
  padding-top: 12px;
}

html.dark .anime-feature-links {
  border-top-color: #3d3b58;
}

.anime-feature-links li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #3e3c73;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.anime-feature-links li a:hover {
  color: #0a7562;
  transform: translateX(4px);
}

html.dark .anime-feature-links li a {
  color: #dddce8;
}

html.dark .anime-feature-links li a:hover {
  color: #02fecd;
}

.anime-arrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #514f96;
  transition: transform 0.18s ease, color 0.18s ease;
}

.anime-feature-links li a:hover .anime-arrow-icon {
  transform: translateX(2px);
  color: #0a7562;
}

html.dark .anime-arrow-icon {
  color: #02fecd;
}

html.dark .anime-feature-links li a:hover .anime-arrow-icon {
  color: #02fecd;
}

/* 11.5 Barra de Filtros de la Consola (#consola .console-tabs-row) — Optimizada (Screen #5) */
#product-suite #consola .console-tabs-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px !important;
  padding: 8px 10px !important;
  background-color: #f4f4f8 !important;
  border-bottom: 1px solid #d0cfd8 !important;
  overflow: visible !important;
}

@media (max-width: 960px) {
  #product-suite #consola .console-tabs-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  #product-suite #consola .console-tab {
    flex: 1 1 calc(33.333% - 6px) !important;
  }
}

@media (max-width: 639px) {
  #product-suite #consola .console-tabs-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #product-suite #consola .console-tab:first-child {
    grid-column: 1 / -1;
  }
}

#product-suite #consola .console-tab {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-family: 'Geist Mono', monospace !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  background-color: #ffffff !important;
  border: 1px solid #d0cfd8 !important;
  color: #2e2c3d !important;
  box-shadow: 0 1px 2px rgba(26, 25, 35, 0.04) !important;
  transition: all 0.2s ease !important;
}

#product-suite #consola .console-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#product-suite #consola .console-tab svg,
#product-suite #consola .console-tab i {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  color: #514f96 !important;
}

#product-suite #consola .console-tab:hover {
  background-color: #f0eff8 !important;
  border-color: #514f96 !important;
  color: #1a1923 !important;
}

#product-suite #consola .console-tab.active {
  background-color: #514f96 !important;
  border-color: #3e3c73 !important;
  color: #fefffe !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px rgba(81, 79, 150, 0.24) !important;
}

#product-suite #consola .console-tab.active svg,
#product-suite #consola .console-tab.active i {
  color: #02fecd !important;
}

/* Barra de Filtros de la Consola en Modo Noche */
html.dark #product-suite #consola .console-tabs-row {
  background-color: #1b1a28 !important;
  border-bottom-color: #3d3b58 !important;
}

html.dark #product-suite #consola .console-tab {
  background-color: #211f33 !important;
  border: 1px solid #3d3b58 !important;
  color: #dddce8 !important;
  box-shadow: none !important;
}

html.dark #product-suite #consola .console-tab svg,
html.dark #product-suite #consola .console-tab i {
  color: #a9a8cf !important;
}

html.dark #product-suite #consola .console-tab:hover {
  background-color: #2c2a42 !important;
  border-color: #6563ae !important;
  color: #fefffe !important;
}

html.dark #product-suite #consola .console-tab:hover svg,
html.dark #product-suite #consola .console-tab:hover i {
  color: #02fecd !important;
}

html.dark #product-suite #consola .console-tab.active {
  background-color: #514f96 !important;
  border-color: #02fecd !important;
  color: #fefffe !important;
  font-weight: 600 !important;
}

html.dark #product-suite #consola .console-tab.active svg,
html.dark #product-suite #consola .console-tab.active i {
  color: #02fecd !important;
}

/* 11.6 Mapa de Cobertura Modular (.anime-modules-meter) inspirado en #modules de animejs.com */
.anime-modules-meter {
  padding: 20px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d0cfd8;
  box-shadow: 0 8px 24px -6px rgba(26, 25, 35, 0.06);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark #product-suite .anime-modules-meter {
  background: #211f33 !important;
  border-color: #3d3b58 !important;
  box-shadow: none !important;
}

.anime-modules-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.anime-meter-title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3e3c73;
}

html.dark #product-suite .anime-meter-title {
  color: #dddce8 !important;
}

.anime-meter-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
}

.anime-meter-num {
  font-size: 18px;
  font-weight: 700;
  color: #1a1923;
}

html.dark #product-suite .anime-meter-num {
  color: #02fecd !important;
}

.anime-meter-unit {
  font-size: 10.5px;
  font-weight: 600;
  color: #514f96;
  letter-spacing: 0.05em;
}

html.dark #product-suite .anime-meter-unit {
  color: #a9a8cf !important;
}

.anime-modules-chart {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 14px;
  border-radius: 9999px;
  overflow: hidden;
  gap: 3px;
  background: #f0eff8;
  padding: 2px;
  border: 1px solid #d0cfd8;
  margin-bottom: 14px;
}

html.dark #product-suite .anime-modules-chart {
  background: #1b1a28 !important;
  border-color: #3d3b58 !important;
}

.anime-chart-seg {
  height: 100%;
  border-radius: 9999px;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.anime-chart-seg:hover {
  filter: brightness(1.15);
  transform: scaleY(1.18);
}

.seg-flota { background: #514f96; }
.seg-rrhh  { background: #0bbf9d; }
.seg-arca  { background: #6563ae; }
.seg-mrp   { background: #0a7562; }
.seg-stock { background: #8583c2; }
.seg-resto { background: #3e3c73; }

html.dark .seg-flota { background: #6563ae; }
html.dark .seg-rrhh  { background: #02fecd; }
html.dark .seg-arca  { background: #514f96; }
html.dark .seg-mrp   { background: #0bbf9d; }
html.dark .seg-stock { background: #a9a8cf; }
html.dark .seg-resto { background: #8583c2; }

.anime-modules-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

@media (min-width: 640px) {
  .anime-modules-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .anime-modules-legend {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.anime-modules-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f4f4f8;
  border: 1px solid #e4e4ea;
}

html.dark #product-suite .anime-modules-legend li {
  background: #1b1a28 !important;
  border-color: #3d3b58 !important;
}

.anime-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.anime-legend-name {
  color: #1a1923;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.dark #product-suite .anime-legend-name {
  color: #fefffe !important;
}

.anime-legend-val {
  margin-left: auto;
  color: #514f96;
  font-weight: 600;
  white-space: nowrap;
}

html.dark #product-suite .anime-legend-val {
  color: #02fecd !important;
}

/* 11.7 Matriz Comparativa de Pros y Contras (#comparativa .comp-matrix-card) — Diseño UX/UI de Alta Precisión */
.comp-legend-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.comp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.comp-legend-con {
  background: #f4f4f8;
  border: 1px solid #d0cfd8;
  color: #4a485c;
}

.comp-legend-icon-con {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e4e3ee;
  color: #514f96;
  font-size: 9px;
  font-weight: 700;
}

.comp-legend-pro {
  background: #e6fbf5;
  border: 1px solid rgba(11, 191, 157, 0.4);
  color: #0a7562;
}

.comp-legend-icon-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0bbf9d;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
}

html.dark #product-suite .comp-legend-con {
  background: #211f33;
  border-color: #3d3b58;
  color: #a9a8cf;
}

html.dark #product-suite .comp-legend-icon-con {
  background: #2c2a42;
  color: #a9a8cf;
}

html.dark #product-suite .comp-legend-pro {
  background: rgba(2, 254, 205, 0.12);
  border-color: rgba(2, 254, 205, 0.38);
  color: #02fecd;
}

html.dark #product-suite .comp-legend-icon-pro {
  background: #02fecd;
  color: #1b1a28;
}

/* Contenedor Maestro de la Caja de Pros y Contras */
.comp-matrix-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid #d0cfd8;
  box-shadow: 0 14px 36px -10px rgba(26, 25, 35, 0.08);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark #product-suite .comp-matrix-card {
  background: #211f33 !important;
  border-color: #3d3b58 !important;
  box-shadow: none !important;
}

/* Encabezado de 3 Columnas */
.comp-matrix-header {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.38fr;
  align-items: stretch;
  background: #f4f4f8;
  border-bottom: 1.5px solid #d0cfd8;
}

html.dark #product-suite .comp-matrix-header {
  background: #1b1a28 !important;
  border-bottom-color: #3d3b58 !important;
}

.comp-head-cell {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.comp-head-con {
  border-left: 1px solid #dcdbe6;
}

html.dark #product-suite .comp-head-con {
  border-left-color: #2c2a42 !important;
}

.comp-head-pro {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 191, 157, 0.1) 0%, rgba(81, 79, 150, 0.08) 100%);
  border-left: 1.5px solid #b8b6d4;
  border-top: 3px solid #0bbf9d;
}

html.dark #product-suite .comp-head-pro {
  background: linear-gradient(180deg, rgba(2, 254, 205, 0.12) 0%, rgba(81, 79, 150, 0.24) 100%) !important;
  border-left-color: #514f96 !important;
  border-top-color: #02fecd !important;
}

.comp-head-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #514f96;
  text-transform: uppercase;
}

html.dark #product-suite .comp-head-eyebrow {
  color: #a9a8cf !important;
}

.comp-head-badge-con,
.comp-head-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comp-head-badge-con svg,
.comp-head-badge-pro svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.comp-head-badge-con {
  background: #e8e7f0;
  color: #4a485c;
  border: 1px solid #c8c6d8;
}

html.dark #product-suite .comp-head-badge-con {
  background: #2c2a42 !important;
  color: #a9a8cf !important;
  border-color: #3d3b58 !important;
}

.comp-head-badge-pro {
  background: #e6fbf5;
  color: #0a7562;
  border: 1px solid rgba(11, 191, 157, 0.45);
}

html.dark #product-suite .comp-head-badge-pro {
  background: rgba(2, 254, 205, 0.14) !important;
  color: #02fecd !important;
  border-color: rgba(2, 254, 205, 0.4) !important;
}

.comp-head-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.comp-head-title {
  font-family: 'Archivo', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1923;
}

html.dark #product-suite .comp-head-title {
  color: #fefffe !important;
}

.comp-head-con .comp-head-title {
  color: #4a485c;
}

html.dark #product-suite .comp-head-con .comp-head-title {
  color: #dddce8 !important;
}

.comp-head-rec-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #514f96;
  color: #fefffe;
}

html.dark #product-suite .comp-head-rec-pill {
  background: #02fecd !important;
  color: #1b1a28 !important;
}

/* Filas del Cuerpo Comparativo */
.comp-matrix-body {
  display: flex;
  flex-direction: column;
}

.comp-matrix-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.38fr;
  align-items: stretch;
  border-bottom: 1px solid #e4e4ea;
  transition: background-color 0.2s ease;
}

.comp-matrix-row:last-child {
  border-bottom: none;
}

html.dark #product-suite .comp-matrix-row {
  border-bottom-color: #3d3b58 !important;
}

.comp-matrix-row:hover {
  background-color: rgba(240, 239, 248, 0.45);
}

html.dark #product-suite .comp-matrix-row:hover {
  background-color: rgba(44, 42, 66, 0.55) !important;
}

.comp-cell {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Celda 1: Criterio Operativo */
.comp-crit-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f0eff8;
  border: 1px solid #d0cfd8;
  color: #514f96;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.comp-crit-icon svg {
  width: 16px;
  height: 16px;
}

.comp-matrix-row:hover .comp-crit-icon {
  transform: scale(1.06);
  border-color: #514f96;
}

html.dark #product-suite .comp-crit-icon {
  background: #1b1a28 !important;
  border-color: #3d3b58 !important;
  color: #a9a8cf !important;
}

html.dark #product-suite .comp-matrix-row:hover .comp-crit-icon {
  border-color: #02fecd !important;
  color: #02fecd !important;
}

.comp-crit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.comp-crit-title {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1923;
  line-height: 1.25;
}

html.dark #product-suite .comp-crit-title {
  color: #fefffe !important;
}

.comp-crit-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #514f96;
}

html.dark #product-suite .comp-crit-sub {
  color: #a9a8cf !important;
}

/* Celda 2: Contra (Software Enlatado Tradicional) */
.comp-cell-con {
  border-left: 1px solid #ecebf2;
  background: rgba(244, 244, 248, 0.35);
}

html.dark #product-suite .comp-cell-con {
  border-left-color: #2c2a42 !important;
  background: rgba(27, 26, 40, 0.35) !important;
}

/* Celda 3: Pro (Histrix ERP · Columna Destacada) */
.comp-cell-pro {
  border-left: 1.5px solid #b8b6d4;
  background: linear-gradient(90deg, rgba(240, 239, 248, 0.65) 0%, rgba(230, 251, 245, 0.38) 100%);
  justify-content: space-between;
}

html.dark #product-suite .comp-cell-pro {
  border-left-color: #514f96 !important;
  background: linear-gradient(90deg, rgba(81, 79, 150, 0.18) 0%, rgba(2, 254, 205, 0.06) 100%) !important;
}

.comp-matrix-row:hover .comp-cell-pro {
  background: linear-gradient(90deg, rgba(240, 239, 248, 0.95) 0%, rgba(230, 251, 245, 0.65) 100%);
}

html.dark #product-suite .comp-matrix-row:hover .comp-cell-pro {
  background: linear-gradient(90deg, rgba(81, 79, 150, 0.28) 0%, rgba(2, 254, 205, 0.11) 100%) !important;
}

/* Iconos de Estado (✕ Contra / ✓ Pro) */
.comp-status-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-status-icon svg {
  width: 13px;
  height: 13px;
}

.comp-status-con {
  background: #ecebf4;
  border: 1px solid #c8c6d8;
  color: #5f5d73;
}

html.dark #product-suite .comp-status-con {
  background: #1b1a28 !important;
  border-color: #3d3b58 !important;
  color: #a9a8cf !important;
}

.comp-status-pro {
  background: #e6fbf5;
  border: 1px solid rgba(11, 191, 157, 0.45);
  color: #0a7562;
}

html.dark #product-suite .comp-status-pro {
  background: rgba(2, 254, 205, 0.14) !important;
  border-color: rgba(2, 254, 205, 0.45) !important;
  color: #02fecd !important;
}

.comp-cell-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.comp-con-text {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #3e3c50;
  line-height: 1.32;
}

html.dark #product-suite .comp-con-text {
  color: #dddce8 !important;
}

.comp-con-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #5f5d73;
  line-height: 1.25;
}

html.dark #product-suite .comp-con-tag {
  color: #a9a8cf !important;
}

.comp-pro-text {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1923;
  line-height: 1.3;
}

html.dark #product-suite .comp-pro-text {
  color: #fefffe !important;
}

.comp-pro-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: #0a7562;
  line-height: 1.25;
}

html.dark #product-suite .comp-pro-tag {
  color: #02fecd !important;
}

.comp-pro-chip {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #b8b6d4;
  color: #3e3c73;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.comp-matrix-row:hover .comp-pro-chip {
  transform: translateX(-2px);
  border-color: #0bbf9d;
  color: #0a7562;
}

html.dark #product-suite .comp-pro-chip {
  background: #1b1a28 !important;
  border-color: #514f96 !important;
  color: #02fecd !important;
}

html.dark #product-suite .comp-matrix-row:hover .comp-pro-chip {
  border-color: #02fecd !important;
}

/* Barra Resumen Inferior (.comp-matrix-footer) */
.comp-matrix-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  background: #f4f4f8;
  border-top: 1.5px solid #d0cfd8;
  transition: all 0.25s ease;
}

html.dark #product-suite .comp-matrix-footer {
  background: #1b1a28 !important;
  border-top-color: #3d3b58 !important;
}

.comp-footer-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #2e2c3d;
  flex: 1;
}

.comp-footer-summary strong {
  color: #1a1923;
  font-weight: 600;
}

html.dark #product-suite .comp-footer-summary {
  color: #dddce8 !important;
}

html.dark #product-suite .comp-footer-summary strong {
  color: #fefffe !important;
}

.comp-footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0bbf9d;
  flex-shrink: 0;
  margin-top: 5px;
}

html.dark #product-suite .comp-footer-dot {
  background: #02fecd !important;
}

.comp-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  min-height: 40px;
  border-radius: 10px;
  background: #514f96;
  border: 1px solid #3e3c73;
  color: #fefffe !important;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(81, 79, 150, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-footer-cta:hover {
  background: #3e3c73;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(81, 79, 150, 0.3);
}

.comp-footer-cta:active {
  transform: scale(0.98);
}

html.dark #product-suite .comp-footer-cta {
  background: #514f96 !important;
  border-color: #02fecd !important;
  color: #fefffe !important;
}

html.dark #product-suite .comp-footer-cta:hover {
  background: #6563ae !important;
}

@media (max-width: 767px) {
  .comp-matrix-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .comp-footer-summary {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .comp-footer-cta {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
  }
}

/* Adaptación Responsive de la Caja de Pros y Contras (Tablet Compacta & Móvil < 860px) */
@media (max-width: 1023px) {
  .comp-pro-chip {
    display: none;
  }
}

@media (max-width: 859px) {
  .comp-matrix-header {
    display: none;
  }

  .comp-matrix-row {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }

  .comp-cell {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .comp-cell-criterion {
    padding: 4px 4px 6px;
  }

  .comp-cell-con,
  .comp-cell-pro {
    position: relative;
    padding-top: 26px;
    border: 1px solid #d0cfd8 !important;
  }

  html.dark #product-suite .comp-cell-con {
    border-color: #3d3b58 !important;
  }

  html.dark #product-suite .comp-cell-pro {
    border-color: #514f96 !important;
  }

  .comp-cell-con::before,
  .comp-cell-pro::before {
    content: attr(data-mobile-label);
    position: absolute;
    top: 6px;
    left: 12px;
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .comp-cell-con::before {
    color: #5f5d73;
  }

  .comp-cell-pro::before {
    color: #0a7562;
  }

  html.dark #product-suite .comp-cell-con::before {
    color: #a9a8cf;
  }

  html.dark #product-suite .comp-cell-pro::before {
    color: #02fecd;
  }

  .comp-pro-chip {
    display: inline-flex;
  }
}

/* ============================================================================
   12. ARQUITECTURA BILATERAL DE TEXTO ABIERTO SIN CAJAS + FLECHAS VECTORIALES
       (Inspirada en https://animejs.com/ · Texto a ambos lados del Hipocampo)
   ============================================================================ */

/* 12.1 Contenedor y Grilla Bilateral de 3 Zonas (Izquierda · Caballito Central · Derecha) */
#story-main .bilateral-story-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
}

@media (min-width: 1024px) {
  #story-main .bilateral-story-grid {
    padding: 0 36px;
    grid-template-columns: minmax(260px, 330px) minmax(380px, 1fr) minmax(260px, 330px);
    gap: 28px;
  }
}

@media (min-width: 1280px) {
  #story-main .bilateral-story-grid {
    padding: 0 48px;
    grid-template-columns: minmax(300px, 360px) minmax(480px, 1fr) minmax(300px, 360px);
    gap: 36px;
    justify-content: space-between;
  }
}

/* Columnas abiertas directamente sobre el lienzo (CERO cajas/tarjetas de fondo) */
.story-col-left,
.story-col-right {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  position: relative;
  z-index: 12;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.story-col-stage {
  display: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .story-col-stage {
    display: block;
    min-height: 460px;
    width: 100%;
  }
}

/* Animación de rotación suave para retículas SVG del hipocampo */
.svg-chapter-vectors {
  transition: opacity 0.38s ease;
}

.svg-reticle-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: svgReticleRotate 18s linear infinite;
}

@keyframes svgReticleRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* En Modo Día suavizar trazos de los vectores del SVG */
html:not(.dark) #seahorse-svg .svg-chapter-vectors path[stroke="#02fecd"],
html:not(.dark) #seahorse-svg .svg-chapter-vectors circle[stroke="#02fecd"] {
  stroke: #0bbf9d !important;
}

html:not(.dark) #seahorse-svg #svg-arrow-mint path {
  fill: #0bbf9d !important;
}

/* 12.2 Flechas Ilustrativas Anatómicas (.anatomical-pointer) */
.anatomical-pointer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  margin: 16px 0;
  border-top: 1px dashed rgba(81, 79, 150, 0.32);
  border-bottom: 1px dashed rgba(81, 79, 150, 0.32);
}

html.dark .anatomical-pointer {
  border-top-color: rgba(169, 168, 207, 0.24);
  border-bottom-color: rgba(169, 168, 207, 0.24);
}

.anatomical-pointer.pointer-to-right {
  justify-content: space-between;
}

.anatomical-pointer.pointer-to-left {
  justify-content: flex-start;
}

.pointer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pointer-kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a7562;
}

html.dark .pointer-kicker {
  color: #02fecd;
}

.anatomical-pointer.pointer-violet .pointer-kicker {
  color: #514f96;
}

html.dark .anatomical-pointer.pointer-violet .pointer-kicker {
  color: #a9a8cf;
}

.pointer-text {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #2e2c3d;
  font-weight: 500;
}

html.dark .pointer-text {
  color: #dddce8;
}

.pointer-arrow-svg {
  width: 58px;
  height: 18px;
  flex-shrink: 0;
  color: #0bbf9d;
}

html.dark .pointer-arrow-svg {
  color: #02fecd;
}

.anatomical-pointer.pointer-violet .pointer-arrow-svg {
  color: #6563ae;
}

.pointer-to-right .pointer-arrow-svg {
  animation: arrowNudgeRight 1.8s ease-in-out infinite;
}

.pointer-to-left .pointer-arrow-svg {
  animation: arrowNudgeLeft 1.8s ease-in-out infinite;
}

@keyframes arrowNudgeRight {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

@keyframes arrowNudgeLeft {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-6px); }
}

/* 12.3 Especificaciones Abiertas en Capítulo 01 (.open-spec-list) */
.open-spec-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.open-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(81, 79, 150, 0.16);
}

html.dark .open-spec-item {
  border-bottom-color: rgba(169, 168, 207, 0.14);
}

.open-spec-num {
  font-family: 'Geist Mono', monospace;
  font-size: 17px;
  font-weight: 600;
  color: #514f96;
  flex: 0 0 130px;
  min-width: 130px;
  white-space: nowrap;
  line-height: 1.2;
  padding-top: 2px;
}

.open-spec-body {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 540px) {
  .open-spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 14px;
  }
  .open-spec-num {
    flex: none;
    min-width: 0;
    font-size: 16px;
    padding-top: 0;
    margin-bottom: 2px;
  }
}

html.dark .open-spec-num {
  color: #02fecd;
}

.open-spec-title {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1923;
  margin-bottom: 3px;
}

html.dark .open-spec-title {
  color: #fefffe;
}

.open-spec-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3e3c50;
}

html.dark .open-spec-desc {
  color: #dddce8;
}

/* 12.4 Apuntadores Anatómicos con Flecha en Capítulos 02 y 04 (.open-callouts-stack) */
.open-lead-quote {
  font-family: 'Archivo', sans-serif;
  font-size: 16.5px;
  line-height: 1.52;
  color: #1a1923;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 2px solid #0bbf9d;
}

html.dark .open-lead-quote {
  color: #fefffe;
  border-left-color: #02fecd;
}

.open-lead-quote strong {
  color: #514f96;
}

html.dark .open-lead-quote strong {
  color: #02fecd;
}

.open-callouts-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.open-callout-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(81, 79, 150, 0.16);
}

html.dark .open-callout-row {
  border-bottom-color: rgba(169, 168, 207, 0.14);
}

.open-callout-row.align-right-arrow {
  justify-content: space-between;
}

.open-callout-content {
  flex: 1;
}

.open-callout-tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a7562;
  margin-bottom: 3px;
}

html.dark .open-callout-tag {
  color: #02fecd;
}

.open-callout-title {
  font-family: 'Archivo', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #1a1923;
  margin-bottom: 3px;
}

html.dark .open-callout-title {
  color: #fefffe;
}

.open-callout-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3e3c50;
}

html.dark .open-callout-desc {
  color: #dddce8;
}

.callout-vector-arrow {
  width: 48px;
  height: 22px;
  flex-shrink: 0;
  color: #514f96;
  transition: transform 0.25s ease, color 0.25s ease;
}

html.dark .callout-vector-arrow {
  color: #02fecd;
}

.open-callout-row.align-right-arrow:hover .callout-vector-arrow {
  transform: translateX(5px);
  color: #0bbf9d;
}

.open-callout-row.align-left-arrow:hover .callout-vector-arrow {
  transform: translateX(-5px);
  color: #0bbf9d;
}

/* 12.5 Las 6 Espinas Abiertas a Ambos Lados en Capítulo 03 (.open-spines-group) */
#story-main .open-spines-group {
  gap: 8px;
  margin-top: 14px;
}

#story-main .open-spines-group .spine-row-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(81, 79, 150, 0.18) !important;
  border-radius: 0 !important;
  padding: 12px 6px !important;
  box-shadow: none !important;
  transition: all 0.22s ease;
}

html.dark #story-main .open-spines-group .spine-row-btn {
  border-bottom-color: rgba(169, 168, 207, 0.16) !important;
}

#story-main .open-spines-group .spine-row-btn:hover,
#story-main .open-spines-group .spine-row-btn.active {
  background: transparent !important;
  border-bottom-color: #0bbf9d !important;
  transform: translateX(4px);
}

#story-main .open-spines-group .spine-row-btn.spine-row-right:hover,
#story-main .open-spines-group .spine-row-btn.spine-row-right.active {
  transform: translateX(-4px);
}

html.dark #story-main .open-spines-group .spine-row-btn:hover,
html.dark #story-main .open-spines-group .spine-row-btn.active {
  border-bottom-color: #02fecd !important;
}

.spine-arrow-dir {
  width: 32px;
  height: 15px;
  flex-shrink: 0;
  color: #75738a;
  transition: transform 0.22s ease, color 0.22s ease;
}

html.dark .spine-arrow-dir {
  color: #a9a8cf;
}

.spine-row-btn:hover .spine-arrow-dir,
.spine-row-btn.active .spine-arrow-dir {
  color: #0a7562;
  transform: translateX(4px);
}

.spine-row-btn.spine-row-right:hover .spine-arrow-dir,
.spine-row-btn.spine-row-right.active .spine-arrow-dir {
  transform: translateX(-4px);
}

html.dark .spine-row-btn:hover .spine-arrow-dir,
html.dark .spine-row-btn.active .spine-arrow-dir {
  color: #02fecd;
}

/* 12.6 Cronología Abierta (2005 · 2025 · 2026) y Sello ISO 9001 en Capítulo 05 */
#story-main .open-iso-callout {
  background: transparent !important;
  border: none !important;
  border-left: 2px solid #0bbf9d !important;
  border-radius: 0 !important;
  padding: 6px 0 6px 16px !important;
  box-shadow: none !important;
  margin-top: 18px;
}

html.dark #story-main .open-iso-callout {
  border-left-color: #02fecd !important;
}

.open-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.open-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(81, 79, 150, 0.16);
}

html.dark .open-timeline-item {
  border-bottom-color: rgba(169, 168, 207, 0.14);
}

.open-timeline-year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: #514f96;
  min-width: 86px;
  flex-shrink: 0;
}

html.dark .open-timeline-year {
  color: #a9a8cf;
}

.open-timeline-item.is-current .open-timeline-year {
  color: #0a7562;
}

html.dark .open-timeline-item.is-current .open-timeline-year {
  color: #02fecd;
}

.timeline-arrow-left {
  width: 24px;
  height: 12px;
  color: #0bbf9d;
  flex-shrink: 0;
}

html.dark .timeline-arrow-left {
  color: #02fecd;
}

.open-timeline-title {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1923;
  margin-bottom: 3px;
}

html.dark .open-timeline-title {
  color: #fefffe;
}

.open-timeline-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3e3c50;
}

html.dark .open-timeline-desc {
  color: #dddce8;
}

/* 12.7 Las 4 Especies de la Familia Hipocampo Abiertas en Capítulo 06 (.open-species-list) */
.open-species-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.open-species-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(81, 79, 150, 0.18);
  transition: transform 0.22s ease;
}

html.dark .open-species-row {
  border-bottom-color: rgba(169, 168, 207, 0.16);
}

.open-species-row:hover {
  transform: translateX(-4px);
}

.species-arrow-left {
  width: 28px;
  height: 15px;
  margin-top: 3px;
  flex-shrink: 0;
  color: #6563ae;
  transition: transform 0.22s ease, color 0.22s ease;
}

.open-species-row.is-flagship .species-arrow-left,
.open-species-row:hover .species-arrow-left {
  color: #0bbf9d;
  transform: translateX(-4px);
}

html.dark .open-species-row.is-flagship .species-arrow-left,
html.dark .open-species-row:hover .species-arrow-left {
  color: #02fecd;
}

.species-header {
  display: flex;
   flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.species-name {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1923;
}

html.dark .species-name {
  color: #fefffe;
}

.species-latin {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  color: #5f5d73;
}

html.dark .species-latin {
  color: #a9a8cf;
}

.species-role-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #0a7562;
  padding: 1px 6px;
  border-bottom: 1.5px solid #0bbf9d;
}

html.dark .species-role-tag {
  color: #02fecd;
  border-bottom-color: #02fecd;
}

.species-symbol-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3e3c50;
}

html.dark .species-symbol-desc {
  color: #dddce8;
}

.species-symbol-desc strong {
  color: #1a1923;
  font-weight: 600;
}

html.dark .species-symbol-desc strong {
  color: #fefffe;
}

/* Ajuste de tamaño del caballito central en Desktop para encajar con holgura entre ambas columnas */
@media (min-width: 1024px) {
  #seahorse-container {
    width: min(56vw, 680px);
    height: min(82vh, 720px);
  }
}

/* En Tablet y Móvil (< 1024px): Ocultar las flechas laterales exclusivas de 3 columnas para lectura vertical limpia */
@media (max-width: 1023px) {
  .pointer-arrow-svg,
  .callout-vector-arrow,
  .spine-arrow-dir,
  .timeline-arrow-left,
  .species-arrow-left,
  #seahorse-svg .svg-chapter-vectors path {
    display: none;
  }
}


/* ============================================================================
   13. BARRA DE DESPLAZAMIENTO GENERAL VISIBLE (DÍA / NOCHE)
   - Más ancha (14px) con pulgar en pastilla violeta de alto contraste
   - Pista adaptada al tema (antes quedaba clara sobre el fondo oscuro)
   - Hover menta + estado activo para feedback inmediato al arrastrar
   ============================================================================ */

html {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

/* Barra principal de la página (viewport) */
html::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

html::-webkit-scrollbar-track {
  background: #f0eff8;
  border-left: 1px solid #dddce8;
}

html::-webkit-scrollbar-thumb {
  background-color: #514f96;
  border: 3px solid #f0eff8;
  border-radius: 9999px;
  background-clip: padding-box;
  min-height: 48px;
}

html::-webkit-scrollbar-thumb:hover {
  background-color: #3e3c73;
  border-width: 2px;
}

html::-webkit-scrollbar-thumb:active {
  background-color: #0bbf9d;
  border-width: 2px;
}

html.dark::-webkit-scrollbar-track {
  background: #141320;
  border-left: 1px solid #2c2a42;
}

html.dark::-webkit-scrollbar-thumb {
  background-color: #6563ae;
  border-color: #141320;
}

html.dark::-webkit-scrollbar-thumb:hover {
  background-color: #8583c2;
}

html.dark::-webkit-scrollbar-thumb:active {
  background-color: #02fecd;
}

/* Contenedores internos con scroll (dropdowns, buscador, tablas): finos pero visibles */
body *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body *::-webkit-scrollbar-track {
  background: transparent;
}

body *::-webkit-scrollbar-thumb {
  background-color: #a9a8cf;
  border: 2px solid transparent;
  border-radius: 9999px;
  background-clip: padding-box;
}

body *::-webkit-scrollbar-thumb:hover {
  background-color: #514f96;
}

html.dark body *::-webkit-scrollbar-thumb {
  background-color: #514f96;
}

html.dark body *::-webkit-scrollbar-thumb:hover {
  background-color: #02fecd;
}

/* Se mantiene oculta la barra de la fila de pestañas de la consola */
.console-tabs-row::-webkit-scrollbar {
  display: none;
}

/* Firefox (solo donde no existe ::-webkit-scrollbar, para no anular el estilo en Chrome/Edge) */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: auto;
    scrollbar-color: #514f96 #f0eff8;
  }

  html.dark {
    scrollbar-color: #6563ae #141320;
  }

  body * {
    scrollbar-width: thin;
    scrollbar-color: #a9a8cf transparent;
  }

  html.dark body * {
    scrollbar-color: #514f96 transparent;
  }
}

/* ============================================================================
   14. INITIAL PRELOADER: HISTRIX ERP (ESTILO HIGH-TECH FAMILIA HIPOCAMPO)
   - Símbolo Histrix con respiración y halo bioluminiscente
   - Título HISTRIX + Pastilla ERP violeta con brillo
   - Barra de progreso con gradiente violeta a menta (#6563ae -> #a855f7 -> #02fecd)
   - Telemetría en tiempo real con punto menta pulsante y porcentaje 0-100%
   ============================================================================ */

.initial-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141320;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.initial-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(101, 99, 174, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 50% 60%, rgba(2, 254, 205, 0.12) 0%, transparent 55%),
    #141320;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  max-width: 520px;
  width: 90%;
}

.loader-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  width: 96px;
  height: 96px;
}

.loader-logo-wrapper::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 99, 174, 0.45) 0%, rgba(2, 254, 205, 0.2) 50%, transparent 75%);
  filter: blur(14px);
  z-index: -1;
  animation: logo-glow-pulse 2.6s infinite ease-in-out;
}

.loader-logo-wrapper loadersz-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(2, 254, 205, 0.45)) drop-shadow(0 0 28px rgba(101, 99, 174, 0.35));
}

.loader-logo,
.loader-logo-core {
  height: 42px;
  width: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(101, 99, 174, 0.75)) drop-shadow(0 0 8px rgba(2, 254, 205, 0.6));
  animation: logo-breathe 2.6s infinite ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}

@keyframes logo-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-3px) scale(1.04);
  }
}

@keyframes logo-glow-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.loader-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.loader-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.loader-brand-title {
  font-family: var(--font-heading, 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fefffe;
  text-transform: uppercase;
  line-height: 1;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.loader-badge-erp {
  font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  background: rgba(44, 42, 66, 0.7);
  color: #02fecd;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(101, 99, 174, 0.55);
  letter-spacing: 0.04em;
  line-height: 1.2;
  box-shadow: 0 0 10px rgba(2, 254, 205, 0.18);
}

.loader-brand-endorse {
  font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #02fecd;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 6px;
  text-shadow: 0 0 8px rgba(2, 254, 205, 0.3);
}

.loader-track {
  width: 100%;
  height: 5px;
  background: rgba(33, 31, 51, 0.85);
  border: 1px solid rgba(61, 59, 88, 0.7);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6563ae 0%, #a855f7 35%, #02fecd 100%);
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(2, 254, 205, 0.75);
  transition: width 0.14s ease-out;
}

.loader-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #a9a8cf;
  letter-spacing: 0.04em;
}

.loader-status-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.loader-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #02fecd;
  box-shadow: 0 0 8px #02fecd;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #02fecd;
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
    box-shadow: 0 0 3px rgba(2, 254, 205, 0.4);
  }
}

.loader-status-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a9a8cf;
  font-weight: 500;
}

.loader-percent {
  font-weight: 700;
  color: #02fecd;
  margin-left: 12px;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(2, 254, 205, 0.5);
}

/* ============================================================================
   15. ANIMACIÓN CENTRAL: ULTRA HD CANVAS SCRUBBING + FLECHAS CAD INTERACTIVAS
   - Barra de progreso superior minimalista de 2.5px (#top-progress-bar)
   - Lienzo Retina High-DPI (#histrix-canvas) con zona segura bajo el navbar
   - Overlay SVG de flechas técnicas CAD (#cad-arrows-overlay) que nacen en la
     anatomía del hipocampo CAD y señalan la información de Histrix en vivo
   ============================================================================ */

#top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, #6563ae, #0bbf9d);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
}

#stage-viewport {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s ease, opacity 0.35s ease;
}

html.dark #stage-viewport {
  background-color: #1b1a28;
}

.mobile-stage-hud {
  display: none !important;
}

#histrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  background-color: #ffffff;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* En Modo Noche: invertir fondo blanco a negro y fusionar con screen sobre #1b1a28 */
html.dark #histrix-canvas {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(1.06);
  mix-blend-mode: screen;
}

/* --- OVERLAY INTERACTIVO DE FLECHAS VECTORIALES CAD (#cad-arrows-overlay) --- */
.cad-arrows-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.28s ease;
}

@media (max-width: 1023px) {
  .cad-arrows-overlay {
    display: none !important;
  }
}

/* En Desktop (>= 1024px) ocultar las flechas cortas estáticas de los capítulos CAD
   para que las flechas técnicas reales que se despliegan desde el hipocampo CAD
   sean los únicos conectores direccionales hacia la información de Histrix */
@media (min-width: 1024px) {
  #blueprint .callout-vector-arrow,
  #modules .spine-arrow-dir,
  #modules .pointer-arrow-svg,
  #flow .callout-vector-arrow,
  #trust .pointer-arrow-svg,
  #trust .timeline-arrow-left,
  #demo .pointer-arrow-svg,
  #demo .species-arrow-left {
    display: none !important;
  }
}

.cad-callout-group {
  transition: opacity 0.16s ease;
}

.cad-leader-guide {
  stroke: rgba(81, 79, 150, 0.18);
  stroke-width: 1px;
  stroke-dasharray: 3 4;
}

html.dark .cad-leader-guide {
  stroke: rgba(169, 168, 207, 0.22);
}

.cad-leader-path {
  stroke: #514f96;
  stroke-width: 1.65px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.22s ease, stroke-width 0.22s ease;
}

.cad-callout-group.tone-mint .cad-leader-path {
  stroke: #0bbf9d;
}

html.dark .cad-leader-path {
  stroke: #a9a8cf;
}

html.dark .cad-callout-group.tone-mint .cad-leader-path {
  stroke: #02fecd;
}

.cad-origin-ring {
  stroke: #514f96;
  stroke-width: 1.3px;
  stroke-dasharray: 3 2.5;
}

.cad-callout-group.tone-mint .cad-origin-ring {
  stroke: #0bbf9d;
}

html.dark .cad-origin-ring {
  stroke: #a9a8cf;
}

html.dark .cad-callout-group.tone-mint .cad-origin-ring {
  stroke: #02fecd;
}

.cad-origin-dot,
.cad-elbow-dot,
.cad-target-dot {
  fill: #514f96;
  transition: fill 0.22s ease, opacity 0.2s ease;
}

.cad-callout-group.tone-mint .cad-origin-dot,
.cad-callout-group.tone-mint .cad-elbow-dot,
.cad-callout-group.tone-mint .cad-target-dot {
  fill: #0bbf9d;
}

html.dark .cad-origin-dot,
html.dark .cad-elbow-dot,
html.dark .cad-target-dot {
  fill: #a9a8cf;
}

html.dark .cad-callout-group.tone-mint .cad-origin-dot,
html.dark .cad-callout-group.tone-mint .cad-elbow-dot,
html.dark .cad-callout-group.tone-mint .cad-target-dot {
  fill: #02fecd;
}

.cad-arrow-head {
  stroke: #514f96;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cad-callout-group.tone-mint .cad-arrow-head {
  stroke: #0bbf9d;
}

html.dark .cad-arrow-head {
  stroke: #a9a8cf;
}

html.dark .cad-callout-group.tone-mint .cad-arrow-head {
  stroke: #02fecd;
}

/* Etiqueta técnica CAD sobre la flecha */
.cad-badge-bg {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(81, 79, 150, 0.32);
  stroke-width: 1px;
}

.cad-callout-group.tone-mint .cad-badge-bg {
  stroke: rgba(11, 191, 157, 0.48);
}

html.dark .cad-badge-bg {
  fill: rgba(27, 26, 40, 0.92);
  stroke: rgba(169, 168, 207, 0.35);
}

html.dark .cad-callout-group.tone-mint .cad-badge-bg {
  stroke: rgba(2, 254, 205, 0.45);
}

.cad-badge-text {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: #3e3c73;
}

.cad-callout-group.tone-mint .cad-badge-text {
  fill: #0a7562;
}

html.dark .cad-badge-text {
  fill: #dddce8;
}

html.dark .cad-callout-group.tone-mint .cad-badge-text {
  fill: #02fecd;
}

/* Hover interactivo en Capítulo 03 (Espinas 01 a 06) */
.cad-callout-group.is-spine-hovered .cad-leader-path {
  stroke: #0bbf9d !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 6px rgba(11, 191, 157, 0.45));
}

html.dark .cad-callout-group.is-spine-hovered .cad-leader-path {
  stroke: #02fecd !important;
  filter: drop-shadow(0 0 8px rgba(2, 254, 205, 0.55));
}

/* Respuesta visual de los bloques informativos de Histrix cuando una flecha CAD los señala */
.open-callout-row,
.open-timeline-item,
.open-species-row,
.anatomical-pointer,
.iso-certificate-card {
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.open-callout-row.is-cad-pointed,
.open-timeline-item.is-cad-pointed,
.open-species-row.is-cad-pointed {
  border-bottom-color: rgba(11, 191, 157, 0.65) !important;
}

html.dark .open-callout-row.is-cad-pointed,
html.dark .open-timeline-item.is-cad-pointed,
html.dark .open-species-row.is-cad-pointed {
  border-bottom-color: rgba(2, 254, 205, 0.65) !important;
}

/* Asegurar que al 100% del scrub de #story-main el Capítulo 06 (#demo) quede centrado bajo el navbar */
#story-main {
  padding-bottom: 0 !important;
}

#story-main #demo.story-chapter {
  min-height: 100vh !important;
  padding-top: 116px !important;
  padding-bottom: 72px !important;
}

/* Transición suave al cambiar automáticamente a Modo Noche (#product-suite / #hero-suite) */
body,
#hero-suite,
#hero-suite > section,
#product-suite,
#product-suite > section {
  transition: background-color 0.48s cubic-bezier(0.16, 1, 0.3, 1), color 0.38s ease, border-color 0.38s ease;
}

/* ============================================================================
   14. ADAPTACIÓN RESPONSIVA 100% PARA MÓVIL / CELULAR (PANTALLAS < 1024px)
   - Escenario superior fijo para la animación central del hipocampo (Top Stage)
   - Deck de lectura inferior que fluye por debajo del escenario sin tapar jamás el caballito
   - Prevención total de desbordes horizontales y empaste de texto
   - Optimización táctil de botones (min 44px) y navegación Apple
   ============================================================================ */

/* 14.1 Escenario Pinned Superior en Móvil / Celular (con desvanecimiento suave inferior que previene cortes duros) */
@media (max-width: 1023px) {
  #stage-viewport {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 42vh !important;
    min-height: 250px !important;
    max-height: 360px !important;
    z-index: 25 !important;
    background: #ffffff !important;
    border-bottom: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    pointer-events: none !important;
    -webkit-mask-image: linear-gradient(to bottom, #000000 80%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000000 80%, transparent 100%) !important;
    transition: background-color 0.35s ease, opacity 0.35s ease, transform 0.35s ease !important;
  }

  html.dark #stage-viewport {
    background: #1b1a28 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    -webkit-mask-image: linear-gradient(to bottom, #000000 80%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000000 80%, transparent 100%) !important;
  }

  #histrix-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    pointer-events: none !important;
  }

  /* 14.2 HUD de telemetría desactivado para no superponer texto sobre el caballito */
  .mobile-stage-hud,
  html.dark .mobile-stage-hud {
    display: none !important;
  }

  .mobile-stage-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #0bbf9d !important;
    box-shadow: 0 0 8px #0bbf9d !important;
    animation: stagePulse 2s infinite ease-in-out !important;
    flex-shrink: 0 !important;
  }

  .mobile-stage-label {
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
  }

  .mobile-stage-fps {
    font-size: 9px !important;
    color: #5f5d73 !important;
    padding: 1px 5px !important;
    background: rgba(101, 99, 174, 0.08) !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
  }

  html.dark .mobile-stage-fps {
    color: #8c89a0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* 14.3 Deck de Lectura en Móvil (Flujo continuo y compacto sin espacios muertos entre capítulos) */
  #story-main .story-chapter,
  #story-main section[id].story-chapter {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    position: relative !important;
    scroll-margin-top: calc(42vh + 16px) !important;
  }

  /* Capítulo 01: Único con compensación inicial para arrancar bajo el top stage fijo al inicio */
  #story-main #intro.story-chapter {
    padding-top: calc(42vh + 16px) !important;
    padding-bottom: 28px !important;
    min-height: auto !important;
    scroll-margin-top: 80px !important;
  }

  /* Capítulos 02 a 06: Lectura continua sin huecos blancos */
  #story-main .story-chapter:not(#intro),
  #story-main section[id].story-chapter:not(#intro) {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
    min-height: auto !important;
  }

  /* Capítulo 06 (#demo) en móvil: cierre natural hacia la suite de producto */
  #story-main #demo.story-chapter {
    padding-top: 36px !important;
    padding-bottom: 48px !important;
    min-height: auto !important;
  }

  #story-main .bilateral-story-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding: 0 16px !important;
    max-width: 580px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .story-col-left,
  .story-col-right {
    width: 100% !important;
    max-width: 100% !important;
    z-index: 2 !important;
  }

  /* Tipografía y Espaciado Móvil */
  .chapter-title.anime-display-title {
    font-size: clamp(22px, 6.8vw, 30px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 12px !important;
  }

  .chapter-desc {
    font-size: 14px !important;
    line-height: 1.62 !important;
    margin-bottom: 12px !important;
    color: var(--text-muted, #3e3c50) !important;
  }

  html.dark .chapter-desc {
    color: #c0bdd0 !important;
  }

  /* Apuntadores y flechas ilustrativas: compactas en móvil */
  .anatomical-pointer {
    margin: 16px 0 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: rgba(244, 244, 248, 0.85) !important;
    overflow: visible !important;
  }

  html.dark .anatomical-pointer {
    background: rgba(255, 255, 255, 0.05) !important;
  }

  .pointer-kicker {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  .pointer-text {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
  }

  .pointer-arrow-svg {
    display: none !important;
  }

  /* Espinas interactivas de Capítulo 03 en móvil */
  .spines-interactive-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .spine-row-btn {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .spine-row-btn .spine-title {
    font-size: 13.5px !important;
  }

  .spine-row-btn .spine-sub {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  .spine-arrow-dir {
    display: none !important;
  }

  /* Botones y Pills en móvil */
  .anime-ui-group {
    margin-top: 14px !important;
  }

  .anime-npm-pill {
    font-size: 11px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* 14.4 Ajuste del Navbar en pantallas estrechas (Cero desborde) */
  .apple-cta-btn {
    padding: 5px 9px !important;
    font-size: 11px !important;
    gap: 4px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .apple-cta-btn span {
    font-size: 11px !important;
  }

  .apple-search-container {
    width: 34px !important;
    height: 34px !important;
  }

  .apple-search-box {
    height: 34px !important;
  }

  .apple-search-box:not(.is-expanded) {
    width: 34px !important;
  }

  .apple-search-btn {
    width: 100% !important;
    height: 100% !important;
  }

  .apple-nav-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100vw !important;
  }

  #mobile-menu-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .apple-brand-lockup {
    transform: scale(0.92);
    transform-origin: left center;
  }
}

@media (max-width: 380px) {
  /* Search button remains visible with responsive 34px container */
  .apple-cta-btn {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
  }
}

@keyframes stagePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* ==========================================================================
   OPTIMIZACIÓN DE BÚSQUEDA FLOTANTE EN FORMATO MÓVIL Y TABLET
   Evita cualquier solapamiento sobre el isotipo y el texto del brand logo.
   En pantallas <= 768px, al expandir la búsqueda se ocultan temporalmente
   el logo, el CTA y la hamburguesa, brindando una experiencia "Full-Width"
   idéntica al estándar iOS / Apple Navbar con cierre rápido (✕ o Escape).
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Ocultar logo de marca, CTA y menú hamburguesa cuando la búsqueda está abierta */
  .apple-nav-container.is-search-open .apple-nav-brand,
  .apple-nav-container.is-search-open > a:first-child,
  .apple-nav-container.is-search-open .apple-cta-btn,
  .apple-nav-container.is-search-open #mobile-menu-btn,
  .apple-nav-container.is-search-open .nav-divider {
    display: none !important;
  }

  /* 2. El contenedor de controles pasa a ocupar el 100% del ancho del navbar */
  .apple-nav-container.is-search-open .apple-nav-controls,
  .apple-nav-container.is-search-open .flex.items-center.gap-2 {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    justify-content: center !important;
  }

  /* 3. El contenedor de búsqueda toma todo el ancho disponible */
  .apple-nav-container.is-search-open .apple-search-container {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    position: relative !important;
  }

  /* 4. La caja de búsqueda se expande fluidamente sin salirse ni superponerse */
  .apple-nav-container.is-search-open .apple-search-box.is-expanded {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    z-index: 50 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(81, 79, 150, 0.22) !important;
    box-shadow: 0 4px 18px rgba(81, 79, 150, 0.15) !important;
    animation: appleSearchExpandMobile 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  html.dark .apple-nav-container.is-search-open .apple-search-box.is-expanded {
    background: rgba(26, 25, 35, 0.96) !important;
    border-color: rgba(139, 124, 246, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  }

  /* 5. Icono de lupa */
  .apple-nav-container.is-search-open .apple-search-box.is-expanded .apple-search-btn {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 6. Input de texto con padding y tipografía ergonómica */
  .apple-nav-container.is-search-open .apple-search-box.is-expanded .apple-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    font-size: 13px !important;
    padding: 0 8px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #1a1923 !important;
  }

  html.dark .apple-nav-container.is-search-open .apple-search-box.is-expanded .apple-search-input {
    color: #f1f0f7 !important;
  }

  /* 7. Botón de cierre '✕' */
  .apple-nav-container.is-search-open .apple-search-box.is-expanded #nav-search-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
    margin-right: 2px !important;
    cursor: pointer !important;
    color: #5f5d73 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .apple-nav-container.is-search-open .apple-search-box.is-expanded #nav-search-close:hover,
  .apple-nav-container.is-search-open .apple-search-box.is-expanded #nav-search-close:active {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #1a1923 !important;
  }

  html.dark .apple-nav-container.is-search-open .apple-search-box.is-expanded #nav-search-close {
    color: #a29db8 !important;
  }

  html.dark .apple-nav-container.is-search-open .apple-search-box.is-expanded #nav-search-close:hover,
  html.dark .apple-nav-container.is-search-open .apple-search-box.is-expanded #nav-search-close:active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
  }

  /* 8. Desplegable de resultados rápidos responsivo */
  .apple-nav-container.is-search-open .apple-search-results {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    max-height: 55vh !important;
    overflow-y: auto !important;
    z-index: 100 !important;
  }
}

@keyframes appleSearchExpandMobile {
  from {
    opacity: 0.6;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   16. MEJORAS UX/UI SENIOR SOBRE LÍNEA EDITORIAL DA853D9:
       - Contraste Modo Noche en Tabla Comparativa (.comp-histrix-head / .comp-histrix-cell)
       - Wireframes Arquitectónicos en Bento de Módulos (.mod-wireframe-slot)
       - Escenario Monumental Plane.com en Footer (.plane-sticky-watermark-stage)
       - Anillo SVG de Progreso de Lectura en #back-to-top-btn
   ========================================================================== */

/* 16.1 Wireframe Placeholder Slots inside #modulos Bento Cards */
.mod-wireframe-slot {
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

#product-suite .card-material:hover .mod-wireframe-slot {
  border-color: #514f96;
}

html.dark #product-suite .mod-wireframe-slot {
  background-color: #1b1a28 !important;
  border-color: #3d3b58 !important;
}

html.dark #product-suite .card-material:hover .mod-wireframe-slot {
  border-color: rgba(2, 254, 205, 0.45) !important;
}

html.dark #product-suite .mod-wireframe-bar {
  background-color: #252338 !important;
  border-bottom-color: #3d3b58 !important;
}

/* 16.2 Contraste Modo Noche en Tabla Comparativa (#comparativa) */
html.dark #product-suite #comparativa .comp-histrix-head {
  background-color: rgba(81, 79, 150, 0.32) !important;
  color: #02fecd !important;
}

html.dark #product-suite #comparativa .comp-histrix-cell {
  background-color: rgba(81, 79, 150, 0.16) !important;
  color: #02fecd !important;
}

html.dark #product-suite #comparativa tr:hover .comp-histrix-cell {
  background-color: rgba(81, 79, 150, 0.26) !important;
}

html.dark #product-suite #comparativa tr:hover {
  background-color: #252338 !important;
}

/* 16.3 Escenario Sticky de Marca de Agua Monumental HISTRIX. + Sello Verde ISO 9001 */
#main-footer.plane-footer-root {
  background-color: #e4e3ee !important;
  border-top: none !important;
}

html.dark #main-footer.plane-footer-root {
  background-color: #0c0b13 !important;
  border-top: none !important;
}

/* 16.4 Anillo SVG de Progreso de Scroll en #back-to-top-btn */
#back-to-top-btn {
  overflow: visible;
}

.btt-progress-svg {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.btt-progress-circle {
  fill: none;
  stroke: #0bbf9d;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
}

html.dark .btt-progress-circle {
  stroke: #02fecd;
}

/* ==============================================================================
   17. PERFECCIONAMIENTO DE CONTRASTE DÍA / NOCHE Y RESPONSIVIDAD (PC, TABLET, MÓVIL)
   ============================================================================== */

/* 17.1 Contraste en #story-main para utilidades Tailwind en Modo Noche */
html.dark #story-main .bg-\[\#f0eff8\],
html.dark #story-main .bg-\[\#f4f4f8\],
html.dark #story-main .bg-\[\#f8f8fb\] {
  background-color: #2c2a42 !important;
  border-color: #3d3b58 !important;
  color: #fefffe !important;
}

html.dark #story-main .border-\[\#dddce8\],
html.dark #story-main .border-\[\#e4e4ea\] {
  border-color: #3d3b58 !important;
}

html.dark #story-main .text-\[\#1a1923\] {
  color: #fefffe !important;
}

html.dark #story-main .text-\[\#3e3c50\] {
  color: #dddce8 !important;
}

html.dark #story-main .text-\[\#5f5d73\],
html.dark #story-main .text-\[\#717088\] {
  color: #a9a8cf !important;
}

html.dark #story-main .text-\[\#514f96\] {
  color: #02fecd !important;
}

html.dark #story-main .iso-seal-wrap span {
  color: #fefffe !important;
}

/* 17.2 Contraste en #product-suite para chips anidados, hovers y tablas */
html.dark #product-suite #modulos span.bg-white,
html.dark #product-suite #licencias .bg-white {
  background-color: #2c2a42 !important;
  border-color: #3d3b58 !important;
  color: #fefffe !important;
}

html.dark #product-suite tr.hover\:bg-\[\#f9f9fc\]:hover,
html.dark #product-suite .hover\:bg-white:hover {
  background-color: #2c2a42 !important;
}

/* 17.3 Contraste del Switch Lateral Día/Noche en Modo Día vs Modo Noche */
html.light .theme-edge-switch-wrapper {
  background: #ffffff;
  border-color: #c8c6d8;
  box-shadow: -6px 10px 26px rgba(26, 25, 35, 0.14);
}

html.light .theme-edge-switch-dock:hover .theme-edge-switch-wrapper {
  border-color: #514f96;
  box-shadow: -8px 12px 30px rgba(81, 79, 150, 0.22);
}

html.light .minimal-switch-track {
  background: #f0eff8;
  border-color: #d0cfd8;
}

html.light .edge-switch-handle .handle-bar {
  background: #514f96;
  box-shadow: 0 0 8px rgba(81, 79, 150, 0.45);
}

/* 17.4 Selector Día/Noche dentro del Drawer Móvil (#mobile-menu) */
html.dark #mobile-menu .mobile-theme-row {
  background-color: #211f33 !important;
  border-color: #3d3b58 !important;
}

html.dark #mobile-menu .mobile-theme-row > span {
  color: #a9a8cf !important;
}

#mobile-menu .theme-edge-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #e8e7f2;
  border: 1px solid #d0cfd8;
}

html.dark #mobile-menu .theme-edge-pill-group {
  background: #181725;
  border-color: #35334e;
}

#mobile-menu .theme-edge-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #5f5d73;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

html.dark #mobile-menu .theme-edge-opt {
  color: #a9a8cf;
}

#mobile-menu .theme-edge-opt.is-active {
  background: #ffffff;
  color: #1a1923;
  box-shadow: 0 2px 6px rgba(26, 25, 35, 0.1);
}

html.dark #mobile-menu .theme-edge-opt.is-active {
  background: #2c2a42;
  color: #02fecd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 17.5 Sello Bureau Veritas ISO 9001: contenedor squircle blanco puro con centrado óptico */
.iso-bv-badge-box,
.iso-seal-wrap,
html.dark .iso-seal-wrap,
html.dark .iso-bv-badge-box,
html.dark #product-suite .iso-bv-badge-box,
html.dark #story-main .iso-bv-badge-box {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid #d0cfd8 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  padding: 6px !important;
}

.iso-bv-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none !important;
  display: block;
}

/* 17.6 Tarjeta ISO 9001 Calidad Certificada: Contraste Garantizado Light & Dark */
.iso-quality-card {
  background-color: #f8f8fb !important;
  border-color: #e4e4ea !important;
}
.iso-quality-card h3 {
  color: #1a1923 !important;
}
.iso-quality-card p {
  color: #3e3c50 !important;
}
.iso-quality-card .font-mono {
  color: #514f96 !important;
}

html.dark .iso-quality-card {
  background-color: #211f33 !important;
  border-color: #3d3b58 !important;
}
html.dark .iso-quality-card h3 {
  color: #ffffff !important;
}
html.dark .iso-quality-card p {
  color: #dddce8 !important;
}
html.dark .iso-quality-card .font-mono {
  color: #02fecd !important;
}









