/* =====================
   ESTILOS GENERALES
===================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #1b2b38, #203a43, #1E90FF);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  color: #f5f5f5;
  line-height: 1.6;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🔹 Animación del fondo fluido */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   NAVBAR
===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  background: rgba(135, 206, 235, 0.35);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
}

.logo {
  background: #ffffff;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo img {
  height: 55px;
  border-radius: 50%;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px #1E90FF);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4);
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #f5f5f5;
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

/* =====================
   SECCIÓN CONTACTO
===================== */
section {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px 60px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(30,144,255,0.2),
              0 0 40px rgba(50,205,50,0.2),
              0 0 60px rgba(255,105,180,0.2);
  transition: all 0.6s ease-in-out;
  max-width: 800px;
  width: 90%;
  margin-top: 100px;
  margin-bottom: 100px;
}

section:hover {
  box-shadow: 0 0 40px rgba(30,144,255,0.4),
              0 0 80px rgba(50,205,50,0.4),
              0 0 120px rgba(255,105,180,0.3);
  transform: scale(1.02);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4, #6edf6e);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 6s linear infinite;
}

@keyframes colorFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

section p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

section li {
  margin: 10px 0;
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

section li:hover {
  transform: scale(1.05);
  color: #32CD32;
}

/* Enlaces con degradado */
section a {
  color: #1E90FF;
  text-decoration: none;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #FF69B4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

section a:hover {
  text-shadow: 0 0 10px #32CD32, 0 0 20px #1E90FF, 0 0 30px #FF69B4;
  transform: scale(1.05);
}

/* 🔹 Estilo específico para el mapa */
#map {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  margin-top: 20px;
  margin-bottom: 80px;
  box-shadow: 0 0 15px rgba(30,144,255,0.3);
}

/* =====================
   FOOTER
===================== */
.footer {
  width: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #1E90FF);
  color: #f5f5f5;
  text-align: center;
  padding: 10px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.footer p {
  margin: 0;
  text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.footer span {
  font-weight: 700;
  background: linear-gradient(90deg, #6edf6e, #1E90FF, #e4514a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 40px;
  }
}

@media (max-width: 900px) {

  .navbar {
    padding: 0 25px !important; /* ✅ separa el icono de la orilla */
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 50, 0.95);
    gap: 20px;
    padding: 20px 0;
    display: none;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-right: 20px; /* ✅ espacio hacia adentro */
  }

  section {
    padding: 30px 25px;
    width: 95%;
    margin-bottom: 70px;
  }

  section h2 {
    font-size: 2rem;
  }

  section p, section li {
    font-size: 1rem;
  }

  #map {
    height: 300px;
    margin-bottom: 70px;
  }

  .footer {
    font-size: 0.9rem;
    padding: 8px 0;
  }
}

@media (max-width: 600px) {
  section {
    padding: 25px 20px;
  }

  section h2 {
    font-size: 1.8rem;
  }

  #map {
    height: 250px;
  }
}
