/* ==========================================================================
   INFOPIXEL CYBERSECURITY & RESILIENCE — DESIGN SYSTEM & STYLESHEET
   Paleta: Dark Enterprise / Neon Cyan / Indigo Cobalt / Security Emerald & Crimson
   ========================================================================== */

:root {
  --bg-main: #060913;
  --bg-surface: #0b1120;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(6, 182, 212, 0.45);
  --border-glow: 0 0 25px rgba(6, 182, 212, 0.15);
  
  --primary-cyan: #06b6d4;
  --primary-glow: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --brand-magenta: #D94B90;
  --brand-magenta-glow: #FF2E93;
  --brand-ochre: #CD9D01;
  --brand-ochre-glow: #FBBF24;
  
  --status-red: #ef4444;
  --status-red-bg: rgba(239, 68, 68, 0.12);
  --status-orange: #f59e0b;
  --status-orange-bg: rgba(245, 158, 11, 0.12);
  --status-green: #10b981;
  --status-green-bg: rgba(16, 185, 129, 0.12);
  --status-blue: #38bdf8;
  --status-blue-bg: rgba(56, 189, 248, 0.12);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   NAVIGATION BAR — CLEAN SINGLE LINE & AMPLE SPACING
   ========================================================================== */
.cyber-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 9, 19, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  gap: 1rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-shield {
  width: 36px;
  height: 42px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(217, 75, 144, 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
}

.brand-shield:hover {
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 0 14px rgba(205, 157, 1, 0.5));
}

.brand-shield-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
  font-family: 'Inter', -apple-system, sans-serif;
}

.brand-title .logo-inf {
  color: var(--brand-magenta, #D94B90);
}

.brand-title .logo-op {
  color: #ffffff;
}

.brand-title .logo-ixel {
  color: var(--brand-ochre, #CD9D01);
}

[data-theme="light"] .brand-title .logo-op {
  color: #1D1D1B;
}

.brand-lema {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  margin-top: 2px;
  white-space: nowrap;
}

/* Menú en una sola línea horizontal con separación limpia y sin desbordes */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
  white-space: nowrap;
  margin: 0 auto;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #fff;
  background: rgba(6, 182, 212, 0.08);
}

.nav-link-highlight {
  color: var(--primary-cyan) !important;
  font-weight: 700 !important;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.35rem 0.85rem !important;
}

.nav-link-highlight:hover {
  background: rgba(6, 182, 212, 0.22) !important;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Botón Selector de Modo Claro / Modo Oscuro */
.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  color: var(--text-main);
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--primary-cyan);
  transform: scale(1.05);
}

/* Pills de referencia oficial en las cabeceras de cada sección */
.incibe-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.incibe-pill-tag:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: var(--primary-cyan);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 1360px) {
  .cyber-nav {
    padding: 0.85rem 1.25rem;
    gap: 0.75rem;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .nav-item-rel {
    gap: 0.25rem;
  }
  .nav-link {
    font-size: 0.78rem;
    padding: 0.25rem 0.3rem;
  }
  .nav-authority-badge {
    font-size: 0.56rem;
    padding: 0.08rem 0.32rem;
  }
  .brand-title {
    font-size: 1.1rem;
  }
  .brand-lema {
    font-size: 0.56rem;
  }
}

@media (max-width: 1100px) {
  .nav-authority-badge {
    display: none;
  }
  .nav-links {
    gap: 0.65rem;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.35rem;
  }
}

/* Botón de acceso compacto 'Panel' — el más pequeño y discreto de la interfaz */
.btn-panel-compact {
  padding: 0.4rem 0.95rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-panel-compact:hover {
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
  border-color: #818cf8;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.btn-primary {
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(99, 102, 241, 0.25));
  color: var(--primary-glow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-cyan);
  color: #060913;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary-cyan);
  color: var(--text-main);
  background: rgba(6, 182, 212, 0.08);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5.5rem 2.5rem 4.5rem;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-cyan) 80%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2.25rem;
}

.metric-item .metric-value {
  font-size: 1.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.metric-item .metric-value span {
  color: var(--primary-cyan);
}

.metric-item .metric-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Terminal Interactive Box */
.terminal-window {
  background: #090e1a;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.12);
  overflow: hidden;
}

.terminal-header {
  background: #0f172a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.t-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
  max-height: 420px;
  overflow-y: auto;
}

.t-line {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.t-prompt {
  color: var(--primary-cyan);
}

.t-command {
  color: #fff;
  font-weight: 600;
}

.t-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.t-badge-red { background: var(--status-red-bg); color: var(--status-red); border: 1px solid rgba(239, 68, 68, 0.3); }
.t-badge-orange { background: var(--status-orange-bg); color: var(--status-orange); border: 1px solid rgba(245, 158, 11, 0.3); }
.t-badge-green { background: var(--status-green-bg); color: var(--status-green); border: 1px solid rgba(16, 185, 129, 0.3); }

/* ==========================================================================
   SECTIONS & PILLARS
   ========================================================================== */
.section {
  padding: 5rem 2.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
}

.cyber-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.cyber-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--border-glow);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.card-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.4rem;
  display: block;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-list li::before {
  content: "✔";
  color: var(--primary-cyan);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.05rem;
}

/* ==========================================================================
   SIMULATOR / AUDITORÍA PERIMETRAL MODULE IN HOME
   ========================================================================== */
.audit-home-module {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.8) 0%, rgba(6, 9, 19, 0.95) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--border-glow);
  margin: 3rem auto;
  max-width: 1080px;
}

.scanner-box {
  margin: 1.5rem auto 0;
  max-width: 960px;
}

.scanner-input-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.scanner-input {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: var(--transition-fast);
}

.scanner-input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.25);
}

.scanner-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.vuln-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.vuln-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.vuln-status {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   AUTHENTICATION GATE MODAL (CRM LOGIN)
   ========================================================================== */
.auth-gate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-gate-modal.active {
  display: flex;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--border-glow);
  position: relative;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-shield-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  margin: 0 auto 1rem;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.auth-input {
  width: 100%;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.auth-input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.auth-error-msg {
  color: var(--status-red);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.75rem;
  display: none;
}

.auth-btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-btn-close:hover {
  color: #fff;
}

/* ==========================================================================
   CRM / OPERATIONS DASHBOARD MODAL
   ========================================================================== */
.crm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 19, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.crm-modal.active {
  display: block;
}

.crm-container {
  max-width: 1480px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.1);
}

.crm-header {
  background: #0f172a;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.crm-title-area h2 {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crm-title-area p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.btn-crm-logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--status-red);
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-crm-logout:hover {
  background: var(--status-red);
  color: #fff;
}

.btn-close-crm {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.btn-close-crm:hover {
  border-color: var(--status-red);
  color: var(--status-red);
}

/* CRM Pipeline Columns */
.crm-body {
  padding: 2rem;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.pipeline-col {
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  min-width: 300px;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.col-count {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 9999px;
  color: var(--text-muted);
}

/* CRM Target Cards */
.target-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.target-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.target-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.target-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.target-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary-cyan);
}

.target-sector {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.target-vuln-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.v-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.v-tag-red { background: var(--status-red-bg); color: var(--status-red); border: 1px solid rgba(239,68,68,0.25); }
.v-tag-orange { background: var(--status-orange-bg); color: var(--status-orange); border: 1px solid rgba(245,158,11,0.25); }
.v-tag-green { background: var(--status-green-bg); color: var(--status-green); border: 1px solid rgba(16,185,129,0.25); }

.target-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Detail Drawer / Modal for Target */
.target-drawer {
  background: #090e1a;
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.email-composer {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.email-composer label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  font-weight: 600;
}

.email-composer select,
.email-composer input {
  width: 100%;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  outline: none;
}

.email-composer textarea {
  width: 100%;
  height: 230px;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.85rem;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}

/* Múltiples Emails por Ficha */
.emails-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.email-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.email-item-row .email-lbl {
  font-size: 0.72rem;
  color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 0.5rem;
}

.btn-del-email {
  background: none;
  border: none;
  color: var(--status-red);
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.85rem;
}

.add-email-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.add-email-form input {
  flex: 1;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.45rem 0.65rem;
  outline: none;
}

.btn-add-email {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--primary-glow);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

/* Footer */
.cyber-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2.5rem 2.5rem;
  background: #04060d;
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }
  .pipeline-board {
    grid-template-columns: 1fr;
  }
  .target-drawer {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   PORTAL MULTI-PERFIL (CLIENTE & ADMINISTRADOR)
   ========================================================================== */
.portal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090e1a;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.portal-tabs {
  display: flex;
  gap: 0.5rem;
}

.portal-tab {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-tab:hover {
  color: #fff;
  border-color: var(--border-active);
}

.portal-tab.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--primary-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.admin-filter-bar label {
  font-size: 0.78rem;
  color: #c7d2fe;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-filter-bar select {
  background: #060913;
  color: #fff;
  border: 1px solid var(--border-active);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Quick Role Selectors in Auth Modal */
.role-quick-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-role-quick {
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition-fast);
}

.btn-role-quick:hover, .btn-role-quick.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--primary-cyan);
  color: #fff;
}

/* Dashboard Global de Webs (Admin) */
.webs-dashboard-container {
  padding: 1.5rem 2rem;
}

.webs-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.webs-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.webs-summary-num {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
}

.webs-summary-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.webs-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.webs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.webs-table th {
  background: #090e1a;
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.webs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.webs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Vista Portal del Cliente & Dossier INCIBE */
.client-portal-view {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.client-hero-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.incibe-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .incibe-grid {
    grid-template-columns: 1fr;
  }
}

.incibe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.incibe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.btn-incibe-export {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-incibe-export:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Ficha de Datos Corporativos del Cliente */
.client-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.client-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.client-info-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.client-info-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

/* Checking de Puntos de Seguridad (Auditoría Técnica) */
.client-checks-container {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.client-checks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.client-check-item {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.25rem;
  transition: all 0.2s ease;
}

.client-check-item:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 9, 19, 0.9);
}

.client-check-control {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.client-check-norma {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.client-check-finding {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.client-check-impact {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

.client-check-status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.client-check-status-badge.pass {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.client-check-status-badge.fail {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.client-check-status-badge.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

@media (max-width: 900px) {
  .client-check-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* ==========================================================================
   SLIDE CON DESPLAZAMIENTO LATERAL (HERO INFINITE TICKER / MARQUEE)
   ========================================================================== */
.hero-ticker-container {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(11, 17, 32, 0.75);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.ticker-badge-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  z-index: 2;
}

.marquee-wrapper {
  flex: 1;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marqueeScroll 38s linear infinite;
}

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

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.marquee-chip:hover {
  border-color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-1px);
}

.chip-icon {
  font-size: 1.1rem;
}

.marquee-chip strong {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}

.marquee-chip small {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: 0.35rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   SECCIÓN 1: DIRECTIVA NIS2 & MARCO INCIBE (TIMELINE & REGULACIÓN)
   ========================================================================== */
.nis2-timeline-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2.5rem;
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.timeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-step-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.step-time-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-orange {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   SECCIÓN 2: ARQUITECTURA DESACOPLADA (EL PROBLEMA DE LOS CMS & SOLUCIÓN)
   ========================================================================== */
.architecture-comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .architecture-comparison-box {
    grid-template-columns: 1fr;
  }
}

.arch-card-problem {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.arch-card-solution {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.07) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 35px rgba(6, 182, 212, 0.1);
}

.arch-tag-bad {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f87171;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.arch-tag-good {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.arch-list-bad li::before {
  content: "✖";
  color: #f87171;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.05rem;
}

.arch-list-good li::before {
  content: "✔";
  color: var(--primary-cyan);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.05rem;
}

code {
  word-break: break-all;
  overflow-wrap: break-word;
}

.arch-card-problem,
.arch-card-solution {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   SECCIÓN 3: MANTENIMIENTO CRÍTICO & CREACIÓN DE WEBS SEGURAS
   ========================================================================== */
.cms-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cms-service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cms-service-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.cms-service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   SECCIÓN 4: AUDITORÍA PERIMETRAL & FORMULARIO CAPTURA LEADS
   ========================================================================== */
.audit-lead-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.audit-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-lead-input {
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
  background: #060913;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

select.audit-lead-input {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100% !important;
}

.audit-lead-input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.lead-success-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: #a7f3d0;
  font-size: 0.88rem;
}

/* ==========================================================================
   FOOTER ECOSISTEMA DIGITAL INFOPIXEL (SIN DUPLICAR MENÚ SUPERIOR)
   ========================================================================== */
.cyber-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060d;
  padding: 4rem 3rem 2rem;
  margin-top: 6rem;
}

.footer-content-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 0.9fr;
  gap: 2.2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-card-link {
  display: block;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: var(--transition-fast);
}

.footer-card-link:hover {
  border-color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateX(4px);
}

.footer-card-link strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.footer-card-link span {
  display: block;
  color: var(--text-dim);
  font-size: 0.76rem;
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Offset suave para anclajes con cabecera pegajosa */
section[id] {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   TABLA COMPARATIVA: CONSULTORA TRADICIONAL VS. BLINDAJE INFOPIXEL
   ========================================================================== */
.comparison-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.comparison-table-wrapper {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(11, 17, 32, 0.9);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comparison-table th.col-infopixel {
  color: var(--primary-cyan);
  background: rgba(6, 182, 212, 0.08);
  border-left: 2px solid var(--primary-cyan);
  border-right: 2px solid var(--primary-cyan);
}

.comparison-table td.col-infopixel {
  background: rgba(6, 182, 212, 0.04);
  font-weight: 600;
  color: #fff;
  border-left: 2px solid rgba(6, 182, 212, 0.3);
  border-right: 2px solid rgba(6, 182, 212, 0.3);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover td.col-infopixel {
  background: rgba(6, 182, 212, 0.07);
}

/* ==========================================================================
   CALCULADORA DE RIESGO SANCIONADOR NIS2
   ========================================================================== */
.calculator-box {
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  margin: 2.5rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.calculator-box > div {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 860px) {
  .calculator-box {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.calc-result-card {
  background: rgba(11, 17, 32, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.calc-badge.badge-essential {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.calc-badge.badge-important {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.calc-badge.badge-supply {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--primary-cyan);
}

/* ==========================================================================
   SECCIÓN QUIÉNES SOMOS & MANIFIESTO TÉCNICO
   ========================================================================== */
.about-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

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

.about-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.about-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #fff;
  font-family: var(--font-mono);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO DIRECTO B2B
   ========================================================================== */
.contact-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, var(--bg-surface) 100%);
}

.contact-card-box {
  max-width: 860px;
  margin: 2.5rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CHATBOT SENTINEL FLOTANTE (TRIAGE PERIMETRAL NIS2)
   ========================================================================== */
.sentinel-chatbot-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #2563eb 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  z-index: 999;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.sentinel-chatbot-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.6);
}

.sentinel-badge-alert {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-base);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sentinel-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #0b1120;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  animation: slideUpFade 0.25s ease-out forwards;
}

.sentinel-window.active {
  display: flex;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.sentinel-header {
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sentinel-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.85rem;
}

.sentinel-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.sentinel-bubble.bot {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.sentinel-bubble.user {
  background: var(--primary-cyan);
  color: #04121f;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.sentinel-chips-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.sentinel-chip-btn {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary-cyan);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sentinel-chip-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--primary-cyan);
}

.sentinel-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: #090e1a;
  display: flex;
  gap: 0.5rem;
}

.sentinel-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.sentinel-input:focus {
  border-color: var(--primary-cyan);
}

/* ==========================================================================
   MODALES LEGALES (AVISO LEGAL, PRIVACIDAD RGPD, COOKIES, ÉTICA OSINT)
   ========================================================================== */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-modal.active {
  display: flex;
}

.legal-card {
  background: #0b1120;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.legal-card-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-card-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.legal-card-body h4 {
  color: #fff;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-card-body h4:first-child {
  margin-top: 0;
}

.legal-card-body ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

/* ==========================================================================
   MODO CLARO (LIGHT THEME) — ENTERPRISE CLEAN & HIGH CONTRAST
   ========================================================================== */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --border-subtle: #e2e8f0;
  --border-strong: #0891b2;
  --primary-cyan: #0891b2;
  --accent-indigo: #4f46e5;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
  background-color: var(--bg-base);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(8, 145, 178, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(79, 70, 229, 0.06) 0%, transparent 45%);
}

[data-theme="light"] .cyber-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .brand-title {
  color: #0f172a;
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
  background: rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .btn-theme-toggle {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

[data-theme="light"] .hero-subtitle {
  color: #475569;
}

[data-theme="light"] .section-title {
  color: #0f172a;
}

[data-theme="light"] .section-desc {
  color: #475569;
}

[data-theme="light"] .cyber-card,
[data-theme="light"] .cms-service-card,
[data-theme="light"] .timeline-step-card,
[data-theme="light"] .contact-card-box,
[data-theme="light"] .calculator-box,
[data-theme="light"] .comparison-table-wrapper,
[data-theme="light"] .audit-lead-form-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .card-title,
[data-theme="light"] .timeline-step-card h4,
[data-theme="light"] .cms-service-card h3,
[data-theme="light"] .arch-card-problem h3,
[data-theme="light"] .arch-card-solution h3,
[data-theme="light"] .about-grid h3 {
  color: #0f172a !important;
}

[data-theme="light"] .card-text,
[data-theme="light"] .timeline-step-card p,
[data-theme="light"] .cms-service-card p,
[data-theme="light"] .card-list li,
[data-theme="light"] .about-grid p {
  color: #475569;
}

[data-theme="light"] .hero-ticker-container {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .ticker-badge-label {
  background: #f1f5f9;
  border-right-color: #e2e8f0;
  color: #0891b2;
}

[data-theme="light"] .marquee-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .marquee-chip strong {
  color: #0f172a;
}

[data-theme="light"] .comparison-section {
  background: #f8fafc;
}

[data-theme="light"] .comparison-table th {
  background: #f1f5f9;
  color: #334155;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .comparison-table td {
  border-bottom-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .comparison-table td strong {
  color: #0f172a;
}

[data-theme="light"] .comparison-table th.col-infopixel {
  background: rgba(8, 145, 178, 0.08);
  color: #0891b2;
}

[data-theme="light"] .comparison-table td.col-infopixel {
  background: rgba(8, 145, 178, 0.04);
  color: #0f172a;
}

[data-theme="light"] .calc-result-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .calc-result-card #calcClassificationTitle {
  color: #0f172a !important;
}

[data-theme="light"] .audit-lead-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .audit-lead-input:focus {
  border-color: #0891b2;
  background: #ffffff;
}

[data-theme="light"] .about-section {
  background: #f8fafc;
}

[data-theme="light"] .about-badge-item {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .arch-card-problem {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .arch-card-solution {
  background: #ffffff;
  border-color: rgba(8, 145, 178, 0.3);
}

[data-theme="light"] .legal-card {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .legal-card-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .legal-card-header h3 {
  color: #0f172a !important;
}

[data-theme="light"] .legal-card-body h4 {
  color: #0f172a !important;
}

[data-theme="light"] .sentinel-window {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .sentinel-header {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .sentinel-header div > div:first-child {
  color: #0f172a !important;
}

[data-theme="light"] .sentinel-bubble.bot {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .sentinel-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .sentinel-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc;
  border-color: #0891b2;
}

[data-theme="light"] .btn-panel-compact {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-panel-compact:hover {
  background: #f1f5f9;
  border-color: #0891b2;
}






/* ==========================================================================
   DROPDOWN NAVIGATION MULTINIVEL (≤ 5 CATEGORÍAS)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: var(--text-dim);
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
  stroke: var(--primary-cyan);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: rgba(11, 19, 38, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 0.55rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(6, 182, 212, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.dropdown-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.2rem;
  white-space: normal;
}

.nav-dropdown-item:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.15);
}

.nav-dropdown-item:hover .dropdown-item-title {
  color: var(--primary-cyan);
}

.nav-dropdown-item:hover .dropdown-item-desc {
  color: #e2e8f0;
}

.nav-link-audit {
  color: var(--primary-cyan) !important;
  font-weight: 700 !important;
  background: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.18);
}

.nav-link-audit:hover {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: var(--primary-cyan) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
  color: #fff !important;
}

/* Ocultar botones de demo por seguridad en producción */
.role-quick-buttons {
  display: none !important;
}

/* Adaptación Modo Claro para Dropdown */
[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dropdown-arrow {
  stroke: #64748b;
}

[data-theme="light"] .nav-item-dropdown:hover .dropdown-arrow {
  stroke: #0891b2;
}

[data-theme="light"] .dropdown-item-title {
  color: #0f172a;
}

[data-theme="light"] .dropdown-item-desc {
  color: #64748b;
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .nav-dropdown-item:hover .dropdown-item-title {
  color: #0891b2;
}

[data-theme="light"] .nav-dropdown-item:hover .dropdown-item-desc {
  color: #334155;
}

[data-theme="light"] .nav-link-audit {
  background: rgba(8, 145, 178, 0.1) !important;
  border-color: rgba(8, 145, 178, 0.35) !important;
  color: #0e7490 !important;
}

[data-theme="light"] .nav-link-audit:hover {
  background: #0891b2 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA INTEGRAL (MÓVIL ANDROID, TABLET & DESKTOP PEQUEÑO)
   Garantiza que scrollWidth === innerWidth (cero desbordamiento horizontal)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
    gap: 2.5rem;
  }
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  .footer-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Cabecera / Navegación Móvil */
  .cyber-nav {
    padding: 0.65rem 1rem;
    min-height: 62px;
    gap: 0.5rem;
  }
  .brand-wrapper {
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
  }
  .brand-shield {
    width: 32px;
    height: 32px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-lema {
    font-size: 0.55rem;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .btn-theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .btn-panel-compact {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.5rem 1rem 2rem;
    gap: 2rem;
  }
  .hero-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.65rem;
    line-height: 1.35;
    margin-bottom: 1rem;
    white-space: normal;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.5rem);
    line-height: 1.18;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-cta-group a,
  .hero-cta-group button {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
  }
  .metric-item .metric-value {
    font-size: 1.65rem;
  }

  /* Ticker Infinito */
  .hero-ticker-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
    gap: 0.35rem;
  }
  .ticker-badge-label {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.35rem 1rem;
    justify-content: center;
    font-size: 0.64rem;
  }
  .marquee-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .marquee-chip {
    padding: 0.45rem 0.85rem;
  }

  /* Secciones Estándar */
  .section {
    padding: 3rem 1rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .section-desc {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .cyber-card {
    padding: 1.5rem 1.15rem;
  }

  /* Grids específicos */
  .incibe-grid,
  .architecture-comparison-box,
  .about-grid,
  .contact-form-grid,
  .calculator-box,
  .pipeline-board {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .pipeline-col {
    min-width: 100%;
  }

  /* Terminal Hero */
  .terminal-window {
    width: 100%;
    max-width: 100%;
  }
  .terminal-body {
    padding: 0.85rem;
    font-size: 0.72rem;
    max-height: 340px;
    overflow-x: auto;
  }
  .t-line {
    word-break: break-word;
    white-space: normal;
  }

  /* Módulo de Auditoría y Formulario */
  .audit-form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .audit-lead-form-box,
  .calc-container,
  .calculator-box {
    padding: 1.25rem 1rem;
  }
  .audit-lead-input {
    font-size: 16px !important; /* Previene auto-zoom en iOS/Android */
    padding: 0.75rem 0.85rem;
  }

  /* Tabla Comparativa */
  .comparison-section {
    padding: 3rem 1rem;
  }
  .comparison-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0 0;
  }
  .comparison-table {
    min-width: 500px;
    font-size: 0.78rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.65rem;
  }

  /* Footer */
  .cyber-footer {
    padding: 3rem 1rem 1.5rem;
    margin-top: 3rem;
  }
  .footer-content-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  /* Modal de autenticación / acceso */
  .login-modal-content,
  .modal-box {
    width: calc(100vw - 2rem) !important;
    max-width: 95vw !important;
    padding: 1.5rem 1.15rem !important;
    margin: 1rem auto !important;
    box-sizing: border-box !important;
  }
  .portal-nav-bar {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .portal-tabs {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-lema {
    display: none;
  }
  .btn-panel-compact span {
    display: none;
  }
  .btn-panel-compact {
    padding: 0.35rem 0.5rem;
  }
}
