/* ========================================
   NUEVO MENÚ MÓVIL - SIMPLE Y FUNCIONAL
   ======================================== */

/* Botón hamburguesa */
.mobile-menu-btn {
  display: none; /* Oculto por defecto */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #1d1d1f;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Animación del botón cuando está abierto */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Menú móvil */
.mobile-menu {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 60px; /* Debajo del header */
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 20px;
}

/* Cuando el menú está abierto */
.mobile-menu.active {
  display: flex;
  flex-direction: column;
}

/* Enlaces del menú */
.mobile-menu-link {
  display: block;
  padding: 15px 10px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f7;
  transition: background-color 0.2s ease;
}

.mobile-menu-link:hover {
  background-color: #f5f5f7;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* Estilo especial para teléfono */
.mobile-menu-phone {
  color: #0071e3;
  font-weight: 600;
}

/* Estilo especial para WhatsApp */
.mobile-menu-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
  text-align: center;
  border-radius: 8px;
  margin-top: 10px;
  border-bottom: none;
  font-weight: 600;
}

.mobile-menu-whatsapp:hover {
  background-color: #128c7e;
}

/* Acordeón para submenú de Iluminación en móvil */
.mobile-menu-dropdown {
  position: relative;
  border-bottom: 1px solid #f5f5f7;
}

.mobile-menu-dropdown-toggle {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  padding: 15px 10px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  background-color: transparent;
  border: none;
  text-align: left;
  transition: background-color 0.2s ease;
}

.mobile-menu-dropdown-toggle:hover {
  background-color: #f5f5f7;
}

.mobile-menu-dropdown-toggle::after {
  content: '▼';
  font-size: 12px;
  color: #6e6e73;
  transition: transform 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu-dropdown-toggle.active::after {
  transform: rotate(180deg);
}

/* Submenú OCULTO por defecto */
.mobile-menu-submenu {
  max-height: 0 !important;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background-color: #f5f5f7;
  margin: 0;
  padding: 0;
}

/* Submenú VISIBLE cuando tiene clase 'open' */
.mobile-menu-submenu.open {
  max-height: 600px !important;
  padding: 5px 0;
  overflow-y: auto; /* Permite scroll si es necesario */
}

.mobile-menu-submenu a {
  display: block;
  padding: 12px 20px 12px 30px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  background-color: #f5f5f7;
  border-bottom: 1px solid #e5e5e7;
  transition: background-color 0.2s ease;
}

.mobile-menu-submenu a:hover {
  background-color: #e5e5e7;
}

.mobile-menu-submenu a:last-child {
  border-bottom: none;
}

/* Mostrar solo en móvil (menos de 734px) */
@media only screen and (max-width: 734px) {
  .mobile-menu-btn {
    display: flex;
  }
}
