/**
 * ESTILOS DE LA PÁGINA "EL PROYECTO VÍAS DEL NUS" (REDiseño MODERNO & ATRACTIVO)
 * Concesión Vías del Nus - Vinus S.A.S.
 *
 * Arquitectura visual:
 * 1. Hero estándar (acciones y centrado)
 * 2. Editorial Storytelling "El Sueño Centenario" con Heritage Badge
 * 3. Showcase Asimétrico de Intervención Integral
 * 4. Pipeline Logístico del Siglo XXI (Medellín - Caribe)
 * 5. Bento Grid Dinámico para Beneficios del Proyecto
 * 6. Cockpit Banner para Tramos Concesionados y ANIscopio
 *
 * @author  Mateo Jaramillo Suarez
 * @email   teojaramillosuarez@gmail.com
 * @phone   3157456196
 */

/* ==========================================================================
   1. VARIABLES & BASE DEL PROYECTO
   ========================================================================== */
:root {
  --py-primary: #004785;
  --py-primary-dark: #002b53;
  --py-primary-light: #0079c2;
  --py-accent-amber: #f59e0b;
  --py-accent-emerald: #10b981;
  --py-accent-cyan: #06b6d4;
  --py-dark-bg: #0b1526;
  --py-surface: #ffffff;
  --py-surface-alt: #f8fafc;
  --py-border: #e2e8f0;
  --py-text-dark: #0f172a;
  --py-text-body: #334155;
  --py-text-muted: #64748b;
  --py-radius-sm: 8px;
  --py-radius-md: 14px;
  --py-radius-lg: 22px;
  --py-radius-xl: 30px;
  --py-shadow-card: 0 10px 30px -10px rgba(0, 71, 133, 0.08), 0 2px 10px rgba(0, 0, 0, 0.03);
  --py-shadow-hover: 0 20px 40px -12px rgba(0, 71, 133, 0.16), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.proyecto-page-wrap {
  background-color: #fafbfc;
  color: var(--py-text-body);
  overflow-x: hidden;
  font-family: var(--font-main, 'Montserrat', sans-serif);
}

/* ==========================================================================
   3. SECCIÓN EDITORIAL: EL SUEÑO CENTENARIO (1921 - 2021)
   ========================================================================== */
.proyecto-editorial-section {
  padding: 85px 0 75px;
  background: #ffffff;
}

.proyecto-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.editorial-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--py-primary-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
}

.editorial-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 3px;
  background: var(--py-primary-light);
  border-radius: 2px;
}

.editorial-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--py-text-dark);
  line-height: 1.22;
  margin-bottom: 22px;
}

.editorial-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--py-text-body);
  margin-bottom: 18px;
}

.editorial-text strong {
  color: var(--py-text-dark);
}

/* Heritage Box con acento bronce/oro histórico */
.editorial-heritage-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 6px solid #d97706;
  border-radius: var(--py-radius-md);
  padding: 24px 28px;
  margin: 30px 0 10px;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.08);
}

.heritage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.heritage-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #d97706;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heritage-title {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.heritage-quote {
  font-size: 15px;
  line-height: 1.7;
  color: #78350f;
  margin: 0;
  font-style: italic;
}

.heritage-quote strong {
  color: #451a03;
}

/* Columna Visual de la historia */
.editorial-visual-wrap {
  position: relative;
}

.editorial-visual-frame {
  position: relative;
  border-radius: var(--py-radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 43, 83, 0.25);
  border: 1px solid var(--py-border);
}

.editorial-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.editorial-visual-frame:hover .editorial-img {
  transform: scale(1.04);
}

.editorial-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.88) 100%);
}

.editorial-visual-caption {
  position: absolute;
  bottom: 26px;
  left: 26px;
  right: 26px;
  color: #ffffff;
  z-index: 2;
}

.editorial-badge-date {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.editorial-caption-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.editorial-caption-sub {
  font-size: 13.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   4. SHOWCASE DE INTERVENCIÓN INTEGRAL (INFRAESTRUCTURA 4G)
   ========================================================================== */
.proyecto-obras-section {
  padding: 85px 0 90px;
  background: #f8fafc;
  position: relative;
}

.section-header-modern {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 55px;
}

.section-tag-pill {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-header-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  color: var(--py-text-dark);
  line-height: 1.2;
  margin: 0 0 16px;
}

.section-header-lead {
  font-size: 16px;
  color: var(--py-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Layout Asimétrico de Obras */
.obras-asymmetric-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

/* Tarjeta Hero del Túnel de La Quiebra con imagen real de fondo */
.obra-hero-card {
  position: relative;
  border-radius: var(--py-radius-xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  color: #ffffff;
  box-shadow: var(--py-shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.obra-hero-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--py-shadow-hover);
}

.obra-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.obra-hero-card:hover .obra-hero-bg {
  transform: scale(1.05);
}

.obra-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.94) 85%);
}

.obra-hero-content {
  position: relative;
  z-index: 2;
}

.obra-hero-tag {
  display: inline-block;
  background: #f59e0b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.obra-hero-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 14px;
}

.obra-hero-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 24px;
  max-width: 580px;
}

.obra-hero-specs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-spec-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Columna Derecha: 3 Tarjetas de Intervención */
.obras-stack-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.obra-stack-card {
  background: #ffffff;
  border: 1px solid var(--py-border);
  border-radius: var(--py-radius-lg);
  padding: 26px 28px;
  box-shadow: var(--py-shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.obra-stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--py-primary);
  border-radius: 4px 0 0 4px;
}

.obra-stack-card:hover {
  transform: translateX(6px);
  box-shadow: var(--py-shadow-hover);
  border-color: #cbd5e1;
}

.obra-stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.obra-stack-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--py-primary-light);
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: 14px;
}

.obra-stack-dist {
  font-size: 15px;
  font-weight: 900;
  color: var(--py-primary);
}

.obra-stack-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--py-text-dark);
  margin: 0 0 8px;
  line-height: 1.35;
}

.obra-stack-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--py-text-muted);
  margin: 0;
}

/* ==========================================================================
   5. PIPELINE LOGÍSTICO Y CONECTIVIDAD DEL SIGLO XXI
   ========================================================================== */
.proyecto-logistica-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #0b1526 0%, #002b53 50%, #004785 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.logistica-glow-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.logistica-glow-2 {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.logistica-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.logistica-header .section-tag-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.logistica-header .section-header-title {
  color: #ffffff;
}

.logistica-header .section-header-lead {
  color: #cbd5e1;
}

/* Diagrama de Ruta Estratégica (Pipeline Horizontal) */
.route-pipeline-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--py-radius-xl);
  padding: 34px 28px;
  backdrop-filter: blur(12px);
}

.route-pipeline-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #38bdf8;
  text-align: center;
  margin-bottom: 24px;
}

.route-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.route-step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--py-radius-md);
  padding: 20px 18px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}

.route-step-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.route-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.route-step-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.route-step-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Dos Columnas de Contenido de Transporte */
.logistica-narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.logistica-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--py-radius-lg);
  padding: 34px;
  backdrop-filter: blur(10px);
}

.logistica-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logistica-card h3 svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.logistica-card p {
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.logistica-card p:last-child {
  margin-bottom: 0;
}

.logistica-card strong {
  color: #ffffff;
}

/* ==========================================================================
   6. BENTO GRID DINÁMICO DE BENEFICIOS (MODERNO, ATRACTIVO Y NO REPETITIVO)
   ========================================================================== */
.proyecto-beneficios-wrap {
  padding: 95px 0 90px;
  background: #ffffff;
}

.bento-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Tarjeta Bento Base */
.bento-item {
  background: #ffffff;
  border: 1px solid var(--py-border);
  border-radius: var(--py-radius-xl);
  padding: 34px;
  box-shadow: var(--py-shadow-card);
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--py-shadow-hover);
  border-color: #cbd5e1;
}

/* Bento 1: Super Card Conectividad Nacional (Span 8) */
.bento-conectar {
  grid-column: span 8;
  background: linear-gradient(135deg, #004785 0%, #002b53 100%);
  color: #ffffff;
  border-color: transparent;
}

.bento-conectar .bento-kicker {
  color: #38bdf8;
}

.bento-conectar .bento-title {
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 28px);
}

.bento-conectar .bento-text {
  color: #cbd5e1;
  font-size: 15.5px;
}

.bento-conectar .bento-dual-benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.dual-benefit-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--py-radius-md);
  padding: 18px;
}

.dual-benefit-box h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #7dd3fc;
  margin: 0 0 6px;
}

.dual-benefit-box p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0;
}

/* Bento 2: Hito Subterráneo Túneles (Span 4) */
.bento-tunel {
  grid-column: span 4;
  background-color: var(--py-dark-bg);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  position: relative;
  justify-content: flex-end;
  min-height: 380px;
}

.bento-tunel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.15);
  transition: transform 0.6s ease;
}

.bento-tunel:hover .bento-tunel-bg {
  transform: scale(1.06);
}

.bento-tunel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.95) 85%);
}

.bento-tunel-content {
  position: relative;
  z-index: 2;
}

.bento-tunel .bento-kicker {
  color: #f59e0b;
}

.bento-tunel .bento-title {
  color: #ffffff;
  font-size: 22px;
}

.bento-tunel .bento-text {
  color: #e2e8f0;
}

/* Bento 3: Reducción de Tiempos y Costos (Span 4) */
.bento-eficiencia {
  grid-column: span 4;
  border-top: 5px solid var(--py-accent-amber);
}

.bento-eficiencia .bento-icon {
  background: #fef3c7;
  color: #d97706;
}

/* Bento 4: Desarrollo Económico Zonas Aledañas (Span 4) */
.bento-economia {
  grid-column: span 4;
  border-top: 5px solid var(--py-accent-emerald);
}

.bento-economia .bento-icon {
  background: #d1fae5;
  color: #059669;
}

/* Bento 5: Generación de Empleos Directos e Indirectos (Span 4) */
.bento-empleo {
  grid-column: span 4;
  border-top: 5px solid #6366f1;
}

.bento-empleo .bento-icon {
  background: #e0e7ff;
  color: #4f46e5;
}

/* Bento 6: Seguridad Vial de Vanguardia (Span 6) */
.bento-seguridad {
  grid-column: span 6;
  border-top: 5px solid #0284c7;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.bento-seguridad .bento-icon {
  background: #e0f2fe;
  color: #0284c7;
}

/* Bento 7: 24.3 km de Doble Calzada (Span 6) */
.bento-doblecalzada {
  grid-column: span 6;
  border-top: 5px solid #004785;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.bento-doblecalzada .bento-icon {
  background: #e2e8f0;
  color: #004785;
}

/* Elementos Internos de Bento Cards */
.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.bento-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--py-primary-light);
  margin-bottom: 8px;
  display: block;
}

.bento-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--py-text-dark);
  line-height: 1.3;
  margin: 0 0 12px;
}

.bento-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--py-text-body);
  margin: 0;
}

/* ==========================================================================
   7. COCKPIT DE NAVEGACIÓN (TRAMOS UF & ANISCOPIO)
   ========================================================================== */
.proyecto-cta-wrap {
  padding: 0 0 90px;
  background: #ffffff;
}

.cockpit-banner {
  background: linear-gradient(135deg, #001f3f 0%, #003366 45%, #004785 100%);
  border-radius: var(--py-radius-xl);
  padding: 55px 50px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 31, 63, 0.4);
}

.cockpit-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cockpit-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 12px;
}

.cockpit-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 14px;
}

.cockpit-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
  max-width: 600px;
}

.cockpit-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.btn-cockpit-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: var(--py-radius-md);
  text-align: center;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-cockpit-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

.btn-cockpit-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--py-radius-md);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-cockpit-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}

/* ==========================================================================
   8. RESPONSIVIDAD & ADAPTABILIDAD
   ========================================================================== */
@media (max-width: 1024px) {
  .proyecto-editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .editorial-visual-wrap {
    order: -1;
  }

  .editorial-img {
    height: 380px;
  }

  .obras-asymmetric-grid {
    grid-template-columns: 1fr;
  }

  .obra-hero-card {
    min-height: 420px;
  }

  .route-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-conectar {
    grid-column: span 12;
  }

  .bento-tunel {
    grid-column: span 12;
    min-height: 340px;
  }

  .bento-eficiencia,
  .bento-economia,
  .bento-empleo {
    grid-column: span 6;
  }

  .cockpit-banner {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .route-steps-grid {
    grid-template-columns: 1fr;
  }

  .logistica-narrative-grid {
    grid-template-columns: 1fr;
  }

  .bento-eficiencia,
  .bento-economia,
  .bento-empleo,
  .bento-seguridad,
  .bento-doblecalzada {
    grid-column: span 12;
  }

  .bento-conectar .bento-dual-benefit {
    grid-template-columns: 1fr;
  }

  .obra-hero-card {
    padding: 28px 22px;
  }

  .obra-stack-card {
    padding: 22px 20px;
  }

  .cockpit-actions {
    width: 100%;
  }
}

/* ==========================================================================
   MAPA INTERACTIVO DEL PROYECTO 4G VÍAS DEL NUS (157.4 KM)
   ========================================================================== */
.proyecto-mapa-section {
  padding: 85px 0 95px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.mapa-header-block {
  margin-bottom: 28px;
}

.tag-mapa {
  background: linear-gradient(135deg, #004785 0%, #0079c2 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 1.2px;
}

/* Barra de Filtros y Herramientas */
.mapa-controls-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mapa-uf-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-map-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-family: inherit;
}

.btn-map-filter:hover {
  border-color: #004785;
  color: #004785;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 71, 133, 0.12);
}

.btn-map-filter.active {
  background: #004785;
  color: #ffffff;
  border-color: #004785;
  box-shadow: 0 6px 18px rgba(0, 71, 133, 0.28);
  transform: translateY(-1px);
}

.filter-count {
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 71, 133, 0.1);
  color: #004785;
  padding: 2px 7px;
  border-radius: 12px;
}

.btn-map-filter.active .filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.dot-uf6 { background-color: #facc15; color: #facc15; }
.dot-uf1 { background-color: #ef4444; color: #ef4444; }
.dot-uf2 { background-color: #0ea5e9; color: #0ea5e9; }
.dot-uf3 { background-color: #84cc16; color: #84cc16; }
.dot-uf4 { background-color: #9333ea; color: #9333ea; }
.dot-uf5 { background-color: #f97316; color: #f97316; }

/* Herramientas derechas y botones creativos */
.mapa-view-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botones Creativos e Interactivos */
.btn-creative-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-family: inherit;
  outline: none;
}

.creative-icon {
  font-size: 15px;
  line-height: 1;
}

/* Botón Tour Recorrido Virtual */
.btn-tour {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}

.btn-tour:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.3);
  border-color: #facc15;
  color: #ffffff;
}

/* Botón Flujo de Tráfico Animado */
.btn-traffic {
  background: #ffffff;
  color: #0369a1;
  border-color: #93c5fd;
}

.btn-traffic.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-traffic:hover {
  transform: translateY(-2px);
}

/* Botón Planear Ruta & Ahorro */
.btn-planner {
  background: #ffffff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.btn-planner:hover, .btn-planner.active {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}

.mapa-select-basemap {
  padding: 8px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.mapa-select-basemap:focus {
  border-color: #004785;
}

.btn-map-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-map-tool:hover {
  background: #004785;
  color: #ffffff;
  border-color: #004785;
  transform: translateY(-1px);
}

/* Marco del Mapa Interactivo */
.mapa-interactive-frame {
  position: relative;
  width: 100%;
  height: 680px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 35, 75, 0.22);
  border: 2.5px solid #cbd5e1;
  background: #dbeafe;
}

.mapa-leaflet-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Leyenda Flotante */
.mapa-floating-legend {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 20, 50, 0.16);
  max-width: 320px;
  pointer-events: auto;
}

.legend-header {
  margin-bottom: 10px;
}

.legend-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f172a;
}

.legend-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legend-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.legend-bar {
  width: 18px;
  height: 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.bar-uf6 { background: #facc15; }
.bar-uf1 { background: #ef4444; }
.bar-uf2 { background: #0ea5e9; }
.bar-uf3 { background: #84cc16; }
.bar-uf4 { background: #9333ea; }
.bar-uf5 { background: #f97316; }

.legend-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 10px 0;
}

.legend-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.legend-icon-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.icon-dot-peaje { width: 9px; height: 9px; border-radius: 50%; background: #dc2626; }
.icon-dot-tunel { width: 9px; height: 9px; border-radius: 50%; background: #059669; }
.icon-dot-cco { width: 9px; height: 9px; border-radius: 50%; background: #0284c7; }

/* Ficha Técnica Flotante (Drawer) */
.mapa-tramo-drawer {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 22px 24px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 14px 40px rgba(0, 25, 60, 0.22);
  max-width: 380px;
  pointer-events: auto;
  animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #004785;
  box-shadow: 0 0 8px currentColor;
}

.drawer-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-close-drawer:hover {
  color: #0f172a;
}

.drawer-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.drawer-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 8px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.drawer-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.drawer-footer {
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}

.drawer-tip {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

/* MARCADORES PERSONALIZADOS LEAFLET */
/* Insignias de UF (UF6, UF1, etc.) */
.vinus-uf-badge-icon {
  background: transparent;
  border: none;
}

.uf-badge-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.2px;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.45), 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.uf-badge-pill:hover {
  transform: scale(1.15);
}

/* Túnel de La Quiebra */
.poi-tunnel-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #083344 0%, #0e7490 100%);
  color: #ffffff;
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
  border: 2.5px solid #00e5ff;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.65), 0 6px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poi-tunnel-wrap:hover {
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.9), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.poi-tunnel-badge {
  display: grid;
  place-items: center;
}

.poi-tunnel-label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Peajes */
.poi-toll-wrap {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #dc2626;
  color: #ffffff;
  padding: 0;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5), 0 0 0 2px rgba(220, 38, 38, 0.2);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.poi-toll-wrap:hover {
  transform: scale(1.16);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.7), 0 0 0 4px rgba(220, 38, 38, 0.28);
}

.poi-toll-badge {
  display: grid;
  place-items: center;
}

.poi-toll-label {
  display: none;
}

/* CCO */
.poi-cco-wrap {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #0284c7;
  color: #ffffff;
  padding: 0;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5), 0 0 0 2px rgba(2, 132, 199, 0.2);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.poi-cco-wrap:hover {
  transform: scale(1.16);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.7), 0 0 0 4px rgba(2, 132, 199, 0.28);
}

.poi-cco-badge {
  display: grid;
  place-items: center;
}

.poi-cco-label {
  display: none;
}

/* Básculas de Pesaje Vehicular */
.poi-scale-wrap {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #d97706;
  color: #ffffff;
  padding: 0;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5), 0 0 0 2px rgba(217, 119, 6, 0.2);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.poi-scale-wrap:hover {
  transform: scale(1.16);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.7), 0 0 0 4px rgba(217, 119, 6, 0.28);
}

.poi-scale-badge {
  display: grid;
  place-items: center;
}

.poi-scale-label {
  display: none;
}

.tag-scale { color: #d97706; }
.icon-dot-bascula { width: 9px; height: 9px; border-radius: 50%; background: #d97706; }

/* Etiquetas de Municipios */
.vinus-city-label span {
  font-size: 11.5px;
  font-weight: 800;
  color: #1e293b;
  text-shadow: 0 0 3px #ffffff, 0 0 6px #ffffff, 0 1px 2px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  letter-spacing: -0.1px;
}

/* Tooltip y Popup */
.vinus-map-tooltip {
  background: #002b53 !important;
  color: #ffffff !important;
  border: 1px solid #ffca28 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  font-family: inherit !important;
}

.vinus-popup-card {
  padding: 6px 2px;
  font-family: inherit;
}

.popup-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tag-toll { color: #dc2626; }
.tag-cco { color: #0284c7; }

.popup-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.popup-desc {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.popup-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #004785;
  text-decoration: underline;
}

.btn-popup-call {
  display: inline-block;
  padding: 6px 14px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}

/* ==========================================================================
   ESTILOS CREATIVOS DEL MAPA (HUD TOUR, PLANIFICADOR, TRÁFICO ANIMADO Y FOTOS)
   ========================================================================== */

/* 1. HUD FLOTANTE DEL RECORRIDO VIRTUAL (DASHBOARD 4G) */
.mapa-tour-hud {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 640px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.2);
  z-index: 600;
  color: #ffffff;
  animation: hudSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes hudSlideDown {
  from { opacity: 0; transform: translate(-50%, -20px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.tour-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.tour-hud-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 3px 9px;
  border-radius: 10px;
  margin-bottom: 5px;
}

.tour-hud-milestone {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.25;
}

.tour-hud-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.tour-hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-tour-ctrl {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-tour-ctrl:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #38bdf8;
  transform: scale(1.05);
}

.btn-tour-close {
  font-size: 20px;
  padding: 4px 10px;
  line-height: 1;
  color: #f87171;
}

.btn-tour-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.tour-hud-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.tour-hud-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #facc15 0%, #06b6d4 50%, #10b981 100%);
  border-radius: 6px;
  box-shadow: 0 0 10px #06b6d4;
  transition: width 0.2s ease;
}

.tour-hud-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
}

/* 2. PANEL PLANIFICADOR DE RUTA Y AHORRO */
.mapa-route-planner {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 550;
  width: calc(100% - 48px);
  max-width: 390px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 22px 24px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 18px 45px rgba(0, 25, 65, 0.24);
  pointer-events: auto;
  animation: plannerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes plannerSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.planner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.planner-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #4f46e5;
  background: #e0e7ff;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.planner-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
}

.planner-selectors {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.planner-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 5px;
}

.planner-select {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.planner-select:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.planner-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.planner-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.stat-lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 3px;
}

.stat-val {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: #004785;
  line-height: 1.2;
}

.stat-sub {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  margin-top: 3px;
}

.stat-time .stat-val { color: #0284c7; }

.btn-planner-trace {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: linear-gradient(135deg, #004785 0%, #0079c2 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 71, 133, 0.25);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-planner-trace:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 71, 133, 0.4);
}

/* 3. SOMBRA REALISTA ELEVADA 3D Y PULSOS VIALES ANIMADOS */
.vinus-shadow-polyline {
  filter: drop-shadow(0 10px 14px rgba(0, 20, 50, 0.55)) blur(3.5px);
  opacity: 0.5 !important;
  pointer-events: none;
}

.vinus-road-polyline {
  transition: stroke-width 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 15, 40, 0.35));
}

/* Pulsos de tráfico continuos en la vía */
.traffic-pulse-line {
  stroke-dasharray: 10, 24 !important;
  stroke-linecap: round !important;
  animation: trafficPulse 1.6s linear infinite !important;
  pointer-events: none;
}

@keyframes trafficPulse {
  0% { stroke-dashoffset: 34; }
  100% { stroke-dashoffset: 0; }
}

/* 4. MARCADOR DE VEHÍCULO ANIMADO EN EL TOUR */
.tour-car-icon {
  background: transparent;
  border: none;
}

.tour-car-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 3px solid #ffffff;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6);
  position: relative;
  animation: tourCarGlow 1.4s ease-in-out infinite alternate;
}

@keyframes tourCarGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  100% { transform: scale(1.12); box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
}

/* 5. ETIQUETAS DE TEXTO SOBRE LA VÍA (IDÉNTICAS A LA IMAGEN) */
.vinus-geo-label-primary span {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0f172a;
  text-shadow: 0 0 4px #ffffff, 0 0 8px #ffffff, 0 0 12px #ffffff, 0 2px 3px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.vinus-road-shield span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.2px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* 6. POPUPS CON FOTO REAL */
.popup-photo-card {
  width: 250px;
  margin: -6px -2px -2px;
  font-family: inherit;
}

.popup-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}

.popup-photo-content {
  padding: 10px 12px 12px;
}

/* Responsividad del Mapa */
@media (max-width: 992px) {
  .mapa-interactive-frame {
    height: 560px;
  }
  .mapa-tour-hud {
    width: calc(100% - 24px);
    top: 12px;
    padding: 14px 16px;
  }
  .mapa-route-planner {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    margin-top: 14px;
    border-radius: 14px;
  }
  .mapa-tramo-drawer {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    margin-top: 14px;
    border-radius: 14px;
  }
  .mapa-floating-legend {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: 100%;
    margin-top: 14px;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .mapa-interactive-frame {
    height: 480px;
    border-radius: 16px;
  }
  .mapa-controls-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .mapa-view-tools {
    justify-content: space-between;
  }
  .btn-creative-action span:not(.creative-icon) {
    display: none;
  }
}
