:root {
  /* Brand colors */
  --brand-primary: #2563eb;       /* Modern Indigo */
  --brand-primary-light: #eff6ff; /* Indigo tint */
  --brand-secondary: #3b82f6;     /* Vibrant Sky/Teal */
  --brand-secondary-light: #eff6ff;
  
  /* Status Colors */
  --verde: #10b981;               /* Emerald */
  --verde-light: #ecfdf5;
  --verde-dark: #047857;
  --naranja: #f97316;             /* Orange */
  --naranja-light: #fff7ed;
  --naranja-dark: #c2410c;
  --rojo: #ef4444;                /* Red */
  --rojo-light: #fef2f2;
  --rojo-dark: #b91c1c;
  --amber: #1d4ed8;               /* Amber */
  --amber-light: #fefbeb;
  --amber-dark: #b45309;

  /* Neutrals */
  --gris-bg: #f8fafc;             /* Slate 50 */
  --gris-subtle: #f1f5f9;         /* Slate 100 */
  --gris-borde: rgba(15, 23, 42, 0.08); /* Clean modern border */
  --gris-borde-focus: rgba(79, 70, 229, 0.4);
  --blanco: #ffffff;
  --dark-bg: #0b0f19;             /* Tech Deep Dark */
  --dark-surface: #161e2e;
  
  /* Typography Colors */
  --texto: #0f172a;               /* Slate 900 */
  --texto-medio: #334155;         /* Slate 700 */
  --texto-suave: #64748b;         /* Slate 500 */
  --texto-light: #94a3b8;         /* Slate 400 */
  
  /* Layout scale-up (110% equivalent) */
  --max: 1140px;                  /* Expansive layout canvas */
  --radio-sm: 8px;
  --radio: 18px;                  /* Softer premium curves */
  --radio-lg: 26px;
  
  /* Shadows - High fidelity depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 20px -3px rgba(15, 23, 42, 0.04), 0 4px 8px -4px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 24px 38px -5px rgba(15, 23, 42, 0.06), 0 10px 16px -6px rgba(15, 23, 42, 0.03);
  --shadow-glass: 0 10px 40px 0 rgba(0, 0, 0, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  font-size: 17.5px;             /* Scaled up from 16px for perfect 110% viewing */
  line-height: 1.8;              /* Spacious reading line height */
  letter-spacing: -0.015em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.25;
  color: var(--texto);
  font-weight: 800;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: var(--brand-secondary);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;               /* More lateral space */
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 17.5px;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;          /* Capsule look */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Premium Navbar CTA */
.nav-links a[style*="background"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #070a13 !important;
  font-weight: 800 !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
  border: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-links a[style*="background"]:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45) !important;
  opacity: 1 !important;
}

.nav-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s;
}
.nav-hamburger:hover {
  opacity: 0.8;
}

.mobile-nav {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  background: rgba(7, 10, 19, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 199;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
  color: #2563eb;
  font-weight: 700;
}
.mobile-nav a:hover {
  color: #ffffff;
}

/* ===== ALERTA ESTADO ===== */
.alerta-estado {
  background: var(--rojo-light);
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
  padding: 12px 24px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--rojo-dark);
}
.alerta-estado strong {
  color: #991b1b;
  font-weight: 700;
}
.alerta-estado a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
  transition: color 0.2s, opacity 0.2s;
}
.alerta-estado a:hover {
  color: var(--brand-secondary);
  opacity: 0.9;
}

/* ===== HERO (Mesh & Grid Deep-Tech Background) ===== */
.hero {
  background-color: #070a13;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  color: #ffffff;
  padding: 110px 24px 92px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-badge .dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #ffffff;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-pri {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #070a13;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  padding: 14px 28px;
  border-radius: var(--radio);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 22px rgba(37, 99, 235, 0.25);
}

.btn-pri:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
  text-decoration: none;
}

.btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 28px;
  border-radius: var(--radio);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-sec:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  font-size: 13.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stat i {
  color: #2563eb;
}

/* Hero card (Glassmorphic Widget) */
.hero-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radio-lg);
  padding: 28px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.hero-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.estado-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.estado-item:last-of-type {
  border-bottom: none;
}

.estado-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.estado-icon.verde {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.estado-icon.rojo {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.estado-icon.naranja {
  background: rgba(249, 115, 22, 0.15);
  color: #1d4ed8;
}

.estado-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.estado-valor {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-si {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

.badge-no {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

.badge-parcial {
  background: rgba(249, 115, 22, 0.15);
  color: #1d4ed8;
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

.hero-card-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #ffffff;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.hero-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.55);
  text-decoration: none;
}

/* ===== FLOATING STATS BAR ===== */
.stats-bar {
  background: var(--blanco);
  border-radius: 22px;
  border: 1px solid var(--gris-borde);
  box-shadow: var(--shadow-lg);
  max-width: var(--max);
  margin: -40px auto 60px;
  position: relative;
  z-index: 10;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 22px;
}

.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--gris-borde);
  background: var(--blanco);
  transition: background-color 0.2s;
}

.stat-item:hover {
  background-color: var(--gris-bg);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 11.5px;
  color: var(--texto-suave);
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SECTIONS ===== */
section {
  padding: 88px 24px;
}

section.bg-gris {
  background: var(--gris-bg);
}

section.bg-azul {
  background: var(--brand-primary-light);
  border-top: 1px solid rgba(79, 70, 229, 0.08);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.section-tag {
  display: inline-block;
  background: rgba(79, 70, 229, 0.06);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.section-tag.verde {
  background: rgba(16, 185, 129, 0.08);
  color: var(--verde-dark);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.section-tag.naranja {
  background: rgba(249, 115, 22, 0.08);
  color: var(--naranja-dark);
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.section-titulo {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--texto);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-sub {
  color: var(--texto-medio);
  margin-bottom: 48px;
  font-size: 17.5px;
  line-height: 1.75;
  max-width: 720px;
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SILO CARDS (Lift & Neon-Glow Hover) ===== */
.estado-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.estado-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 32px;
  border: 1px solid var(--gris-borde);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01), 0 10px 25px -5px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.estado-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.estado-card.verde::before { background: linear-gradient(90deg, var(--verde), #34d399); }
.estado-card.rojo::before { background: linear-gradient(90deg, var(--rojo), #f87171); }
.estado-card.naranja::before { background: linear-gradient(90deg, var(--naranja), #1d4ed8); }

.estado-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.08), 0 1px 3px rgba(79, 70, 229, 0.04);
}

.estado-card-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  display: inline-block;
}

.estado-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--texto);
  letter-spacing: -0.015em;
}

.estado-card p {
  font-size: 15.5px;
  color: var(--texto-medio);
  line-height: 1.7;
}

.estado-card-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.estado-card-badge.verde {
  background: var(--verde-light);
  color: var(--verde-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.estado-card-badge.rojo {
  background: var(--rojo-light);
  color: var(--rojo-dark);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.estado-card-badge.naranja {
  background: var(--naranja-light);
  color: var(--naranja-dark);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.estado-card-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gris-subtle);
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.65;
}

/* ===== CALCULADORA CARD ===== */
.calc-card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gris-borde);
  max-width: var(--max);
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.calc-field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--texto-medio);
  margin-bottom: 10px;
}

.calc-field select, .calc-field input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gris-subtle);
  border-radius: 14px;
  font-size: 15.5px;
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--gris-bg);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
  font-weight: 500;
}

.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 15px;
  padding-right: 46px;
}

.calc-field select:focus, .calc-field input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.calc-field input:focus {
  background: var(--blanco);
}

.calc-field select:focus {
  background-color: var(--blanco);
}

.calc-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.25);
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
}

.calc-resultado {
  margin-top: 32px;
  padding: 30px;
  border-radius: var(--radio);
  background: linear-gradient(135deg, var(--verde-light) 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  display: none;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.calc-resultado.visible {
  display: block;
}

.calc-resultado-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--verde-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 15.5px;
}

.calc-fila:last-child {
  border-bottom: none;
}

.calc-fila-label {
  color: var(--texto-medio);
}

.calc-fila-valor {
  font-weight: 700;
  color: var(--verde-dark);
}

.calc-fila-valor.destacado {
  font-size: 22px;
  color: var(--verde);
}

.calc-aviso {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--texto-suave);
  font-style: italic;
  line-height: 1.6;
}

/* ===== TIMELINE ===== */
.timeline {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary), var(--gris-subtle));
}

.tl-item {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  position: relative;
}

.tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: transform 0.2s;
}

.tl-dot.hecho {
  background: var(--verde);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--verde-light);
}

.tl-dot.fallido {
  background: var(--rojo);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--rojo-light);
}

.tl-dot.pendiente {
  background: var(--gris-subtle);
  color: var(--texto-suave);
  box-shadow: 0 0 0 4px var(--gris-bg);
}

.tl-item:hover .tl-dot {
  transform: scale(1.08);
}

.tl-content {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 24px 28px;
  flex: 1;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tl-item:hover .tl-content {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-md);
}

.tl-fecha {
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.tl-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.tl-desc {
  font-size: 14.5px;
  color: var(--texto-medio);
  line-height: 1.7;
}

/* ===== TABLA SECTORES ===== */
.sectores-tabla-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radio);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gris-borde);
  margin: 0 auto;
  max-width: var(--max);
}

.sectores-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--blanco);
  text-align: left;
}

.sectores-tabla thead th {
  background: #0f172a;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 18px 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sectores-tabla tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gris-subtle);
  color: var(--texto-medio);
  line-height: 1.6;
}

.sectores-tabla tbody tr:last-child td {
  border-bottom: none;
}

.sectores-tabla tbody tr {
  transition: background-color 0.15s;
}

.sectores-tabla tbody tr:hover td {
  background-color: var(--brand-primary-light);
}

.impacto-alto {
  color: var(--rojo-dark);
  font-weight: 700;
  background: var(--rojo-light);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 13px;
  display: inline-block;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.impacto-medio {
  color: var(--naranja-dark);
  font-weight: 700;
  background: var(--naranja-light);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 13px;
  display: inline-block;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.impacto-bajo {
  color: var(--verde-dark);
  font-weight: 700;
  background: var(--verde-light);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 13px;
  display: inline-block;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.sector-horas {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 17.5px;
}

/* ===== DERECHOS ACTUALES ===== */
.derechos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.derecho-card {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  padding: 28px;
  border-left: 4px solid var(--brand-primary);
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.derecho-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.2);
}

.derecho-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.derecho-card h3 i {
  color: var(--brand-primary);
  font-size: 14.5px;
}

.derecho-card p {
  font-size: 14.5px;
  color: var(--texto-medio);
  line-height: 1.65;
}

.derecho-tag {
  display: inline-block;
  margin-top: 14px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: var(--max);
  margin: 0 auto;
}

.faq-item {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--texto);
  letter-spacing: -0.015em;
  transition: background-color 0.2s, color 0.2s;
}

.faq-question:hover {
  background-color: var(--gris-bg);
  color: var(--brand-primary);
}

.faq-question i {
  color: var(--brand-primary);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 14px;
}

.faq-item.abierto {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow);
}

.faq-item.abierto .faq-question i {
  transform: rotate(45deg);
  color: var(--brand-secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.abierto .faq-answer {
  max-height: 520px; /* safety limit */
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 15.5px;
  color: var(--texto-medio);
  line-height: 1.8;
  border-top: 1px solid var(--gris-subtle);
  padding-top: 18px;
}

/* ===== WEBS RELACIONADAS ===== */
.webs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.web-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 32px;
  border: 1px solid var(--gris-borde);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: block;
}

.web-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.2);
  text-decoration: none;
}

.web-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.web-tag.verde {
  background: var(--verde-light);
  color: var(--verde-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.web-tag.azul {
  background: var(--brand-secondary-light);
  color: var(--brand-secondary);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.web-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.web-card p {
  font-size: 14.5px;
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 20px;
}

.web-link {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.web-link.verde { color: var(--verde); }
.web-link.azul { color: var(--brand-primary); }

.web-card:hover .web-link {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  background: #060911;
  color: rgba(255, 255, 255, 0.75);
  padding: 88px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 340px;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.footer-logo span {
  color: #2563eb;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom span {
  font-size: 14px;
  color: #475569;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  max-width: var(--max);
  margin: 24px auto 0;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.75;
}

/* ===== COOKIES BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px;
  border-radius: var(--radio);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(150px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  font-size: 14px;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.65;
}

.cookie-banner p a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.cookie-btn-ok {
  flex: 1;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #070a13;
  border: none;
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.cookie-btn-ok:hover {
  opacity: 0.95;
}

.cookie-btn-no {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.cookie-btn-no:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* ===== EXTRA EEAT & AUTHOR BOX ===== */
.author-box {
  background: linear-gradient(135deg, var(--gris-bg) 0%, var(--brand-primary-light) 100%);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: var(--radio);
  padding: 32px;
  margin-top: 56px;
  display: flex;
  gap: 28px;
  align-items: center;
}

.author-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.22);
}

.author-info h4 {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-social {
  color: #0077b5;
  font-size: 16px;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
}

.author-social:hover {
  color: #005582;
  transform: scale(1.15);
}

.author-info p {
  font-size: 14.5px;
  color: var(--texto-medio);
  line-height: 1.7;
  margin-bottom: 10px;
}

.author-info a {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.author-info a:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* ===== MOCK PLANTILLA SOLICITUD ===== */
.template-box {
  background: var(--gris-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 28px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13.5px;
  color: var(--texto-medio);
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 28px 0;
  max-height: 340px;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.template-copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: all 0.2s;
}
.template-copy-btn:hover {
  background: var(--brand-secondary);
  transform: translateY(-1.5px);
}

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-badge, .hero-btns, .hero-stats {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-card {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
  }
  .stats-bar {
    margin-top: -32px;
    margin-left: 24px;
    margin-right: 24px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-bottom: 1px solid var(--gris-borde);
  }
  .stat-item:nth-child(even) {
    border-right: none;
  }
  .stat-item:nth-child(3), .stat-item:nth-child(4) {
    border-bottom: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media(max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: block;
  }
  section {
    padding: 64px 24px;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media(max-width: 480px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-btns {
    flex-direction: column;
  }
  .btn-pri, .btn-sec {
    width: 100%;
    justify-content: center;
  }
  .cookie-btns {
    flex-direction: column;
  }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* ===== 404 CUSTOM HOVER CARD ===== */
.card-404 {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-404:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
}

/* ===== RESUMEN IA (GEO BOOSTER) ===== */
.resumen-ia {
  background: rgba(79, 70, 229, 0.03);
  border: 1px dashed rgba(79, 70, 229, 0.25);
  border-radius: var(--radio);
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: inset 0 1px 2px 0 rgba(79, 70, 229, 0.02);
}

.resumen-ia-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.resumen-ia ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resumen-ia ul li {
  font-size: 15px;
  color: var(--texto-medio);
  position: relative;
  padding-left: 20px;
  line-height: 1.65;
}

.resumen-ia ul li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  color: var(--brand-primary);
}
