/* ==========================================================================
   Fijate Tools - Buscador de Gasolineras Baratas en España
   Estilos CSS modulares, responsivos y con soporte de temas claro/oscuro
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --gas-bg-page: #0f172a;
  --gas-bg-card: #1e293b;
  --gas-bg-card-hover: #24344d;
  --gas-border: #334155;
  --gas-border-focus: #3b82f6;
  --gas-text-main: #f8fafc;
  --gas-text-muted: #94a3b8;
  --gas-text-highlight: #60a5fa;

  --gas-green: #10b981;
  --gas-green-bg: rgba(16, 185, 129, 0.15);
  --gas-green-border: rgba(16, 185, 129, 0.35);

  --gas-yellow: #f59e0b;
  --gas-yellow-bg: rgba(245, 158, 11, 0.15);
  --gas-yellow-border: rgba(245, 158, 11, 0.35);

  --gas-red: #ef4444;
  --gas-red-bg: rgba(239, 68, 68, 0.15);
  --gas-red-border: rgba(239, 68, 68, 0.35);

  --gas-blue: #3b82f6;
  --gas-blue-bg: rgba(59, 130, 246, 0.15);
  --gas-blue-border: rgba(59, 130, 246, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --gas-bg-page: #f1f5f9;
  --gas-bg-card: #ffffff;
  --gas-bg-card-hover: #f8fafc;
  --gas-border: #cbd5e1;
  --gas-border-focus: #2563eb;
  --gas-text-main: #0f172a;
  --gas-text-muted: #475569;
  --gas-text-highlight: #2563eb;

  --gas-green-bg: rgba(16, 185, 129, 0.12);
  --gas-yellow-bg: rgba(245, 158, 11, 0.12);
  --gas-red-bg: rgba(239, 68, 68, 0.12);
  --gas-blue-bg: rgba(37, 99, 235, 0.12);
  color-scheme: light;
}

body {
  font-family: var(--font-main);
  background-color: var(--gas-bg-page);
  color: var(--gas-text-main);
}

button, input, select, textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.faq-section-title,
.popup-station-title,
.station-brand-title {
  font-family: var(--font-heading);
}

.tool-main-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


/* ==========================================================================
   Panel de Búsqueda y Filtros
   ========================================================================== */
.search-panel-card {
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-tabs-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  background: var(--gas-bg-page);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gas-border);
}

.btn-search-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--gas-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-search-tab:hover {
  color: var(--gas-text-main);
}

.btn-search-tab.is-active {
  background: var(--gas-bg-card);
  color: var(--gas-text-highlight);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Modo GPS */
.gps-action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

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

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  width: 100%;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-action-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.btn-action-primary:active {
  transform: translateY(0);
}

.radius-selector-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 180px;
}

@media (max-width: 640px) {
  .radius-selector-box {
    min-width: 100%;
  }
}

/* Estado GPS spinner */
.gps-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: var(--gas-blue-bg);
  border: 1px solid var(--gas-blue-border);
  border-radius: var(--radius-sm);
  color: var(--gas-text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.status-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gas-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modo Territorio */
.territory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gas-text-muted);
}

.select-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  background: var(--gas-bg-page);
  color: var(--gas-text-main);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--gas-border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gas-text-muted);
}

/* Selector de Combustibles (Chips Horizontales) */
.fuel-selector-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fuel-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fuel-selected-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gas-text-highlight);
  background: var(--gas-blue-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--gas-blue-border);
}

.fuel-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-fuel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gas-border);
  background: var(--gas-bg-page);
  color: var(--gas-text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chip-fuel:hover {
  border-color: var(--gas-border-focus);
  background: var(--gas-bg-card-hover);
}

.chip-fuel.is-active {
  border-color: var(--gas-blue);
  background: var(--gas-blue-bg);
  color: var(--gas-text-highlight);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-diesel { background: #10b981; }
.dot-gasolina95 { background: #3b82f6; }
.dot-gasolina98 { background: #8b5cf6; }
.dot-diesel-plus { background: #059669; }
.dot-glp { background: #f59e0b; }
.dot-gnc { background: #06b6d4; }
.dot-hvo { background: #14b8a6; }
.dot-adblue { background: #6366f1; }

/* Fila de Controles Avanzados (Calculadora Depósito + Filtros) */
.advanced-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gas-border);
}

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

.tank-calc-card, .filter-options-card {
  background: var(--gas-bg-page);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tank-calc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gas-text-main);
}

.tank-liters-badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--gas-green);
  background: var(--gas-green-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--gas-green-border);
}

.form-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gas-border);
  accent-color: var(--gas-blue);
  cursor: pointer;
}

.quick-liters-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.btn-quick-liter {
  min-height: 34px;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--gas-border);
  background: var(--gas-bg-card);
  color: var(--gas-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.btn-quick-liter:hover {
  color: var(--gas-text-main);
}

.btn-quick-liter.is-active {
  border-color: var(--gas-green);
  color: var(--gas-green);
  background: var(--gas-green-bg);
}

.filter-toggles-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gas-text-main);
  cursor: pointer;
  user-select: none;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--gas-blue);
  cursor: pointer;
}

.sort-select-wrapper {
  min-width: 170px;
}

/* ==========================================================================
   Bento Grid: Estadísticas de la Zona
   ========================================================================== */
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .stats-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .stats-summary-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gas-text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green { background: var(--gas-green); }
.dot-yellow { background: var(--gas-yellow); }
.dot-red { background: var(--gas-red); }
.dot-blue { background: var(--gas-blue); }

.stat-price-row, .stat-saving-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.stat-price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gas-text-main);
  line-height: 1.1;
}

.stat-card.stat-min .stat-price-val {
  color: var(--gas-green);
}

.stat-saving-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gas-text-highlight);
  line-height: 1.1;
}

.stat-price-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gas-text-muted);
}

.stat-station-name, .stat-desc {
  font-size: 0.8rem;
  color: var(--gas-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Barra de Alternancia Vista Mapa / Lista
   ========================================================================== */
.view-switch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-switch-tabs {
  display: inline-flex;
  gap: 0.4rem;
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  padding: 0.3rem;
  border-radius: var(--radius-md);
}

.btn-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--gas-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-tab.is-active {
  background: var(--gas-blue-bg);
  color: var(--gas-text-highlight);
  border: 1px solid var(--gas-blue-border);
}

.data-update-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gas-text-muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gas-green);
}

.live-dot.pulse {
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

/* ==========================================================================
   Mapa Interactivo Leaflet
   ========================================================================== */
.map-view-container {
  position: relative;
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-floating-overlay {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-search-this-area {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--gas-bg-card);
  color: var(--gas-text-main);
  border: 1px solid var(--gas-border);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: var(--transition);
}

.btn-search-this-area:hover {
  background: var(--gas-blue);
  color: #ffffff;
  border-color: var(--gas-blue);
  transform: scale(1.03);
}

.map-searching-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: 1px solid var(--gas-border);
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

.map-spinner-mini {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--gas-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.interactive-map {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

.map-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--gas-bg-page);
  border-top: 1px solid var(--gas-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gas-text-muted);
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-pill {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.pill-green { background: #10b981; }
.pill-yellow { background: #f59e0b; }
.pill-red { background: #ef4444; }

/* Estilos de Marcadores Personalizados en Leaflet */
.gas-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  padding: 2px 6px;
  white-space: nowrap;
}

.gas-pin-green { background: #10b981; }
.gas-pin-yellow { background: #f59e0b; }
.gas-pin-red { background: #ef4444; }

/* Popup de Leaflet */
.leaflet-popup-content-wrapper {
  background: var(--gas-bg-card);
  color: var(--gas-text-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--gas-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.leaflet-popup-content {
  margin: 0.85rem;
  min-width: 240px;
}

.popup-station-header {
  border-bottom: 1px solid var(--gas-border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.popup-station-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gas-text-main);
  margin: 0;
}

.popup-station-addr {
  font-size: 0.8rem;
  color: var(--gas-text-muted);
  margin: 0.2rem 0 0;
}

.popup-price-highlight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--gas-green-bg);
  border: 1px solid var(--gas-green-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  margin: 0.5rem 0;
}

.popup-price-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gas-text-main);
}

.popup-price-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gas-green);
}

.btn-popup-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 36px;
  background: var(--gas-blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 0.6rem;
  transition: var(--transition);
}

.btn-popup-route:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   Listado de Tarjetas de Gasolineras
   ========================================================================== */
.stations-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.station-card {
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.station-card:hover {
  border-color: var(--gas-border-focus);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.station-card.rank-top1 {
  border: 2px solid var(--gas-green);
}

.rank-badge-ribbon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--gas-green-bg);
  color: var(--gas-green);
  border: 1px solid var(--gas-green-border);
}

.station-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.station-brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 4rem;
}

.station-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gas-text-main);
  margin: 0;
  line-height: 1.2;
}

.station-location-text {
  font-size: 0.83rem;
  color: var(--gas-text-muted);
  line-height: 1.3;
}

.station-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.tag-24h {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-distance {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gas-text-muted);
  background: var(--gas-bg-page);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--gas-border);
}

.station-price-box {
  background: var(--gas-bg-page);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-main-col {
  display: flex;
  flex-direction: column;
}

.price-fuel-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gas-text-muted);
}

.price-big-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gas-text-main);
  line-height: 1.1;
}

.saving-estimate-col {
  text-align: right;
}

.saving-tank-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gas-green);
}

.saving-tank-sub {
  font-size: 0.72rem;
  color: var(--gas-text-muted);
}

.btn-navigate-station {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  width: 100%;
  background: var(--gas-bg-page);
  color: var(--gas-text-highlight);
  border: 1px solid var(--gas-blue-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-navigate-station:hover {
  background: var(--gas-blue-bg);
  border-color: var(--gas-blue);
}

/* Loading & Empty States */
.loading-state-card, .empty-state-card {
  grid-column: 1 / -1;
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--gas-text-muted);
}



/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-seo-section {
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.faq-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gas-text-main);
  margin-bottom: 1.25rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--gas-bg-page);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gas-text-main);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  transition: transform 0.2s ease;
  color: var(--gas-text-muted);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--gas-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-answer strong {
  color: var(--gas-text-main);
}

/* ==========================================================================
   Modales Accesibles (Sin alerts)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--gas-bg-card);
  border: 1px solid var(--gas-border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.is-open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gas-border);
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gas-text-main);
}

.modal-title-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--gas-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-modal-close:hover {
  color: var(--gas-text-main);
  background: var(--gas-bg-page);
}

.modal-body {
  padding: 1.5rem;
  color: var(--gas-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.modal-feature-item {
  background: var(--gas-bg-page);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gas-border);
}

.modal-feature-item strong {
  color: var(--gas-text-main);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gas-border);
  display: flex;
  justify-content: flex-end;
}
