/* Mobile Menu Styles */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-top: -10px;
  z-index: 1101; /* Mayor que el menú (1100) */
  position: relative;
  outline: none;
  visibility: visible !important;
  color: #fff;
  font-size: 32px;
  -webkit-tap-highlight-color: transparent;
}

/* Animación para el ícono de hamburguesa */
.hamburger i {
  transition: transform 0.3s ease;
}

.hamburger.active i.fa-bars {
  transform: rotate(90deg);
}

/* Menú móvil (sin overlay) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 350px;
  height: 100%;
  background-color: #222D5A;
  z-index: 1100; /* Mayor que el header (1050) */
  transition: left 0.3s ease-in-out;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  color: #fff;
  font-family: 'Breda Two', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mobile-menu-overlay.active {
  left: 0;
}

.mobile-menu-content {
  padding: 20px 0 40px;
}

.mobile-menu-header {
  padding: 8px 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  position: relative;
  margin-top: -5px;
}

.mobile-menu-header .logo {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: inline-block;
  object-fit: contain;
}

/* Estilos para el botón de cierre */
.close-menu {
  background: none;
  border: none;
  color: #1573c0;
  font-size: 26px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  opacity: 0.8;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20; /* para estar sobre el menú */
}

.close-menu:hover {
  opacity: 1;
  background: none;
  transform: none;
  box-shadow: none;
}

/* Estilos para los botones de contacto */
.mobile-menu-overlay .mobile-contact-buttons {
  padding: 0 20px 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-menu-overlay .contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  color: #000; /* Texto negro */
  background-color: #fff; /* Fondo blanco */
  width: 100%;
  box-sizing: border-box;
}

.contact-button i {
  margin-right: 8px;
  font-size: 18px;
}

.mobile-menu-overlay .contact-button.whatsapp {
  background-color: #ffffff; /* Fondo blanco */
  color: #000000 !important; /* Texto en negro */
  border: 1px solid #dddddd;
}

.contact-button.whatsapp i {
  color: #25D366 !important; /* Verde de WhatsApp */
}

.contact-button.whatsapp span {
  color: #000000 !important; /* Texto en negro */
}

.mobile-menu-overlay .contact-button.facebook {
  background-color: #ffffff; /* Fondo blanco */
  color: #000000 !important; /* Texto en negro */
  border: 1px solid #dddddd;
}

.contact-button.facebook i {
  color: #3b5998 !important; /* Azul de Facebook */
}

.contact-button.facebook span {
  color: #000000 !important; /* Texto en negro */
}

/* Estilos para hover solo en dispositivos que lo soporten */
@media (hover: hover) {
  .contact-button.whatsapp:hover {
    background-color: #128C7E;
    color: #fff !important;
    transform: translateY(-2px);
  }
  
  .contact-button.facebook:hover {
    background-color: #2d4373;
    color: #fff !important;
    transform: translateY(-2px);
  }
}

.mobile-menu-overlay .contact-button.phone {
  background-color: #28a745; /* verde teléfono */
  color: #fff;
  border: 1px solid #28a745;
}

.contact-button.phone:hover {
  background-color: #1e7e34;
  transform: translateY(-2px);
}

.contact-button:hover {
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Íconos redes sociales */
.mobile-menu-overlay .social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 15px auto 0;
  padding: 0 15px;
  width: 100%;
  max-width: 300px;
}

.social-icon {
  color: #fff;
  font-size: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: #fff;
  text-decoration: none;
}

.social-icon i {
  transition: all 0.3s ease;
}

.social-icon:hover i {
  transform: scale(1.2);
}

/* Ocultar botón hamburger cuando menú abierto */
.mobile-menu-overlay.active + .mobile-header .hamburger {
  visibility: hidden;
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 0;
}

.mobile-nav-link {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 12px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 30px;
}

.mobile-nav-link:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Header móvil fijo por encima contenido */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050; /* menor que menú 1100 */
  background: transparent;
  transition: all 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Responsive: ocultar menú y hamburguesa en desktop */
@media (min-width: 992px) {
  .hamburger,
  .mobile-menu-overlay {
    display: none;
  }
}
