/* ==========================================================================
   BencinasChile.cl · Sistema de Diseño Senior (Modo Bunker)
   Optimizado para rendimiento, cero dependencias y respuesta visual instantánea.
   ========================================================================== */

:root {
  /* Paleta Base Profesional */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;

  /* Identidad BencinasChile */
  --brand-navy: #0b1528;
  --brand-navy-light: #162646;
  --brand-navy-border: #20355c;
  --brand-emerald: #10b981;
  --brand-emerald-dark: #047857;
  --brand-amber: #f59e0b;
  --brand-amber-dark: #d97706;
  --brand-blue: #2563eb;
  --brand-red: #ef4444;

  /* Octanajes */
  --fuel-93: #10b981;
  --fuel-95: #2563eb;
  --fuel-97: #dc2626;
  --fuel-diesel: #475569;
  --fuel-kerosene: #f59e0b;
  --fuel-glp: #06b6d4;

  /* Medidas y Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --max-w: 1200px;
}

[data-theme="dark"] {
  --bg-body: #070d18;
  --bg-card: #0d1a33;
  --bg-card-subtle: #132347;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: #1e3a66;
  --border-card: #203e6d;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg-body);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 68px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Cabecera Fija */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  background-color: var(--brand-navy);
  border-bottom: 2px solid var(--brand-amber);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.site-logo img {
  display: block;
  height: 38px;
  width: auto;
}

/* Navegación Desktop */
.nav-main {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 900px) {
  .nav-main {
    display: flex;
  }
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: var(--brand-navy-light);
}

/* Dropdowns Sin Bug de Salto (Con Puente ::before) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: transparent;
  border: 1px solid var(--brand-navy-border);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-dropdown-btn:hover, .nav-dropdown-btn[aria-expanded="true"] {
  background: var(--brand-navy-light);
  border-color: var(--brand-amber);
  color: #ffffff;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  min-width: 240px;
  background: #0d1a33;
  border: 1px solid var(--brand-navy-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 6px;
  z-index: 100000;
}

/* PUENTE INVISIBLE QUE EVITA QUE SE CIERRE AL MOVER EL MOUSE */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -8px;
  right: -8px;
  height: 14px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
  display: block;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-menu-item:hover {
  background: var(--brand-navy-light);
  color: #ffffff;
}

.dropdown-menu-item.active {
  background: #162646;
  border-left-color: var(--brand-amber);
  color: #ffffff;
}

/* Acciones de Cabecera (Botón Tema y Hamburguesa) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-navy-light);
  border: 1px solid var(--brand-navy-border);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  border-color: var(--brand-amber);
  color: var(--brand-amber);
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.btn-mobile-toggle {
  display: inline-flex;
}

@media (min-width: 900px) {
  .btn-mobile-toggle {
    display: none;
  }
}

/* Drawer Móvil */
.mobile-nav-drawer {
  display: none;
  background: var(--brand-navy);
  border-bottom: 2px solid var(--brand-amber);
  padding: 16px;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section & Cockpit de Búsqueda */
.hero-cockpit {
  background: linear-gradient(180deg, #0b1528 0%, #112240 100%);
  color: #ffffff;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
}

.hero-desc {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Buscador Interactivo y Barra de Controles */
.search-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto;
}

.search-primary-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .search-primary-row {
    flex-direction: row;
    align-items: center;
  }
}

.input-search-wrap {
  position: relative;
  flex: 1;
}

.input-search {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  font-size: 15px;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease;
}

.input-search:focus {
  border-color: var(--brand-emerald);
  background: var(--bg-card);
}

.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.btn-gps {
  height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-emerald);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-gps:hover {
  background: var(--brand-emerald-dark);
}

/* Filtros por Octanaje / Combustible */
.fuel-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.fuel-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.fuel-pill:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.fuel-pill.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-amber);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Opciones de Radio y Ordenación */
.filter-options-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .filter-options-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.toggle-group {
  display: inline-flex;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.toggle-btn {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
}

.toggle-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Bento Cockpit: Indicadores Clave */
.bento-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .bento-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-kicker {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Layout Principal de Contenido: Mapa + Lista */
.main-results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}

@media (min-width: 992px) {
  .main-results-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Contenedor del Mapa */
.map-view-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.map-card-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
}

.map-card-title {
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

#map-container {
  height: 440px;
  width: 100%;
  background: #e5e7eb;
  position: relative;
  z-index: 1;
}

/* Confinar Leaflet estrictamente dentro de su contenedor para que nunca solape el header */
.leaflet-container {
  z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
  z-index: 10 !important;
}

.leaflet-pane {
  z-index: 5 !important;
}

.leaflet-control {
  z-index: 15 !important;
}
}

/* Lista de Tarjetas de Estaciones */
.stations-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.station-card:hover {
  border-color: var(--brand-emerald);
  box-shadow: var(--shadow-md);
}

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

.station-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.station-distance {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.station-name-address {
  display: flex;
  flex-direction: column;
}

.station-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
}

.station-address {
  font-size: 13px;
  color: var(--text-muted);
}

.station-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.station-price-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-emerald-dark);
}

[data-theme="dark"] .station-price-num {
  color: #34d399;
}

.station-diff-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-emerald);
}

.station-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-card-action {
  flex: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

/* Secciones de Contenido Senior y E-E-A-T */
.editorial-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.editorial-header {
  margin-bottom: 16px;
}

.editorial-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-amber-dark);
  letter-spacing: 0.8px;
}

.editorial-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 4px;
}

.editorial-prose {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.editorial-prose p + p {
  margin-top: 14px;
}

/* Tablas Comparativas y Comunas */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th, .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background: var(--bg-card-subtle);
  font-weight: 800;
  color: var(--text-main);
}

.data-table tr:hover td {
  background: rgba(16, 185, 129, 0.04);
}

/* Calculadora de Viaje */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 24px auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (min-width: 600px) {
  .calc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.calc-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calc-input-group input, .calc-input-group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  color: var(--text-main);
}

.calc-result-box {
  background: var(--brand-navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-top: 16px;
}

.calc-result-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-amber);
}

.calc-result-val {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0;
}

/* Pie de Página */
.site-footer {
  background: var(--brand-navy);
  color: #94a3b8;
  border-top: 1px solid var(--brand-navy-border);
  padding: 36px 0 24px;
  margin-top: auto;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  line-height: 22px;
  min-height: 28px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--brand-amber);
}

.footer-legal-notice {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  border-top: 1px solid var(--brand-navy-border);
  padding-top: 16px;
  text-align: center;
}

/* ==========================================================================
   Mejoras de Aplicación Móvil Nativa · BencinasChile (Modo Bunker)
   Filtros de Marca, Waze, Autocomplete y Optimización 320px
   ========================================================================== */

/* Filtros por Marca */
.brand-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.brand-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.brand-pill:hover {
  border-color: var(--brand-amber);
  color: var(--text-main);
}

.brand-pill.active {
  background: var(--brand-amber);
  color: #0b1528;
  border-color: var(--brand-amber-dark);
  font-weight: 800;
}

/* Filtros Rápidos de Servicios (24h, Autoservicio) */
.quick-amenities-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--brand-emerald);
  color: var(--text-main);
}

.filter-chip input {
  accent-color: var(--brand-emerald);
  cursor: pointer;
}

/* Autocomplete de Búsqueda Inteligente */
.search-autocomplete-box {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-main);
  transition: background 0.1s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--bg-card-subtle);
}

.autocomplete-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

/* Detalles de Tarjeta y Calculadora de Estanque */
.station-tank-calc {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.station-tank-calc strong {
  color: var(--text-main);
}

.station-tank-saving {
  color: var(--brand-emerald-dark);
  font-weight: 800;
}

[data-theme="dark"] .station-tank-saving {
  color: #34d399;
}

.badge-amenity {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-emerald-dark);
}

[data-theme="dark"] .badge-amenity {
  color: #34d399;
}

/* Botones de Navegación Dual (Maps + Waze) */
.btn-action-waze {
  background: #33ccff !important;
  color: #0b1528 !important;
  border-color: #33ccff !important;
  font-weight: 800 !important;
}

.btn-action-waze:hover {
  background: #00bfff !important;
  color: #000000 !important;
}

.btn-action-share {
  flex: 0 0 38px;
  width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Toast de Notificaciones */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-navy);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  border: 1px solid var(--brand-amber);
  animation: toastFade 2.5s forwards ease-in-out;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translate(-50%, 15px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -15px); }
}

/* ==========================================================================
   Micro-optimización estricta para pantallas ultra estrechas (320px)
   ========================================================================== */
@media (max-width: 380px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .site-header {
    height: 52px;
  }

  .header-inner {
    height: 52px;
    gap: 8px;
  }

  .site-logo img {
    height: 30px;
  }

  .hero-cockpit {
    padding: 16px 0 20px;
  }

  .hero-title {
    font-size: 21px;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 13px;
  }

  .search-box-card {
    padding: 10px 8px;
    border-radius: var(--radius-md);
  }

  .input-search {
    height: 44px;
    font-size: 13.5px;
    padding-left: 38px;
  }

  .search-icon-left {
    left: 10px;
    width: 18px;
    height: 18px;
  }

  .btn-gps {
    height: 44px;
    font-size: 13px;
    padding: 0 12px;
    width: 100%;
  }

  .fuel-pill, .brand-pill {
    padding: 5px 10px;
    font-size: 12px;
  }

  .filter-options-row {
    gap: 8px;
  }

  .filter-group {
    font-size: 12.5px;
  }

  .bento-stats-grid {
    gap: 8px;
    margin-top: 16px;
  }

  .stat-card {
    padding: 8px 6px;
  }

  .stat-value {
    font-size: 18px;
  }

  #map-container {
    height: 320px;
  }

  .station-card {
    padding: 10px 8px;
  }

  .station-title {
    font-size: 14.5px;
  }

  .station-price-num {
    font-size: 19px;
  }

  .station-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .btn-action-share {
    grid-column: span 2;
    width: 100%;
    height: 34px;
  }

  .btn-card-action {
    font-size: 12px;
    height: 36px;
    padding: 0 4px;
  }
}
