/* ==========================================================================
   LE COMPTOIR DES ESSENCES — SALA: NOCHES DE ORIENTE (HOJA EXCLUSIVA MOBILE)
   Atmósfera: Majlis de Oriente / Desierto Áureo / Perfumería de Oud & Especias
   - Monopolio Cromático Oro Canónico: #D4AF37
   - Tipografías: Cinzel & Montserrat
   - Fondo: noches-de-oriente-bg-mobile.jpg (1080x2340)
   - Marquesina superior centrada
   - Botón Cincelado en suelo alfombrado (bottom: 95px)
   Media Target: (max-width: 768px)
   ========================================================================== */

:root {
    --gold-primary: #C5A059;
    --gold-bright: #D4AF37;
    --gold-dark: #8C6B1C;
    --gold-border: rgba(212, 175, 55, 0.45);
    
    --bg-dark: #070604;
    --text-pure-white: #FFFFFF;
    --text-cream: #F4F0EC;
    --text-muted: #A09B93;
    
    --font-title: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
}

*, *::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;
    height: 100dvh;
    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-mobile.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 para elementos escénicos en móvil */
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;
    }
    to {
        opacity: 1;
    }
}

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

#spot-logo {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 360px;
    z-index: 30;
    pointer-events: auto;
}

.room-title {
    font-family: var(--font-title);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin: 0;
    text-shadow: 
        0 1px 2px #000000,
        0 2px 4px #000000,
        0 0 8px rgba(0, 0, 0, 1),
        0 0 16px rgba(0, 0, 0, 0.95);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95));
}

.brand-subtitle {
    font-family: var(--font-sans);
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF !important;
    text-transform: uppercase;
    margin-top: 5px;
    line-height: 1.35;
    text-shadow: 
        0 1px 2px #000000,
        0 2px 4px #000000,
        0 0 8px rgba(0, 0, 0, 1),
        0 0 16px rgba(0, 0, 0, 0.95) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) !important;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. EXPOSITORES EN MOBILE (ADAPTACIÓN COMPACTA)
   ========================================================================== */

.spot-bottle {
    display: none; /* En mobile portrait se prioriza la visibilidad de la tienda beduina y el personaje */
}

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

#spot-nav {
    position: absolute !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 25 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: none !important;
}

.explore-btn.btn-cincelado {
    background: rgba(12, 10, 6, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 9px 24px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    pointer-events: auto !important;
}

.btn-cincelado .btn-line {
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-bright);
    text-transform: uppercase;
    line-height: 1.35;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

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

/* ==========================================================================
   4. BOTÓN «CONSULTAR AL BOTICARIO» EN MÓVIL (CENTRADO / SUELO ALFOMBRADO)
   ========================================================================== */

body[data-room="noches-de-oriente"] #btn-consultar-boticario,
body[data-room="noches-de-oriente"] .global-btn-consultar,
body[data-room="noches-de-oriente"] .btn-consultar-boticario {
  top: auto !important;
  bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 176px !important;
  height: auto !important;
  min-height: 34px !important;
  padding: 4px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: rgba(12, 10, 6, 0.75) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 25 !important;
}

body[data-room="noches-de-oriente"] #btn-consultar-boticario svg,
body[data-room="noches-de-oriente"] .global-btn-consultar svg,
body[data-room="noches-de-oriente"] .btn-consultar-boticario svg {
  margin-right: 0 !important;
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
  color: #D4AF37 !important;
}

body[data-room="noches-de-oriente"] .btn-consultar-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: 1.25 !important;
}

body[data-room="noches-de-oriente"] .btn-consultar-line {
  display: block !important;
  font-size: 7.5px !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
  color: #D4AF37 !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
}

body[data-room="noches-de-oriente"] #btn-consultar-boticario:hover,
body[data-room="noches-de-oriente"] .global-btn-consultar:hover,
body[data-room="noches-de-oriente"] .btn-consultar-boticario:hover {
  transform: translateX(-50%) translateY(-1px) !important;
}

/* ==========================================================================
   5. HEADER SUPERIOR DERECHO (ALTO CONTRASTE & CRISTALINO EN MÓVIL)
   ========================================================================== */
body[data-room="noches-de-oriente"] .global-header-right {
    top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    right: calc(14px + env(safe-area-inset-right, 0px)) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 70 !important;
}

body[data-room="noches-de-oriente"] .global-header-right a.nav-contact-link {
    font-family: 'Cinzel', serif !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    color: #D4AF37 !important;
    background: rgba(12, 10, 6, 0.75) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    text-shadow: 0 1px 2px #000000, 0 0 6px rgba(0, 0, 0, 0.9) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body[data-room="noches-de-oriente"] .global-header-right .cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 29px !important;
    height: 29px !important;
    background: rgba(12, 10, 6, 0.75) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}

body[data-room="noches-de-oriente"] .global-header-right .cart-icon svg {
    width: 15px !important;
    height: 15px !important;
    stroke: #D4AF37 !important;
    fill: none !important;
    filter: drop-shadow(0 1px 2px #000000) !important;
}

/* ==========================================================================
   6. FOOTER DE ALTO CONTRASTE (FIRMA INSTITUCIONAL Y DERECHOS CANÓNICOS © 2026)
   ========================================================================== */
body[data-room="noches-de-oriente"] .footer-brand-signature {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    left: calc(14px + env(safe-area-inset-left, 0px)) !important;
    z-index: 40 !important;
    text-align: left !important;
}

body[data-room="noches-de-oriente"] .footer-brand-signature p,
body[data-room="noches-de-oriente"] .footer-title,
body[data-room="noches-de-oriente"] .footer-subtitle,
body[data-room="noches-de-oriente"] .footer-tagline {
    font-family: 'Cinzel', serif !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    line-height: 1.35 !important;
    color: #D4AF37 !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 2px #000000, 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85) !important;
}

body[data-room="noches-de-oriente"] .footer-subtitle,
body[data-room="noches-de-oriente"] .footer-tagline {
    color: #D4AF37 !important;
    font-weight: 600 !important;
    font-size: 7.5px !important;
    text-shadow: 0 1px 2px #000000, 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85) !important;
}

body[data-room="noches-de-oriente"] .global-footer-legal {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    right: calc(14px + env(safe-area-inset-right, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    text-align: right !important;
    gap: 3px !important;
    z-index: 40 !important;
}

body[data-room="noches-de-oriente"] .global-footer-legal .footer-copyright {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 7.5px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: #D4AF37 !important;
    text-shadow: 0 1px 2px #000000, 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85) !important;
    white-space: nowrap !important;
}

body[data-room="noches-de-oriente"] .global-footer-legal .footer-legal-sep {
    display: none !important;
}

body[data-room="noches-de-oriente"] .global-footer-legal a {
    display: block !important;
    font-family: 'Cinzel', serif !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    color: #D4AF37 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px #000000, 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85) !important;
}

/* ==========================================================================
   7. CALIBRACIÓN TABLET PORTRAIT / VERTICAL (iPad 600px - 768px)
   - Carga el lienzo noble panorámico centrado en el fondo (canon Hito 5.39)
   - Despeja el cielo crepuscular elevando el título para no tapar la frente
   - Posiciona el botón cincelado en la alfombra persa roja debajo de la bandeja
   - Reubica la cápsula ceremonial de Consulta al Boticario en cabecera
   ========================================================================== */
@media screen and (min-width: 600px) and (orientation: portrait) {
    .noches-oriente-stage::before,
    #noches-oriente-canvas::before {
        background-image: url('../assets/backgrounds/noches-de-oriente-bg.jpg') !important;
        background-position: center bottom !important;
        background-size: cover !important;
    }

    body[data-room="noches-de-oriente"] #spot-logo {
        top: calc(26px + env(safe-area-inset-top, 0px)) !important;
        max-width: 460px !important;
    }

    body[data-room="noches-de-oriente"] .room-title {
        font-size: 1.45rem !important;
        letter-spacing: 6px !important;
    }

    body[data-room="noches-de-oriente"] .brand-subtitle {
        font-size: 0.58rem !important;
        letter-spacing: 3px !important;
    }

    body[data-room="noches-de-oriente"] #spot-nav {
        bottom: calc(52px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body[data-room="noches-de-oriente"] #btn-consultar-boticario,
    body[data-room="noches-de-oriente"] .global-btn-consultar,
    body[data-room="noches-de-oriente"] .btn-consultar-boticario {
        top: calc(48px + env(safe-area-inset-top, 0px)) !important;
        bottom: auto !important;
        left: auto !important;
        right: calc(14px + env(safe-area-inset-right, 0px)) !important;
        transform: none !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 4px 10px !important;
    }
}



