/* =========================
   BARRAS DE NAVEGACIÓN
========================== */

/* BARRA SUPERIOR AZUL (contacto) */
.top-bar-blue {
  background: #a7e1fc; /* Azul oscuro */
  color: #003366; /* Azul claro para el texto */
  padding: 10px 5%;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}



/* Para los otros colores que mencionaste en hover */
.menu a:hover {
  color: #a7e1fc; /* Azul claro en hover */
}

/* Y si quieres que la línea bajo el enlace también sea azul claro */
.menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #a7e1fc; /* Azul claro */
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.top-bar-blue .left,
.top-bar-blue .center,
.top-bar-blue .right {
  padding: 0 10px;
}

/* BARRA NEGRA PRINCIPAL */
.top-bar {
  background: #000;
  color: white;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 80px;
  flex-wrap: wrap;
}

/* REDES SOCIALES */
.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social-logo:hover {
  transform: scale(1.1);
}

/* LOGO CENTRADO */
.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-banner {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* MENÚ DE NAVEGACIÓN (Desktop) */
.menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.menu a:hover {
  color: #ff66ff;
}

.menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #ff66ff;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* BOTÓN HAMBURGUESA (oculto en desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: translateY(-50%) scale(1.1);
}

/* BOTÓN PARA CERRAR MENÚ MÓVIL */
.close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
  z-index: 1003;
  transition: transform 0.3s ease;
}

.close-menu:hover {
  transform: rotate(90deg);
}

/* =========================
   RESPONSIVE PARA MÓVIL
========================== */

/* TABLET Y MÓVIL (≤ 768px) */
@media (max-width: 768px) {
  /* Ajusta el banner azul superior */
  .top-bar-blue {
    flex-direction: column;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85em;
    gap: 5px;
  }
  
  .top-bar-blue .left,
  .top-bar-blue .center,
  .top-bar-blue .right {
    padding: 2px 0;
  }
  
  /* Ajusta la barra negra principal */
  .top-bar {
    padding: 10px 15px;
    min-height: 70px;
  }
  
  /* Muestra el botón hamburguesa */
  .menu-toggle {
    display: block;
  }
  
  /* Esconde el menú normal en móvil */
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 80px;
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  
  /* Muestra el menú cuando está activo */
  .menu.active {
    right: 0;
  }
  
  /* Muestra el botón cerrar en el menú móvil */
  .close-menu {
    display: block;
  }
  
  /* Estilos para los enlaces del menú móvil */
  .menu a {
    display: block;
    padding: 18px 25px;
    margin: 0;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    white-space: normal;
  }
  
  .menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff66ff;
    padding-left: 30px;
  }
  
  .menu a::after {
    display: none; /* Oculta la línea inferior en móvil */
  }
  
  /* Ajusta la posición del logo en móvil */
  .logo-center {
    position: static;
    transform: none;
    margin: 0 auto;
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .logo-banner {
    max-height: 50px;
  }
  
  /* Reorganiza la barra negra */
  .top-bar {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Ajusta las redes sociales */
  .social-icons {
    justify-content: center;
    gap: 20px;
    order: 2;
    width: 100%;
  }
  
  .social-logo {
    width: 30px;
    height: 30px;
  }
  
  /* Overlay para fondo oscuro cuando menú está abierto */
  .menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .menu.active::before {
    opacity: 1;
  }
}

/* MÓVIL PEQUEÑO (≤ 480px) */
@media (max-width: 480px) {
  .menu {
    width: 100%;
  }
  
  .menu-toggle {
    right: 15px;
    font-size: 1.6em;
  }
  
  .logo-banner {
    max-height: 45px;
  }
  
  .top-bar-blue {
    font-size: 0.75em;
    padding: 6px 0;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-logo {
    width: 28px;
    height: 28px;
  }
}