/* === BOTÓN HAMBURGUESA === */
#hamburger {
    position: fixed;
    top: 140px;     /* debajo de foto_comun.webp */
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(20,20,20,0.7);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

#hamburger span {
    width: 22px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 1px;
    transition: all 0.3s ease;
}

#hamburger:hover {
    background: var(--gold);
    transform: scale(1.05);
}

#hamburger:hover span {
    background: #141414;
}

/* === MENÚ FLOTANTE (AHORA DESDE ARRIBA-IZQUIERDA) === */
#mobile-menu {
    position: fixed;
    top: 200px;                    /* ← DESDE DEBAJO DEL BOTÓN */
    left: 20px;                    /* ← ALINEADO CON EL BOTÓN */
    transform: translateY(0) scale(0.95);
    background: rgba(20, 20, 20, 0.20);  /* ← AQUÍ LA TRANSPARENCIA */
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px 25px;
    width: 280px;                  /* ancho fijo elegante */
    max-height: 75vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 10000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#mobile-menu ul {
    list-style: none;
    text-align: left;
}

#mobile-menu a {
    display: block;
    color: var(--gold-light);
    font-size: 1.5rem;
    font-weight: 400;
    padding: 14px 0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
}

#mobile-menu a:hover,
#mobile-menu a.current {
    color: white;
}

#close-menu {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === OVERLAY (TRANSPARENTE) === */
#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);   /* ← TRANSPARENCIA DEL FONDO OSCURO */
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 9998;
}

#menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #mobile-menu {
        width: 90%;
        max-width: none;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        border-radius: 16px;
        padding: 60px 20px 30px;
    }
    #mobile-menu.open {
        transform: translate(-50%, -50%) scale(1);
    }
}