/* ==========================================================================
   VERDEPAMBA S.A.S. · MODELO 3: VIDEO & STORYTELLING
   Estilo Cinemático Editorial · 60fps Smooth Motion · Cero Emojis
   ========================================================================== */

:root {
  --color-bg-deep: #07100b;
  --color-bg-surface: #0e1e17;
  --color-bg-card: rgba(18, 36, 28, 0.82);
  --color-bg-card-hover: rgba(26, 52, 40, 0.94);
  --color-border: rgba(16, 185, 129, 0.18);
  --color-border-strong: rgba(16, 185, 129, 0.4);
  --color-border-glow: rgba(52, 211, 153, 0.6);

  --color-emerald-primary: #10b981;
  --color-emerald-light: #34d399;
  --color-emerald-dark: #064e3b;
  --color-gold-accent: #d4af37;
  --color-gold-light: #f3df8a;

  --color-text-white: #f8fafc;
  --color-text-body: #cbd5e1;
  --color-text-muted: #8e9e97;
  --color-text-inverse: #07100b;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --header-height: 86px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-cinematic: all 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-deep);
  color: var(--color-text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.theme-cinematic {
  position: relative;
  overflow-x: hidden;
  background-color: var(--color-bg-deep);
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────
   ACCESIBILIDAD Y SKIP LINK
   ────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-emerald-primary);
  color: #05140d;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* ──────────────────────────────────────────────────────────
   OVERLAYS CINEMÁTICOS & CURSOR DE PRECISIÓN
   ────────────────────────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald-primary), var(--color-gold-accent));
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 0 10px var(--color-emerald-light);
  transition: width 0.08s linear;
}

/* ──────────────────────────────────────────────────────────
   HEADER FIJO Y DEMO BAR (OBLIGATORIA)
   ────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(7, 16, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Banner superior demo-bar */
.demo-bar {
  background: rgba(4, 10, 7, 0.95);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.75rem;
  padding: 6px 1.5rem;
  color: #94a3b8;
}

.demo-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-bar-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.demo-pill {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-emerald-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.demo-text {
  color: #cbd5e1;
  font-weight: 400;
}

.demo-orig-link {
  color: var(--color-emerald-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(52, 211, 153, 0.4);
  transition: var(--transition-smooth);
}
.demo-orig-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Selector discreto de los 4 modelos */
.models-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.switcher-title {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  margin-right: 2px;
  font-family: var(--font-mono);
}

.model-pill-link {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.7rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  transition: var(--transition-smooth);
}
.model-pill-link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.model-pill-link.is-active {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.5);
  font-weight: 600;
}

/* Navegación principal */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 78, 59, 0.4));
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-emerald-light);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--color-text-white);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--color-emerald-light);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-item {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-emerald-primary);
  transition: width 0.3s ease;
}
.nav-item:hover {
  color: #ffffff;
}
.nav-item:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #041009;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 0.4rem;
  cursor: pointer;
}

/* ──────────────────────────────────────────────────────────
   INDICADOR FLOTANTE LATERAL DE CAPÍTULOS
   ────────────────────────────────────────────────────────── */
.chapters-hud {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hud-track {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: -1;
}

.hud-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  text-decoration: none;
  color: #64748b;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  background: rgba(14, 30, 23, 0.9);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  color: #cbd5e1;
  white-space: nowrap;
}

.hud-item:hover .hud-label,
.hud-item.is-active .hud-label {
  opacity: 1;
  transform: translateX(0);
}

.hud-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-bg-deep);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.hud-item.is-active .hud-dot {
  background: var(--color-emerald-light);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--color-emerald-primary);
  transform: scale(1.25);
}

.hud-item.is-active .hud-label {
  color: var(--color-emerald-light);
  border-color: var(--color-emerald-primary);
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN HERO CINEMÁTICO (60FPS CANVAS BACKGROUND)
   ────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 75% 30%, rgba(16, 185, 129, 0.08), transparent 60%),
              linear-gradient(180deg, rgba(7, 16, 11, 0.4) 0%, rgba(7, 16, 11, 0.85) 75%, var(--color-bg-deep) 100%),
              linear-gradient(90deg, rgba(7, 16, 11, 0.92) 0%, rgba(7, 16, 11, 0.6) 55%, rgba(7, 16, 11, 0.85) 100%);
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-emerald-light);
  margin-bottom: 1.5rem;
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-glow 2s infinite ease-in-out;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

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

.hero-title .title-highlight {
  color: var(--color-gold-light);
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
  display: block;
}

.hero-lead {
  font-size: 1.125rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 2.2rem;
}

.hero-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: rgba(14, 30, 23, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.hero-spec-item {
  display: flex;
  flex-direction: column;
}

.hero-spec-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 1.1;
}

.hero-spec-val .val-sub {
  font-size: 0.95rem;
  color: var(--color-emerald-light);
}

.hero-spec-lbl {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

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

/* Tarjeta HUD interactiva en Hero */
.hero-visual-hud {
  position: relative;
}

.hud-media-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  background: #09150e;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.hud-media-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.8s ease;
}

.hud-media-card:hover .hud-media-img {
  transform: scale(1.03);
}

.hud-overlay-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 16, 11, 0.1) 0%, rgba(7, 16, 11, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.hud-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-badge-cam {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.hud-telemetry {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-emerald-light);
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 8px;
  border-radius: 4px;
}

.hud-bottom-content {
  background: rgba(14, 30, 23, 0.88);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  padding: 1.25rem;
  border-radius: 12px;
  pointer-events: auto;
}

.hud-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.hud-card-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.hud-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-emerald-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.hud-card-btn:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────────────────
   BARRA DE PRESENTACIÓN NARRATIVA
   ────────────────────────────────────────────────────────── */
.storytelling-intro-strip {
  padding: 3rem 1.5rem;
  background: #091610;
  border-top: 1px solid rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
}

.storytelling-intro-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.intro-badge-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.intro-icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-emerald-light);
}

.intro-lead-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.intro-lead-desc {
  font-size: 0.85rem;
  color: #94a3b8;
}

.intro-metrics-row {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-emerald-light);
}

.metric-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────────────────────
   LOS 4 CAPÍTULOS DE SCROLLYTELLING
   ────────────────────────────────────────────────────────── */
.chapters-flow-wrapper {
  position: relative;
  background: var(--color-bg-deep);
}

.chapter-block {
  position: relative;
  min-height: 100vh;
  padding: 6rem 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.chapter-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.chapter-block.reverse-layout .chapter-container {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.chapter-block.reverse-layout .chapter-container > * {
  direction: ltr;
}

.chapter-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-emerald-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.chapter-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.chapter-description {
  font-size: 0.96rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.chapter-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(14, 30, 23, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.12);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}
.feature-point:hover {
  background: rgba(14, 30, 23, 0.8);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(4px);
}

.feature-icon-wrapper {
  color: var(--color-emerald-light);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.feature-title {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9rem;
}

.feature-detail {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 2px;
}

/* Contenedor multimedia del capítulo */
.chapter-media-wrapper {
  position: relative;
}

.chapter-media-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  background: #09150e;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.chapter-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-media-card:hover .chapter-img {
  transform: scale(1.04);
}

.chapter-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 16, 11, 0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.caption-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 4px;
}

.caption-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-emerald-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Cuadro interactivo dentro de capítulos */
.chapter-interactive-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(14, 30, 23, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: DISTRIBUCIÓN ARQUITECTÓNICA (INTERACTIVA)
   ────────────────────────────────────────────────────────── */
.arch-plans-section {
  padding: 6rem 1.5rem;
  background: #08140e;
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
}

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-emerald-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section-main-lead {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
}

.plans-toggle-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.plan-tab-btn {
  background: rgba(14, 30, 23, 0.7);
  color: #94a3b8;
  border: 1px solid var(--color-border);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.plan-tab-btn.is-active,
.plan-tab-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #ffffff;
  border-color: var(--color-emerald-light);
}

.plans-display-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.plan-view-card {
  position: relative;
  background: #0a1711;
  border: 1px solid var(--color-border-strong);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
}

.plan-schematic-mock {
  width: 100%;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px dashed rgba(16, 185, 129, 0.25);
  padding: 1.5rem;
}

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

.spec-mini-card {
  background: rgba(14, 30, 23, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  padding: 1.1rem;
}

.spec-mini-title {
  font-size: 0.8rem;
  color: var(--color-emerald-light);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.spec-mini-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.spec-mini-detail {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: SIMULADOR HIPOTECARIO VIS/VIP
   ────────────────────────────────────────────────────────── */
.calc-section {
  padding: 6rem 1.5rem;
  background: #07100b;
  position: relative;
}

.calc-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background: linear-gradient(145deg, rgba(14, 30, 23, 0.95), rgba(7, 16, 11, 0.98));
  border: 1px solid var(--color-border-strong);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75);
}

.calc-info-col h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.calc-highlight-pill {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.calc-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.banks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bank-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
}

/* Tarjeta interactiva del simulador */
.calc-card-interactive {
  background: rgba(10, 22, 16, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
}

.calc-field-group {
  margin-bottom: 1.5rem;
}

.calc-field-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-emerald-light);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-emerald-primary);
}

.calc-result-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.result-caption {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-cuota-big {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.35rem 0;
}

.result-cuota-big span {
  color: var(--color-emerald-light);
}

.result-legal-note {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN: ASESORÍA COMERCIAL Y CONTACTO DIRECTO
   ────────────────────────────────────────────────────────── */
.contact-section {
  padding: 6rem 1.5rem;
  background: #091610;
  border-top: 1px solid rgba(16, 185, 129, 0.12);
}

.contact-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.location-card {
  background: rgba(14, 30, 23, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.location-item:last-child {
  margin-bottom: 0;
}

.location-item svg {
  color: var(--color-emerald-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Formulario reactivo */
.contact-form-card {
  background: rgba(12, 26, 19, 0.95);
  border: 1px solid var(--color-border-strong);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(7, 16, 11, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-emerald-light);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.form-submit-btn {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ──────────────────────────────────────────────────────────
   FOOTER (CON AVISO SIMCODEC OBLIGATORIO)
   ────────────────────────────────────────────────────────── */
.site-footer {
  background: #040906;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  padding: 4rem 1.5rem 2rem;
  font-size: 0.85rem;
}

.footer-top {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-link:hover {
  color: var(--color-emerald-light);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-demo-notice {
  background: rgba(14, 30, 23, 0.7);
  border: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.footer-demo-text {
  color: #cbd5e1;
}

.footer-credits-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #475569;
  font-size: 0.75rem;
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hud-media-img {
    height: 380px;
  }
  .chapter-container,
  .chapter-block.reverse-layout .chapter-container {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }
  .plans-display-grid,
  .calc-container,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .chapters-hud {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-highlights-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .calc-container {
    padding: 2rem 1.25rem;
  }
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }
}
