:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #071c18;
  --bg-emerald: #0b3830;
  --bg-emerald-soft: #ecfdf5;
  --bg-warm-editorial: #fffdf7;
  --text-main: #0f172a;
  --text-muted: #1e293b;
  --text-light: #334155;
  --accent-gold: #d97706;
  --accent-gold-bright: #f59e0b;
  --accent-gold-dark: #b45309;
  --accent-gold-soft: #fef3c7;
  --accent-emerald: #047857;
  --accent-coral: #be123c;
  --accent-blue: #0369a1;
  --border-color: #cbd5e1;
  --border-strong: #94a3b8;
  --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.10), 0 4px 12px -3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 22px 40px -10px rgba(7, 28, 24, 0.20);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', Georgia, serif;
}

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

html {
  font-size: 17px; /* Escala tipográfica optimizada para lectura senior sin fatiga (WCAG AAA) */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-gold-dark);
}

.brand-logo,
.nav-links a,
.btn,
.btn-sm {
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Flag Top Ribbon */
.colombia-ribbon {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #fbbf24 50%, #1d4ed8 50%, #1d4ed8 75%, #dc2626 75%, #dc2626 100%);
}

/* Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d3b33 0%, #047857 100%);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: var(--bg-emerald);
  background: var(--bg-emerald-soft);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.control-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.22rem;
  gap: 0.22rem;
}

.control-btn {
  border: none;
  background: transparent;
  padding: 0.42rem 0.85rem;
  min-height: 40px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.control-btn.active {
  background: var(--bg-dark);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.currency-select {
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  padding: 0.48rem 0.85rem;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.22), transparent 42%),
              radial-gradient(circle at 15% 80%, rgba(5, 150, 105, 0.30), transparent 48%),
              linear-gradient(135deg, #061814 0%, #0b3830 60%, #08221d 100%);
  color: #ffffff;
  padding: 4rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 1.02fr;
  gap: 2.5rem;
  align-items: start;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.18);
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  color: #fef08a;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #fbbf24;
}

.hero-lead {
  font-size: 1.1rem;
  color: #f1f5f9;
  margin-bottom: 1.8rem;
  max-width: 650px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.55rem;
  min-height: 50px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.45);
}

.btn-primary:hover {
  color: #0f172a;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-variant-numeric: tabular-nums;
}

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

.stat-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fbbf24;
}

.stat-item span {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* Quick Tool Card in Hero */
.hero-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.hero-card-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.live-badge {
  background: #dcfce7;
  color: #065f46;
  border: 1px solid #86efac;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

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

.form-group label,
.route-controls-bar label {
  display: block;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin-bottom: 0.38rem !important;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 500;
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--text-main);
}

.form-control:focus,
.btn:focus-visible,
.btn-sm:focus-visible,
.filter-pill:focus-visible,
.stepper-btn:focus-visible,
.trip-mode-btn:focus-visible {
  outline: 3px solid var(--accent-gold-bright);
  outline-offset: 2px;
  border-color: var(--bg-emerald);
}

.calc-helper-text {
  font-size: 0.94rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.calc-controls-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 0.75rem;
}

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

/* Accessible Fuel Stepper (Replaces tiny browser number spinners) */
.fuel-stepper-group {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.stepper-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #f1f5f9;
  color: var(--bg-dark);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.stepper-btn:hover {
  background: #e2e8f0;
  border-color: var(--accent-emerald);
}

.fuel-stepper-input {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.fuel-stepper-input::-webkit-outer-spin-button,
.fuel-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Segmented Trip Mode Toggle (One-Way vs Round-Trip) */
.trip-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
}

.trip-mode-btn {
  min-height: 46px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: all 0.18s ease;
}

.trip-mode-btn.active {
  background: var(--bg-emerald);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(7, 28, 24, 0.22);
}

/* Hard Data vs Inspirational Separation in Hero Quick Result */
.quick-result-box {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}

.qr-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.qr-route-title {
  font-size: 1.08rem;
  color: #065f46;
  font-weight: 800;
}

.qr-corridor-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.qr-topo-tag {
  color: var(--accent-emerald);
  font-weight: 700;
}

.quick-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.85rem 0;
  text-align: center;
}

@media (max-width: 520px) {
  .quick-result-grid {
    grid-template-columns: 1fr;
  }
}

.qr-metric {
  background: #ffffff;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
}

.qr-metric small {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.qr-metric strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bg-emerald);
}

.qr-metric-total {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.qr-editorial-stops {
  background: #fffdf7;
  border: 1.5px solid #fde68a;
  border-left: 4px solid var(--accent-gold);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #451a03;
  margin-bottom: 0.75rem;
}

.qr-safety-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.qr-actions-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Section Layout */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 840px;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-emerald);
  background: var(--bg-emerald-soft);
  border: 1px solid #a7f3d0;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.04rem;
}

/* Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.85rem;
  align-items: center;
}

.filter-pill {
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-muted);
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: #f0fdf4;
}

.filter-pill.active {
  background: var(--bg-emerald);
  color: #ffffff;
  border-color: var(--bg-emerald);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.65rem;
}

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

.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.badge-emerald {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-amber {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-blue {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.badge-rose {
  background: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-tagline {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dest-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.dest-specs div strong {
  display: block;
  color: var(--text-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.highlight-list {
  list-style: none;
  margin-bottom: 1.15rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  color: var(--text-main);
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

.highlight-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-emerald);
  font-weight: 800;
}

.gastronomy-callout {
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--accent-gold);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #451a03;
  margin-bottom: 0.85rem;
}

.beginner-tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--accent-emerald);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #064e3b;
  margin-bottom: 1rem;
}

/* Route Explorer Controls Bar */
.route-controls-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 0.85fr;
  gap: 0.9rem;
  background: #ffffff;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  align-items: end;
}

@media (max-width: 1080px) {
  .route-controls-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .route-controls-bar {
    grid-template-columns: 1fr;
  }
}

/* Dual-Zone Route Corridor Cards (Strict Technical vs. Tourist Separation) */
.route-corridor-card {
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.card-zone-technical {
  padding: 1.5rem 1.5rem 1.15rem;
  background: #ffffff;
}

.route-card-title a {
  color: var(--bg-dark);
  text-decoration: none;
}

.route-card-title a:hover {
  color: var(--accent-emerald);
  text-decoration: underline;
}

.route-corridor-meta {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.route-topo-pill {
  display: inline-block;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 700;
}

/* Hard Data Panel on Cards */
.route-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: 0.5rem 0 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .route-card-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rc-metric {
  background: #ffffff;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rc-metric span {
  display: block;
  font-size: 0.82rem; /* >=14px para lectura clara */
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.rc-metric strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.25;
}

.rc-metric small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 0.15rem;
}

.rc-metric.highlight {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.rc-metric.highlight strong {
  color: #065f46;
}

.rc-metric-grand {
  background: #d1fae5 !important;
  border-color: #10b981 !important;
}

/* Structural Divider between Technical Data & Tourist Value */
.card-zone-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-top: 1.5px solid #cbd5e1;
  border-bottom: 1.5px solid #fde68a;
  padding: 0.35rem 1rem;
}

.card-zone-divider span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Zone 2: Tourist & Cultural Editorial Value */
.card-zone-editorial {
  background: var(--bg-warm-editorial);
  padding: 1.15rem 1.5rem;
  border-left: 5px solid var(--accent-gold);
}

.editorial-zone-heading {
  font-size: 0.86rem;
  font-weight: 800;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.curated-stop-pills {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.stop-pill-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.stop-pill-name {
  font-weight: 800;
  color: var(--bg-dark);
}

.stop-pill-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

.card-safety-strip {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.route-corridor-card .card-footer-actions {
  padding: 1rem 1.5rem 1.35rem;
  margin-top: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

/* Inspirational Panel inside Route Cards & Pages */
.inspirational-panel {
  background: var(--bg-warm-editorial);
  border: 1.5px solid #fde68a;
  border-left: 5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin: 0.75rem 0;
}

.curated-stops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-top: 0.9rem;
}

.curated-stop-card {
  background: #ffffff;
  border: 1.5px solid #fde68a;
  border-top: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.curated-stop-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin: 0.35rem 0;
}

.curated-stop-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Senior Road & Safety Advisory Banner */
.senior-advisory-banner {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.75rem;
  border: 2px solid #a7f3d0;
  background: #f0fdf4;
  color: #064e3b;
}

.senior-advisory-banner.level-moderate {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #78350f;
}

.senior-advisory-banner.level-caution {
  background: #fff1f2;
  border-color: #fda4af;
  color: #881337;
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.92rem;
}

/* Interactive Map & Step-by-Step Split Layout */
.planner-split-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  align-items: start;
}

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

.route-map-container {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  z-index: 10;
}

.map-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Step-by-Step Highway Itinerary Timeline */
.step-timeline {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.step-timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: #cbd5e1;
}

.step-item {
  position: relative;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.step-item::before {
  content: "";
  position: absolute;
  left: -1.42rem;
  top: 1.1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--accent-emerald);
}

.step-item.step-toll {
  background: #f8fafc;
  border-left: 4px solid #0284c7;
}

.step-item.step-toll::before {
  background: #0284c7;
  box-shadow: 0 0 0 2px #0284c7;
}

.step-item.step-rest {
  background: #fffdf5;
  border-color: #fde68a;
  border-left: 4px solid var(--accent-gold);
}

.step-item.step-rest::before {
  background: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.step-item.step-destination {
  background: #ecfdf5;
  border-color: #6ee7b7;
  border-left: 4px solid var(--accent-emerald);
}

.step-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.step-item h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.2rem;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-footer-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.btn-sm {
  padding: 0.65rem 0.95rem;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.btn-emerald {
  background: var(--bg-emerald);
  color: #ffffff;
  border: none;
}

.btn-emerald:hover {
  background: #065f46;
  color: #ffffff;
}

.btn-ghost {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover {
  background: #e2e8f0;
  color: var(--bg-dark);
}

/* Survival Modules & Interactive Tools */
.survival-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.survival-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.survival-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.survival-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-emerald-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.survival-bullets {
  list-style: none;
}

.survival-bullets li {
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
  color: var(--text-main);
}

.survival-bullets li:last-child {
  border-bottom: none;
}

/* Interactive Toolboxes (Currency + Pico y Placa) */
.tools-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .tools-split {
    grid-template-columns: 1fr;
  }
}

.tool-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.bill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

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

.bill-chip {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  text-align: center;
}

.bill-chip strong {
  display: block;
  font-size: 0.96rem;
  color: var(--bg-dark);
}

.bill-chip span {
  font-size: 0.86rem;
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Modal for Route Toll-by-Toll Breakdown & Map */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 28, 24, 0.76);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border: 1.5px solid var(--border-strong);
  background: #f1f5f9;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
}

/* Data Tables & Heavy Truck Filtering */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.modern-table th {
  background: var(--bg-emerald);
  color: #ffffff;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modern-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.modern-table tr:nth-child(even) {
  background: #f8fafc;
}

.modern-table tr.cat-tourist {
  background: #ecfdf5;
  font-weight: 700;
}

.modern-table tr.cat-van {
  background: #f0f9ff;
}

body:not(.show-heavy-trucks) .modern-table tr.cat-heavy-truck {
  display: none;
}

.heavy-truck-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #f1f5f9;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #e2e8f0;
  padding: 4rem 0 2.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* ==========================================================================
   On-Demand Progressive Disclosure UI (Workspace Tabs, Compact Strips & Drawers)
   ========================================================================== */
.workspace-nav-wrapper {
  background: #ffffff;
  border-bottom: 2px solid var(--border-color);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

.workspace-intro-bar {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.workspace-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .workspace-tabs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .workspace-tabs-bar {
    grid-template-columns: 1fr;
  }
}

.workspace-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.workspace-tab-btn:hover {
  border-color: var(--accent-emerald);
  background: #f0fdf4;
}

.workspace-tab-btn.active {
  background: var(--bg-emerald);
  border-color: var(--bg-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.w-tab-icon {
  font-size: 1.55rem;
  flex-shrink: 0;
}

.workspace-tab-btn strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.workspace-tab-btn small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.88;
  margin-top: 0.15rem;
}

.workspace-panel {
  display: none;
}

.workspace-panel.active {
  display: block;
}

/* Compact 2-Metric Cost Strip on Route Cards (3-Second Scan) */
.compact-cost-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.75rem 0;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 440px) {
  .compact-cost-strip {
    grid-template-columns: 1fr;
  }
}

.cc-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.cc-box span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.cc-box strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.cc-box-highlight {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.cc-box-highlight strong {
  color: #065f46;
}

/* Expandable On-Demand Drawers (<details class="on-demand-drawer">) */
.on-demand-drawer {
  background: #fffdf7;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-sm);
  margin: 0.65rem 0 0;
  overflow: hidden;
}

.on-demand-drawer summary {
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #78350f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}

.on-demand-drawer summary::-webkit-details-marker {
  display: none;
}

.on-demand-drawer summary::after {
  content: "▾";
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold-dark);
  transition: transform 0.2s ease;
}

.on-demand-drawer[open] summary {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
}

.on-demand-drawer[open] summary::after {
  transform: rotate(180deg);
}

.drawer-inner-body {
  padding: 0.9rem 1rem;
  background: #ffffff;
}

.drawer-tech-specs {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qr-compact-drawer {
  margin-bottom: 0.75rem;
}

/* Modal & Route-Page Internal On-Demand Tabs */
.modal-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.45rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.modal-tab-btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modal-tab-btn:hover {
  background: #e2e8f0;
  color: var(--bg-dark);
}

.modal-tab-btn.active {
  background: var(--bg-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
}

/* ==========================================================================
   Accesibilidad Senior Avanzada (Preferencias del Sistema Operativo)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-main: #000000;
    --text-muted: #0f172a;
    --text-light: #1e293b;
    --border-color: #475569;
    --border-strong: #1e293b;
  }
  .card,
  .route-corridor-card,
  .hero-card,
  .form-control {
    border-width: 2px;
  }
}

