/* ===================================
   NAVBAR MÓVIL - NOVADERM
   Header consistente para mobile y desktop
   =================================== */

/* Header principal - fondo verde en todos los tamaños */
.novaderm-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, #6ea96e 0%, #5a8f5a 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Logo */
.novaderm-logo {
  height: 50px;
  display: flex;
  align-items: center;
}

.novaderm-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Botón hamburguesa */
.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.hamburger-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* Overlay oscuro */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Panel del menú lateral */
.menu-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #6ea96e 0%, #5a8f5a 100%);
  z-index: 1001;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  padding: 90px 0 30px 0;
}

.menu-panel.active {
  right: 0;
}

/* Items del menú */
.menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-nav > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-nav > li > a {
  display: block;
  padding: 18px 30px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-nav > li > a:hover,
.menu-nav > li.active > a {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 40px;
  color: #ffd700;
}

/* Submenú */
.menu-nav .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu-nav li.has-submenu.open .submenu {
  max-height: 500px;
}

.menu-nav .submenu li a {
  display: block;
  padding: 12px 30px 12px 50px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.menu-nav .submenu li a:hover,
.menu-nav .submenu li.active a {
  color: #ffd700;
  padding-left: 60px;
  background: rgba(255, 255, 255, 0.05);
}

/* Indicador de submenú */
.menu-nav li.has-submenu > a::after {
  content: '+';
  position: absolute;
  right: 30px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.menu-nav li.has-submenu.open > a::after {
  transform: rotate(45deg);
}

/* Redes sociales en el menú */
.menu-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
}

.menu-social a {
  color: #ffffff;
  font-size: 24px;
  transition: all 0.3s ease;
}

.menu-social a:hover {
  color: #ffd700;
  transform: scale(1.2);
}

/* Espaciado para el contenido debajo del header fijo - SOLO EN MÓVIL */
@media (max-width: 991px) {
  body {
    padding-top: 70px;
  }
  
  /* Ocultar RD Navbar original en móvil */
  .rd-navbar-wrap {
    display: none !important;
  }
}

/* Responsive - Desktop */
@media (min-width: 992px) {
  /* Ocultar menú móvil en desktop */
  .novaderm-header,
  .menu-overlay,
  .menu-panel {
    display: none !important;
  }
  
  /* Mostrar menú desktop original */
  .rd-navbar-wrap {
    display: block !important;
  }
  
  /* Sin padding extra en desktop */
  body {
    padding-top: 0;
  }
}
