/* ============================================
   NEXA ENERGY — Smart Energy. Connected Future.
   Stack: Vanilla HTML/CSS/JS
   Style: Apple-minimal, editorial, precision
   Palette: Off-white + Charcoal + Gold accent
   ============================================ */

/* ---- CUSTOM FONTS ---- */
@font-face {
  font-family: 'Xspace';
  src: url('../assets/fonts/XspaceRegular.ttf') format('truetype'),
       url('../assets/fonts/Xspace.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

/* ---- TOKENS ---- */
:root {
  --bg:          #F4F6F8;
  --surface:     #FFFFFF;
  --charcoal:    #1A1A2E;
  --ink:         #2D2D3A;
  --muted:       #6B7280;
  --border:      rgba(0,0,0,0.07);
  --accent:      #00B86B;
  --accent-light:#A7F3D0;
  --accent-bg:   #ECFDF5;
  --accent-dark: #059652;
  --sky:         #60A5FA;
  --sky-light:   #BFDBFE;
  --sky-bg:      #EFF6FF;
  --slate:       #94A3B8;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --max-w:       1200px;
  --transition:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--charcoal);
}
h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }

/* ---- UTILITIES ---- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: 'Geist Mono', monospace;
}
.section-title { color: var(--charcoal); }
.section-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 52ch;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border: 1px solid var(--accent-light);
}
.accent-text { color: var(--accent); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--charcoal);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  transition: transform 0.15s var(--transition), background 0.2s;
}
.btn-primary:hover { background: #333; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s, gap 0.2s;
}
.btn-ghost:hover { color: var(--charcoal); gap: 12px; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: #25D366;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.15s var(--transition), background 0.2s;
}
.btn-whatsapp:hover { background: #1EB954; }
.btn-whatsapp:active { transform: scale(0.97); }

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
  will-change: background, backdrop-filter;
  transform: translateZ(0);
}
.nav.scrolled {
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-cta {
  padding: 8px 18px;
  background: var(--charcoal);
  color: #FFFFFF;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #333; }
.nav-cta:active { transform: scale(0.97); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- WELCOME SLOGAN (Apple-style) ---- */
.welcome {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 0 24px;
  position: relative;
}
.welcome-inner {
  text-align: center;
}
.welcome-slogan {
  font-family: 'Xspace', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  font-weight: 400;
}
.welcome-line {
  display: block;
}
.welcome-line-2 {
  color: var(--accent);
}

/* Welcome animation */
.welcome-line-1 {
  opacity: 0;
  transform: translateY(30px);
  animation: welcomeFade 1.1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}
.welcome-cta {
  margin-top: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: welcomeFade 1.1s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
}
.welcome-line-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: welcomeFade 1.1s cubic-bezier(0.23, 1, 0.32, 1) 0.55s forwards;
}
@keyframes welcomeFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- HERO — Image Background ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.05) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 80px;
  width: 100%;
}
.hero-headline,
.hero-sub,
.hero-content .btn-primary,
.hero-trust {
  opacity: 0;
  transform: translateY(14px);
  animation: heroEnter 0.9s var(--ease-out) forwards;
}
.hero-headline { animation-delay: 0.15s; }
.hero-sub      { animation-delay: 0.30s; }
.hero-content .btn-primary { animation-delay: 0.45s; }
.hero-trust    { animation-delay: 0.60s; }
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-headline .accent-text {
  color: var(--accent-light);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 28px;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
}
.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.hero-trust {
  margin-top: 36px;
  max-width: 560px;
}
.hero-proof {
  font-family: 'Geist Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.25s var(--transition), border-color 0.25s var(--transition);
}
.hero-pill svg {
  flex-shrink: 0;
  opacity: 0.85;
  color: var(--accent-light);
}
@media (hover: hover) {
  .hero-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
  }
}

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-content { padding: 0 20px 48px; }
  .hero-trust { margin-top: 28px; }
  .hero-proof { font-size: 0.7rem; margin-bottom: 12px; }
  .hero-pill { padding: 7px 12px; font-size: 0.74rem; gap: 6px; }
  .hero-pill svg { width: 11px; height: 11px; }
}

/* ---- PROBLEMA ---- */
.problema {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problema-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.problema-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.02em;
}
.problema-text strong {
  color: var(--charcoal);
}

/* ---- CTA FINAL ---- */
.cta-final {
  padding: 120px 0;
  background: var(--charcoal);
}
.cta-final-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-final-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 16px;
}
.cta-final-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 40px;
}
.cta-final-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-final .btn-whatsapp {
  width: auto;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  padding: 64px 0;
  background: var(--charcoal);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item { text-align: center; }
.stat-big {
  display: block;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  font-family: 'Geist Mono', monospace;
  line-height: 1;
}
.stat-accent {
  color: var(--accent);
}
.stat-item p {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

/* ---- SERVICIOS ---- */
.servicios { padding: 120px 0; }
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.servicio-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--transition);
  display: flex;
  flex-direction: column;
}
.servicio-card:hover {
  border-color: rgba(0, 184, 107, 0.3);
  box-shadow: 0 8px 32px -8px rgba(0, 184, 107, 0.12);
  transform: translateY(-2px);
}
.servicio-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}
.servicio-icon {
  margin-bottom: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.servicio-card h3 { margin-bottom: 12px; }
.servicio-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.servicio-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.servicio-cta { align-self: flex-start; }

/* ---- PROCESO ---- */
.proceso {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}
.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Geist Mono', monospace;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.step-content { padding-bottom: 48px; }
.step-content h3 { margin-bottom: 8px; }
.step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.step-connector {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-left: 27px;
}

/* ---- SIMULADOR ---- */
.simulador {
  padding: 120px 0;
}
.simulador-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
/* Re-centrar hijos con max-width propio cuando el header está centrado */
.simulador-header .section-title,
.simulador-header .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.simulador-header .section-desc {
  max-width: 58ch;
}
.simulador-tope-banner {
  max-width: 880px;
  margin: 0 auto 20px;
  padding: 12px 20px;
  background: rgba(0, 184, 107, 0.08);
  border: 1px solid rgba(0, 184, 107, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.4;
}
.simulador-tope-banner svg {
  flex-shrink: 0;
  color: var(--accent);
}
.simulador-tope-banner strong {
  color: var(--accent);
  font-weight: 700;
}
.simulador-card {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.06);
}
.simulador-input-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.simulador-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.simulador-value-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.simulador-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
}
.simulador-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  font-family: 'Geist Mono', monospace;
  line-height: 1;
}
.simulador-currency-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 4px;
}

/* Slider */
.simulador-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E5E3DE;
  outline: none;
  border: none;
  padding: 0;
}
.simulador-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--charcoal);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.simulador-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.simulador-slider:active::-webkit-slider-thumb {
  transform: scale(1.3);
  box-shadow: 0 4px 16px rgba(0, 184, 107, 0.35);
}
.simulador-slider:active::-moz-range-thumb {
  transform: scale(1.3);
}
.simulador-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--charcoal);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.simulador-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
}

.simulador-options { margin-top: 8px; }
.simulador-option-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.simulador-pills {
  display: flex;
  gap: 8px;
}
.pill {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease-out);
}
.pill:hover { color: var(--charcoal); border-color: rgba(0,0,0,0.15); }
.pill:active { transform: scale(0.95); }
.pill.active {
  background: var(--charcoal);
  color: #FFFFFF;
  border-color: var(--charcoal);
}

.simulador-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.simulador-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-highlight {
  padding: 20px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 184, 107, 0.15);
}
.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  font-family: 'Geist Mono', monospace;
  transition: filter 200ms ease, opacity 200ms ease;
}
.result-value.updating,
.mapa-result-value.updating {
  filter: blur(4px);
  opacity: 0.55;
}
.mapa-result-value {
  transition: filter 200ms ease, opacity 200ms ease;
}
.result-highlight .result-value {
  color: var(--accent-dark);
}
.result-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.result-price .result-value {
  color: var(--accent-dark);
  font-size: 1.6rem;
}
.result-small .result-value {
  font-size: 1.2rem;
}
.result-factura {
  background: rgba(0, 184, 107, 0.06);
  border: 1px dashed rgba(0, 184, 107, 0.25);
}
.simulador-brand-text {
  display: block;
  margin-top: 4px;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.45;
}
.result-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.result-inline .result-value {
  font-size: 1.4rem;
}
.result-row-roi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.simulador-frases {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  text-align: center;
}
.simulador-frase {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.simulador-frase strong {
  color: var(--accent-dark);
  font-weight: 700;
}
.simulador-cta {
  margin-top: 8px;
}

/* ---- Aviso de estimación ----
   Vive en la columna del input y se empuja al fondo
   con margin-top: auto para llenar el espacio vacío */
.simulador-aviso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 14px 16px;
  background: rgba(26, 26, 46, 0.035);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}
.simulador-aviso svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-dark);
}
.simulador-aviso p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.simulador-aviso strong {
  color: var(--charcoal);
  font-weight: 600;
}
.simulador-aviso a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(5, 150, 82, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.simulador-aviso a:hover {
  text-decoration-color: var(--accent-dark);
}

/* ---- FINANCIACION ---- */
.financiacion {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.financiacion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.fin-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.fin-card:hover {
  border-color: rgba(0, 184, 107, 0.3);
  box-shadow: 0 8px 24px -8px rgba(0, 184, 107, 0.1);
}
.fin-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}
.fin-card h3 {
  margin-bottom: 20px;
}
.fin-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fin-features li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.fin-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}
.fin-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ---- MAPA / MIDE TU TECHO ---- */
.mapa-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.mapa-card {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mapa-search {
  display: flex;
  gap: 12px;
}
.mapa-search input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink);
}
.mapa-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 184, 107, 0.12);
}
.mapa-search .btn-primary {
  white-space: nowrap;
}
.mapa-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
#map {
  width: 100%;
  height: 500px;
}
.mapa-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.mapa-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.15s var(--ease-out);
  cursor: pointer;
}
.mapa-tool-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
}
.mapa-tool-btn:active { transform: scale(0.97); }
.mapa-tool-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mapa-tool-secondary {
  color: var(--muted);
}
.mapa-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.mapa-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.mapa-result-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mapa-result-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  font-family: 'Geist Mono', monospace;
}
.mapa-result-price .mapa-result-value {
  color: var(--accent-dark);
}
.mapa-cta {
  text-align: center;
  padding: 24px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-light);
}
.mapa-cta p {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .mapa-search { flex-direction: column; }
  #map { height: 350px; }
  .mapa-results { grid-template-columns: 1fr 1fr; }
  .mapa-toolbar { top: auto; bottom: 12px; right: 12px; }
}

/* ---- WHY NEXA ---- */
.why-nexa {
  padding: 120px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--transition);
}
.why-card:hover {
  border-color: rgba(0, 184, 107, 0.3);
  box-shadow: 0 8px 24px -8px rgba(0, 184, 107, 0.1);
  transform: translateY(-2px);
}
.why-icon {
  margin-bottom: 20px;
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.why-card h3 { margin-bottom: 10px; }
.why-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   NOSOTROS PAGE
   ============================================ */
.nosotros-page { background: var(--bg); }

/* Hero */
.nosotros-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}
.nosotros-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.nosotros-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin: 0 0 24px;
  font-weight: 800;
}
.nosotros-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 48px;
}
.nosotros-hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}
.nosotros-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nhs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.nhs-num {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
.nhs-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: -0.005em;
}

/* Misión / Visión */
.nosotros-mv {
  padding: 80px 0;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.mv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.mv-card:hover {
  border-color: rgba(0, 184, 107, 0.3);
  box-shadow: 0 8px 24px -8px rgba(0, 184, 107, 0.1);
}
.mv-label {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-weight: 600;
}
.mv-card p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

/* Valores */
.nosotros-valores {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.valor-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: border-color 0.3s, transform 0.3s var(--transition), box-shadow 0.3s;
}
.valor-item:hover {
  border-color: rgba(0, 184, 107, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 184, 107, 0.1);
}
.valor-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.valor-item h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.valor-item p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Timeline */
.nosotros-timeline {
  padding: 120px 0;
}
.timeline {
  max-width: 780px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px 24px 1fr;
  gap: 20px;
  align-items: start;
  padding: 0 0 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
  font-family: 'Geist Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  padding-top: 4px;
  letter-spacing: 0.02em;
}
.timeline-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  margin-top: 6px;
  justify-self: center;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, transform 0.3s;
}
.timeline-dot-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 184, 107, 0.15);
}
.timeline-item:hover .timeline-dot:not(.timeline-dot-active) {
  border-color: var(--accent);
  transform: scale(1.1);
}
.timeline-content h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.timeline-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.timeline-content p:not(.timeline-meta) {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Garantías full */
.nosotros-garantias-full {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.garantias-full-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.garantia-full-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 36px 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  scroll-margin-top: 120px;
}
.garantia-full-item:hover {
  border-color: rgba(0, 184, 107, 0.3);
  box-shadow: 0 8px 24px -8px rgba(0, 184, 107, 0.1);
  transform: translateY(-2px);
}
.gf-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gf-body h3 {
  font-size: 1.28rem;
  margin: 4px 0 14px;
  letter-spacing: -0.02em;
}
.gf-body p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}
.gf-body p strong {
  color: var(--charcoal);
  font-weight: 600;
}
.gf-features {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: grid;
  gap: 8px;
}
.gf-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.gf-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.gf-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.25s var(--transition);
}
.gf-link:hover {
  transform: translateX(3px);
}

/* Responsive: Nosotros */
@media (max-width: 1024px) {
  .valores-grid { grid-template-columns: repeat(3, 1fr); }
  .nosotros-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .nosotros-hero { padding: 60px 20px 40px; }
  .nosotros-hero h1 { font-size: 2rem; }
  .nosotros-mv { padding: 60px 0; }
  .mv-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 32px 28px; }
  .mv-card p { font-size: 1rem; }
  .nosotros-valores { padding: 60px 0; }
  .valores-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .valor-item { padding: 22px 18px; }
  .nosotros-timeline { padding: 60px 0; }
  .timeline::before { left: 54px; }
  .timeline-item { grid-template-columns: 44px 20px 1fr; gap: 14px; padding-bottom: 32px; }
  .timeline-year { font-size: 0.72rem; }
  .timeline-content h3 { font-size: 1rem; }
  .timeline-meta { font-size: 0.68rem; }
  .timeline-content p:not(.timeline-meta) { font-size: 0.88rem; }
  .nosotros-garantias-full { padding: 60px 0; }
  .garantia-full-item { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
  .gf-icon { width: 48px; height: 48px; }
  .gf-body h3 { font-size: 1.15rem; }
}

/* ---- GARANTÍAS / CREDENCIALES ---- */
.garantias {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.garantias-header {
  text-align: center;
  margin-bottom: 64px;
}
.garantias-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 8px;
}
.garantias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.garantia-item {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--transition);
}
.garantia-item:hover {
  border-color: rgba(0, 184, 107, 0.3);
  box-shadow: 0 8px 24px -8px rgba(0, 184, 107, 0.1);
  transform: translateY(-2px);
}
.garantia-item:hover .garantia-more {
  color: var(--accent);
  transform: translateX(3px);
}
.garantia-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.005em;
  transition: color 0.25s var(--transition), transform 0.25s var(--transition);
}
.garantia-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.garantia-item h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.garantia-item p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- ESCENARIOS DE APLICACIÓN ---- */
.escenarios {
  padding: 120px 0;
  background: var(--bg);
}
.escenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.escenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.escenario-card:hover {
  border-color: rgba(0, 184, 107, 0.28);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

/* ---- Visual container — Luxpower-style neutral backdrop ---- */
.escenario-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, #FFFFFF 0%, #F2F4F7 58%, #E4E8EE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ground shadow — the subtle drop beneath the "floating" product */
.escenario-visual::after {
  content: '';
  position: absolute;
  bottom: 16%;
  left: 50%;
  width: 55%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.14), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.escenario-visual img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.escenario-card:hover .escenario-visual img {
  transform: scale(1.05);
}

/* When an image is present, hide the placeholder + ground shadow + backdrop
   (the image brings its own background — usually a contextual scene) */
.escenario-visual:has(img) {
  background: #0A0A0A;
}
.escenario-visual:has(img)::after {
  display: none;
}
.escenario-visual:has(img) .escenario-placeholder {
  display: none;
}

/* Subtle bottom gradient overlay on image cards for depth */
.escenario-visual:has(img)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

/* Placeholder — elegant "render pendiente" state */
.escenario-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(26, 26, 46, 0.18);
  transition: transform 0.6s var(--ease-out), color 0.4s ease;
}
.escenario-card:hover .escenario-placeholder {
  color: rgba(0, 184, 107, 0.4);
  transform: scale(1.03);
}
.escenario-placeholder-icon {
  width: 56px;
  height: 56px;
  color: inherit;
}
.escenario-placeholder-text {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 26, 46, 0.32);
}

/* ---- Content ---- */
.escenario-content {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.escenario-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.escenario-card h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin-top: 2px;
  line-height: 1.25;
}
.escenario-tagline {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin: 0;
}
.escenario-content > p:not(.escenario-tagline) {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
  flex: 1;
}
.escenario-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.escenario-tags .tag {
  font-size: 0.62rem;
  padding: 3px 8px;
}

@media (max-width: 1100px) {
  .escenarios-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .escenario-card h3 { font-size: 1.2rem; }
  .escenario-content { padding: 28px 26px 30px; }
}
@media (max-width: 640px) {
  .escenarios { padding: 80px 0; }
  .escenarios-grid { grid-template-columns: 1fr; }
  .escenario-visual { aspect-ratio: 16 / 10; }
}

/* ---- PROYECTOS ---- */
.proyectos { padding: 120px 0; background: var(--surface); border-top: 1px solid var(--border); }
/* Carousel wrapper */
.proyectos-carousel-wrapper {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}
.proyectos-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 16px;
}
.proyectos-carousel::-webkit-scrollbar { display: none; }
.proyectos-carousel .proyecto-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
}
.proyectos-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: background 0.2s, transform 0.2s;
}
.proyectos-arrow:hover {
  background: var(--charcoal);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.proyectos-arrow-left { left: -22px; }
.proyectos-arrow-right { right: -22px; }
.proyecto-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}
.proyecto-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.proyecto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
  filter: saturate(0.7) contrast(1.05);
}
.proyecto-card:hover .proyecto-img img { transform: scale(1.04); }
.proyecto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,10,10,0.3));
}
.proyecto-info { padding: 24px; }
.proyecto-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0.7;
}
.proyecto-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.proyecto-datos {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.proyecto-info h3 { margin-bottom: 8px; font-size: 1.1rem; }
.proyecto-info p { font-size: 0.875rem; color: var(--muted); margin-bottom: 12px; }
.proyecto-quote {
  font-size: 0.85rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.6;
  padding-left: 16px;
  border-left: 2px solid var(--accent-light);
  margin: 0;
}

/* ---- BLOG ---- */
.blog { padding: 120px 0; }
.blog-carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.blog-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.blog-grid::-webkit-scrollbar { display: none; }
.blog-grid .blog-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  min-width: 280px;
}
.blog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.blog-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,184,107,0.25);
}
.blog-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.blog-arrow-left { left: -4px; }
.blog-arrow-right { right: -4px; }
.blog-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.blog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.blog-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.08);
}
.blog-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-content { padding: 24px; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
}
.blog-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent-dark);
}
.blog-content h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}
.blog-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.blog-card:hover .blog-link { gap: 10px; }

/* ---- LABELS (simulador) ---- */
label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--charcoal);
  padding: 72px 0 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.footer-slogan {
  font-family: 'Xspace', 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s var(--ease-out);
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.social-btn:active { transform: scale(0.96); }
.social-btn svg { flex-shrink: 0; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-family: 'Geist Mono', monospace;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: #FFFFFF; }
.footer-legal {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.38);
}
.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s var(--transition);
}
.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.footer-legal-links span {
  color: rgba(255, 255, 255, 0.18);
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-badges {
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .garantias-grid { grid-template-columns: 1fr 1fr; }
  .proyectos-carousel .proyecto-card { flex: 0 0 calc(50% - 12px); }
  .proyectos-arrow-left { left: 4px; }
  .proyectos-arrow-right { right: 4px; }
  .blog-grid .blog-card { flex: 0 0 calc(50% - 12px); }
  .financiacion-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .simulador-card { grid-template-columns: 1fr; gap: 32px; }
  .simulador-divider { width: 100%; height: 1px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .garantias-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .garantia-item { padding: 24px 20px; }
  .garantias-header { margin-bottom: 48px; }
  .proyectos-carousel .proyecto-card { flex: 0 0 85%; }
  .proyectos-arrow { width: 36px; height: 36px; }
  .proyectos-arrow-left { left: 4px; }
  .proyectos-arrow-right { right: 4px; }
  .blog-grid .blog-card { flex: 0 0 calc(100% - 16px); }
  .blog-arrow { width: 36px; height: 36px; }
  .financiacion-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-legal { margin-top: 28px; padding: 20px 20px 0; }
  .footer-legal-links { justify-content: center; text-align: center; font-size: 0.72rem; gap: 8px; }
  .cta-final-buttons { flex-direction: column; }
  .servicios, .proceso, .proyectos, .why-nexa, .blog, .financiacion, .simulador, .cta-final, .problema, .garantias { padding: 80px 0; }
  .result-row-roi { grid-template-columns: 1fr; gap: 12px; }

  /* --- Mobile: condensar contenido --- */
  /* Ocultar sección escenarios (muy larga) */
  .escenarios { display: none; }

  /* Ocultar sección problema (refuerzo, no esencial) */
  .problema { display: none; }

  /* Proceso: solo los 3 primeros pasos (hijos 1-5, ocultar 6+) */
  .steps > :nth-child(n+6) { display: none; }

  /* Por qué NEXA: ocultar descripciones */
  .why-card p { display: none; }

  /* Servicios: texto más corto */
  .servicio-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Secciones descripción más corta */
  .section-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Simulador frases extras */
  .simulador-frases { display: none; }

  /* Blog: solo mostrar 2 cards */
  .blog-card:nth-child(n+3) { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-big { font-size: 2.4rem; }
  .simulador-amount { font-size: 2rem; }
  .simulador-pills { flex-wrap: wrap; }
}

/* ---- MOBILE NAV OPEN ---- */
.nav.open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 64px 0 0;
  background: rgba(244, 246, 248, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  gap: 24px;
  z-index: 99;
}
.nav.open .nav-links a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
}
.nav.open .nav-cta {
  display: block;
  position: fixed;
  bottom: 32px;
  left: 24px;
  right: 24px;
  text-align: center;
  padding: 16px;
  font-size: 1rem;
  z-index: 100;
}
.nav.open .nav-toggle span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-toggle span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  z-index: 101;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none;
}

/* ---- CONTENT VISIBILITY — skip rendering off-screen sections ---- */
.servicios, .escenarios, .proceso, .simulador, .financiacion,
.why-nexa, .garantias, .proyectos, .blog, .cta-final, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* ---- MOBILE SCROLL PERFORMANCE ---- */
@media (max-width: 768px) {
  /* Reduce backdrop-filter cost on mobile */
  .nav.scrolled {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(244, 246, 248, 0.95);
  }
  /* Promote hero image to own layer */
  .hero-bg img {
    transform: translateZ(0);
  }
  /* Simplify card transitions on mobile — no box-shadow transitions */
  .servicio-card,
  .why-card,
  .proyecto-card,
  .blog-card,
  .fin-card,
  .escenario-card {
    transition: none;
  }
  .proyecto-img img,
  .blog-img img,
  .escenario-visual img {
    transition: none;
  }
}

/* ---- TOUCH DEVICE OVERRIDES ----
   Gate transform-based hovers on touch so they don't stick after tap */
@media (hover: none) {
  .servicio-card:hover,
  .why-card:hover,
  .proyecto-card:hover,
  .blog-card:hover,
  .fin-card:hover,
  .whatsapp-float:hover,
  .stat-item:hover,
  .escenario-card:hover {
    transform: none;
  }
  .proyecto-card:hover .proyecto-img img,
  .blog-card:hover .blog-img img,
  .escenario-card:hover .escenario-visual img,
  .escenario-card:hover .escenario-placeholder {
    transform: none;
  }
  .simulador-slider::-webkit-slider-thumb:hover {
    transform: none;
  }
}

/* ---- STAT ITEM LIFT (desktop only) ---- */
/* Preserve opacity transition inherited from .reveal */
.stat-item {
  transition: transform 0.4s var(--ease-out), opacity 0.7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .stat-item:hover { transform: translateY(-3px); }
}

/* ---- REDUCE MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .welcome-line-1, .welcome-line-2,
  .hero-headline, .hero-sub, .hero-content .btn-primary {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .scroll-progress { display: none; }
}

/* ============================================
   GATE — Cotizador bloqueado hasta verificar correo
============================================ */

/* Locked state applied to #mapa and #simulador when gate not completed */
.nexa-locked {
  position: relative;
}
.nexa-locked .mapa-card,
.nexa-locked .simulador-card,
.nexa-locked .simulador-frases,
.nexa-locked .simulador-tope-banner {
  filter: blur(10px) saturate(0.7);
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
}
.nexa-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 24px;
  pointer-events: none;
}
.nexa-lock-overlay-inner {
  pointer-events: auto;
  background: rgba(10, 14, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 184, 107, 0.25);
  border-radius: 18px;
  padding: 28px 32px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.nexa-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 184, 107, 0.14);
  border: 1px solid rgba(0, 184, 107, 0.35);
  color: #00B86B;
  margin-bottom: 16px;
}
.nexa-lock-overlay h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
}
.nexa-lock-overlay p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(230, 237, 243, 0.7);
  margin: 0 0 18px 0;
}
.nexa-lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00B86B;
  color: #05080B;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.nexa-lock-btn:hover {
  background: #00D27A;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 184, 107, 0.35);
}

/* Modal */
.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.gate-modal.open {
  display: flex;
}
.gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 9, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: gateFadeIn 0.28s ease;
}
@keyframes gateFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gateSlideIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gate-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #0D1318 0%, #080C10 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 40px 38px 34px 38px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: gateSlideIn 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto 0;
}
.gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(230, 237, 243, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.gate-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.gate-header {
  margin-bottom: 24px;
}
.gate-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00B86B;
  margin: 0 0 10px 0;
}
.gate-title {
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}
.gate-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(230, 237, 243, 0.65);
  margin: 0;
}
.gate-subtitle strong {
  color: #fff;
  font-weight: 600;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gate-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(230, 237, 243, 0.75);
  letter-spacing: 0.02em;
}
.gate-optional {
  color: rgba(230, 237, 243, 0.4);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.gate-field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.gate-field input::placeholder {
  color: rgba(230, 237, 243, 0.3);
}
.gate-field input:focus {
  border-color: rgba(0, 184, 107, 0.55);
  background: rgba(0, 184, 107, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 184, 107, 0.1);
}
.gate-field input:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.5);
}
.gate-hint {
  font-size: 11px;
  color: rgba(230, 237, 243, 0.4);
  line-height: 1.4;
}
.gate-code-input {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5em;
  padding: 18px 14px;
}
.gate-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #fca5a5;
  line-height: 1.45;
}
.gate-submit {
  position: relative;
  background: #00B86B;
  color: #05080B;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.gate-submit:hover:not(:disabled) {
  background: #00D27A;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 184, 107, 0.35);
}
.gate-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.gate-submit.loading .gate-submit-text {
  opacity: 0;
}
.gate-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(5, 8, 11, 0.3);
  border-top-color: #05080B;
  animation: gateSpin 0.8s linear infinite;
  opacity: 0;
}
.gate-submit.loading .gate-spinner {
  opacity: 1;
}
@keyframes gateSpin {
  to { transform: rotate(360deg); }
}
.gate-legal {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(230, 237, 243, 0.4);
  text-align: center;
  margin: 4px 0 0 0;
}
.gate-link {
  background: none;
  border: none;
  color: rgba(230, 237, 243, 0.6);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px;
  align-self: center;
  transition: color 0.18s ease;
}
.gate-link:hover {
  color: #fff;
}
.gate-success {
  text-align: center;
  padding: 8px 0;
}
.gate-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.gate-success .gate-title {
  margin-bottom: 10px;
}
.gate-success .gate-subtitle {
  margin-bottom: 26px;
}

/* Mobile adjustments */
@media (max-width: 560px) {
  .gate-modal {
    padding: 0;
    align-items: stretch;
  }
  .gate-dialog {
    border-radius: 18px 18px 0 0;
    padding: 34px 24px 28px 24px;
    max-width: 100%;
    margin: auto 0 0 0;
    min-height: min(94dvh, 100%);
  }
  .gate-row {
    grid-template-columns: 1fr;
  }
  .gate-title {
    font-size: 1.35rem;
  }
  .nexa-lock-overlay-inner {
    padding: 22px 24px;
  }
  .nexa-lock-overlay h3 {
    font-size: 1.05rem;
  }
}

/* ============================================
   BLOG ARTICLE PAGE
   ============================================ */
.blog-article-page { background: var(--bg); }

/* Breadcrumb */
.blog-breadcrumb {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* Article hero */
.blog-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 0;
}
.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.blog-hero-date {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.blog-hero-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: 100px;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--charcoal);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.blog-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
}
.blog-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
}
.blog-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Article body */
.blog-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.blog-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 48px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 36px 0 12px;
  line-height: 1.35;
}
.blog-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 20px;
}
.blog-body ul, .blog-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.blog-body li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 8px;
}
.blog-body a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-body a:hover { color: var(--accent); }
.blog-body strong { color: var(--charcoal); font-weight: 600; }

/* Callout / key stat */
.blog-callout {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
}
.blog-callout p {
  color: var(--charcoal);
  margin: 0;
  font-weight: 500;
}
.blog-callout p strong {
  color: var(--accent-dark);
}

/* In-article figure */
.blog-figure {
  margin: 36px 0;
}
.blog-figure img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}
.blog-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

/* Data table */
.blog-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.blog-table th {
  background: var(--charcoal);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.blog-table tr:last-child td { border-bottom: none; }
.blog-table tr:nth-child(even) td { background: rgba(0,0,0,0.015); }

/* Sources */
.blog-sources {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.blog-sources h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}
.blog-sources ol {
  padding-left: 20px;
  margin: 0;
}
.blog-sources li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 8px;
}
.blog-sources a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

/* CTA banner inside article */
.blog-cta {
  background: var(--charcoal);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  text-align: center;
  margin: 56px 0;
}
.blog-cta h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.blog-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 0 0 24px;
}
.blog-cta a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.blog-cta a:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Related articles */
.blog-related {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.blog-related h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 28px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ---- COTIZADOR PAGE ---- */
.cotizador-hero {
  background: var(--bg);
  padding: 0 24px 60px;
}
.cotizador-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.cotizador-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--transition), box-shadow 0.35s var(--transition);
}
.cotizador-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.cotizador-step-card .step-num {
  font-family: 'Geist Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.cotizador-step-card .step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.cotizador-step-card .step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .cotizador-steps {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .cotizador-step-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .cotizador-step-card .step-num {
    font-size: 1.5rem;
    min-width: 40px;
  }
}

/* Mobile blog article */
@media (max-width: 640px) {
  .blog-hero h1 { font-size: 1.6rem; }
  .blog-hero-subtitle { font-size: 1rem; }
  .blog-body h2 { font-size: 1.25rem; }
  .blog-body h3 { font-size: 1.05rem; }
  .blog-cta { padding: 28px 20px; }
  .blog-cta h3 { font-size: 1.1rem; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-table { font-size: 0.82rem; }
  .blog-table th, .blog-table td { padding: 10px 12px; }
}
