/* ==================== ESTILOS MAPA DE UBICACIÓN ==================== */
/* Diseño PREMIUM - Mejores prácticas UI/UX */

/* Hero Section - Espectacular */
.hero-mapa {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-mapa::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-mapa::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 30px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-mapa h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-mapa p {
  font-size: 1.75rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección de Contenido */
.seccion-contenido {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

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

.mapa-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Mapas Grid Premium */
.mapas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 5rem;
}

.mapa-item {
  background: white;
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
  transition: all 0.3s ease;
}

.mapa-item:hover {
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.2);
  transform: translateY(-5px);
}

.mapa-item h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mapa-embed {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 3px solid var(--primary);
  transition: all 0.3s ease;
  height: 500px;
}

.mapa-item:hover .mapa-embed {
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.2);
  transform: scale(1.01);
}

.mapa-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.mapa-embed svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Información Mapa Premium */
.informacion-mapa {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
}

.informacion-mapa h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.informacion-mapa h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.lista-ubicaciones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ubicacion-mapa {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  border-left: 5px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.ubicacion-mapa::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.ubicacion-mapa:hover::before {
  transform: scaleY(1);
}

.ubicacion-mapa:hover {
  transform: translateX(12px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.2);
}

.marcador {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.marcador-rojo {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.marcador-naranja {
  background: linear-gradient(135deg, #ff7043, #e64a19);
}

.ubicacion-mapa h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.ubicacion-mapa:hover h4 {
  color: var(--primary);
}

.ubicacion-mapa p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.ubicacion-mapa p:last-child {
  margin-bottom: 0;
}

/* Coordenadas Section Premium */
.coordenadas-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
}

.coordenadas-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.coordenadas-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.coordenadas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.coordenada-item {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  border-left: 5px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.coordenada-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.coordenada-item:hover::before {
  transform: scaleY(1);
}

.coordenada-item:hover {
  transform: translateX(12px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.2);
}

.coordenada-item h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.coordenada-item:hover h4 {
  color: var(--primary);
}

.coordenada-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coordenada-item p:last-child {
  margin-bottom: 0;
}

.coordenada-item p::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.coordenada-item strong {
  color: var(--gray-900);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Distancias Section Premium */
.distancias-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
}

.distancias-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.distancias-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.distancias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.distancia-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  border-left: 5px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.distancia-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.distancia-item:hover::before {
  transform: scaleY(1);
}

.distancia-item:hover {
  transform: translateX(12px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.2);
}

.distancia-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.distancia-item:hover h4 {
  color: var(--primary);
}

.distancia-item p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.distancia-item p:last-child {
  margin-bottom: 0;
}

/* Indicaciones Section Premium */
.indicaciones-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
}

.indicaciones-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.indicaciones-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.indicaciones-item {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  border-left: 5px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.indicaciones-item:last-child {
  margin-bottom: 0;
}

.indicaciones-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.indicaciones-item:hover::before {
  transform: scaleY(1);
}

.indicaciones-item:hover {
  transform: translateX(12px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.2);
}

.indicaciones-item h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.indicaciones-item:hover h4 {
  color: var(--primary);
}

.indicaciones-item ol {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
  counter-reset: step-counter;
}

.indicaciones-item li {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
  counter-increment: step-counter;
}

.indicaciones-item li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.indicaciones-item li:last-child {
  margin-bottom: 0;
}

/* Enlaces Externos Premium */
.enlaces-externos {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  color: white;
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 5rem;
}

.enlaces-externos::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.enlaces-externos h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.enlaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.enlace-mapa {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.enlace-mapa::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.enlace-mapa:hover::before {
  transform: scaleX(1);
}

.enlace-mapa:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.enlace-mapa .icon {
  font-size: 3rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.enlace-mapa:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

/* Contacto Navegación Premium */
.contacto-navegacion {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
  text-align: center;
}

.contacto-navegacion h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contacto-navegacion > p {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.contacto-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contacto-links p {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin: 0;
}

.contacto-links strong {
  color: var(--gray-900);
  font-weight: 700;
  margin-right: 0.5rem;
}

.contacto-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contacto-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1600px) {
  .container {
    max-width: 1200px;
  }
}

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

  .lista-ubicaciones {
    grid-template-columns: repeat(2, 1fr);
  }

  .coordenadas-grid {
    grid-template-columns: 1fr;
  }

  .distancias-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .enlaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-mapa {
    padding: 6rem 0 5rem;
  }

  .hero-mapa h1 {
    font-size: 3rem;
  }

  .hero-mapa p {
    font-size: 1.5rem;
  }

  .seccion-contenido {
    padding: 4rem 0;
  }

  .mapa-item {
    padding: 2rem;
  }

  .mapa-item h2 {
    font-size: 1.75rem;
  }

  .mapa-embed {
    height: 400px;
  }

  .informacion-mapa,
  .coordenadas-section,
  .distancias-section,
  .indicaciones-section,
  .enlaces-externos,
  .contacto-navegacion {
    padding: 3rem 2rem;
  }

  .informacion-mapa h2,
  .coordenadas-section h2,
  .distancias-section h2,
  .indicaciones-section h2,
  .enlaces-externos h2,
  .contacto-navegacion h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-mapa {
    padding: 5rem 0 4rem;
  }

  .hero-mapa h1 {
    font-size: 2.5rem;
  }

  .hero-mapa p {
    font-size: 1.25rem;
  }

  .mapa-item {
    padding: 1.5rem;
  }

  .mapa-item h2 {
    font-size: 1.5rem;
  }

  .mapa-embed {
    height: 300px;
  }

  .lista-ubicaciones {
    grid-template-columns: 1fr;
  }

  .ubicacion-mapa {
    padding: 1.5rem;
  }

  .coordenada-item {
    padding: 2rem 1.5rem;
  }

  .distancias-grid {
    grid-template-columns: 1fr;
  }

  .distancia-item {
    padding: 2rem 1.5rem;
  }

  .indicaciones-item {
    padding: 2rem 1.5rem;
  }

  .indicaciones-item h4 {
    font-size: 1.25rem;
  }

  .indicaciones-item li {
    font-size: 1rem;
  }

  .enlaces-grid {
    grid-template-columns: 1fr;
  }

  .contacto-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .informacion-mapa,
  .coordenadas-section,
  .distancias-section,
  .indicaciones-section,
  .enlaces-externos,
  .contacto-navegacion {
    padding: 2.5rem 1.5rem;
  }

  .informacion-mapa h2,
  .coordenadas-section h2,
  .distancias-section h2,
  .indicaciones-section h2,
  .enlaces-externos h2,
  .contacto-navegacion h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-mapa h1 {
    font-size: 2rem;
  }

  .hero-mapa p {
    font-size: 1.125rem;
  }

  .mapa-item {
    padding: 1.25rem;
  }

  .mapa-item h2 {
    font-size: 1.25rem;
  }

  .mapa-embed {
    height: 250px;
  }

  .ubicacion-mapa {
    padding: 1.25rem;
  }

  .ubicacion-mapa h4 {
    font-size: 1.125rem;
  }

  .ubicacion-mapa p {
    font-size: 0.938rem;
  }

  .coordenada-item {
    padding: 1.5rem;
  }

  .coordenada-item h4 {
    font-size: 1.25rem;
  }

  .coordenada-item p {
    font-size: 0.938rem;
  }

  .distancia-item {
    padding: 1.5rem;
  }

  .distancia-item h4 {
    font-size: 1.125rem;
  }

  .distancia-item p {
    font-size: 0.938rem;
  }

  .indicaciones-item {
    padding: 1.5rem;
  }

  .indicaciones-item h4 {
    font-size: 1.125rem;
  }

  .indicaciones-item li {
    font-size: 0.938rem;
    padding-left: 2rem;
  }

  .indicaciones-item li::before {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .enlace-mapa {
    padding: 1.5rem;
  }

  .enlace-mapa .icon {
    font-size: 2.5rem;
  }

  .enlace-mapa {
    font-size: 1rem;
  }

  .contacto-navegacion h2 {
    font-size: 1.5rem;
  }

  .contacto-navegacion > p {
    font-size: 1.125rem;
  }

  .contacto-links p {
    font-size: 1rem;
  }

  .informacion-mapa,
  .coordenadas-section,
  .distancias-section,
  .indicaciones-section,
  .enlaces-externos,
  .contacto-navegacion {
    padding: 2rem 1rem;
  }

  .informacion-mapa h2,
  .coordenadas-section h2,
  .distancias-section h2,
  .indicaciones-section h2,
  .enlaces-externos h2,
  .contacto-navegacion h2 {
    font-size: 1.5rem;
  }
}
