

.location-hero-section {
  position: relative;

}

.location-hero {
   position: relative;
  height: 85vh;
  min-height: 600px;
  background: url('..images/wheels.png') no-repeat center center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  text-align: center;
  overflow: hidden;
animation: backgroundZoom 20s ease-in-out infinite alternate;
}

.location-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.location-hero .location-hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #fff;
}

.location-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); /* Rango fluido */
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 4s ease forwards;
}

.location-hero .location-hero-subtitle {
 font-size: 1.5rem;
  max-width: 800px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 2s ease 0.5s forwards;
}

/* Espaciado elegante entre Hero y Mapa */
#map {
  margin-top: -50px;
  border: 3px solid #111;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}


/* ====== LOCATION PAGE: Tarjetas en 4 columnas ====== */
.location-grid-locationpage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
}

@media (max-width: 1200px) {
  .location-grid-locationpage {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 576px) {
  .location-grid-locationpage {
    grid-template-columns: 1fr;
  }
}

/* Estilos base para las tarjetas de ubicación */
.locations-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.locations-card:hover {
  transform: translateY(-5px);
}

.location-image {
   aspect-ratio: 4 / 3; /* o 16 / 9, ajusta según preferencia */
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.locations-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
   padding: 0.75rem 1rem 1rem;   /* <--- menos padding arriba */
  text-align: center;
  min-height: 160px; /* asegura consistencia de altura */
}

.locations-info h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0 0.5rem; /* <--- reducir top margin */
  color: #0B1F3A;
  font-weight: bold;
}

.location-region {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.location-services {
  display: flex;
  flex-wrap: wrap; /* permite salto de línea si no caben */
  justify-content: center;
  gap: 0.25rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
  color: #c44a00;
  text-align: center;
}

.location-services li {
  margin: 0;
  white-space: nowrap;
}

.locations-container {
  width: 100%;
  max-width: none; /* importante */
  padding: 0 2rem;
  margin: 0 auto;
  box-sizing: border-box;
}
