/* ============================================
   CSS ULTRA MODERNO PARA PANTALLAS MÓVILES
   Menú hamburguesa elegante con animaciones avanzadas
============================================ */

/* Variables CSS mejoradas - Tema Oscuro Elegante */
:root {
  --mobile-primary: #e8e8e8;
  --mobile-dark: #1a1a1a;
  --mobile-darker: #0f0f0f;
  --mobile-light: #ffffff;
  --mobile-gray: #2a2a2a;
  --mobile-shadow: rgba(0, 0, 0, 0.4);
  --mobile-gradient: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  --mobile-gold-gradient: linear-gradient(135deg, #C5A572 0%, #d4b882 100%);
  --mobile-transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  --mobile-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   MENÚ HAMBURGUESA SUPER ELEGANTE Y MODERNO
============================================ */
.hamburger-mobile {
  display: none;
  position: relative;
  width: 70px;
  height: 50px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: var(--mobile-transition);
  overflow: visible;
}

.hamburger-mobile::before {
  display: none;
}

.hamburger-mobile:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: none;
  border: none;
  background: transparent;
}

.hamburger-mobile:active {
  transform: translateY(-1px) scale(1.02);
}

/* Contenedor de las líneas del hamburger */
.hamburger-mobile::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.hamburger-mobile-line {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 3px;
  background: var(--mobile-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: var(--mobile-transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger-mobile-line:nth-child(1) {
  top: 18px;
}

.hamburger-mobile-line:nth-child(2) {
  top: 23px;
}

.hamburger-mobile-line:nth-child(3) {
  top: 28px;
}

.hamburger-mobile:hover .hamburger-mobile-line {
  background: var(--mobile-light);
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(197, 165, 114, 0.6);
}

/* Animación cuando está activo */
.hamburger-mobile.active {
  background: transparent;
  transform: scale(1.1);
  box-shadow: none;
  border: none;
}

.hamburger-mobile.active .hamburger-mobile-line {
  background: #ffffff;
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(251, 251, 251, 0.8);
}

.hamburger-mobile.active .hamburger-mobile-line:nth-child(1) {
  top: 23px;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger-mobile.active .hamburger-mobile-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.hamburger-mobile.active .hamburger-mobile-line:nth-child(3) {
  top: 23px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ============================================
   PANEL MÓVIL ULTRA MODERNO
============================================ */
.nav-mobile-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(
    180deg, 
    rgba(15, 15, 15, 0.98) 0%, 
    rgba(26, 26, 26, 0.98) 30%,
    rgba(10, 10, 10, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  border-left: 2px solid rgba(197, 165, 114, 0.2);
  z-index: 1000;
  transition: right 0.6s var(--mobile-bounce);
  box-shadow: 
    -15px 0 40px rgba(0, 0, 0, 0.8),
    inset 1px 0 0 rgba(197, 165, 114, 0.1);
  overflow-y: auto;
}

.nav-mobile-panel.active {
  right: 0;
}

/* Botón de cierre mejorado */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(197, 165, 114, 0.3);
  transition: var(--mobile-transition);
  z-index: 1002;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.close-btn::before,
.close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--mobile-primary);
  border-radius: 1px;
  transition: var(--mobile-transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover {
  background: rgba(139, 0, 0, 0.6);
  border-color: #8B0000;
  transform: scale(1.1);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.7),
    0 0 15px rgba(139, 0, 0, 0.4);
}

.close-btn:hover::before,
.close-btn:hover::after {
  background: #ffffff;
}

/* Menú móvil elegante */
.nav-mobile-menu {
  list-style: none;
  padding: 80px 0 30px;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.nav-mobile-menu li {
  margin: 0;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.6s ease forwards;
}

.nav-mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-mobile-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-mobile-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-mobile-menu li:nth-child(4) { animation-delay: 0.4s; }

.nav-mobile-menu a {
  display: block;
  padding: 20px 30px;
  color: var(--mobile-light);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: var(--mobile-transition);
  border-bottom: 1px solid rgba(42, 42, 42, 0.8);
  background: rgba(15, 15, 15, 0.3);
}

.nav-mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--mobile-gold-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
  box-shadow: 0 0 10px rgba(197, 165, 114, 0.4);
}

.nav-mobile-menu a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(197, 165, 114, 0.1));
  transition: width 0.3s ease;
}

.nav-mobile-menu a:hover::before {
  transform: scaleY(1);
}

.nav-mobile-menu a:hover::after {
  width: 100%;
}

.nav-mobile-menu a:hover {
  color: var(--mobile-primary);
  background: rgba(26, 26, 26, 0.8);
  transform: translateX(15px);
  padding-left: 45px;
  text-shadow: 0 0 10px rgba(197, 165, 114, 0.3);
  box-shadow: inset 0 0 20px rgba(197, 165, 114, 0.1);
}

.nav-mobile-menu a:active {
  transform: translateX(5px) scale(0.98);
}

/* Overlay mejorado */
.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(0px);
}

.nav-mobile-overlay.active {
  background: rgba(0, 0, 0, 0.85);
  visibility: visible;
  backdrop-filter: blur(8px);
}

/* Animaciones */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Prevenir scroll del body cuando el menú está abierto */
.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

/* ============================================
   MEDIA QUERIES PARA DIFERENTES PANTALLAS
============================================ */

/* Tablets y móviles grandes */
@media screen and (max-width: 768px) {
  .hamburger-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .nav-header {
    display: none;
  }
}

/* Móviles medianos */
@media screen and (max-width: 480px) {
  .nav-mobile-panel {
    max-width: 100%;
    width: 100%;
  }
  
  .nav-mobile-menu a {
    font-size: 1.1rem;
    padding: 18px 25px;
  }
  
  .hamburger-mobile {
    width: 45px;
    height: 45px;
  }
  
  .hamburger-mobile-line {
    width: 22px;
  }
}

/* Móviles pequeños */
@media screen and (max-width: 360px) {
  .nav-mobile-menu a {
    font-size: 1rem;
    padding: 16px 20px;
  }
  
  .hamburger-mobile {
    width: 42px;
    height: 42px;
  }
  
  .hamburger-mobile-line {
    width: 20px;
    height: 2.5px;
  }
}

/* Móviles muy pequeños */
@media screen and (max-width: 320px) {
  .nav-mobile-menu a {
    font-size: 0.95rem;
    padding: 15px 18px;
  }
  
  .hamburger-mobile {
    width: 40px;
    height: 40px;
  }
}