/* Variables CSS - Paleta Bandera México */
:root {
  /* Colores principales - Bandera México */
  --primary-color: #C8102E;
  /* Rojo mexicano (protagonista) */
  --secondary-color: #006847;
  /* Verde mexicano */
  --accent-color: #FFD700;
  /* Dorado (del águila) */

  /* Colores de apoyo */
  --success-color: #006847;
  /* Verde mexicano para éxito */
  --warning-color: #FF8C00;
  /* Naranja cálido */
  --danger-color: #DC143C;
  /* Rojo más intenso para alertas */
  --info-color: #1E88E5;
  /* Azul para información */

  /* Grises y neutros */
  --light-color: #f8f9fa;
  /* Blanco grisáceo */
  --light-gray: #e9ecef;
  /* Gris claro */
  --medium-gray: #6c757d;
  /* Gris medio */
  --dark-gray: #ccc;
  /* Gris oscuro */
  --dark-color: #666;
  /* Negro suave */

  /* Variaciones del rojo principal */
  --primary-light: #E63946;
  /* Rojo claro */
  --primary-dark: #A01729;
  /* Rojo oscuro */

  /* Variaciones del verde */
  --secondary-light: #28A745;
  /* Verde claro */
  --secondary-dark: #004D37;
  /* Verde oscuro */

  /* Fuentes */
  --font-family-primary: 'Raleway', sans-serif;
  --font-family-heading: 'Roboto', sans-serif;
}

/* Global Styles */
body {
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
}

/* Estilos temáticos mexicanos */
.mexico-stripe {
  background: linear-gradient(90deg,
      var(--secondary-color) 0%,
      var(--secondary-color) 33.33%,
      #ffffff 33.33%,
      #ffffff 66.66%,
      var(--primary-color) 66.66%,
      var(--primary-color) 100%);
  height: 4px;
}

.mexico-gradient {
  background: linear-gradient(135deg,
      var(--secondary-color) 0%,
      var(--primary-color) 100%);
}

.bg-mexico-gradient {
  background: linear-gradient(135deg,
      var(--dark-gray) 0%,
      var(--dark-color) 100%) !important;
}

.mexico-card-header {
  background: linear-gradient(45deg,
      var(--primary-color) 0%,
      var(--primary-light) 50%,
      var(--primary-color) 100%);
  color: white;
  position: relative;
}

.mexico-card-header::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
}

.btn-mexico {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-mexico:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

.btn-mexico::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-mexico:hover::before {
  left: 100%;
}

.btn-green {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  font-weight: 600;
}

.btn-green:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 104, 71, 0.3);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.section-title {
  font-family: var(--font-family-heading);
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

/* Header Styles */
.header-section {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0px solid var(--primary-color);
}

/* .header-section::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--secondary-color) 0%,
      var(--secondary-color) 33.33%,
      #ffffff 33.33%,
      #ffffff 66.66%,
      var(--primary-color) 66.66%,
      var(--primary-color) 100%);
} */

/* Navbar Styles - Mejorado */
.navbar {
  padding: 1rem 0;
  /* Hacer la navbar más alta */
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand .logo {
  height: 50px;
  margin-right: 10px;
}

.brand-text {
  color: var(--primary-color);
  font-family: var(--font-family-heading);
}

.navbar-nav .nav-link {
  font-weight: 700;
  /* Fuente más gruesa */
  font-size: 1rem;
  padding: 1rem 1.25rem;
  /* Más padding para navbar más alta */
  transition: all 0.3s ease;
  color: var(--dark-color);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Item activo de navegación - más destacado */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 800;
  /* Aún más grueso para el activo */
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Dropdown mejorado */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.dropdown-item {
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  height: auto;
  min-height: 400px;
  position: relative;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: fill;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: linear-gradient(135deg,
      rgba(200, 16, 46, 0.9) 0%,
      rgba(0, 104, 71, 0.9) 100%);
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  border: 3px solid var(--accent-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-caption-mobile {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: linear-gradient(135deg,
        rgba(200, 16, 46, 0.9) 0%,
        rgba(0, 104, 71, 0.9) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
  }
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-box {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box i {
  font-size: 2rem;
}

/* Stations Section */
.stations-section {
  background: var(--light-color);
}

.station-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  overflow: hidden;
}

.station-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.station-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Featured Section */
.featured-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-meta {
  border-top: 1px solid #e9ecef;
  padding-top: 0.75rem;
}

/* Content Sections */
.content-section,
.estacion-section,
.category-section {
  min-height: 60vh;
}

.article-header {
  border-bottom: 2px solid var(--light-color);
  padding-bottom: 1rem;
}

.article-title {
  color: var(--primary-color);
  font-weight: 700;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.intro-text {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

/* Station Gallery */
.station-gallery .carousel-item img {
  height: 300px;
  object-fit: cover;
}

.station-actions {
  border: 2px solid var(--primary-color);
  border-radius: 15px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-family: var(--font-family-heading);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
}

/* Contact Form */
.contact-form-wrapper {
  background: #fff;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
}

/* Factura Section */
.factura-section .station-card {
  border-radius: 15px;
  overflow: hidden;
}

.factura-section .card-header {
  font-weight: 600;
  border-bottom: none;
}

.contact-info {
  background: var(--light-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg,
      var(--primary-color) 0%,
      var(--primary-dark) 50%,
      var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 20px);
}

/* Footer */
.footer-section {
  background: var(--dark-color) !important;
  margin-top: auto;
}

.footer-section h5 {
  color: var(--primary-color);
  font-family: var(--font-family-heading);
}

.footer-section a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color) !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--primary-color);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background: #004494;
}

/* Error Page */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
}

.error-icon {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    height: 300px;
  }

  .carousel-caption {
    padding: 1rem;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1rem;
  }

  .sidebar {
    position: static;
    margin-top: 3rem;
  }
}

@media (max-width: 576px) {
  .feature-box {
    margin-bottom: 1rem;
  }

  .station-image {
    height: 150px;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* Utility Classes */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004494 100%);
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.border-primary-custom {
  border-color: var(--primary-color) !important;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Bootstrap Override - Forzar paleta mexicana */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.alert-primary {
  background-color: rgba(200, 16, 46, 0.1) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-dark) !important;
}

.badge-primary {
  background-color: var(--primary-color) !important;
}

.list-group-item-primary {
  background-color: rgba(200, 16, 46, 0.1) !important;
  border-color: var(--primary-color) !important;
}

.table-primary {
  background-color: rgba(200, 16, 46, 0.1) !important;
}

/* Eliminar cualquier rastro de azul */
.text-info {
  color: var(--secondary-color) !important;
}

.bg-info {
  background-color: var(--secondary-color) !important;
}

.btn-info {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
}

/* Custom Buttons */
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.4);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

/* Estilos adicionales con paleta mexicana */

/* Badges mexicanos */
.badge-mexico-red {
  background-color: var(--primary-color) !important;
  color: white;
}

.badge-mexico-green {
  background-color: var(--secondary-color) !important;
  color: white;
}

.badge-mexico-gold {
  background-color: var(--accent-color) !important;
  color: var(--dark-color);
}

/* Cards con tema mexicano */
.card-mexico {
  border: none;
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.1);
}

.card-mexico-green {
  border: none;
  border-top: 4px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 104, 71, 0.1);
}

/* Alertas mexicanas */
.alert-mexico-success {
  background-color: rgba(0, 104, 71, 0.1);
  border-color: var(--secondary-color);
  color: var(--secondary-dark);
}

.alert-mexico-info {
  background-color: rgba(200, 16, 46, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-dark);
}

/* Elementos decorativos */
.mexico-divider {
  height: 2px;
  background: linear-gradient(90deg,
      var(--secondary-color) 0%,
      var(--secondary-color) 33.33%,
      #ffffff 33.33%,
      #ffffff 66.66%,
      var(--primary-color) 66.66%,
      var(--primary-color) 100%);
  margin: 2rem 0;
}

.mexico-accent-border {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.mexico-accent-border-green {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
}

/* Links con colores mexicanos */
.link-mexico {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-mexico:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.link-mexico-green {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-mexico-green:hover {
  color: var(--secondary-dark);
  text-decoration: underline;
}

/* Iconos con colores mexicanos */
.icon-mexico {
  color: var(--primary-color);
}

.icon-mexico-green {
  color: var(--secondary-color);
}

.icon-mexico-gold {
  color: var(--accent-color);
}

/* Backgrounds sutiles */
.bg-mexico-light {
  background-color: rgba(200, 16, 46, 0.05);
}

.bg-mexico-green-light {
  background-color: rgba(0, 104, 71, 0.05);
}

/* Efectos hover para cards */
.card-hover-mexico:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.15);
  transition: all 0.3s ease;
}

.card-hover-mexico-green:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 104, 71, 0.15);
  transition: all 0.3s ease;
}

/* Responsivo para elementos mexicanos */
@media (max-width: 768px) {
  .mexico-stripe {
    height: 3px;
  }

  .carousel-caption {
    padding: 1.5rem;
    border-width: 2px;
  }

  .mexico-divider {
    margin: 1rem 0;
    height: 1px;
  }

  .navbar {
    padding: 0.75rem 0;
    /* Menos padding en móvil */
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    /* Menos padding en móvil */
  }
}

/* Botón de scroll to top - perfectamente redondo */
.scroll-top-btn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1000 !important;
  width: 55px !important;
  height: 55px !important;
  border-radius: 50% !important;
  background: var(--primary-color) !important;
  border: none !important;
  color: white !important;
  display: none !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3) !important;
  cursor: pointer !important;
}

.scroll-top-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4) !important;
}

.scroll-top-btn i {
  font-size: 1.2rem !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.logo-footer {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.bg-secondary-custom {
  /* Fondo secundario personalizado  - tonos grises - degradado*/
  background: linear-gradient(135deg,
      var(--dark-color) 0%,
      var(--dark-gray) 100%);
}

.bg-dark-tres {
  background-color: #333 !important;
}

/* ================================
   ESTILOS PARA MAPA DE ESTACIONES
   ================================ */

.map-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 80vh;
  /* Altura mínima para desktop */
}

.map-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 100%;
  /* 100% del contenedor padre */
  min-height: 70vh;
  /* Altura mínima en desktop */
}

#stations-map {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border-radius: 15px;
}

.stations-list {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.station-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.station-item:hover {
  background: linear-gradient(135deg, var(--light-color) 0%, #f1f3f4 100%);
  transform: translateX(8px);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15);
}

.station-item.active {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: var(--info-color);
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.2);
}

.stations-list .badge {
  font-size: 0.8rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.station-item h6 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.station-item .text-muted {
  font-size: 0.85rem;
  line-height: 1.3;
}

.station-item .text-success {
  font-weight: 500;
  color: var(--secondary-color) !important;
}

/* Botones extra pequeños para popups del mapa */
.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 0.375rem;
}

/* Estilos para popups del mapa */
.leaflet-popup-content {
  margin: 12px 16px;
  line-height: 1.5;
}

.leaflet-popup-content h6 {
  margin: 0 0 8px 0;
  color: var(--dark-color);
  font-weight: 600;
}

.leaflet-popup-content .address {
  color: var(--medium-gray);
  font-size: 0.9em;
  margin-bottom: 8px;
  line-height: 1.4;
}

.leaflet-popup-content .phone {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Estilos para marcadores personalizados */
.custom-marker {
  background: none;
  border: none;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .map-section .row {
    flex-direction: column-reverse;
  }

  .map-section {
    min-height: 50vh;
    /* Altura reducida en móvil */
  }

  .stations-list {
    margin-bottom: 1.5rem;
  }

  .map-container {
    height: 400px;
    /* Altura fija en móvil */
    min-height: 400px;
  }

  #stations-map {
    min-height: 400px;
    height: 100%;
  }

  .station-item:hover,
  .station-item.active {
    transform: none;
  }
}

/* ============================================================================
   SECCIÓN DE PRECIOS DE COMBUSTIBLES
   ============================================================================ */

.prices-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.price-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.price-card .card-header {
  border-bottom: none;
  padding: 1rem;
  position: relative;
}

.price-card .card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.fuel-price-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.fuel-price-item:last-child {
  border-bottom: none;
}

.fuel-price-item:hover {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.fuel-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fuel-name {
  font-weight: 500;
  color: #495057;
  font-size: 0.95rem;
}

.price-value {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
  font-size: 0.9rem;
}

.price-card .card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #f1f3f4;
}

.price-card .btn-outline-primary {
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.price-card .btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Colores específicos para cada tipo de combustible */
.fuel-magna {
  background-color: #28a745;
}

.fuel-premium {
  background-color: #dc3545;
}

.fuel-diesel {
  background-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .price-card .card-header h5 {
    font-size: 1rem;
  }

  .fuel-name {
    font-size: 0.875rem;
  }

  .price-value {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }
}