/* ==========================================================================
   LE COMPTOIR DES ESSENCES — SALA: NOCHES DE ORIENTE (HOJA EXCLUSIVA DESKTOP)
   Atmósfera: Majlis de Oriente / Desierto Áureo / Perfumería de Oud & Especias
   - Monopolio Cromático Oro Canónico: #D4AF37
   - Tipografías: Cinzel & Montserrat
   - Mesita Hexagonal Izquierda: Oud Elixir d'Extase Gold Label (left: 21.8%, bottom: 46%)
   - Mesita Hexagonal Derecha: Oud Elixir d'Extase Black Label (left: 78.1%, bottom: 46%)
   - Botón Cincelado Flotante en Suelo Alfombrado (bottom: 60px)
   Media Target: (min-width: 769px)
   ========================================================================== */

:root {
    --gold-primary: #C5A059;
    --gold-bright: #D4AF37;
    --gold-dark: #8C6B1C;
    --gold-border: rgba(212, 175, 55, 0.45);
    
    --amber-glow: #FFAE19;
    --amber-spot-border: rgba(212, 175, 55, 0.35);
    --amber-spot-shadow: rgba(212, 175, 55, 0.2);

    --bg-dark: #070604;
    --text-pure-white: #FFFFFF;
    --text-cream: #F4F0EC;
    --text-muted: #A09B93;
    
    --font-title: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

#collections-menu,
.boticario-floating-nav,
.collections-modal {
    display: none !important;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    overflow: hidden;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

.noches-oriente-stage, #noches-oriente-canvas, .stage-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.noches-oriente-stage::before,
#noches-oriente-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/backgrounds/noches-de-oriente-bg.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
    animation: orienteFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes orienteFadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1.0);
    }
}

/* Entrada ceremonial suave y sedosa para elementos escénicos (Efecto Wow de Alta Gama) */
body[data-room="noches-de-oriente"] #spot-logo,
body[data-room="noches-de-oriente"] #spot-left,
body[data-room="noches-de-oriente"] #spot-right,
body[data-room="noches-de-oriente"] #spot-nav {
    animation: orienteElementsFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes orienteElementsFadeIn {
    from {
        opacity: 0;
        filter: brightness(0.7);
    }
    to {
        opacity: 1;
        filter: brightness(1);
    }
}

/* ==========================================================================
   1. IDENTIDAD CENTRAL DE SALA (#spot-logo)
   ========================================================================== */

body[data-room="noches-de-oriente"] #spot-logo {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 30;
    pointer-events: auto;
    cursor: default;
    background: none;
    border: none;
    padding: 0;
}

.room-title {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 9px;
    color: #FFFFFF;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF3D6 28%, #E5C365 65%, #C29B38 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    padding: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 1))
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.98))
            drop-shadow(0 4px 16px rgba(0, 0, 0, 0.95))
            drop-shadow(0 0 28px rgba(0, 0, 0, 0.9));
    transition: filter 0.4s ease, transform 0.4s ease;
}

body[data-room="noches-de-oriente"] #spot-logo:hover .room-title {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 1))
            drop-shadow(0 0 24px rgba(212, 175, 55, 0.95))
            drop-shadow(0 0 45px rgba(255, 235, 170, 0.65));
}

.brand-subtitle {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 4.5px;
    color: #FFFFFF;
    opacity: 0.98;
    text-transform: uppercase;
    margin-top: 8px;
    text-shadow: 
        0 1px 2px #000000,
        0 2px 6px rgba(0, 0, 0, 1),
        0 0 12px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   2. EXPOSITORES DE MESITAS HEXAGONALES TALLADAS (#spot-left / #spot-right)
   ========================================================================== */

.spot-bottle {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    z-index: 20;
    transform: translateX(-50%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.spot-bottle .bottle-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.spot-bottle .perfume-bottle {
    height: 145px;
    min-height: 130px;
    max-height: 18vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.85));
    transition: transform 0.4s var(--transition-smooth), filter 0.4s ease;
    will-change: transform, filter;
}

/* Sombra de contacto sobre el disco superior de la mesita */
.spot-bottle .bottle-contact-shadow {
    position: absolute;
    bottom: -5px;
    width: 75px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 45%, transparent 75%);
    filter: blur(1px);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* --- Expositor Izquierdo: Mesita Hexagonal Izquierda --- */
body[data-room="noches-de-oriente"] #spot-left {
    position: absolute;
    left: 20.8%;
    bottom: calc(50vh - 2.1vw);
    transform: translateX(-50%);
    z-index: 20;
}

body[data-room="noches-de-oriente"] #spot-left:hover .perfume-bottle {
    transform: translateY(-6px) scale(1.06);
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.85)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9));
}

body[data-room="noches-de-oriente"] #spot-left:hover .bottle-contact-shadow {
    transform: scale(0.92);
    opacity: 0.65;
}

/* --- Expositor Derecho: Mesita Hexagonal Derecha --- */
body[data-room="noches-de-oriente"] #spot-right {
    position: absolute;
    left: 78.5%;
    bottom: calc(50vh - 2.1vw);
    transform: translateX(-50%);
    z-index: 20;
}

body[data-room="noches-de-oriente"] #spot-right:hover .perfume-bottle {
    transform: translateY(-6px) scale(1.06);
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.85)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9));
}

body[data-room="noches-de-oriente"] #spot-right:hover .bottle-contact-shadow {
    transform: scale(0.92);
    opacity: 0.65;
}

/* --- Cartelas Informativas Flotantes (Glassmorphism Áureo) --- */
.spot-bottle .perfume-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(12, 10, 6, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    padding: 8px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 12px rgba(212, 175, 55, 0.15);
}

.spot-bottle:hover .perfume-label {
    opacity: 1;
    transform: translateX(-50%) translateY(12px);
}

.spot-bottle .fragrance-title {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-bright);
    margin: 0;
}

.spot-bottle .sub-title {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--text-cream);
    opacity: 0.9;
    margin-top: 2px;
}

.spot-bottle .brand-name {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ==========================================================================
   3. BOTÓN CINCELADO EN SUELO ALFOMBRADO (#spot-nav)
   ========================================================================== */

#spot-nav {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    text-align: center;
}

.explore-btn.btn-cincelado {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 24px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.explore-btn.btn-cincelado:hover {
    transform: translateY(-2px);
}

.btn-cincelado .btn-line {
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-cream);
    text-transform: uppercase;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.btn-cincelado:hover .btn-line {
    color: var(--gold-bright);
    text-shadow: 
        0 0 12px rgba(212, 175, 55, 0.9),
        0 0 24px rgba(212, 175, 55, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.95);
}

.btn-cincelado-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    margin-top: 8px;
    transition: width 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.btn-cincelado:hover .btn-cincelado-line {
    width: 100px;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.95);
}

/* ==========================================================================
   4. PIE DE PÁGINA (LEMA DE MARCA Y CENTRO LEGAL — NITIDEZ Y ORO CANÓNICO)
   ========================================================================== */

body[data-room="noches-de-oriente"] .footer-brand-signature,
body[data-room="noches-de-oriente"] .footer-brand-signature p,
body[data-room="noches-de-oriente"] .footer-brand-signature .footer-title,
body[data-room="noches-de-oriente"] .footer-brand-signature .footer-subtitle,
body[data-room="noches-de-oriente"] .footer-brand-signature .footer-tagline {
    color: var(--gold-bright) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.95) !important;
    font-weight: 500 !important;
}

body[data-room="noches-de-oriente"] .global-footer-legal,
body[data-room="noches-de-oriente"] .global-footer-legal .footer-copyright,
body[data-room="noches-de-oriente"] .global-footer-legal .footer-legal-sep,
body[data-room="noches-de-oriente"] .global-footer-legal a {
    color: var(--gold-bright) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.95) !important;
    font-weight: 500 !important;
}

body[data-room="noches-de-oriente"] .global-footer-legal a:hover {
    color: #FFFFFF !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.95), 0 0 24px rgba(212, 175, 55, 0.6) !important;
}

/* ==========================================================================
   5. CALIBRACIÓN AXIAL AUTOMÁTICA PARA PANTALLAS APAISADAS (< 16:9)
   Garantiza que Oud Elixir Gold Label y Black Label descansen exactamente
   en el centro geométrico de sus mesitas octogonales talladas en iPad Horizontal
   (4:3 / 1024x768), Surface (3:2) y portátiles compactos (16:10).
   ========================================================================== */
@media (min-width: 769px) and (max-aspect-ratio: 16/9) and (orientation: landscape) {
    body[data-room="noches-de-oriente"] #spot-left {
        left: calc(50vw - 51.91vh) !important;
        bottom: 45.6% !important;
    }
    body[data-room="noches-de-oriente"] #spot-right {
        left: calc(50vw + 50.67vh) !important;
        bottom: 45.6% !important;
    }
    body[data-room="noches-de-oriente"] #spot-nav {
        bottom: 42px !important;
    }
}

/* ==========================================================================
   6. CALIBRACIÓN TABLETS GRANDES EN VERTICAL (iPad Air 820px, iPad Pro 834px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 950px) and (orientation: portrait) {
    body[data-room="noches-de-oriente"] #spot-logo {
        top: calc(28px + env(safe-area-inset-top, 0px)) !important;
    }
    body[data-room="noches-de-oriente"] #spot-left,
    body[data-room="noches-de-oriente"] #spot-right {
        display: none !important;
    }
    body[data-room="noches-de-oriente"] #spot-nav {
        bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body[data-room="noches-de-oriente"] #btn-consultar-boticario {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
