/* ==========================================
   VOLTIA — DESIGN SYSTEM & CORE STYLES
   ========================================== */

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

:root {
  /* === COLOR PALETTE (UX/UI CORPORATE REDESIGN) === */
  --primary: #0B2545;       /* Azul Marino (Dominante) */
  --primary-hover: #143A66; /* Azul Marino Hover */
  --secondary: #F4B400;     /* Dorado (Acento de excelencia/energía) */
  --secondary-hover: #D99A00; /* Dorado Hover */
  --background: #FFFFFF;    /* Fondo principal */
  --surface: #F5F7FA;       /* Fondo alternativo (Gris azulado muy claro) */
  --text: #1F2937;          /* Gris carbón (Texto principal, nunca negro puro) */
  --border: #D9E2EC;        /* Gris azulado de bordes */
  --accent: #2563EB;        /* Azul de apoyo (Links, estados activos, indicadores) */

  /* === FONTS === */
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Montserrat', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* === FONDOS === */
  --bg: var(--background);
  --bg2: var(--surface);
  --surface-white: #ffffff;
  --surface-gray: var(--surface);

  /* === AZUL MARINO INSTITUCIONAL (DOMINANTE) === */
  --navy-deep: var(--primary);
  --navy-mid: var(--primary-hover);
  --navy-light: var(--border);

  /* === TIPOGRAFÍA === */
  --text-main: var(--text);
  --text2: #4B5563; /* Gris carbón claro */
  --muted: #6B7280;
  --muted2: #374151;
  --text-inverse: #ffffff;

  /* === BORDES === */
  --border-accent: rgba(244, 180, 0, 0.2);
  --border-navy: rgba(11, 37, 69, 0.15);

  /* === FUNCIONALES === */
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.25);
  --danger: #ef4444;
  --success: #10b981;
  --gold: var(--secondary);

  /* === LEGACY ALIASES (backward compat) === */
  --orange: var(--secondary);
  --orange2: var(--secondary-hover);
  --blue: var(--navy-mid);
  --blue2: var(--navy-deep);
  --navy: var(--navy-light);
  --border-blue: var(--border-navy);
  --border-orange: var(--border-accent);
  --teal: var(--secondary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--primary);
}

/* ==========================================
   ACCESSIBILITY UTILITIES
   ========================================== */

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible ring for keyboard navigation */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to main content (hidden off-screen, visible on focus) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--navy-deep);
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ==========================================
   NAV SUPERIOR
   ========================================== */

header[role="banner"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 5%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.logo .volt {
  color: var(--primary);
}

.logo .ia {
  color: var(--secondary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-cta-btn {
  padding: 0.55rem 1.3rem !important;
  font-size: 0.82rem !important;
  border-radius: 6px !important;
}

/* ==========================================
   NAV TOGGLE (HAMBURGER)
   ========================================== */

.nav-toggle-btn {
  display: flex;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 42px;
  padding: 12px 10px;
  z-index: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.nav-toggle-btn:hover {
  border-color: var(--primary);
  background-color: var(--surface);
}

.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   NAV BACKDROP & DRAWER
   ========================================== */

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--surface);
  z-index: 600;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 40px rgba(15, 23, 42, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--border);
}

.nav-drawer.open {
  transform: translateX(0);
}

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

.drawer-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: 0.12em;
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.close-drawer-btn:hover {
  color: var(--text);
}

.nav-drawer-menu {
  list-style: none;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  flex: 1;
}

.nav-drawer-menu li a {
  display: block;
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-drawer-menu li a:hover {
  background: var(--surface2);
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateX(5px);
}

.nav-drawer-footer {
  padding: 1.5rem 2rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 5% 5rem;
  overflow: hidden;
  background-color: var(--background);
  background-image: 
    linear-gradient(rgba(11, 37, 69, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 69, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(11, 37, 69, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: .4rem 1rem;
  border: 1px solid var(--border-accent);
  background: var(--accent-light);
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 180, 0, .4); }
  60% { box-shadow: 0 0 0 8px rgba(244, 180, 0, 0); }
}

h1.hero-h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}

h1.hero-h1 .l1 {
  display: block;
  color: var(--text2);
}

h1.hero-h1 .l2 {
  display: block;
  color: var(--primary);
  text-shadow: 0 0 60px rgba(37, 99, 235, 0.15);
}

h1.hero-h1 .l3 {
  display: block;
  font-size: .5em;
  color: var(--muted2);
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: .6rem;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--muted2);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-intro-text {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.typewriter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .95rem;
  color: var(--muted2);
  margin-bottom: 2.5rem;
  min-height: 1.5em;
}

.c-blink {
  display: inline-block;
  color: var(--orange);
  animation: blink .8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.h-stat .num {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.h-stat .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  color: var(--muted2);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-main {
  background: var(--primary);
  color: #FFFFFF;
  padding: .9rem 2.2rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background .25s ease, transform .15s ease, opacity .2s, box-shadow .25s ease;
}

.btn-main:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
}

.btn-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: .9rem 2.2rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid var(--border);
  font-family: var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s, background-color .2s;
}

.btn-ghost:hover {
  border-color: var(--primary);
  background-color: rgba(11, 37, 69, 0.04);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  padding: .9rem 2.2rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.2);
}

/* Loading state spinner for buttons */
.btn-loading .btn-text {
  visibility: hidden;
}

.btn-loading .btn-spinner {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

.btn-spinner {
  display: none;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   TICKER
   ========================================== */

.ticker {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: .65rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: tick 35s linear infinite;
}

.ticker-track span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem;
  color: rgba(241, 245, 249, 0.6);
  padding: 0 2.5rem;
  letter-spacing: .08em;
}

.ticker-track span::before {
  content: '◆  ';
  color: var(--accent);
  font-size: .6rem;
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================
   SECTIONS (SHARED)
   ========================================== */

section {
  padding: 7rem 5%;
}

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--accent);
}

h2.sh {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}

h2.sh em {
  font-style: normal;
  color: var(--accent);
}

.sub {
  color: var(--muted2);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 4rem;
  line-height: 1.75;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */

.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.rv.on {
  opacity: 1;
  transform: none;
}

.rvl {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s ease, transform .7s ease;
}

.rvl.on {
  opacity: 1;
  transform: none;
}

.rvr {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s ease, transform .7s ease;
}

.rvr.on {
  opacity: 1;
  transform: none;
}

/* ==========================================
   MARCO LEGAL SECTION
   ========================================== */

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

.legal-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.legal-highlight {
  font-size: 1.28rem;
  line-height: 1.8;
  color: var(--text2);
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

.compliance-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.03);
  overflow: hidden;
}

.compliance-box .c-header {
  background: var(--bg2);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.compliance-box .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.compliance-box .c-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted2);
}

.compliance-list {
  list-style: none;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.compliance-list li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text2);
  position: relative;
  padding-left: 1.5rem;
}

.compliance-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

/* ==========================================
   MODALIDADES
   ========================================== */

.modalidades-section {
  background: var(--bg2);
}

.modalidades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mod-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 3rem 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border-color: var(--border-orange);
}

.mod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--orange);
  transition: height 0.3s ease;
}

.mod-card:hover::before {
  height: 100%;
}

.mod-num {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(11, 37, 69, 0.04);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.mod-card:hover .mod-num {
  color: rgba(11, 37, 69, 0.08);
}

.mod-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.mod-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.mod-card p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted2);
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.mod-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid var(--border-accent);
  background: rgba(244, 180, 0, 0.05);
  border-radius: 4px;
}

/* ==========================================
   TIMELINE / PROCESO
   ========================================== */

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

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.tl-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tl-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.tl-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s;
}

.tl-item:hover .tl-icon {
  border-color: var(--accent);
  background-color: var(--accent-light);
  transform: scale(1.1);
}

.tl-content h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.tl-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted2);
  padding: 0 0.5rem;
}

/* ==========================================
   ALERTA / CALLOUT
   ========================================== */

.callout-section {
  background: var(--bg);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.callout-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--secondary);
  border-radius: 16px;
  padding: 2.2rem 3rem;
  max-width: 920px;
  margin: 0 auto;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.warning-icon {
  font-size: 1.5rem;
}

.callout-header h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange2);
  letter-spacing: 0.02em;
}

.callout-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text2);
}

.callout-body p strong {
  color: var(--text);
}

/* ==========================================
   CTA / CONVERSIÓN
   ========================================== */

.cta-section {
  background: var(--bg2);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 5%;
}

.cta-section::before {
  content: 'SOLAR';
  position: absolute;
  font-family: var(--font-sans);
  font-size: 24vw;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -.03em;
}

.cta-box {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   LEAD CAPTURE MODAL
   ========================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

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

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 680px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  border: none;
  background: none;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--text);
}

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

.modal-header h3 {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.95rem;
  color: var(--muted2);
  line-height: 1.5;
}

/* ==========================================
   FORM COMPONENTS
   ========================================== */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.required-mark {
  color: var(--danger);
  font-weight: 700;
}

.optional-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: var(--focus-ring);
}

.form-group textarea {
  resize: vertical;
}

/* Form validation states */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger);
  background-color: rgba(239, 68, 68, 0.03);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.has-error label {
  color: var(--danger);
}

.error-msg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--danger);
  min-height: 1em;
  transition: opacity 0.2s;
}

.error-msg:empty {
  opacity: 0;
}

/* Consentimiento de datos personales (Ley 8968) */
.form-consent {
  margin: 0 0 1.2rem;
  text-align: left;
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text2);
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.form-consent input[aria-invalid="true"] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.submit-error {
  display: block;
  font-size: 0.78rem;
  margin: 0 0 0.75rem;
}

.submit-error:empty {
  display: none;
}

.w-100 {
  width: 100%;
}

/* Success State */
.modal-success-state {
  position: absolute;
  inset: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
  border-radius: 8px;
}

.modal-success-state.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.08);
  border: 2px solid var(--success);
  color: var(--success);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.modal-success-state h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.modal-success-state p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted2);
  margin-bottom: 2rem;
}

/* ==========================================
   DISCLAIMERS (CALC & FORM)
   ========================================== */

.calc-disclaimer,
.form-disclaimer {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted2);
  background: rgba(11, 37, 69, 0.03);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  text-align: justify;
}

.calc-disclaimer p,
.form-disclaimer p {
  margin-top: 0.4rem;
}

.disclaimer-header {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.calc-disclaimer strong,
.form-disclaimer strong {
  color: var(--orange);
}

/* ==========================================
   CALCULADORA SOLAR
   ========================================== */

.calc-section {
  padding: 6rem 5%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.calc-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
}

.calc-inputs {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text2);
  letter-spacing: 0.05em;
}

.calc-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.calc-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.currency-toggle {
  display: flex;
  background: var(--surface2);
  padding: 2px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.currency-toggle button {
  background: none;
  border: none;
  padding: 3px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted2);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-toggle button.active,
.currency-toggle button[aria-checked="true"] {
  background: var(--accent);
  color: var(--navy-deep);
  font-weight: 700;
}

.slider-display {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 0.2rem 0;
}

.slider-display small {
  font-size: 0.9rem;
  color: var(--muted2);
  font-family: var(--font-sans);
}

.calc-slider {
  accent-color: var(--accent);
  height: 6px;
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
}

.slider-hints {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Calculadora Outputs */
.calc-outputs {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.out-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.out-header h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.out-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: rgba(15, 23, 42, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.metric-card.highlight {
  border-color: var(--border-accent);
  background: var(--accent-light);
}

.metric-card .m-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted2);
  text-transform: uppercase;
}

.metric-card .m-val {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.2rem;
}

.metric-card .m-val small {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--muted2);
}

.financial-breakdown {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.financial-breakdown h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.fin-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.fin-row.total {
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.txt-red { color: var(--danger); }
.txt-green { color: var(--success); }
.txt-gold { color: var(--gold); }

.payback-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-navy);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-top: 0.4rem;
}

.pb-lbl {
  display: block;
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
}

.pb-val {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text);
}

.chart-bars {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  height: 120px;
  margin-top: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  width: 70px;
}

.chart-lbl {
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted2);
}

.bar-bg {
  flex: 1;
  width: 34px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  border-radius: 4px;
  transition: height 0.4s ease;
}

.bar-fill.red { background: var(--danger); }
.bar-fill.green { background: var(--success); }

.chart-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.eco-impact {
  font-size: 0.88rem;
  color: var(--muted2);
  background: rgba(16, 185, 129, 0.06);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================
   SIMULADOR 24H
   ========================================== */

.sim-section {
  padding: 6rem 5%;
}

.sim-container {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
}

.sim-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--surface2);
  padding: 1.2rem 1.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.time-display-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.time-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted2);
}

.time-digital {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.sim-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.sim-badge.day { background: rgba(244, 180, 0, 0.08); color: #B47C00; }
.sim-badge.night { background: rgba(11, 37, 69, 0.1); color: var(--navy-deep); }
.sim-badge.dawn { background: rgba(37, 99, 235, 0.08); color: var(--accent); }
.sim-badge.dusk { background: rgba(100, 116, 139, 0.12); color: #475569; }

.sim-slider-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sim-time-ticks {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
}

.sim-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2rem;
  position: relative;
}

.sim-node {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.sim-node:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.sim-node .node-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.sim-node h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.node-kw {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.node-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted2);
  text-transform: uppercase;
}

.node-status.green { color: var(--success); }
.node-status.red { color: var(--danger); }

.sim-explanation {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-navy);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.sim-exp-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.sim-exp-header h4 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.sim-explanation p {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================
   DISTRIBUIDORAS
   ========================================== */

.dist-section {
  padding: 6rem 5%;
  background: var(--bg2);
}

.map-dashboard {
  background: var(--primary); /* Deep Navy dark mode aesthetic */
  color: #FFFFFF;
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  box-shadow: 0 25px 60px rgba(11, 37, 69, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1200px;
  margin: 3rem auto 0;
  position: relative;
  overflow: hidden;
}

.map-dashboard::before {
  content: '';
  position: absolute;
  inset: 0;
  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);
  background-size: 30px 30px;
  pointer-events: none;
}

.map-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  min-height: 380px;
}

.cr-map {
  width: 100%;
  height: auto;
  max-height: 480px;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.4));
  background: transparent;
}

.map-region {
  fill: #1A1C23; /* Gris oscuro corporativo */
  stroke: #333842; /* Borde sutil */
  stroke-width: 1.2px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.map-region:hover {
  fill: rgba(244, 180, 0, 0.25); /* Oro Industrial translucent hover */
  stroke: var(--secondary); /* Oro Industrial stroke */
  stroke-width: 2px;
  filter: url(#neon-glow);
  outline: none;
}

.map-region.active {
  fill: rgba(16, 185, 129, 0.25); /* Verde Neón active fill */
  stroke: var(--success); /* Verde Neón glowing outline */
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
  outline: none;
}

.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  gap: 1rem;
  min-height: 380px;
  width: 100%;
}

.map-loading .spinner {
  width: 45px;
  height: 45px;
  border: 3.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

/* Floating Tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease, transform 0.1s ease;
  transform: translate(-50%, -100%) translateY(-10px);
}

.map-tooltip.visible {
  opacity: 1;
}

/* Glassmorphism Info Panel */
.map-info-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.panel-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.placeholder-icon {
  font-size: 3.5rem;
  animation: float 4s ease-in-out infinite;
}

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

.placeholder-tip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.08em;
  background: rgba(244, 180, 0, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: panelFadeIn 0.4s ease-out;
}

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

.panel-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.panel-dist-code {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary); /* Highlight in gold */
  letter-spacing: 0.02em;
}

.panel-dist-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF !important;
  line-height: 1.25;
}

.panel-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.panel-specs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: rgba(255, 255, 255, 0.6);
}

.spec-value {
  color: #FFFFFF;
}

.panel-action {
  margin-top: 0.5rem;
}

/* ==========================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================== */

.faq-section {
  padding: 6rem 5%;
}

.faq-container {
  max-width: 860px;
  margin: 2.5rem auto 0;
}

.faq-search-wrap {
  margin-bottom: 1.5rem;
}

.faq-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s;
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.faq-categories {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.faq-cat-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted2);
  cursor: pointer;
  transition: all 0.2s;
}

.faq-cat-btn.active,
.faq-cat-btn[aria-pressed="true"],
.faq-cat-btn:hover {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item.open {
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.04);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.3rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  gap: 1rem;
  cursor: pointer;
}

.faq-toggle {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--navy-deep);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--orange);
}

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

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.5rem;
}

.faq-answer p {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.fl {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fl .v {
  color: #ffffff;
}

.fl .i {
  color: var(--secondary);
}

footer p {
  color: rgba(148, 163, 184, 0.7);
  font-size: .76rem;
  font-family: 'IBM Plex Mono', monospace;
}

/* ==========================================
   RESPONSIVE — TABLET (≤960px)
   ========================================== */

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

@media (max-width: 950px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    height: auto;
  }
  .tl-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
  }
  .tl-num {
    margin-bottom: 0;
    margin-top: 0.5rem;
    min-width: 60px;
  }
  .tl-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .tl-content p {
    padding: 0;
  }
}

@media (max-width: 850px) {
  .sim-diagram {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================== */

@media (max-width: 768px) {
  .hero {
    padding: 7.5rem 5% 4rem;
  }

  .hero-h1 {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions button,
  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .calc-container {
    padding: 0;
    margin-top: 1.5rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .payback-banner {
    grid-template-columns: 1fr;
  }

  .sim-container {
    padding: 1.5rem;
  }

  .sim-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .time-display-box {
    justify-content: space-between;
  }

  .map-dashboard {
    grid-template-columns: 1fr;
    padding: 1.8rem;
    gap: 2rem;
  }
  
  .map-wrapper {
    min-height: 280px;
    padding: 0.5rem;
  }
  
  .map-info-panel {
    min-height: auto;
    padding: 1.5rem;
  }

  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .callout-box {
    padding: 1.8rem;
  }
}

@media (max-width: 620px) {
  .nav-cta-btn {
    display: none !important;
  }
  .modalidades-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ========================================== */

@media (max-width: 480px) {
  nav {
    padding: 0.9rem 5%;
  }

  .logo {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .slider-display {
    font-size: 1.6rem;
  }

  .node-kw {
    font-size: 1.1rem;
  }

  .sim-diagram {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sim-node {
    padding: 1.2rem;
  }

  .sim-node h4 {
    font-size: 0.85rem;
  }

  .calc-inputs,
  .calc-outputs {
    padding: 1.5rem;
  }

  .out-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .out-header h3 {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .h-stat .num {
    font-size: 1.2rem;
  }

  .time-display-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .time-digital {
    font-size: 1.3rem;
  }

  .metric-card .m-val {
    font-size: 1.2rem;
  }

  .fin-row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .chart-bars {
    height: 100px;
  }
}

/* ==========================================
   MODALIDADES RESPONSIVE
   ========================================== */

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

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .rv, .rvl, .rvr {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   VOLTIA 2026 — CAPA DE MODERNIZACIÓN VISUAL
   Se aplica encima del diseño base. Para revertir, borre desde aquí hasta el final.
   ========================================================================== */

:root {
  --font-title: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --navy-950: #061528;
  --navy-900: #0B2545;
  --electric: #60A5FA;
  --accent-light: rgba(37, 99, 235, 0.08);
  --brand-blue: var(--accent);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.04), 0 2px 8px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 2px 4px rgba(11, 37, 69, 0.04), 0 24px 48px -12px rgba(11, 37, 69, 0.16);
  --grad-gold: linear-gradient(135deg, #FFD54A 0%, #F4B400 55%, #E89B00 100%);
  --grad-text: linear-gradient(120deg, #2563EB 0%, #0EA5E9 100%);
}

body { -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* ---------- Navegación: cristal ---------- */
nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(11, 37, 69, 0.06);
}

/* ---------- Botones: sin mayúsculas forzadas, forma de píldora ---------- */
.btn-main,
.btn-secondary,
.btn-ghost {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: .95rem 1.9rem;
}

.btn-main {
  background: var(--navy-900);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 20px -8px rgba(11, 37, 69, 0.5);
}

.btn-secondary {
  background: var(--grad-gold);
  color: var(--navy-950);
  box-shadow: 0 8px 24px -8px rgba(244, 180, 0, 0.6);
}

.btn-secondary:hover {
  background: var(--grad-gold);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px -8px rgba(244, 180, 0, 0.7);
}

.nav-cta-btn {
  border-radius: 999px !important;
  font-size: .88rem !important;
  padding: .6rem 1.3rem !important;
}

/* ---------- Hero oscuro con dos columnas ---------- */
.hero {
  background:
    radial-gradient(ellipse 55% 60% at 85% 20%, rgba(37, 99, 235, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 10% 90%, rgba(244, 180, 0, 0.16) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, #0E2F5A 100%);
  color: #E6EDF7;
  padding: 8.5rem 5% 5rem;
}

.hero-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
}

#hero-canvas { z-index: 1; opacity: .9; }

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 680px; }

.hero-badge {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #CFE0FF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: .45rem 1rem .45rem .8rem;
  backdrop-filter: blur(8px);
}

.hero-badge::before { background: var(--secondary); }

h1.hero-h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1.hero-h1 .l1 { color: #FFFFFF; }

h1.hero-h1 .l2 {
  background: linear-gradient(100deg, #FFD54A 0%, #F4B400 45%, #FFB020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  padding-bottom: .08em;
}

.hero-sub {
  color: #C7D3E3;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  margin-top: 0;
  line-height: 1.55;
}

.typewriter { color: #8FB4F0; font-size: .88rem; margin-bottom: 1.6rem; }

.hero-intro-text { color: #9FB0C6; font-size: 1rem; margin-bottom: 2.2rem; }

.hero-actions { margin-bottom: 3rem; }

.hero .btn-main {
  background: #FFFFFF;
  color: var(--navy-950);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.hero .btn-main:hover { background: #EEF4FF; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  border-top: 0;
  padding-top: 0;
}

.h-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: .9rem 1rem;
}

.h-stat .num {
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 1.02rem;
  line-height: 1.2;
  margin-bottom: .3rem;
}

.h-stat .lbl {
  display: block;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  color: #8DA2BD;
  font-size: .76rem;
}

/* Panel de diagnóstico ilustrativo */
.hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 1.6rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #E6EDF7;
  animation: hp-float 7s ease-in-out infinite;
}

@keyframes hp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.3rem; }

.hp-live { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .92rem; }

.hp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.hp-tag {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9FB0C6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: .2rem .6rem;
}

.hp-kpi-val {
  display: block;
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1;
}

.hp-kpi-val small { font-size: 1rem; font-weight: 600; color: #9FB0C6; }

.hp-kpi-lbl { display: block; font-size: .82rem; color: #9FB0C6; margin-top: .4rem; }

.hp-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-top: 1.4rem;
  padding: 0 2px;
}

.hp-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #FFD54A 0%, rgba(244, 180, 0, 0.35) 100%);
  transform-origin: bottom;
  animation: hp-grow 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.hp-chart span:nth-child(2n) { animation-delay: .08s; }
.hp-chart span:nth-child(3n) { animation-delay: .16s; }

@keyframes hp-grow { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }

.hp-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .64rem;
  color: #7489A6;
  margin: .5rem 0 1.3rem;
}

.hp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.hp-metrics > div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: .7rem .8rem;
}

.hp-m-val { display: block; font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; color: #FFFFFF; }
.hp-m-val.ok { color: #34D399; }
.hp-m-lbl { display: block; font-size: .7rem; color: #8DA2BD; margin-top: .15rem; }

.hp-alert {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-top: .9rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: rgba(244, 180, 0, 0.1);
  border: 1px solid rgba(244, 180, 0, 0.25);
  font-size: .8rem;
  color: #FDE7A9;
  line-height: 1.45;
}

.hp-alert-icon svg { width: 16px; height: 16px; color: var(--secondary); margin-top: 1px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-950); border-color: rgba(255, 255, 255, 0.06); }
.ticker-track span { font-family: var(--font-sans); font-size: .82rem; letter-spacing: 0; color: rgba(226, 232, 240, 0.55); }
.ticker-track span::before { content: '•  '; color: var(--secondary); font-size: 1rem; }

/* ---------- Encabezados de sección ---------- */
section { padding: 6.5rem 5%; }

.section-tag {
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  padding: .35rem .85rem;
  margin-bottom: 1.1rem;
}

.section-tag::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h2.sh {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2.sh em {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub { font-size: 1.08rem; max-width: 600px; color: var(--text2); margin-bottom: 3.5rem; }

/* ---------- Marco legal ---------- */
.legal-highlight {
  font-size: 1.15rem;
  border-left: 0;
  padding-left: 0;
}

.compliance-box {
  border-radius: var(--radius-lg);
  border-color: rgba(11, 37, 69, 0.08);
  box-shadow: var(--shadow-lg);
}

.compliance-box .c-header { background: linear-gradient(180deg, #F8FAFD, #F1F5FA); }
.compliance-box .c-title { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }

.compliance-list li { padding-left: 2.1rem; }

.compliance-list li::before {
  content: '';
  top: .2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* ---------- Tarjetas de modalidades ---------- */
.mod-card {
  border-radius: var(--radius-lg);
  border-color: rgba(11, 37, 69, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
}

.mod-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-lg);
}

.mod-card::before {
  width: 100%;
  height: 3px;
  top: 0;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.mod-card:hover::before { height: 3px; transform: scaleX(1); }

.mod-num {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: #9AA8BA;
  margin: 0;
}

.mod-card:hover .mod-num { color: var(--accent); }

.mod-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-900), #1E4A85);
  color: #FFD54A;
  box-shadow: 0 10px 20px -10px rgba(11, 37, 69, 0.6);
  margin-bottom: 1.5rem;
}

.mod-icon svg, .tl-icon svg { width: 24px; height: 24px; }

.mod-card h3 { font-size: 1.2rem; }

.mod-badge {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: .75rem;
  font-weight: 600;
  color: #9A6B00;
  background: rgba(244, 180, 0, 0.12);
  border: 0;
  border-radius: 999px;
  padding: .3rem .75rem;
}

/* ---------- Calculadora y simulador ---------- */
.calc-inputs,
.calc-outputs,
.sim-container {
  border-radius: 24px !important;
  border-color: rgba(11, 37, 69, 0.08) !important;
  box-shadow: var(--shadow-lg) !important;
}

.calc-inputs { align-self: start; }

.calc-select,
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 12px;
}

.metric-card, .financial-breakdown, .sim-node, .sim-explanation { border-radius: var(--radius-md); }

.sim-node .node-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto .4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-light);
  color: var(--accent);
}

.sim-node .node-icon svg { width: 24px; height: 24px; }
.node-solar .node-icon { background: rgba(244, 180, 0, 0.14); color: #D99A00; }
.node-grid .node-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }

/* ---------- Mapa de distribuidoras ---------- */
.map-dashboard {
  background:
    radial-gradient(ellipse 60% 70% at 20% 30%, rgba(37, 99, 235, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900));
  border-radius: 28px;
}

.map-wrapper { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.07); }

.map-region {
  fill: rgba(96, 165, 250, 0.14);
  stroke: rgba(191, 219, 254, 0.45);
}

.panel-placeholder h3 { color: #FFFFFF; }

.placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(244, 180, 0, 0.12);
  color: var(--secondary);
}

.placeholder-icon svg { width: 30px; height: 30px; }

.placeholder-tip { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: .8rem; border-radius: 999px; padding: .35rem .9rem; }

/* ---------- Línea de tiempo ---------- */
.timeline::before {
  top: 54px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35) 10%, rgba(244, 180, 0, 0.45) 90%, transparent);
}

.tl-num {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: .78rem;
  color: var(--muted);
}

.tl-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(11, 37, 69, 0.1);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.tl-item:hover .tl-icon {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #FFD54A;
  transform: translateY(-3px);
}

.tl-content h4 { font-size: 1.05rem; }

/* ---------- Aviso ARESEP ---------- */
.callout-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFF7E0 100%);
  border: 1px solid rgba(244, 180, 0, 0.3);
  border-radius: var(--radius-lg);
}

.warning-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(244, 180, 0, 0.18);
  color: #B45309;
  flex-shrink: 0;
}

.warning-icon svg { width: 20px; height: 20px; }

.callout-header h3 { font-family: var(--font-title); color: #92400E; letter-spacing: -0.01em; }

/* ---------- Preguntas frecuentes ---------- */
.faq-search-input, .faq-item { border-radius: var(--radius-md); }

.faq-search-input { padding-top: 1rem; padding-bottom: 1rem; }

.faq-cat-btn {
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 999px;
  padding: .45rem 1rem;
}

.faq-item { box-shadow: var(--shadow-sm); }

/* ---------- CTA final ---------- */
.cta-section {
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(244, 180, 0, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 60% at 90% 100%, rgba(37, 99, 235, 0.3), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: #E6EDF7;
}

.cta-section::before { content: none; }

.cta-box h2 { color: #FFFFFF; }
.cta-subtitle { color: #B8C6D9; }

.cta-section .btn-main {
  background: #FFFFFF;
  color: var(--navy-950);
}

.cta-section .btn-main:hover { background: #EEF4FF; }

/* ---------- Footer ---------- */
footer { background: var(--navy-950); }
footer p { font-family: var(--font-sans); font-size: .8rem; }

/* ---------- Modal ---------- */
.modal-card { border-radius: 24px; }

/* ---------- Responsive de la capa ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { max-width: 760px; }
  .hero-panel { max-width: 520px; animation: none; }
}

@media (max-width: 768px) {
  .hero { padding: 7rem 5% 4rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding: 4.5rem 5%; }
}

/* Evita desbordes horizontales en móvil: los <select> con opciones largas
   obligaban a la columna de la calculadora a medir más que la pantalla. */
.calc-container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.legal-wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

.calc-inputs, .calc-outputs, .legal-left, .legal-right { min-width: 0; }

.calc-select { width: 100%; max-width: 100%; text-overflow: ellipsis; }

@media (max-width: 960px) {
  .calc-container { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  /* En móvil las entradas laterales se convierten en verticales */
  .rvl, .rvr { transform: translateY(28px); }
}

/* Corrige el orden de la cascada original: en móvil, una sola columna */
@media (max-width: 620px) {
  .modalidades-grid { grid-template-columns: 1fr; }
}

/* El texto justificado deja huecos grandes en columnas angostas */
.form-disclaimer { text-align: left; border-radius: var(--radius-md); }

@media (max-width: 950px) {
  /* La línea pasa por el centro de los íconos: 60px etiqueta + 24px separación + 28px medio ícono */
  .timeline::before {
    top: 0;
    left: 111px;
    width: 2px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.35), rgba(244, 180, 0, 0.45));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel, .hp-chart span { animation: none !important; }
}
