/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  overflow-x: hidden;
}

.hero-img {
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa el alto completo de la pantalla */
  overflow: hidden;
  animation: fadeIn 2s ease-in-out;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* Asegura que se adapte sin deformarse */
  display: block;
  animation: zoomIn 2.5s ease forwards;
  border-radius: 0 0 20px 20px;
}
@keyframes zoomIn {
  0% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sección ¿Dónde estamos? */
.ubicacion {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f1f4f9, #dff0f4);
  border-top: 5px solid #0a3d62;
  animation: fadeInUp 1.5s ease;
}

.ubicacion .texto {
  flex: 1 1 200px;
  max-width: 500px;
  animation: slideInLeft 1.5s ease;
}

.ubicacion .texto h2 {
  font-size: 2.5rem;
  color: #0a3d62;
  margin-bottom: 1rem;
  position: relative;
}

.ubicacion .texto h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #0a3d62;
  margin-top: 0.5rem;
  border-radius: 2px;
}

.ubicacion .texto p {
  font-size: 1.15rem;
  color: #333;
}

.ubicacion .mapa {
  flex: 1 1 350px;
  max-width: 600px;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: slideInRight 1.5s ease;
}

.ubicacion .mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Botón Volver */
.btn-volver {
  margin: 2rem auto;
  display: block;
  background-color: #0a3d62;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-volver i {
  margin-right: 8px;
}

.btn-volver:hover {
  background-color: #145da0;
  transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsivo */
@media screen and (max-width: 768px) {
  .ubicacion {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .ubicacion .mapa {
    height: 300px;
  }

  .ubicacion .texto h2 {
    font-size: 2rem;
  }

  .ubicacion .texto p {
    font-size: 1rem;
  }
  
}
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.2s ease;
}

#preloader img {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #ff00ffaa);
}