/* ==========================================================================
   HISTRIX ERP | MUNDO IT — SISTEMA DE DISEÑO: FAMILIA HIPOCAMPO (LIGHT THEME)
   Referencia Oficial: www.mundoit.com.ar · Luis Melgratti (Octubre 2026)
   Auditoría y Estandarización Frontend: ZINIT Estudio
   ========================================================================== */

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

:root {
  /* Lienzo y Superficies en Blanco Claro (Referencia mundoit.com.ar) */
  --canvas-pure: #ffffff;
  --canvas: #f4f4f8;                   /* Lienzo / fondo general claro */
  --deep: #ffffff;                     /* Fondo principal claro */
  --dark: #f4f4f8;                     /* Superficie nivel 1 */
  --brand: var(--brand-violet);        /* #6563ae: Símbolo oficial */
  --bg-card: #ffffff;                  /* Tarjetas sobre fondo blanco */
  --bg-card-hover: #f0eff8;            /* Elevación tonal violet-50 */
  --surface: #ffffff;
  --surface-hover: #f4f4f8;

  /* Violeta Oficial de Interfaz y Botones */
  --accent: var(--violet-600);         /* #514f96: ACCIÓN PRINCIPAL / BOTONES */
  --accent-hover: var(--violet-700);   /* #3e3c73: Hover interactivo */
  --accent-light: var(--violet-100);   /* #dddce8: Fondos suaves destacados */
  --accent-lavender: var(--violet-50); /* #f0eff8: Bloques suaves */
  --glass: rgba(255, 255, 255, 0.88);  /* Glass claro */
  --glass-border: rgba(228, 228, 234, 0.9);
  --glow-purple: rgba(101, 99, 174, 0.08);

  /* Acento Menta Controlado sobre Fondo Claro (mint-500 / mint-700) */
  --cyan: var(--mint-500);             /* #0bbf9d sobre claro */
  --cyan-dark: var(--mint-700);        /* #0a7562 para texto accesible */
  --cyan-glow: rgba(11, 191, 157, 0.15);
  --green: var(--mint-500);            /* #0bbf9d */
  --green-glow: rgba(11, 191, 157, 0.15);
  --amber: var(--warn-700);
  --red: var(--danger-700);
  --blue: var(--violet-600);

  /* Jerarquía de Texto con Contraste WCAG AAA sobre Blanco */
  --text-pure: var(--ink);             /* #1a1923: Titulares y texto fuerte */
  --text-main: var(--ink);             /* #1a1923: Texto de lectura principal */
  --text-muted: var(--ink-soft);       /* #3e3c50: Texto secundario nítido */
  --text-subtle: var(--ink-muted);     /* #5f5d73: Texto atenuado y etiquetas */

  /* Bordes en Modo Claro */
  --border-subtle: var(--border);      /* #e4e4ea: Líneas y bordes */
  --border-medium: #dddce8;            /* Bordes destacados */
  --border-strong: #a9a8cf;
  --border-cyan: rgba(11, 191, 157, 0.4);
  
  --shadow-brutal: none;
  --shadow-brutal-sm: none;
  --shadow-brutal-purple: none;
  --shadow-brutal-cyan: none;

  /* Sombras Suaves para Tema Claro */
  --shadow-card: 0 4px 16px -2px rgba(26, 25, 35, 0.04), 0 1px 3px rgba(26, 25, 35, 0.02);
  --shadow-card-hover: 0 10px 25px -4px rgba(26, 25, 35, 0.08);

  /* Tipografías Oficiales de la Marca */
  --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  /* Transiciones */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
  padding: 0;
  transition: background-color 0.35s ease, color 0.35s ease;
}

html.dark,
html.dark body {
  background-color: #1b1a28;
  color: #fefffe;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.font-mono-data {
  font-family: var(--font-mono);
}

/* Fluid Typography */
.hero-headline {
  font-size: clamp(1.75rem, 2.7vw + 0.5rem, 2.85rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-headline {
  font-size: clamp(1.7rem, 2.9vw + 0.5rem, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
}

/* Acento Oficial Menta (Regla: un solo acento menta por pieza) */
.hero-highlight {
  color: var(--cyan);
  display: inline-block;
  font-weight: 700;
}

/* Keyboard Tag */
kbd, .kbd-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   Iluminación Ambiental & Grilla Técnica (Mundo IT Light Theme)
   ========================================================================== */
.grid-background {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(101, 99, 174, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 99, 174, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 99, 174, 0.07) 0%, rgba(11, 191, 157, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0.8;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  will-change: transform;
  transform: translateZ(0);
}
.ambient-glow-1 {
  width: 550px;
  height: 550px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(101, 99, 174, 0.06) 0%, transparent 70%);
}
.ambient-glow-2 {
  width: 500px;
  height: 500px;
  bottom: 5%;
  right: -80px;
  background: radial-gradient(circle, rgba(11, 191, 157, 0.04) 0%, transparent 70%);
}

/* ==========================================================================
   Telemetry Bar (System Status & ISO 9001 Badge - Footer Ribbon)
   ========================================================================== */
.top-status-bar, .footer-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  position: relative;
  z-index: 30;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.badge-subtle {
  color: var(--violet-700);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.badge-cyan {
  color: var(--cyan-dark);
  background: var(--mint-50);
  border: 1px solid rgba(11, 191, 157, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.badge-iso {
  color: var(--cyan-dark);
  background: var(--mint-50);
  border: 1px solid rgba(11, 191, 157, 0.35);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ==========================================================================
   Apple-Style Floating Glass Navigation (Clean, Minimal & Premium Glass)
   ========================================================================== */
.apple-nav-wrapper {
  position: fixed;
  top: clamp(14px, 2.2vh, 20px);
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 clamp(8px, 2vw, 24px);
}

.apple-nav-container {
  pointer-events: auto;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.42) 100%);
  backdrop-filter: blur(24px) saturate(190%) contrast(102%);
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(102%);
  border: none;
  border-radius: 9999px;
  box-shadow: 
    0 10px 30px -4px rgba(26, 25, 35, 0.07),
    0 2px 8px -2px rgba(26, 25, 35, 0.03);
  height: 52px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .apple-nav-container {
    height: 58px;
  }
}

.apple-nav-container.is-scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(26px) saturate(190%) contrast(104%);
  -webkit-backdrop-filter: blur(26px) saturate(190%) contrast(104%);
  border: none;
  box-shadow: 
    0 14px 35px -6px rgba(26, 25, 35, 0.09),
    0 4px 10px -2px rgba(26, 25, 35, 0.04);
}

.brand-product-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--violet-50);
  color: var(--violet-600);
  border: 1px solid var(--violet-100);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

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

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

/* Nav Link Pill Styling (Apple minimal hover) */
.apple-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
}

.apple-nav-link:hover,
.apple-nav-item.is-open .apple-nav-link {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.60);
}

.apple-nav-link.active {
  color: var(--violet-600);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.apple-nav-link .chevron-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-nav-item.is-open .apple-nav-link .chevron-icon {
  transform: rotate(180deg);
  color: var(--violet-600);
}

/* Dropdown Menu (Glass Card Floating) */
.apple-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 
    0 24px 50px -10px rgba(26, 25, 35, 0.16),
    0 8px 20px -4px rgba(26, 25, 35, 0.06);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  z-index: 110;
}

.apple-nav-item.is-open .apple-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Hover bridge to prevent flickering when moving cursor into dropdown */
.apple-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

@media (hover: hover) and (min-width: 1024px) {
  .apple-nav-item:hover .apple-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .apple-nav-item:hover .apple-nav-link {
    color: var(--text-main);
    background: var(--violet-50);
  }
  .apple-nav-item:hover .apple-nav-link .chevron-icon {
    transform: rotate(180deg);
    color: var(--violet-600);
  }
}

/* Dropdown Item Card */
.apple-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.18s ease;
  background: transparent;
  border: 1px solid transparent;
}

.apple-dropdown-item:hover {
  background: var(--violet-50);
  border-color: var(--violet-100);
  transform: translateY(-1px);
}

.apple-dropdown-item:hover .item-icon {
  background: var(--violet-100);
  border-color: var(--violet-300);
  color: var(--violet-600);
}

/* Expandable Search Input (Apple Minimal) */
.apple-search-container {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.apple-search-box {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(81, 79, 150, 0.18);
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: none;
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  z-index: 25;
}

.apple-search-box:not(.is-expanded) .apple-search-input,
.apple-search-box:not(.is-expanded) .apple-search-badge,
.apple-search-box:not(.is-expanded) #nav-search-close {
  display: none !important;
}

.apple-search-box.is-expanded {
  width: clamp(210px, 45vw, 260px);
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 4px 16px rgba(81, 79, 150, 0.12);
}

@media (min-width: 1024px) {
  .apple-search-box.is-expanded {
    width: 290px;
  }
}

/* Nav links graceful fade when search is active */
.apple-nav-links {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-nav-container.is-search-open .apple-nav-links {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

.apple-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 9999px;
  box-sizing: border-box;
  flex-shrink: 0;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color 0.2s ease;
}

.apple-search-box.is-expanded .apple-search-btn {
  width: 36px;
  height: 36px;
}

.apple-search-btn:hover {
  color: var(--text-main);
}

.apple-search-input {
  min-width: 0;
  flex: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 0 6px 0 2px;
}

.apple-search-input::placeholder {
  color: var(--text-subtle);
  font-size: 12px;
}

.apple-search-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--violet-50);
  border: 1px solid var(--border-subtle);
  color: var(--text-subtle);
  margin-right: 8px;
  white-space: nowrap;
  pointer-events: none;
}

/* Quick Search Live Results Dropdown */
.apple-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(26, 25, 35, 0.15);
  padding: 8px;
  z-index: 120;
}

/* Apple CTA Pill Button */
.apple-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: var(--violet-600);
  border: 1px solid var(--violet-700);
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.25);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.apple-cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(81, 79, 150, 0.2);
}

@media (max-width: 640px) {
  .apple-cta-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 38px;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .brand-text-endorse {
    display: none !important;
  }
}

#mobile-menu-btn {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

#mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Apple Mobile Drawer */
.apple-mobile-drawer {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: 
    0 24px 50px -10px rgba(26, 25, 35, 0.16),
    0 8px 20px -4px rgba(26, 25, 35, 0.06);
  padding: 16px;
  z-index: 105;
}

/* Nav Link and Button backward-compatibility */
.nav-link-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
}

.nav-link-item:hover {
  color: var(--text-main);
  background: var(--violet-50);
}

.nav-link-item.active {
  color: var(--violet-600);
  background: var(--violet-100);
}

.nav-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-btn-secondary:hover {
  background: var(--violet-50);
  border-color: var(--violet-300);
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.nav-btn-secondary:active {
  transform: translate(0, 0);
}

.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--violet-600);
  color: var(--brand-white);
  border: 1px solid var(--violet-700);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.25);
  transition: all var(--transition-fast);
}

.nav-btn-primary:hover {
  background: var(--violet-700);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   Surfaces & Cards (Mundo IT Light Theme)
   ========================================================================== */
.card-material {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.card-material:hover {
  transform: translateY(-2px);
  border-color: var(--violet-300);
  box-shadow: var(--shadow-card-hover);
}

.card-material-cyan:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 25px -4px rgba(11, 191, 157, 0.15);
}

/* Specialized Module Pill (Clean Micro-Chip) */
.module-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: default;
}

.module-pill:hover {
  background: var(--violet-50);
  border-color: var(--violet-300);
  color: var(--violet-600);
  transform: translateY(-1px);
}

.module-pill:hover i {
  color: var(--violet-600);
}

.link-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.link-card:hover {
  transform: translateY(-2px);
  background: var(--violet-50);
  border-color: var(--violet-300);
  box-shadow: var(--shadow-card-hover);
}

.link-card:active {
  transform: translateY(0);
}

/* Icon Containers */
.card-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  transition: transform var(--transition-fast);
}

.card-material:hover .card-icon-wrapper,
.link-card:hover .card-icon-wrapper {
  transform: scale(1.08) rotate(-2deg);
}

.theme-cyan {
  background: var(--mint-50);
  color: var(--cyan-dark);
  border-color: rgba(11, 191, 157, 0.35);
}
.theme-purple {
  background: var(--violet-50);
  color: var(--violet-600);
  border-color: var(--violet-100);
}
.theme-green {
  background: var(--mint-50);
  color: var(--cyan-dark);
  border-color: rgba(11, 191, 157, 0.35);
}
.theme-amber {
  background: #fffbeb;
  color: var(--amber);
  border-color: #fde68a;
}
.theme-blue {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* ==========================================================================
   Botones de Acción Oficiales (Familia Hipocampo)
   ========================================================================== */
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--violet-600);
  color: #ffffff;
  border: 1px solid var(--violet-700);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.25);
  transition: all var(--transition-fast);
}

.btn-primary-hero:hover {
  background: var(--violet-700);
  transform: translateY(-1px);
}

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

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.btn-secondary-hero:hover {
  background: var(--violet-50);
  border-color: var(--violet-300);
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-secondary-hero:active {
  transform: translateY(0);
}

.btn-cyan-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--violet-600);
  color: #ffffff;
  border: 1px solid var(--violet-700);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.25);
  transition: all var(--transition-fast);
}

.btn-cyan-hero:hover {
  background: var(--violet-700);
  transform: translateY(-1px);
}

.btn-cyan-hero:active {
  transform: translateY(0);
}

/* ==========================================================================
   Console & Folder Tabs (Proporción Optimizada Viewport)
   ========================================================================== */
.console-wrapper {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(26, 25, 35, 0.08);
  overflow: hidden;
}

.console-titlebar {
  background: var(--canvas);
  padding: 8px 14px;
  border-bottom: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.console-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.console-tabs-row::-webkit-scrollbar {
  display: none;
}

.console-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  min-height: 32px;
}

.console-tab:hover {
  color: var(--text-main);
  background: var(--violet-50);
}

.console-tab.active {
  background: var(--violet-600);
  border-color: var(--violet-600);
  color: #ffffff;
  box-shadow: none;
}

/* ==========================================================================
   Range Slider
   ========================================================================== */
input[type=range] {
  -webkit-appearance: none;
  background: var(--border-subtle);
  border-radius: 9999px;
  height: 8px;
  border: 1px solid var(--border-subtle);
  outline: none;
  width: 100%;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--violet-600);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(81, 79, 150, 0.35);
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   Formularios & Checkboxes Táctiles (Light Theme)
   ========================================================================== */
.diag-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--canvas);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.diag-input:focus {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px rgba(81, 79, 150, 0.12);
  background: #ffffff;
}

.diag-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--canvas);
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-family: var(--font-body);
  user-select: none;
  box-sizing: border-box;
}

.diag-check-pill:hover {
  border-color: var(--violet-300);
  background: var(--violet-50);
  transform: translateY(-1px);
}

.diag-check-pill.is-checked {
  border-color: var(--violet-600);
  background: var(--violet-50);
}

.diag-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.diag-check-pill.is-checked .diag-check-box,
.diag-checkbox-input:checked + .diag-check-box {
  background: var(--violet-600);
  border-color: var(--violet-600);
  box-shadow: 0 2px 6px rgba(81, 79, 150, 0.3);
}

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

.diag-check-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
}

.diag-check-pill.is-checked .diag-check-label {
  font-weight: 600;
}

/* ==========================================================================
   Custom Scrollbars
   ========================================================================== */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--violet-300);
}

/* ==========================================================================
   Mundo IT Initial Preloader (Dark Theme matching Scroll-World Hero)
   ========================================================================== */
.initial-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1a28;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.initial-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 45%, rgba(101, 99, 174, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 60% 55%, rgba(2, 254, 205, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 360px;
  width: 90%;
}

.loader-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 96px;
  height: 96px;
}

.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 4px 16px rgba(2, 254, 205, 0.5));
  animation: logo-breathe 2.4s 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.03);
  }
}

.loader-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.loader-brand-title {
  font-family: var(--font-heading, 'Archivo', sans-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fefffe;
  text-transform: uppercase;
  font-synthesis: none;
}

.loader-brand-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: #211f33;
  color: #02fecd;
  border: 1px solid #3d3b58;
  padding: 2px 7px;
  border-radius: 6px;
}

.loader-track {
  width: 100%;
  height: 4px;
  background: #211f33;
  border: 1px solid #3d3b58;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: #02fecd;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(2, 254, 205, 0.6);
  transition: width 0.15s ease-out;
}

.loader-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  color: #a9a8cf;
  letter-spacing: 0.02em;
}

.loader-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #02fecd;
  box-shadow: 0 0 6px #02fecd;
  display: inline-block;
  margin-right: 6px;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.loader-percent {
  font-weight: 600;
  font-family: var(--font-mono);
  color: #02fecd;
  margin-left: auto;
}

/* ==========================================================================
   Responsive Mastery Protocols (PC, Laptop, Tablet, Mobile)
   ========================================================================== */

/* 1. Mobile iOS Safari Zoom Prevention (< 768px) */
@media (max-width: 767px) {
  input[type="text"],
  input[type="number"],
  input[type="url"],
  input[type="email"],
  select,
  textarea,
  .diag-input {
    font-size: 16px !important;
  }
  
  .card-material, .link-card {
    border-radius: 14px;
  }
}

/* 2. Touch Targets & Interaction Discipline */
.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}
.mobile-nav-link:hover, .mobile-nav-link:active {
  color: var(--violet-600);
}

/* 3. Smooth Touch Horizontal Scrolling */
.table-responsive-wrapper, .console-tabs-row {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* 4. Adaptive Table Typography */
@media (max-width: 640px) {
  .table-responsive-wrapper table {
    font-size: 11.5px;
  }
  .table-responsive-wrapper th, 
  .table-responsive-wrapper td {
    padding: 10px 12px;
  }
}

/* 5. Mobile Floating Action Safety */
@media (max-width: 480px) {
  .fixed.bottom-5.right-5 {
    bottom: 14px;
    right: 14px;
    padding: 10px 14px;
    font-size: 11px;
  }
  .fixed.bottom-20.right-5 {
    bottom: 68px;
    right: 14px;
    padding: 10px;
  }
}

/* ==========================================================================
   Partner Logos Showcase (Light Theme)
   ========================================================================== */
.partner-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
  padding: 6px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.partner-logo-wrapper:hover {
  background: var(--violet-50);
  border-color: var(--violet-300);
  box-shadow: var(--shadow-card-hover);
}

.partner-logo-img {
  max-height: 24px;
  max-width: 82%;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter, opacity;
}

.partner-logo-wrapper:hover .partner-logo-img {
  opacity: 1;
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* ==========================================================================
   Viewport Fit Rules
   ========================================================================== */
.section-headline {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

section[id], .console-wrapper[id] {
  scroll-margin-top: 80px;
}

#hero {
  padding-top: clamp(115px, 15vh, 180px) !important;
  padding-bottom: clamp(60px, 9vh, 120px) !important;
}

@media (max-height: 800px) and (min-width: 1024px) {
  section[id]:not(#hero) {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }
}

/* ==========================================================================
   HERO BANNER 2-COLUMN & LAPTOP SHOWCASE (SCREEN 1 STRUCTURAL ALIGNMENT)
   ========================================================================== */

.hero-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--violet-600);
  color: var(--brand-white);
  border: 1px solid var(--violet-700);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.hero-pill-cta:hover {
  background: var(--violet-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(81, 79, 150, 0.35);
}

.hero-pill-cta:active {
  transform: translateY(1px);
}

/* Laptop Mockup Component */
.laptop-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.laptop-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(101, 99, 174, 0.08) 0%, rgba(11, 191, 157, 0.04) 40%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

.laptop-screen-lid {
  background: #1e1e24;
  border-radius: 18px 18px 0 0;
  padding: 10px 10px 0 10px;
  border: 1.5px solid #d4d4dc;
  border-bottom: none;
  box-shadow: 0 20px 50px rgba(26, 25, 35, 0.15);
  position: relative;
  z-index: 5;
}

.laptop-camera-dot {
  width: 6px;
  height: 6px;
  background: #111;
  border: 1px solid #333;
  border-radius: 50%;
  margin: 0 auto 7px auto;
  position: relative;
}

.laptop-camera-dot::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  background: rgba(11, 191, 157, 0.7);
  border-radius: 50%;
}

.laptop-display-viewport {
  background: #f8fafc;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  height: 240px;
  position: relative;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .laptop-display-viewport {
    height: 275px;
  }
}

@media (min-width: 1024px) {
  .laptop-display-viewport {
    height: 295px;
  }
}

.laptop-base-chassis {
  position: relative;
  height: 14px;
  background: linear-gradient(180deg, #e4e4ea 0%, #d1d1d8 50%, #b8b8c2 100%);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 30px rgba(26, 25, 35, 0.15);
  margin: 0 -18px;
  z-index: 5;
  border-top: 1px solid #ffffff;
}

.laptop-base-notch {
  width: 76px;
  height: 4.5px;
  background: #252834;
  border-radius: 0 0 5px 5px;
  margin: 0 auto;
}

.laptop-base-shadow {
  position: absolute;
  top: 100%;
  left: 2%;
  right: 2%;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(26, 25, 35, 0.15) 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Floating Glassmorphic Telemetry Cards */
.hero-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -8px rgba(26, 25, 35, 0.08), 0 2px 6px rgba(26, 25, 35, 0.03);
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.hero-glass-card:hover {
  border-color: var(--violet-300);
  box-shadow: 0 20px 42px rgba(81, 79, 150, 0.12);
  transform: translateY(-3px) scale(1.02);
}

/* Float Animations */
@keyframes float-gentle-1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes float-gentle-2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(5px); }
}

.float-anim-1 {
  animation: float-gentle-1 5s ease-in-out infinite;
}

.float-anim-2 {
  animation: float-gentle-2 6s ease-in-out infinite 0.8s;
}

.float-anim-3 {
  animation: float-gentle-1 5.5s ease-in-out infinite 1.6s;
}

.float-anim-4 {
  animation: float-gentle-2 6.5s ease-in-out infinite 2.2s;
}

/* Position adjustments for floating cards on Desktop (PC) */
@media (min-width: 1024px) {
  .laptop-mockup-wrapper {
    max-width: 530px;
    margin: 0 auto;
  }

  .laptop-display-viewport {
    height: 295px;
  }

  /* Cards float gracefully in outer space, unobtrusively flanking the laptop */
  .hero-card-ventas {
    top: 12px;
    left: -70px;
  }

  .hero-card-arca {
    top: 8px;
    right: -60px;
  }

  .hero-card-stock {
    bottom: 16px;
    left: -65px;
  }

  .hero-card-ops {
    bottom: 12px;
    right: -55px;
  }
}

@media (min-width: 1280px) {
  .laptop-mockup-wrapper {
    max-width: 560px;
  }

  .laptop-display-viewport {
    height: 310px;
  }

  .hero-card-ventas {
    top: 16px;
    left: -85px;
  }

  .hero-card-arca {
    top: 10px;
    right: -75px;
  }

  .hero-card-stock {
    bottom: 20px;
    left: -80px;
  }

  .hero-card-ops {
    bottom: 14px;
    right: -70px;
  }
}

/* Tablet refinement (640px to 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  .laptop-mockup-wrapper {
    max-width: 480px;
    margin: 1.5rem auto;
  }
  .hero-card-ventas {
    top: -6px;
    left: -8px;
  }
  .hero-card-arca {
    top: -4px;
    right: -8px;
  }
  .hero-card-stock {
    bottom: -10px;
    left: -10px;
  }
  .hero-card-ops {
    bottom: -8px;
    right: -8px;
  }
}

@media (max-width: 639px) {
  .hero-card-ventas {
    top: -12px;
    left: -6px;
  }
  .hero-card-arca {
    top: -8px;
    right: -6px;
  }
  .hero-card-stock {
    bottom: -12px;
    left: -6px;
  }
  .hero-card-ops {
    bottom: -10px;
    right: -6px;
  }
}

/* ==========================================================================
   RELUME-STYLE DYNAMIC SHOWCASE FOR CONSOLE (SCREEN 1)
   ========================================================================== */

.console-relume-wrapper {
  position: relative;
  background: var(--canvas);
  border-radius: 16px;
  overflow: hidden;
  height: 290px;
}

@media (min-width: 640px) {
  .console-relume-wrapper {
    height: 350px;
  }
}

@media (min-width: 1024px) {
  .console-relume-wrapper {
    height: 390px;
  }
}

.console-relume-mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.console-relume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 10px;
  height: 100%;
}

@media (max-width: 640px) {
  .console-relume-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 6px;
  }
}

.console-col-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
}

.console-col-scroll-up-1 {
  animation: console-scroll-up 28s linear infinite;
}

.console-col-scroll-down {
  animation: console-scroll-down 32s linear infinite;
}

.console-col-scroll-up-2 {
  animation: console-scroll-up 24s linear infinite;
}

.console-relume-wrapper:hover .console-col-scroll {
  animation-play-state: paused;
}

@keyframes console-scroll-up {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

@keyframes console-scroll-down {
  0% { transform: translate3d(0, -50%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.console-screenshot-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 25, 35, 0.08);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.console-screenshot-card img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (min-width: 640px) {
  .console-screenshot-card img {
    height: 155px;
  }
}

@media (min-width: 1024px) {
  .console-screenshot-card img {
    height: 175px;
  }
}

.console-screenshot-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(26, 25, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Central Play Button (Relume Style) */
.relume-center-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.relume-play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-600);
  box-shadow: 0 8px 30px rgba(81, 79, 150, 0.25), 0 2px 8px rgba(26, 25, 35, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@media (min-width: 640px) {
  .relume-play-circle {
    width: 78px;
    height: 78px;
  }
}

.relume-play-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(81, 79, 150, 0.35);
  animation: play-ring-pulse 2.2s infinite ease-in-out;
}

@keyframes play-ring-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.relume-center-play-btn:hover .relume-play-circle {
  transform: scale(1.08);
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(81, 79, 150, 0.35);
}

.relume-center-play-btn:active .relume-play-circle {
  transform: scale(0.96);
}

.relume-play-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--violet-700);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(26, 25, 35, 0.08);
}

/* Collaborative Cursor (Relume Style) */
.relume-collaborative-cursor {
  position: absolute;
  bottom: 22%;
  right: 14%;
  z-index: 24;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  animation: cursor-glide 8s ease-in-out infinite;
}

@media (max-width: 640px) {
  .relume-collaborative-cursor {
    display: none;
  }
}

@keyframes cursor-glide {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-20px, -15px); }
  50% { transform: translate(15px, -30px); }
  75% { transform: translate(-10px, 10px); }
}

.relume-cursor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--violet-600);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px 12px 12px 12px;
  box-shadow: 0 4px 12px rgba(81, 79, 150, 0.3);
}

/* ==========================================================================
   RELUME-STYLE UNIFIED BRANDS CARD & HORIZONTAL MARQUEE (SCREEN 2)
   ========================================================================== */

.relume-brands-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 18px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -4px rgba(26, 25, 35, 0.05);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .relume-brands-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 14px;
    border-radius: 16px;
  }
}

.relume-brands-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-right: 20px;
  border-right: 1px solid var(--border-subtle);
  max-width: 250px;
  line-height: 1.35;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .relume-brands-label {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 8px;
    max-width: 100%;
  }
}

.relume-marquee-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.relume-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: brands-marquee-scroll 24s linear infinite;
  will-change: transform;
}

.relume-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes brands-marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.relume-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.relume-brand-img {
  max-height: 24px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.25s ease;
}

.relume-logo-item:hover .relume-brand-img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* ==========================================================================
   HISTRIX SCROLL-WORLD (FAMILIA HIPOCAMPO)
   Estándar de scroll 3D cinematográfico con tokens de Luis Melgratti
   Inicio en modo oscuro (Screenshot 2) con difuminado suave a blanco puro
   ========================================================================== */

#histrix-scroll-world {
  position: relative;
  width: 100%;
  background: #1b1a28;
  color: #fefffe;
  z-index: 20;
}

.hsw-track {
  position: relative;
  width: 100%;
  height: 500vh;
  background: #1b1a28;
}

.hsw-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #1b1a28;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Plexus & Ambient Glow */
.hsw-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hsw-plexus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hsw-sky__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 42%, rgba(101, 99, 174, 0.22) 0%, rgba(27, 26, 40, 0.95) 72%);
}

/* Sleek Top Progress Bar */
.hsw-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(61, 59, 88, 0.4);
  z-index: 40;
  pointer-events: none;
}

.hsw-progress-fill {
  height: 100%;
  width: 100%;
  background: #02fecd;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.05s linear;
}

/* Stage & Scenes */
.hsw-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hsw-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.35s ease;
}

.hsw-scene__img {
  width: 100%;
  height: 100%;
  max-width: 1300px;
  max-height: 820px;
  object-fit: contain;
  object-position: center 52%;
  will-change: transform;
  filter: drop-shadow(0 20px 40px rgba(12, 11, 19, 0.6));
}

/* Emblem Wrap on Scene 0 (Screenshot 2 right side) */
.hsw-emblem-wrap {
  position: absolute;
  right: clamp(60px, 10vw, 180px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hsw-emblem-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 16px);
  will-change: transform;
}

.hsw-emblem-svg {
  width: clamp(100px, 13vw, 180px);
  height: clamp(100px, 13vw, 180px);
  filter: drop-shadow(0 14px 35px rgba(2, 254, 205, 0.3));
}

.hsw-emblem-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hsw-emblem-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: #fefffe;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hsw-emblem-by {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  font-weight: 700;
  color: #02fecd;
  letter-spacing: 0.22em;
  margin-top: 5px;
}

/* Copy Layer (HUD & Content) */
.hsw-copylayer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.hsw-copylayer::before {
  content: "";
  position: absolute;
  inset: 0;
  width: min(58vw, 800px);
  background: linear-gradient(90deg, rgba(27, 26, 40, 0.94) 0%, rgba(27, 26, 40, 0.75) 45%, rgba(27, 26, 40, 0) 100%);
}

.hsw-copy {
  position: absolute;
  left: clamp(24px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 480px;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.3s ease;
}

/* Scene 0 Dark Opening Hero (Screenshot 2 left side) */
.hsw-hero-copy {
  max-width: min(560px, 46vw);
  padding: 0;
}

.hsw-hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: #fefffe;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(8px, 1.4vh, 14px) 0;
  text-shadow: 0 2px 20px rgba(27, 26, 40, 0.9);
}

.hsw-hero-body {
  font-size: clamp(0.82rem, 1.0vw, 0.96rem);
  line-height: 1.52;
  color: #dddce8;
  margin: 0 0 clamp(10px, 1.8vh, 18px) 0;
  max-width: 48ch;
}

.hsw-hero-body strong {
  color: #fefffe;
  font-weight: 700;
}

.hsw-hero-wa {
  font-size: clamp(0.74rem, 0.85vw, 0.82rem);
  line-height: 1.4;
  color: #a9a8cf;
  margin-top: clamp(6px, 1vh, 10px);
}

/* Stats 4-Column Bar on Scene 0 */
.hsw-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  margin-top: clamp(12px, 2vh, 22px);
  padding-top: clamp(10px, 1.6vh, 16px);
  border-top: 1px solid rgba(61, 59, 88, 0.55);
}

.hsw-stat-col {
  display: flex;
  flex-direction: column;
}

.hsw-stat-val {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 800;
  color: #fefffe;
  line-height: 1.1;
}

.hsw-stat-desc {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(0.6rem, 0.68vw, 0.68rem);
  color: #a9a8cf;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* Regular Scene HUD (Scenes 1-4) */
.hsw-copy__num {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: #02fecd;
  margin-bottom: 14px;
}

.hsw-copy__eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: #a9a8cf;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hsw-copy__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: #fefffe;
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 20px rgba(27, 26, 40, 0.9);
}

.hsw-copy__body {
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.6;
  color: #dddce8;
  margin: 0 0 22px 0;
  max-width: 44ch;
  text-shadow: 0 1px 12px rgba(27, 26, 40, 0.8);
}

.hsw-copy__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hsw-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  background: #211f33;
  border: 1px solid #3d3b58;
  color: #a9a8cf;
  letter-spacing: 0.05em;
}

.hsw-copy__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  pointer-events: auto;
}

/* Button Variants */
.hsw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  padding: clamp(9px, 1.4vh, 12px) clamp(18px, 1.8vw, 24px);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.hsw-btn--white {
  background: #fefffe;
  color: #1a1923;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
}

.hsw-btn--white:hover {
  background: #f0eff8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.hsw-btn--ghost-dark {
  background: transparent;
  color: #fefffe;
  border: 1.5px solid #3d3b58;
}

.hsw-btn--ghost-dark:hover {
  background: #211f33;
  border-color: #6563ae;
  transform: translateY(-2px);
}

.hsw-btn--primary {
  background: #514f96;
  color: #fefffe;
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.4);
}

.hsw-btn--primary:hover {
  background: #6563ae;
  transform: translateY(-2px);
}

.hsw-btn--secondary {
  background: #211f33;
  color: #fefffe;
  border: 1px solid #3d3b58;
}

.hsw-btn--secondary:hover {
  background: #2c2a42;
  border-color: #514f96;
  transform: translateY(-2px);
}

/* Route Navigation Dots (Right Side) */
.hsw-route {
  position: absolute;
  right: clamp(10px, 1.8vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 18px);
  padding: 10px 4px;
}

.hsw-route::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 1.5px;
  transform: translateX(-50%);
  background: #3d3b58;
  opacity: 0.45;
}

.hsw-route__dot {
  position: relative;
  background: transparent;
  border: 0;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hsw-route__dot i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d3b58;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hsw-route__dot:hover i,
.hsw-route__dot.is-active i {
  background: #02fecd;
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(2, 254, 205, 0.6);
}

.hsw-route__label {
  position: absolute;
  right: 24px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #fefffe;
  background: rgba(33, 31, 51, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #3d3b58;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.hsw-route__dot:hover .hsw-route__label,
.hsw-route__dot.is-active .hsw-route__label {
  opacity: 1;
  transform: translateX(0);
}

/* Scroll Hint */
.hsw-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #a9a8cf;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hsw-hint__wheel {
  width: 18px;
  height: 28px;
  border-radius: 10px;
  border: 1.5px solid #3d3b58;
  position: relative;
}

.hsw-hint__wheel i {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: #02fecd;
  transform: translateX(-50%);
  animation: hswWheel 1.6s ease-in-out infinite;
}

@keyframes hswWheel {
  0% { opacity: 0; top: 5px; }
  40% { opacity: 1; }
  100% { opacity: 0; top: 15px; }
}

/* ==========================================================================
   DIFUMINADO PERFECTO HACIA BLANCO PURO
   ========================================================================== */

.hsw-white-dissolve {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ==========================================================================
   NAVBAR ADAPTATIVA (MODO OSCURO EN INICIO -> MODO CLARO EN SECCIÓN BLANCA)
   ========================================================================== */

.apple-nav-container.is-dark {
  background: linear-gradient(135deg, rgba(33, 31, 51, 0.65) 0%, rgba(27, 26, 40, 0.45) 100%);
  backdrop-filter: blur(26px) saturate(180%) contrast(105%);
  -webkit-backdrop-filter: blur(26px) saturate(180%) contrast(105%);
  border: none;
  box-shadow: 
    0 16px 36px -6px rgba(0, 0, 0, 0.40),
    0 4px 12px -2px rgba(0, 0, 0, 0.20);
}

.apple-nav-container.is-dark.is-scrolled {
  background: linear-gradient(135deg, rgba(33, 31, 51, 0.78) 0%, rgba(27, 26, 40, 0.58) 100%);
  border: none;
  box-shadow: 
    0 20px 42px -8px rgba(0, 0, 0, 0.50),
    0 6px 16px -2px rgba(0, 0, 0, 0.25);
}

.apple-nav-container.is-dark .apple-nav-link {
  color: #dddce8;
}

.apple-nav-container.is-dark .apple-nav-link span {
  color: #dddce8 !important;
}

.apple-nav-container.is-dark .apple-nav-link:hover,
.apple-nav-container.is-dark .apple-nav-item.is-open .apple-nav-link {
  color: #fefffe !important;
  background: rgba(255, 255, 255, 0.12);
}

.apple-nav-container.is-dark .apple-nav-link:hover span {
  color: #fefffe !important;
}

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

.apple-nav-container.is-dark .brand-text-title,
.apple-nav-container.is-dark .font-heading {
  color: #fefffe !important;
}

.apple-nav-container.is-dark .brand-text-endorse {
  color: #a9a8cf !important;
}

.apple-nav-container.is-dark .brand-product-tag {
  background: rgba(33, 31, 51, 0.7) !important;
  color: #02fecd !important;
  border-color: rgba(61, 59, 88, 0.8) !important;
  backdrop-filter: blur(8px);
}

.apple-nav-container.is-dark .apple-search-box {
  background: rgba(33, 31, 51, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  box-shadow: none;
}

.apple-nav-container.is-dark .apple-search-box.is-expanded {
  background: rgba(33, 31, 51, 0.85);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.apple-nav-container.is-dark .apple-search-btn {
  color: #a9a8cf;
}

.apple-nav-container.is-dark .apple-search-btn:hover {
  color: #fefffe;
}

.apple-nav-container.is-dark .apple-search-input {
  color: #fefffe;
}

.apple-nav-container.is-dark .apple-search-input::placeholder {
  color: #a9a8cf;
}

.apple-nav-container.is-dark .apple-search-badge {
  background: rgba(33, 31, 51, 0.7);
  border-color: rgba(61, 59, 88, 0.8);
  color: #a9a8cf;
}

.apple-nav-container.is-dark #mobile-menu-btn {
  background: rgba(33, 31, 51, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  box-shadow: none;
  color: #fefffe;
}

.apple-nav-container.is-dark .apple-dropdown {
  background: #211f33;
  border: 1px solid #3d3b58;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.6);
}

.apple-nav-container.is-dark .apple-search-results {
  background: #211f33;
  border: 1px solid #3d3b58;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5);
  color: #fefffe;
}

.apple-nav-container.is-dark .apple-mobile-drawer {
  background: #211f33;
  border: 1px solid #3d3b58;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.6);
}

.apple-nav-container.is-dark .apple-cta-btn {
  background: #514f96;
  color: #fefffe;
  border-color: #6563ae;
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.4);
}

.apple-nav-container.is-dark .apple-cta-btn:hover {
  background: #6563ae;
  box-shadow: 0 6px 18px rgba(81, 79, 150, 0.5);
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .hsw-copylayer::before {
    width: 100%;
    height: 70%;
    top: auto;
    bottom: 0;
    background: linear-gradient(0deg, rgba(27, 26, 40, 0.98) 15%, rgba(27, 26, 40, 0.82) 58%, transparent 100%);
  }

  .hsw-copy {
    left: clamp(18px, 5vw, 32px);
    right: clamp(18px, 5vw, 32px);
    top: auto;
    bottom: clamp(32px, 6vh, 56px);
    transform: none;
    max-width: none;
  }

  .hsw-hero-title, .hsw-copy__title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
    margin-bottom: 10px;
  }

  .hsw-hero-body, .hsw-copy__body {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hsw-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
  }

  .hsw-emblem-wrap {
    right: 50%;
    transform: translate(50%, -50%);
    top: 36%;
    opacity: 0.45;
  }

  .hsw-route {
    right: 8px;
    gap: 16px;
  }

  .hsw-route__label {
    display: none;
  }

  .hsw-scene__img {
    object-position: center 38%;
  }

  .hsw-hint {
    bottom: 10px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .hsw-route__dot {
    width: 32px;
    height: 32px;
    padding: 10px;
  }
}

/* Compact & Short Viewports (Laptops, Split Screen, Height <= 720px) */
@media (max-height: 720px) and (min-width: 861px) {
  .hsw-copy {
    top: 52%;
  }

  .hsw-hero-title {
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    margin-bottom: 8px;
  }

  .hsw-hero-body {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .hsw-hero-stats {
    margin-top: 12px;
    padding-top: 10px;
    gap: 10px;
  }

  .hsw-stat-val {
    font-size: 1.15rem;
  }

  .hsw-stat-desc {
    font-size: 0.62rem;
  }

  .hsw-btn {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .hsw-hint {
    display: none;
  }
}

@media (max-height: 540px) and (min-width: 861px) {
  .hsw-copy {
    top: 54%;
  }

  .hsw-hero-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .hsw-hero-body {
    font-size: 0.78rem;
    line-height: 1.38;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hsw-hero-wa {
    display: none;
  }

  .hsw-hero-stats {
    margin-top: 8px;
    padding-top: 6px;
    gap: 8px;
  }

  .hsw-stat-val {
    font-size: 1.0rem;
  }

  .hsw-stat-desc {
    font-size: 0.58rem;
  }

  .hsw-btn {
    padding: 6px 14px;
    font-size: 0.76rem;
  }

  .hsw-emblem-svg {
    width: 80px;
    height: 80px;
  }

  .hsw-emblem-name {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   ANIME.JS V4 SCROLL-WORLD ENGINE & LANDING ARCHITECTURE (ANIMEJS.COM STYLE)
   ========================================================================== */

/* 1. Main Stage Container: Centered Seahorse with Multi-Layer Narrative Overlays */
.hsw-stage-centered {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* 2. Video & SVG Callouts Wrapper (Preserves 16:9 Alignment pixel-for-pixel) */
.hsw-video-center-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.hsw-video-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1920px;
  max-height: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hsw-master-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  will-change: transform;
  filter: drop-shadow(0 0 50px rgba(2, 254, 205, 0.22));
}

.hsw-video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(27, 26, 40, 0.72) 100%);
}

/* 3. SVG Technical Callout Leader Lines (Anime.js Style 00:05) */
.hsw-anatomy-callouts-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hsw-anatomy-callouts-svg.is-active {
  opacity: 1;
}

.hsw-callout-line {
  stroke: rgba(2, 254, 205, 0.65);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  fill: none;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.hsw-callout-line.is-highlighted {
  stroke: #02fecd;
  stroke-width: 2.5;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px rgba(2, 254, 205, 0.9));
}

.hsw-callout-anchor {
  fill: #02fecd;
  stroke: #1b1a28;
  stroke-width: 2;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s, fill 0.25s;
}

.hsw-callout-anchor:hover,
.hsw-callout-anchor.is-highlighted {
  fill: #fefffe;
  transform-origin: center;
  transform: scale(1.5);
  filter: drop-shadow(0 0 10px #02fecd);
}

.hsw-callout-pulse {
  fill: none;
  stroke: #02fecd;
  stroke-width: 1.2;
  animation: calloutPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center;
}

@keyframes calloutPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* 4. Top HUD Telemetry Bar (Anime.js Style) */
.hsw-hud-topbar {
  position: absolute;
  top: clamp(12px, 2.2vh, 24px);
  left: clamp(16px, 3.5vw, 48px);
  right: clamp(16px, 3.5vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
  pointer-events: none;
}

.hsw-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(33, 31, 51, 0.85);
  border: 1px solid rgba(61, 59, 88, 0.8);
  backdrop-filter: blur(8px);
  font-size: 11px;
  color: #fefffe;
  letter-spacing: 0.04em;
}

.hsw-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #02fecd;
  box-shadow: 0 0 8px #02fecd;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hsw-hud-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a9a8cf;
  display: none;
}

@media (min-width: 768px) {
  .hsw-hud-meta {
    display: block;
  }
}

.hsw-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: rgba(61, 59, 88, 0.4);
  z-index: 40;
}

.hsw-progress-line__fill {
  height: 100%;
  width: 100%;
  background: #02fecd;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* 5. Layer Overlay Architecture (Each Act has its dedicated interactive plane) */
.hsw-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  padding: clamp(16px, 4vw, 48px);
  box-sizing: border-box;
  z-index: 20;
}

.hsw-layer.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Act 0: Hero Layer */
.hsw-hero-container {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(16px, 3.5vw, 48px);
}

.hsw-hero-card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.3vh, 14px);
  max-width: 580px;
}

.hsw-hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.65rem, 2.75vw, 2.65rem);
  font-weight: 800;
  color: #fefffe;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

.hsw-story-body {
  font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  line-height: 1.52;
  color: #dddce8;
  margin: 0;
  max-width: 48ch;
}

.hsw-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  margin-top: clamp(8px, 1.5vh, 16px);
  padding-top: clamp(8px, 1.3vh, 14px);
  border-top: 1px solid rgba(61, 59, 88, 0.55);
}

.hsw-stat-col {
  display: flex;
  flex-direction: column;
}

.hsw-stat-val {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 800;
  color: #fefffe;
  line-height: 1.1;
}

.hsw-stat-desc {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(0.58rem, 0.65vw, 0.65rem);
  color: #a9a8cf;
  margin-top: 2px;
  letter-spacing: 0.03em;
}

/* Act 1: Anatomy Breakdown Layer (Anime.js Toolbox Style - Left/Right Flanks) */
.hsw-anatomy-container {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  max-height: calc(100vh - 120px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 25;
}

.hsw-anatomy-col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 18px);
  width: 320px;
  max-width: 28vw;
  pointer-events: auto;
}

.hsw-anatomy-card {
  padding: clamp(10px, 1.4vh, 14px) clamp(12px, 1.2vw, 16px);
  border-radius: 12px;
  background: rgba(33, 31, 51, 0.88);
  border: 1px solid rgba(61, 59, 88, 0.85);
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.hsw-anatomy-card:hover,
.hsw-anatomy-card.is-active {
  background: rgba(44, 42, 66, 0.95);
  border-color: #02fecd;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 254, 205, 0.15);
}

.hsw-anatomy-card__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hsw-anatomy-card__num {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #02fecd;
  letter-spacing: 0.08em;
}

.hsw-anatomy-card__badge {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #1b1a28;
  color: #a9a8cf;
  border: 1px solid #3d3b58;
}

.hsw-anatomy-card__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(0.82rem, 0.95vw, 0.96rem);
  color: #fefffe;
  line-height: 1.2;
  margin-bottom: 3px;
}

.hsw-anatomy-card__desc {
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  color: #a9a8cf;
  line-height: 1.35;
}

/* Act 2: Abstract Metamorphosis Layer (The Isotype - User Screenshot) */
.hsw-abstract-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 25;
}

.hsw-abstract-panel {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(33, 31, 51, 0.9);
  border: 1px solid rgba(61, 59, 88, 0.85);
  backdrop-filter: blur(16px);
  padding: clamp(16px, 2.5vh, 24px);
  border-radius: 16px;
}

.hsw-abstract-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 800;
  color: #fefffe;
  line-height: 1.12;
}

/* Act 3 & 4: Network & Ecosystem Layers */
.hsw-network-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: rgba(27, 26, 40, 0.88);
  border: 1px solid rgba(61, 59, 88, 0.85);
  backdrop-filter: blur(16px);
  padding: clamp(20px, 3vh, 32px);
  border-radius: 20px;
}

/* 6. ANIME.JS STYLE BOTTOM-RIGHT SCRUBBER WIDGET (Like 00:02 in Video) */
.anime-scrubber-widget {
  position: absolute;
  bottom: clamp(12px, 2vh, 20px);
  right: clamp(16px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 19, 31, 0.94);
  border: 1px solid rgba(61, 59, 88, 0.9);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 6px 14px;
  z-index: 35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.anime-scrubber-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #514f96;
  color: #fefffe;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.anime-scrubber-play-btn:hover {
  background: #6563ae;
  transform: scale(1.05);
}

.anime-scrubber-track-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  width: clamp(130px, 16vw, 200px);
}

.anime-scrubber-track {
  position: relative;
  height: 6px;
  background: rgba(61, 59, 88, 0.7);
  border-radius: 9999px;
  overflow: visible;
}

.anime-scrubber-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #02fecd;
  border-radius: 9999px;
  transition: width 0.05s linear;
}

.anime-scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: #fefffe;
  border: 2px solid #02fecd;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(2, 254, 205, 0.8);
  transition: left 0.05s linear;
}

.anime-scrubber-ticks {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 2px;
}

.anime-scrubber-tick {
  width: 1.5px;
  height: 4px;
  background: rgba(169, 168, 207, 0.4);
}

.anime-scrubber-timecode {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #fefffe;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.anime-scrubber-chapters {
  display: none;
  gap: 4px;
  border-left: 1px solid rgba(61, 59, 88, 0.8);
  padding-left: 10px;
}

@media (min-width: 992px) {
  .anime-scrubber-chapters {
    display: flex;
  }
}

.anime-scrubber-ch-btn {
  background: transparent;
  border: 1px solid #3d3b58;
  border-radius: 4px;
  color: #a9a8cf;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.anime-scrubber-ch-btn:hover,
.anime-scrubber-ch-btn.is-active {
  background: #02fecd;
  color: #1b1a28;
  border-color: #02fecd;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hsw-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hsw-hero-card {
    max-width: 100%;
    align-items: center;
  }
  .hsw-hero-stats {
    width: 100%;
  }
  .hsw-anatomy-container {
    flex-direction: column;
    justify-content: space-between;
    padding-top: 48px;
    padding-bottom: 64px;
    height: 100%;
  }
  .hsw-anatomy-col {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .hsw-anatomy-card {
    flex: 1 1 200px;
    max-width: 280px;
    padding: 8px 12px;
  }
  .hsw-anatomy-callouts-svg {
    display: none;
  }
  .hsw-abstract-container {
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .hsw-abstract-panel {
    max-width: 100%;
  }
  .anime-scrubber-widget {
    left: 16px;
    right: 16px;
    bottom: 12px;
    justify-content: space-between;
  }
  .anime-scrubber-track-box {
    width: 100%;
  }
}

/* ==========================================================================
   ANIMEJS.COM LANDING SECTIONS (LIGHT THEME MATCHING PURE WHITE BLOOM)
   ========================================================================== */

/* Intro Command Badge */
.npm-install {
  display: inline-flex;
  align-items: center;
  background: #f4f4f8;
  border: 1px solid #e4e4ea;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #1a1923;
}

.npm-install code {
  color: #1a1923;
  font-weight: 600;
}

/* Toolbox Grid (Clean Pure White Surface) */
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  max-width: 920px;
  margin: 32px auto 0;
}

@media (min-width: 768px) {
  .toolbox-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.toolbox-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e4e4ea;
  color: #1a1923;
  text-decoration: none;
  transition: all 0.25s ease;
  will-change: transform;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.toolbox-chip:hover {
  border-color: #514f96;
  background: #f0eff8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(81, 79, 150, 0.10);
}

.toolbox-chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0eff8;
  border: 1px solid #dddce8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #514f96;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.toolbox-chip:hover .toolbox-chip-icon {
  background: #514f96;
  color: #ffffff;
}

/* Feature Interactive Card (Light High-Contrast Technical Stage) */
.feature-interactive-card {
  background: #ffffff;
  border: 1px solid #e4e4ea;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(26, 25, 35, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-interactive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #514f96, transparent);
  opacity: 0.8;
}

/* ==========================================================================
   MULTI-DEVICE RESPONSIVE PRECISION
   ========================================================================== */

/* Tablet & Mobile Layout (< 960px) */
@media (max-width: 960px) {
  .hsw-stage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 18px;
    align-content: center;
  }

  .hsw-stage-right {
    order: -1;
    max-height: 36vh;
  }

  .hsw-video-box {
    max-height: 36vh;
  }

  .hsw-story-card {
    max-width: 100%;
    align-items: flex-start;
  }

  .hsw-hero-title, .hsw-story-title {
    font-size: clamp(1.4rem, 5.2vw, 1.85rem);
    margin-bottom: 6px;
  }

  .hsw-story-body {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .hsw-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .hsw-chapter-nav {
    display: none;
  }

  .hsw-hud-coords {
    display: none;
  }

  .hsw-playback-controls {
    padding: 3px 8px;
    gap: 6px;
  }
}

/* Compact Laptop Screens (Height <= 720px) */
@media (max-height: 720px) and (min-width: 961px) {
  .hsw-stage-grid {
    max-height: calc(100vh - 100px);
    gap: 20px;
  }

  .hsw-hero-title, .hsw-story-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  }

  .hsw-story-body {
    font-size: 0.80rem;
    line-height: 1.4;
  }

  .hsw-hero-stats {
    margin-top: 8px;
    padding-top: 8px;
    gap: 8px;
  }

  .hsw-stat-val {
    font-size: 1.1rem;
  }

  .hsw-video-box {
    max-height: 48vh;
  }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 480px) {
  .hsw-video-box {
    max-height: 28vh;
  }

  .hsw-hero-title, .hsw-story-title {
    font-size: 1.35rem;
  }

  .hsw-story-body {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hsw-act-selector {
    display: none;
  }
}

/* ==========================================================================
   LOADERSZ & ANIME.JS UX/UI ENHANCEMENT ENGINE (HISTRIX ERP 2026)
   Inspirado en animejs.com y loadersz.vercel.app
   Familia Hipocampo · Tokens Oficiales de Mundo IT
   ========================================================================== */

/* 1. Electric Canvas Border (Loadersz) */
.electric-install {
  position: relative !important;
  isolation: isolate;
  overflow: visible !important;
}

.electric-install-canvas {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  z-index: 2;
  display: block;
  opacity: 0.85;
}

/* 2. 3D Tilt Effect (data-tilt) */
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--tilt-x-rotation, 0deg)) rotateY(var(--tilt-y-rotation, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 3. Star Border / Shiny Sweep */
.star-border {
  position: relative;
  background-clip: padding-box;
}

.star-border::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    110px circle at var(--star-x, 50%) var(--star-y, 50%),
    rgba(2, 254, 205, 0.75),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.star-border:hover::before,
.star-border:focus::before {
  opacity: 1;
}

/* 4. Nav Shiny Light Sweep */
.nav-shiny {
  position: relative;
  overflow: hidden;
}

.nav-shiny::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--nav-shine-x, -120px);
  width: 50px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(2, 254, 205, 0.35),
    transparent
  );
  pointer-events: none;
  transform: skewX(-20deg);
}

/* 5. Flying Cursors (Multi-operator simulation) */
.flying-cursors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.flying-cursor {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translate(calc(var(--push-x, 0px) + var(--drift-x, 0px)), calc(var(--push-y, 0px) + var(--drift-y, 0px)));
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.flying-cursor.is-visible {
  opacity: 0.95;
}

.flying-cursor-art {
  display: flex;
  align-items: center;
  gap: 5px;
}

.flying-cursor-name {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(33, 31, 51, 0.92);
  border: 1px solid rgba(61, 59, 88, 0.85);
  color: #fefffe;
  white-space: nowrap;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 6. Code Windows (Anime.js Style) */
.code-window {
  background: #14131e;
  border: 1px solid #3d3b58;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.code-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #1b1a28;
  border-bottom: 1px solid #2c2a42;
  font-size: 11px;
  color: #a9a8cf;
}

.code-window__dots {
  display: flex;
  gap: 6px;
}

.code-window__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.code-window__pre {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  color: #dddce8;
}

.code-kw { color: #f472b6; font-weight: 600; }
.code-fn { color: #60a5fa; }
.code-str { color: #02fecd; }
.code-comment { color: #75738a; font-style: italic; }
.code-num { color: #fbbf24; }
.code-prop { color: #c084fc; }

/* 7. Seahorse SVG Stage (Feature 3) */
.seahorse-svg-stage {
  background: radial-gradient(circle at center, #211f33 0%, #161521 100%);
  border: 1px solid #3d3b58;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seahorse-svg-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seahorse-svg-art {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(101, 99, 174, 0.45));
}

.histrix-coil-live {
  stroke: #8d8bd6;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  transition: stroke 0.3s ease;
}

.histrix-spine-live {
  fill: #02fecd;
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px rgba(2, 254, 205, 0.7));
}

/* 8. Kanban Stage (Feature 4) */
.kanban-board-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kanban-col-mini {
  background: #161521;
  border: 1px solid #3d3b58;
  border-radius: 10px;
  padding: 10px;
}

.kanban-col-mini__header {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #a9a8cf;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}

.kanban-card-mini {
  background: #211f33;
  border: 1px solid #3d3b58;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  cursor: grab;
  user-select: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kanban-card-mini:active {
  cursor: grabbing;
}

.kanban-card-mini:hover {
  border-color: #02fecd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 254, 205, 0.15);
}

/* 9. Interactive Playground Styling */
.playground-section {
  background: #1b1a28;
  color: #fefffe;
  border-top: 1px solid #3d3b58;
  border-bottom: 1px solid #3d3b58;
}

.playground-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 960px) {
  .playground-lab {
    grid-template-columns: 1fr;
  }
}

.playground-stage {
  background: radial-gradient(circle at center, #211f33 0%, #161521 100%);
  border: 1px solid #3d3b58;
  border-radius: 20px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.playground-stage-meta {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #a9a8cf;
}

.playground-stage-badge {
  color: #02fecd;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playground-stage-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #02fecd;
  box-shadow: 0 0 8px #02fecd;
  display: inline-block;
}

.playground-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.playground-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #dddce8;
}

.playground-field-header {
  display: flex;
  justify-content: space-between;
  color: #a9a8cf;
}

.playground-field-val {
  color: #02fecd;
  font-weight: 700;
}

.playground-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #2c2a42;
  outline: none;
  cursor: pointer;
}

.playground-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #02fecd;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(2, 254, 205, 0.7);
  transition: transform 0.15s ease;
}

.playground-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.state-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (max-width: 640px) {
  .state-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.state-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #211f33;
  border: 1px solid #3d3b58;
  color: #dddce8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.state-btn:hover {
  background: #2c2a42;
  border-color: #8d8bd6;
  color: #fefffe;
}

.state-btn.is-active {
  background: #514f96;
  border-color: #02fecd;
  color: #fefffe;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(2, 254, 205, 0.25);
}

.code-copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14131e;
  border: 1px solid #3d3b58;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #dddce8;
}

.code-copy-btn {
  background: #211f33;
  border: 1px solid #3d3b58;
  color: #dddce8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: #2c2a42;
  border-color: #02fecd;
  color: #02fecd;
}

/* ==========================================================================
   FLOATING CONVERSION DOCK & HIGH-CONVERSION CTA SYSTEM (MUNDO IT 2026)
   ========================================================================== */
.conversion-floating-dock {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 48;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(101, 99, 174, 0.22);
  border-radius: 9999px;
  box-shadow: 0 12px 36px -6px rgba(26, 25, 35, 0.16), 0 4px 14px rgba(81, 79, 150, 0.1);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
}

.conversion-floating-dock.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

html.dark .conversion-floating-dock {
  background: rgba(27, 26, 40, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px -4px rgba(0, 0, 0, 0.55);
}

.floating-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-family: var(--font-body, 'Archivo', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.floating-cta-wa {
  background: #f0eff8;
  color: #1a1923;
  border: 1px solid #dddce8;
}

.floating-cta-wa:hover {
  background: #e6fbf5;
  border-color: #0bbf9d;
  color: #0a7562;
  transform: translateY(-1px);
}

html.dark .floating-cta-wa {
  background: #211f33;
  color: #fefffe;
  border-color: #3d3b58;
}

html.dark .floating-cta-wa:hover {
  background: rgba(11, 191, 157, 0.15);
  border-color: #02fecd;
  color: #02fecd;
}

.floating-online-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0bbf9d;
  box-shadow: 0 0 0 0 rgba(11, 191, 157, 0.7);
  animation: floatPulse 2s infinite ease-out;
  flex-shrink: 0;
}

@keyframes floatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 191, 157, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(11, 191, 157, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 191, 157, 0);
  }
}

.floating-cta-demo {
  background: var(--violet-600, #514f96);
  color: #ffffff !important;
  border: 1px solid var(--violet-700, #3e3c73);
  box-shadow: 0 2px 8px rgba(81, 79, 150, 0.35);
}

.floating-cta-demo:hover {
  background: var(--violet-700, #3e3c73);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(81, 79, 150, 0.45);
}

.floating-dock-divider {
  width: 1px;
  height: 18px;
  background: rgba(101, 99, 174, 0.2);
  margin: 0 2px;
}

html.dark .floating-dock-divider {
  background: rgba(255, 255, 255, 0.12);
}

/* Microinteracciones globales de alta conversión para todos los CTAs */
.apple-cta-btn,
.hero-pill-cta,
.btn-primary-cta,
.btn-primary-hero,
.btn-cyan-hero,
.comp-footer-cta,
.footer-lead-submit {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease, 
              border-color 0.2s ease !important;
}

.apple-cta-btn:focus-visible,
.hero-pill-cta:focus-visible,
.btn-primary-cta:focus-visible,
.btn-primary-hero:focus-visible,
.btn-cyan-hero:focus-visible,
.comp-footer-cta:focus-visible,
.floating-cta-btn:focus-visible {
  outline: 2px solid #0bbf9d !important;
  outline-offset: 3px !important;
}

.apple-cta-btn:active,
.hero-pill-cta:active,
.btn-primary-cta:active,
.btn-primary-hero:active,
.btn-cyan-hero:active,
.comp-footer-cta:active,
.floating-cta-btn:active {
  transform: scale(0.97) !important;
}

/* Posicionamiento global del botón Back-to-top en Desktop / PC */
#back-to-top-btn,
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 49;
  width: 44px;
  height: 44px;
}

@media (max-width: 768px) {
  .conversion-floating-dock {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    justify-content: space-between;
    padding: 6px 8px;
    z-index: 48 !important;
  }
  .floating-cta-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 11.5px;
    min-height: 44px;
  }

  /* Posicionamiento anti-colisión en móvil: 76px desde abajo (12px dock + 52px altura + 12px gap) */
  #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;
  }
}

/* ==========================================================================
   PLANE-STYLE MONUMENTAL FOOTER (HISTRIX ERP · MUNDO IT)
   Reference: Plane.so Enterprise Footer Design - Overlapping Sticky Reveal
   ========================================================================== */

#main-footer.plane-footer-root {
  position: relative;
  width: 100%;
  overflow: visible !important;
  background-color: #e4e3ee;
  transition: background-color 0.35s ease;
}

html.dark #main-footer.plane-footer-root {
  background-color: #0c0b13;
}

/* Layer 1: Elevated Upper Card with Rounded Bottom Corners (Solapa el escenario inferior) */
.plane-footer-card {
  position: relative;
  z-index: 20;
  width: 100%;
  background-color: #f6f6fa;
  color: #2e2c3d;
  border-top: 1px solid #dcdbe6;
  border-bottom: 1px solid #d2d0e0;
  border-bottom-left-radius: clamp(28px, 4.5vw, 48px);
  border-bottom-right-radius: clamp(28px, 4.5vw, 48px);
  box-shadow: 0 35px 70px -15px rgba(26, 25, 35, 0.22), 0 15px 30px -5px rgba(26, 25, 35, 0.12);
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

html.dark .plane-footer-card {
  background-color: #161522;
  color: #dddce8;
  border-top-color: #2d2b42;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 45px 90px -15px rgba(0, 0, 0, 0.9), 0 20px 40px -5px rgba(0, 0, 0, 0.7);
}

/* Loadersz Top Border Glowing Accent Line (Screenshot 2) */
.plane-footer-top-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(81, 79, 150, 0.3) 25%, rgba(81, 79, 150, 0.9) 50%, rgba(81, 79, 150, 0.3) 75%, transparent 95%);
  pointer-events: none;
  z-index: 26;
}

html.dark .plane-footer-top-glow-line {
  background: linear-gradient(90deg, transparent 5%, rgba(101, 99, 174, 0.4) 25%, rgba(2, 254, 205, 0.95) 50%, rgba(101, 99, 174, 0.4) 75%, transparent 95%);
  box-shadow: 0 0 16px rgba(2, 254, 205, 0.55);
}

/* Ambient glow inside upper card */
.plane-footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 900px);
  height: 280px;
  background: radial-gradient(50% 50% at 50% 0%, rgba(81, 79, 150, 0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

html.dark .plane-footer-glow {
  background: radial-gradient(50% 50% at 50% 0%, rgba(2, 254, 205, 0.04) 0%, transparent 100%);
}

/* Header & Badges Row */
.plane-footer-header {
  border-bottom: 1px solid #dcdbe6;
  transition: border-color 0.35s ease;
}

html.dark .plane-footer-header {
  border-bottom-color: #2d2b42;
}

/* Circular Line Compliance Badges (Plane style) */
.plane-badge-circle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  border: 1.5px solid #cfcedd;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html.dark .plane-badge-circle {
  border-color: rgba(255, 255, 255, 0.14);
  background: #211f33;
  box-shadow: none;
}

.plane-badge-circle:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: #514f96;
  box-shadow: 0 6px 18px rgba(81, 79, 150, 0.14);
}

html.dark .plane-badge-circle:hover {
  border-color: #02fecd;
  box-shadow: 0 0 18px rgba(2, 254, 205, 0.16);
}

.plane-badge-ring {
  position: absolute;
  inset: 2.5px;
  border-radius: 9999px;
  border: 1px dashed rgba(81, 79, 150, 0.22);
  pointer-events: none;
  transition: border-color 0.25s ease;
}

html.dark .plane-badge-ring {
  border-color: rgba(255, 255, 255, 0.09);
}

.plane-badge-circle:hover .plane-badge-ring {
  border-color: rgba(81, 79, 150, 0.45);
}

html.dark .plane-badge-circle:hover .plane-badge-ring {
  border-color: rgba(2, 254, 205, 0.35);
}

.plane-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  user-select: none;
  z-index: 1;
}

.plane-badge-sub {
  font-family: var(--font-mono, monospace);
  font-size: 6.2px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5f5d73;
  margin-bottom: 2px;
}

html.dark .plane-badge-sub {
  color: #a9a8cf;
}

.plane-badge-main {
  font-family: var(--font-heading, sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1923;
}

html.dark .plane-badge-main {
  color: #fefffe;
}

.plane-badge-val {
  font-family: var(--font-mono, monospace);
  font-size: 6.8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #514f96;
  margin-top: 2px;
}

html.dark .plane-badge-val {
  color: #02fecd;
}

/* Tooltip for compliance badges */
.plane-badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 6px;
  background: #1a1923;
  color: #fefffe;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

html.dark .plane-badge-tooltip {
  background: #2c2a42;
  border: 1px solid #3d3b58;
}

.plane-badge-circle:hover .plane-badge-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Quick Lead Box */
.plane-lead-box {
  background: #ffffff;
  border: 1px solid #dcdbe6;
  transition: all 0.25s ease;
}

html.dark .plane-lead-box {
  background: #211f33;
  border-color: #312f46;
}

.plane-lead-input {
  background: #f7f7fa;
  border: 1px solid #d4d3e2;
  color: #1a1923;
}

html.dark .plane-lead-input {
  background: #161522;
  border-color: #36344e;
  color: #fefffe;
}

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

html.dark .plane-lead-input:focus {
  border-color: #02fecd;
  box-shadow: 0 0 0 2px rgba(2, 254, 205, 0.15);
}

/* Telemetry Status Badges underneath Lead Box (Proportional 1.05fr 0.95fr 1.42fr) */
.plane-telemetry-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

@media (max-width: 639px) {
  .plane-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .plane-telemetry-grid > *:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 380px) {
  .plane-telemetry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .plane-telemetry-grid > *:last-child {
    grid-column: auto;
  }
}

.plane-telemetry-pill {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dcdbe6;
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #5f5d73;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .plane-telemetry-pill {
    font-size: 11px;
    padding: 8px 14px;
    gap: 7px;
  }
}

@media (max-width: 639px) {
  .plane-telemetry-pill {
    min-height: 40px;
    font-size: 11px;
    padding: 9px 14px;
  }
}

@media (max-width: 360px) {
  .plane-telemetry-pill {
    font-size: 10px;
    padding: 8px 10px;
  }
}

html.dark .plane-telemetry-pill {
  background: #1e1d2c;
  border-color: #38364e;
  color: #a4a2be;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.plane-telemetry-pill:hover {
  border-color: #514f96;
  background: #f0eff8;
  color: #1a1923;
  transform: translateY(-1px);
}

html.dark .plane-telemetry-pill:hover {
  border-color: #02fecd;
  background: #252338;
  color: #ffffff;
  transform: translateY(-1px);
}

.plane-telemetry-val {
  font-weight: 700;
  color: #1a1923;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

html.dark .plane-telemetry-val {
  color: #fefffe;
}

/* Sitemap Links */
.footer-plane-link {
  color: #3e3c50;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
  font-weight: 450;
}

.footer-plane-link:hover {
  color: #514f96;
  transform: translateX(2px);
}

html.dark .footer-plane-link {
  color: #a9a8cf;
}

html.dark .footer-plane-link:hover {
  color: #02fecd;
}

/* Ecosystem Action Pills (Plane Style) */
.plane-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d4d3e2;
  color: #211f33;
  text-decoration: none;
  font-family: var(--font-body, sans-serif);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

html.dark .plane-action-pill {
  background: #211f33;
  border-color: #35334d;
  color: #cacdce;
  box-shadow: none;
}

.plane-action-pill:hover {
  transform: translateY(-1.5px);
  border-color: #514f96;
  color: #1a1923;
  box-shadow: 0 4px 12px rgba(81, 79, 150, 0.1);
}

html.dark .plane-action-pill:hover {
  border-color: #02fecd;
  color: #fefffe;
  background: #28263d;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.plane-pill-badge {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f0eff8;
  color: #514f96;
  font-weight: 600;
}

html.dark .plane-pill-badge {
  background: rgba(2, 254, 205, 0.12);
  color: #02fecd;
}

/* Loadersz Interactive Star-Border Pills (.plane-action-pill.star-border & .footer-zinit-pill.star-border) */
.plane-action-pill.star-border,
.footer-zinit-pill.star-border {
  position: relative;
  border: 1px solid transparent !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    radial-gradient(
      ellipse 30% 220% at var(--footer-sweep-x, -40%) 50%,
      #0bbf9d,
      #514f96 42%,
      #c8c6d8 72%
    ) border-box !important;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  background-size: auto, 100% 100%;
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

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

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

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

/* Social Icon Square Buttons (Plane style) */
.plane-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d4d3e2;
  color: #5f5d73;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

html.dark .plane-social-btn {
  background: #211f33;
  border-color: #35334d;
  color: #a9a8cf;
  box-shadow: none;
}

.plane-social-btn:hover {
  transform: translateY(-2px);
  border-color: #514f96;
  color: #514f96;
  box-shadow: 0 4px 12px rgba(81, 79, 150, 0.12);
}

html.dark .plane-social-btn:hover {
  border-color: #02fecd;
  color: #02fecd;
  background: #28263d;
  box-shadow: 0 0 14px rgba(2, 254, 205, 0.18);
}

/* Layer 2: Pinned Sticky Monumental Watermark Stage Underneath (Fijado abajo en el viewport) */
.plane-sticky-watermark-stage {
  position: sticky;
  bottom: 0;
  z-index: 10;
  width: 100%;
  height: clamp(380px, 46vh, 480px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  user-select: none;
  pointer-events: none;
  line-height: 0.8;
  overflow: visible;
  background-color: #e4e3ee;
  padding-bottom: clamp(60px, 9vh, 84px);
  box-sizing: border-box;
  transition: background-color 0.35s ease;
}

html.dark .plane-sticky-watermark-stage {
  background-color: #0c0b13;
}

.footer-monumental-watermark {
  font-family: var(--font-heading, 'Archivo', sans-serif);
  font-weight: 800;
  font-size: clamp(3.6rem, 15vw, 16.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  margin: 0 auto;
  color: #bdbbe0;
  opacity: 0.96;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.footer-monumental-watermark .watermark-dot {
  display: none !important;
}

html.dark .footer-monumental-watermark {
  color: #2c2946;
  opacity: 0.98;
}

html.dark .footer-monumental-watermark .watermark-dot {
  display: none !important;
}

/* ==========================================================================
   MOBILE & MULTI-DEVICE PRECISION ENHANCEMENTS (RESPONSIVE MASTERY PROTOCOL)
   ========================================================================== */

@media (max-width: 640px) {
  /* Créditos de diseño y estrategia digital en una sola línea horizontal y centrados */
  .footer-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .footer-links .plane-action-pill {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
  }

  /* Botones sociales de contacto directo con target táctil mínimo de 44px */
  .plane-social-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  /* Ruptura de palabras y enlaces seguros en columnas de directorio */
  .footer-plane-link {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

/* Prevención global de auto-zoom en iOS Safari (font-size >= 16px en inputs) */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}





/* ==========================================================================
   MONUMENTAL WATERMARK & CALIBRATED ISO 9001 GREEN STICKER (OFFICIAL)
   ========================================================================== */

.footer-monumental-watermark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  transform: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-cert-sticker {
  position: absolute;
  top: -78px;
  left: 51%;
  z-index: 30;
  width: clamp(230px, 16vw, 250px);
  aspect-ratio: 2 / 1;
  box-sizing: border-box;
  padding: 10px 14px;
  background: linear-gradient(135deg, #028e46 0%, #017a3b 55%, #00612d 100%);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 12px;
  transform: rotate(-3.5deg);
  transform-origin: center center;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  box-shadow: 
    0 16px 36px -4px rgba(0, 0, 0, 0.44),
    0 6px 14px -2px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, filter 0.32s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.footer-cert-sticker:hover {
  transform: rotate(-2deg) translateY(-4px) scale(1.02);
  box-shadow: 
    0 24px 48px -8px rgba(0, 0, 0, 0.52),
    0 10px 20px -4px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  filter: brightness(1.04);
}

.footer-cert-sticker:active {
  transform: rotate(-3deg) translateY(-1px) scale(1.01);
}

.footer-cert-sticker .sticker-crease-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: 
    radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
}

.footer-cert-sticker .sticker-creases-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.75;
}

.footer-cert-sticker .sticker-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.footer-cert-sticker .sticker-seal-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  shrink: 0;
  text-align: center;
  min-width: 52px;
}

.footer-cert-sticker .sticker-certified-tag {
  font-family: var(--font-heading, 'Archivo', sans-serif);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: capitalize;
  margin-bottom: 2.5px;
  opacity: 0.96;
}

.footer-cert-sticker .sticker-circle-badge {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.6px solid #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) inset;
}

.footer-cert-sticker .sticker-circle-iso {
  font-family: var(--font-heading, 'Archivo', sans-serif);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  border-bottom: 1.4px solid #ffffff;
  padding-bottom: 0.5px;
}

.footer-cert-sticker .sticker-circle-reg {
  position: absolute;
  top: 4px;
  right: 3px;
  font-size: 5px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
}

.footer-cert-sticker .sticker-authority-tag {
  font-family: var(--font-heading, 'Archivo', sans-serif);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-top: 2.5px;
  white-space: nowrap;
  opacity: 0.95;
}

.footer-cert-sticker .sticker-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.footer-cert-sticker .sticker-desc {
  font-family: var(--font-heading, 'Archivo', sans-serif);
  font-size: 8px;
  font-weight: 450;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  opacity: 0.96;
}

.footer-cert-sticker .sticker-rule {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  margin: 5px 0 4px;
}

.footer-cert-sticker .sticker-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.92;
  line-height: 1;
}

.footer-cert-sticker .sticker-dot {
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .plane-sticky-watermark-stage {
    height: clamp(320px, 42vh, 420px);
    padding-bottom: clamp(54px, 8vh, 74px);
  }
  .footer-monumental-watermark-wrap {
    transform: none;
  }
  .footer-monumental-watermark {
    font-size: clamp(3.2rem, 15vw, 10.5rem);
  }
  .footer-cert-sticker {
    width: clamp(170px, 22vw, 190px);
    aspect-ratio: 2 / 1;
    padding: 7px 11px;
    left: 50%;
    top: -62px;
    transform: rotate(-3deg);
  }
  .footer-cert-sticker .sticker-circle-badge {
    width: 30px;
    height: 30px;
  }
  .footer-cert-sticker .sticker-circle-iso {
    font-size: 9px;
  }
  .footer-cert-sticker .sticker-desc {
    font-size: 7.2px;
    line-height: 1.25;
  }
}

@media (max-width: 640px) {
  .plane-sticky-watermark-stage {
    height: clamp(260px, 38vh, 340px);
    padding-bottom: 64px;
  }
  .footer-monumental-watermark-wrap {
    transform: none;
  }
  .footer-monumental-watermark {
    font-size: clamp(3.6rem, 21.5vw, 5.4rem);
    letter-spacing: -0.035em;
    line-height: 0.82;
  }
  .footer-cert-sticker {
    width: clamp(115px, 32vw, 130px);
    aspect-ratio: 2 / 1;
    padding: 5px 8px;
    border-width: 1.6px;
    border-radius: 9px;
    left: 49%;
    top: -46px;
    transform: rotate(-3deg);
  }
  .footer-cert-sticker .sticker-content {
    gap: 7px;
  }
  .footer-cert-sticker .sticker-seal-col {
    min-width: 32px;
  }
  .footer-cert-sticker .sticker-certified-tag {
    font-size: 5.5px;
    margin-bottom: 1px;
  }
  .footer-cert-sticker .sticker-circle-badge {
    width: 22px;
    height: 22px;
    border-width: 1.2px;
  }
  .footer-cert-sticker .sticker-circle-iso {
    font-size: 7px;
  }
  .footer-cert-sticker .sticker-circle-reg {
    font-size: 3.2px;
    top: 2px;
    right: 2px;
  }
  .footer-cert-sticker .sticker-authority-tag {
    font-size: 5px;
    margin-top: 1px;
  }
  .footer-cert-sticker .sticker-desc {
    font-size: 5.8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .footer-cert-sticker .sticker-rule {
    margin: 2.5px 0;
  }
  .footer-cert-sticker .sticker-meta {
    font-size: 5px;
    gap: 3px;
  }
}
