/* ============================================================
   VOYA · HOME HUB SHOWCASE INTERACTIVO (assets/home.css)
   Dirección de Arte: Creative Technology (Apple / National Geographic)
   Componentes: Mapa Interactivo Perú, Calculador de Ahorro y Carrusel Cinemático
   ============================================================ */

:root {
  --jungle-black: #050B08;
  --jungle-dark: #07130D;
  --jungle-deep: #0D2218;
  --jungle-surface: #122B20;
  --jungle-border: rgba(247, 244, 235, 0.12);

  --paper-cream: #F8F5EE;
  --paper-sand: #F3EFE4;
  --paper-card: #FAF8F2;
  --paper-border: #E5DFC9;
  --paper-ink: #16201B;
  --paper-sub: #495A50;

  --terracotta: #D9532F;
  --terracotta-bright: #FF5C35;
  --terracotta-glow: rgba(255, 92, 53, 0.4);
  --gold-warm: #E59F3D;
  --mint-local: #219662;
  --mint-bright: #2DD287;
  --mint-glow: rgba(45, 210, 135, 0.35);

  --node-tarapoto: #2DD287;
  --node-paracas: #38BDF8;
  --node-huaraz: #E2E8F0;
  --node-cusco: #F59E0B;

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --r-card: 26px;
  --r-pill: 9999px;
}

body.home-body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--jungle-black);
  color: var(--paper-cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================================
   HEADER HOME
   ============================================================ */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 100;
  background: rgba(5, 11, 8, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--jungle-border);
  transition: background 0.3s ease;
}

.home-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-logo {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--terracotta-bright);
  text-decoration: none;
}
.home-logo span { color: var(--paper-cream); }

.home-logo-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(248, 245, 238, 0.6);
  border-left: 1px solid var(--jungle-border);
  padding-left: 14px;
  display: none;
}
@media (min-width: 768px) {
  .home-logo-tag { display: inline-block; }
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(248, 245, 238, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.home-nav-link:hover { color: #FFFFFF; }

.btn-header-destinos {
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-bright) 100%);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: 0 4px 18px var(--terracotta-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-header-destinos:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217, 83, 47, 0.55);
}

.btn-dest-short { display: none; }
.btn-dest-full { display: inline; }

.badge-text-short { display: none; }
.badge-text-full { display: inline; }

/* ============================================================
   1. HERO EDITORIAL CENTRADO RESTAURADO
   ============================================================ */
.home-hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 80px;
  overflow: hidden;
  text-align: center;
}

.home-hero-media {
  position: absolute;
  inset: -10% 0;
  height: 120%;
  z-index: 1;
  overflow: hidden;
  will-change: transform, opacity;
}

.home-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.04);
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  filter: brightness(0.62) saturate(1.15);
}

@keyframes heroKenBurns {
  0% { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1%, -1%); }
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(6, 14, 10, 0.45) 0%, rgba(6, 14, 10, 0.88) 75%, var(--jungle-black) 100%),
              linear-gradient(180deg, rgba(5, 11, 8, 0.4) 0%, rgba(5, 11, 8, 0.6) 50%, var(--jungle-black) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ENTRADA CINEMÁTICA ESCALONADA DE TEXTOS DEL HERO AL CARGAR */
.hero-manifesto-badge,
.home-hero-title,
.home-hero-sub,
.hero-quick-search-box,
.home-hero-stats {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.home-hero.hero-loaded .hero-manifesto-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.home-hero.hero-loaded .home-hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

.home-hero.hero-loaded .home-hero-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.34s;
}

.home-hero.hero-loaded .hero-quick-search-box {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.46s;
}

.home-hero.hero-loaded .home-hero-stats {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.58s;
}

.hero-manifesto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-warm);
  background: rgba(229, 159, 61, 0.12);
  border: 1px solid rgba(229, 159, 61, 0.28);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta-bright);
  box-shadow: 0 0 8px var(--terracotta-bright);
}

.home-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--paper-cream);
  margin: 0 0 22px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero-serif-accent {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-warm);
  font-size: 0.9em;
  margin-top: 6px;
}

.home-hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
  color: rgba(248, 245, 238, 0.88);
  max-width: 760px;
  margin: 0 auto 34px;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* BARRA FLOTANTE DE BÚSQUEDA RÁPIDA (Pill Capsule) */
.hero-quick-search-box {
  background: rgba(14, 34, 24, 0.88);
  border: 1px solid rgba(247, 244, 235, 0.22);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--r-pill);
  padding: 8px 10px 8px 22px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  flex-wrap: wrap;
  justify-content: center;
}

.search-intro-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-warm);
  display: flex;
  align-items: center;
  gap: 7px;
}

.quick-dest-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-dest-pill {
  background: rgba(248, 245, 238, 0.09);
  border: 1px solid rgba(248, 245, 238, 0.18);
  color: var(--paper-cream);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s var(--ease-cinematic);
}

.btn-dest-pill:hover,
.btn-dest-pill.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta-bright);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--terracotta-glow);
  transform: translateY(-2px);
}

.home-hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(248, 245, 238, 0.72);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   2. SECCIÓN DESTINOS (GRID EDITORIAL DE 4 PÓSTERS)
   ============================================================ */
.destinos-section {
  width: 100%;
  padding: 80px 0 100px;
  background: #07130D; /* Verde selva profundo de VOYA */
  position: relative;
}

.destinos-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* CABECERA ALINEADA Y EXPANSIVA */
.destinos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

.destinos-header .section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #D9532F;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.destinos-header .section-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: #FAF8F2;
  font-weight: 400;
  margin: 0;
}

.destinos-header .section-desc {
  max-width: 440px;
  color: rgba(250, 248, 242, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* GRID RESPONSIVO DE 4 DESTINOS */
.destinos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

/* TARJETA PÓSTER CON STAGGERED SCROLL REVEAL Y 3D TILT */
.dest-card {
  position: relative;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  background: #0D2218;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease, 
              border-color 0.4s ease;
  will-change: transform, opacity;
}

.dest-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.dest-card:hover {
  border-color: rgba(217, 83, 47, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.dest-card.card-highlight {
  border-color: #FF5C35 !important;
  box-shadow: 0 0 35px rgba(255, 92, 53, 0.45), 0 30px 60px rgba(0, 0, 0, 0.7) !important;
  transform: translateY(-8px) scale(1.02) !important;
}

/* PARALLAX WINDOW EN IMAGEN DE FONDO */
.dest-card-media {
  position: absolute;
  inset: -15% 0; /* 15% extra arriba y abajo para dar margen al parallax */
  width: 100%;
  height: 130%;
  overflow: hidden;
  z-index: 1;
}

.dest-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateY(0);
}

/* SCRIM GRADIENT: OSCURO ABAJO PARA LECTURA PERFECTA */
.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 19, 13, 0.4) 0%,
    rgba(7, 19, 13, 0.1) 40%,
    rgba(7, 19, 13, 0.85) 75%,
    rgba(7, 19, 13, 0.98) 100%
  );
}

/* BADGES SUPERIORES */
.dest-card-badges {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dest-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 19, 13, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FAF8F2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dest-pill.active {
  border-color: #219662;
  color: #4ade80;
}

/* CONTENIDO INFERIOR */
.dest-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.dest-region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #D9532F;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dest-title {
  font-family: 'Newsreader', serif;
  font-size: 1.85rem;
  font-weight: 500;
  color: #FAF8F2;
  margin: 0 0 8px;
  line-height: 1.15;
}

.dest-summary {
  font-size: 0.85rem;
  color: rgba(250, 248, 242, 0.75);
  line-height: 1.5;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ACCIONES ELEGANTE: BOTÓN SUTIL, NO PLÁSTICO TOSCO */
.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FAF8F2;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: #D9532F; /* Terracota de VOYA */
  transition: background 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.card-action-link:hover {
  background: #FF5C35;
  transform: translateX(4px);
}

.card-action-btn-wait {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(250, 248, 242, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
  transition: all 0.2s ease;
  font-family: inherit;
}

.card-action-btn-wait:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ============================================================
   3. EL "CALCULADOR DE DINERO PERDIDO" (CONVERSIÓN EDITORIAL SOBRIA)
   ============================================================ */
.savings-calculator-section {
  padding: 100px 0;
  background: var(--jungle-deep);
  border-top: 1px solid var(--jungle-border);
  border-bottom: 1px solid var(--jungle-border);
  position: relative;
}

.calculator-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.calc-editorial-header {
  text-align: center;
  margin-bottom: 40px;
}

.calc-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-warm);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.calc-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--paper-cream);
  margin: 0 0 12px;
  line-height: 1.15;
}

.calc-subhead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(248, 245, 238, 0.78);
  max-width: 640px;
  margin: 0 auto;
  text-wrap: balance;
}

/* Ficha / Tarjeta de Terreno en Papel Pergamino Sobrio */
.calculator-interactive-card {
  background: var(--paper-card);
  color: var(--paper-ink);
  border-radius: 24px;
  padding: 38px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--paper-border);
  border: 1px solid var(--paper-border);
}

@media (max-width: 600px) {
  .calculator-interactive-card {
    padding: 24px 18px;
  }
}

.calc-controls-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--paper-border);
}

@media (max-width: 768px) {
  .calc-controls-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--paper-ink);
}

.control-val-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(217, 83, 47, 0.08);
  padding: 3px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(217, 83, 47, 0.2);
}

/* Slider de Rango */
.calc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--paper-border);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 2px 8px rgba(217, 83, 47, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.calc-range-slider:active::-webkit-slider-thumb,
.calc-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.22);
  box-shadow: 0 0 16px rgba(217, 83, 47, 0.7);
}
.calc-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--terracotta);
  box-shadow: 0 2px 8px rgba(217, 83, 47, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.calc-range-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
}
.calc-range-slider:active::-moz-range-thumb,
.calc-range-slider::-moz-range-thumb:active {
  transform: scale(1.22);
  box-shadow: 0 0 16px rgba(217, 83, 47, 0.7);
}

/* Selector Viajeros */
.calc-persons-pill-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-calc-person {
  background: var(--paper-sand);
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  padding: 9px 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-ink);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-calc-person:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn-calc-person.is-active {
  background: rgba(217, 83, 47, 0.1);
  border-color: var(--terracotta);
  color: var(--terracotta);
  font-weight: 700;
}

/* Comparativa de Cifras Sobria / Paleta Papel y Terreno */
.calc-comparison-stage {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 860px) {
  .calc-comparison-stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.comparison-column {
  padding: 22px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Columna Agencia: Papel cálido neutro, datos con tono sepia/carbón */
.col-agency {
  background: #F4EFE6;
  border: 1px solid #DFD5C2;
}
.col-agency .col-tag {
  color: #7A3D36;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.col-agency .col-amount {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: #5C3834;
  letter-spacing: -0.02em;
}
.col-agency .col-desc {
  font-size: 12.5px;
  color: #6C5D52;
  line-height: 1.45;
  margin: 0;
}

/* Columna VOYA: Papel marfil limpio con ribete botánico sutil */
.col-voya {
  background: #FAF8F2;
  border: 1.5px solid #2D6A4F;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.06);
}
.col-voya .col-tag {
  color: #1A5336;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.col-voya .col-amount {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: #164830;
  letter-spacing: -0.02em;
}
.col-voya .col-desc {
  font-size: 12.5px;
  color: #3B5A49;
  line-height: 1.45;
  margin: 0;
}

/* Columna Ahorro: Verde bosque profundo / Fondo oscuro sobrio */
.col-savings {
  background: #0E2319;
  color: var(--paper-cream);
  border: 1px solid rgba(229, 159, 61, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  will-change: transform;
}

.col-savings.savings-pulse {
  animation: savingsCardPulse 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes savingsCardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.028); box-shadow: 0 12px 30px rgba(217, 83, 47, 0.35); }
  100% { transform: scale(1); }
}
.col-savings .col-tag {
  color: var(--gold-warm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.col-savings .col-amount {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: #EAE6DF;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.col-savings .col-badge-pct {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(229, 159, 61, 0.16);
  color: #F3CA8A;
  border: 1px solid rgba(229, 159, 61, 0.3);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.btn-calc-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-bright) 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: 0 6px 20px var(--terracotta-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-calc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 83, 47, 0.55);
}

/* ============================================================
   4. EL SUPERPODER VOYA (DEMOSTRACIÓN VISUAL CON PREVIEWS)
   ============================================================ */
.superpower-section {
  padding: 110px 24px 130px;
  background: var(--jungle-black);
  border-top: 1px solid var(--jungle-border);
  border-bottom: 1px solid var(--jungle-border);
}

.superpower-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.superpower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 54px;
}

.superpower-card {
  background: rgba(18, 43, 32, 0.65);
  border: 1px solid var(--jungle-border);
  border-radius: var(--r-card);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.superpower-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.superpower-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 83, 47, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* SPOTLIGHT GLOW AMBIENTAL CENTRADO EN EL CURSOR */
.superpower-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--glow-x, -200px) var(--glow-y, -200px),
    rgba(255, 92, 53, 0.09),
    transparent 80%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.superpower-card:hover::before {
  opacity: 1;
}

.superpower-card > * {
  position: relative;
  z-index: 2;
}

.superpower-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.superpower-number {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 800;
  color: var(--terracotta);
  line-height: 1;
}

.superpower-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-warm);
  text-transform: uppercase;
}

.superpower-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--paper-cream);
  margin: 0 0 12px;
}

.superpower-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(248, 245, 238, 0.8);
  margin: 0 0 24px;
  flex: 1;
}

.superpower-preview-box {
  background: rgba(6, 14, 10, 0.85);
  border: 1px solid rgba(248, 245, 238, 0.14);
  border-radius: 16px;
  padding: 18px;
  overflow: hidden;
}

.map-snippet-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.snippet-radar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-cream);
}
.snippet-radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta-bright);
  box-shadow: 0 0 10px var(--terracotta-bright);
}
.snippet-svg-mini {
  width: 100%;
  height: 60px;
}
.snippet-alert-note {
  font-size: 12px;
  line-height: 1.45;
  color: #4EE2A2;
  background: rgba(33, 150, 98, 0.12);
  border-left: 2.5px solid var(--mint-local);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
  margin: 0;
}

.compiler-snippet-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.snippet-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.snippet-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(217, 83, 47, 0.15);
  border: 1px solid rgba(217, 83, 47, 0.4);
  color: var(--terracotta-bright);
}
.snippet-calc-result {
  background: rgba(248, 245, 238, 0.05);
  border: 1px dashed rgba(248, 245, 238, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-highlight {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-warm);
}
.calc-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(248, 245, 238, 0.6);
}

.offline-snippet-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offline-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(248, 245, 238, 0.85);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(248, 245, 238, 0.1);
}
.offline-badge-green {
  color: #4EE2A2;
  font-weight: 700;
}
.offline-spots-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.offline-spot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(248, 245, 238, 0.8);
}
.offline-spot-item span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.offline-check-icon {
  color: var(--mint-bright);
  font-size: 11px;
}

/* ============================================================
   5. MICRO-MODAL DE LISTA DE ESPERA / WHATSAPP
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--paper-card);
  color: var(--paper-ink);
  border-radius: 26px;
  max-width: 520px;
  width: 100%;
  padding: 38px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-cinematic);
}
.modal-overlay.is-open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--paper-sub);
  cursor: pointer;
  padding: 4px;
}

.modal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(217, 83, 47, 0.1);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--paper-ink);
  margin: 0 0 12px;
  line-height: 1.25;
}

.modal-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper-sub);
  margin: 0 0 24px;
}

.btn-modal-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}
.btn-modal-whatsapp:hover {
  transform: translateY(-2px);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-sub);
  font-size: 12px;
  margin-bottom: 18px;
}
.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--paper-border);
}

.modal-form {
  display: flex;
  gap: 10px;
}

.modal-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--paper-border);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  color: var(--paper-ink);
  outline: none;
}
.modal-input:focus {
  border-color: var(--terracotta);
}

.btn-modal-submit {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--terracotta);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.modal-feedback {
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-local);
  margin-top: 12px;
}

/* ============================================================
   6. FOOTER EDITORIAL
   ============================================================ */
.home-footer {
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid var(--jungle-border);
  background: var(--jungle-black);
}

.home-footer-inner {
  max-width: 680px;
  margin: 0 auto;
}

.home-footer-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.home-footer-logo span { color: var(--paper-cream); }

.home-footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  margin: 0 0 16px;
  color: rgba(248, 245, 238, 0.85);
  line-height: 1.5;
}

.home-footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(248, 245, 238, 0.4);
}

/* ============================================================
   7. OPTIMIZACIÓN RESPONSIVA MÓVIL DE ALTA FIDELIDAD
   ============================================================ */
@media (max-width: 768px) {
  .home-header-inner {
    padding: 0 4px;
  }
  
  .home-nav-link {
    display: none;
  }
}

@media (max-width: 640px) {
  /* HEADER */
  .home-header {
    padding: 12px 16px;
  }

  .home-logo {
    font-size: 22px;
  }

  .home-nav {
    gap: 8px;
  }

  .home-nav-link {
    display: none;
  }

  .btn-dest-full {
    display: none;
  }

  .btn-dest-short {
    display: inline;
  }

  .btn-header-destinos {
    font-size: 11.5px;
    padding: 6px 14px;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 2px 10px var(--terracotta-glow);
  }

  /* HERO */
  .home-hero {
    min-height: auto;
    padding: 78px 16px 36px;
  }

  .hero-manifesto-badge {
    font-size: 9.5px;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    gap: 6px;
    margin-bottom: 14px;
    max-width: 96%;
    justify-content: center;
  }

  .badge-text-full {
    display: none;
  }

  .badge-text-short {
    display: inline;
    white-space: nowrap;
  }

  .badge-pulse {
    width: 6px;
    height: 6px;
  }

  .home-hero-title {
    font-size: clamp(26px, 7.5vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
  }

  .hero-serif-accent {
    font-size: 0.94em;
    margin-top: 3px;
  }

  .home-hero-sub {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 auto 18px;
    max-width: 100%;
    color: rgba(248, 245, 238, 0.85);
  }

  /* CAPSULA DE BÚSQUEDA RÁPIDA: ELIMINA EL HUEVO DEFORME */
  .hero-quick-search-box {
    width: 100%;
    max-width: 340px;
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    background: rgba(12, 28, 20, 0.92);
  }

  .search-intro-label {
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .quick-dest-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .btn-dest-pill {
    width: 100%;
    padding: 9px 6px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    border-radius: 10px;
  }

  .home-hero-stats {
    margin-top: 18px;
    gap: 6px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-pill {
    font-size: 10.5px;
    padding: 4px 10px;
  }

  /* CATÁLOGO DESTINOS */
  .destinos-section {
    padding: 50px 0 60px;
  }

  .destinos-container {
    padding: 0 16px;
  }

  .destinos-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .destinos-header .section-title {
    font-size: 1.85rem;
  }

  .destinos-header .section-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .dest-card {
    height: 480px;
    padding: 20px;
    border-radius: 18px;
  }

  .dest-title {
    font-size: 1.65rem;
  }

  /* CALCULADOR DE AHORRO */
  .savings-calculator-section {
    padding: 50px 16px 60px;
  }

  .calc-editorial-header {
    margin-bottom: 20px;
  }

  .calc-headline {
    font-size: 1.85rem;
  }

  .calc-subhead {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .calculator-interactive-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .calc-controls-grid {
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .control-name {
    font-size: 13.5px;
  }

  .control-val-badge {
    font-size: 12px;
    padding: 2px 10px;
  }

  .calc-persons-pill-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .btn-calc-person {
    padding: 9px 4px;
    font-size: 12px;
  }

  .calc-comparison-stage {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .comparison-column {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .col-agency .col-amount,
  .col-voya .col-amount {
    font-size: 25px;
  }

  .col-savings .col-amount {
    font-size: 28px;
  }

  .btn-calc-cta {
    padding: 13px 14px;
    font-size: 13px;
    justify-content: center;
    width: 100%;
    border-radius: 12px;
  }

  /* EL SUPERPODER */
  .superpower-section {
    padding: 50px 16px 60px;
  }

  .superpower-section .section-title {
    font-size: 1.85rem;
  }

  .superpower-section .section-desc {
    font-size: 13.5px;
  }

  .superpower-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .superpower-card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .superpower-number {
    font-size: 30px;
  }

  .superpower-title {
    font-size: 20px;
  }

  .superpower-desc {
    font-size: 13.5px;
    margin-bottom: 18px;
  }

  /* FOOTER */
  .home-footer {
    padding: 44px 16px;
  }

  .home-footer-logo {
    font-size: 22px;
  }

  .home-footer-quote {
    font-size: 14.5px;
  }
}
