/* ===========================================================================
   EMAUS ENGINE RUNTIME STYLES
   Reorganización estructural por bloques — sin cambios funcionales intencionales
   ===========================================================================

   Orden del archivo:
   01. Variables maestras y base global
   02. Núcleo del visor, loader y capas multimedia
   03. Transiciones de ambiente día/noche
   04. Interfaz principal y menú de escenas
   05. Botones universales y navegación
   06. Hotspots convencionales
   07. Sidebar Inquire y llamada a la acción
   08. Formulario interno de captación
   09. Aviso de orientación móvil
   10. Adaptación responsive para móviles y tablets
   11. Interacción web del menú desplegable
   12. Floating Text cinematográfico
   =========================================================================== */

/* ===========================================================================
   01. VARIABLES MAESTRAS Y BASE GLOBAL
   =========================================================================== */
:root {
    --bg-main: #08080a;
    --text-main: white;
    --ui-transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    /* Variación Cosmética 1: Redonda Tradicional / Píldora Elegante (Por defecto) */
    --btn-radius: 50%;
    --pill-radius: 20px;
    --btn-bg: rgba(20, 19, 18, 0.7);
    --btn-border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Variación Cosmética 2: Cuadrada Moderna (Activada desde la Consola/Body) */
body.ui-cosmetica-cuadrada {
    --btn-radius: 4px;
    --pill-radius: 4px;
    --btn-bg: rgba(10, 10, 10, 0.75);
    --btn-border: 1px solid rgba(255, 255, 255, 0.08);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    user-select: none;
}

/* ===========================================================================
   02. NÚCLEO DEL VISOR, LOADER Y CAPAS MULTIMEDIA
   =========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d11;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.6s ease;
}

#app-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* ===========================================================================
   FULLSCREEN — CORTINA DE TRANSICIÓN COORDINADA
   =========================================================================== */

#app-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2147483647;
    background: #000000;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    transition:
        opacity 200ms ease-in-out;
}

#app-viewport.emaus-fullscreen-curtain-activa::after {
    opacity: 1;
}

/*
 * Salida iniciada mediante ESC/F11 o por el navegador:
 * necesitamos negro inmediato porque no podemos decidir
 * cuánto tiempo conservará el User Agent el estado anterior.
 * El reveal vuelve a usar los 200 ms normales.
 */
#app-viewport.emaus-fullscreen-curtain-instantanea::after {
    transition: none !important;
}

#app-viewport::backdrop {
    background: #000000;
}

#orbit-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.media-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease-in-out;
}

#hotspots-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* ===========================================================================
   03. TRANSICIONES DE AMBIENTE DÍA/NOCHE
   =========================================================================== */
#sequence-element {
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Clase temporal inyectada durante la transición Día/Noche */
.transicion-ambiente-fade {
    opacity: 0 !important;
}

/* ===========================================================================
   04. INTERFAZ PRINCIPAL Y MENÚ DE ESCENAS
   =========================================================================== */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    box-sizing: border-box;
}

.ui-dropdown-block {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

/* Botón "Trigger" de la barra superior */
.dropdown-trigger {
    background: var(--btn-bg);
    border: var(--btn-border);
    color: #f5f2eb;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
    transition: var(--ui-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 38px;
    border-radius: var(--pill-radius);
}

.dropdown-trigger:hover {
    background: rgba(30, 29, 28, 0.9);
    border-color: #b58450;
}

/* 🎯 Transición nativa y suave para la flecha ▼ */
.dropdown-trigger span,
.dropdown-trigger .arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#dropdown-wrapper {
    position: relative;
    padding-bottom: 5px;
}

.dropdown-menu-list {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    width: 220px;
    background: rgba(20, 19, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--btn-radius);
    display: none;
    flex-direction: column;
    z-index: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Despliegue del menú ÚNICAMENTE al estar sobre el wrapper del botón */
#dropdown-wrapper:hover .dropdown-menu-list {
    display: flex !important;
}

/* Rotación de la flecha ÚNICAMENTE al estar sobre el wrapper */
#dropdown-wrapper:hover #dropdown-btn span,
#dropdown-wrapper:hover .arrow-icon {
    transform: rotate(180deg) !important;
    display: inline-block;
}

.ui-utility-controls {
    position: absolute !important;
    top: max(16px, env(safe-area-inset-top)) !important;
    right: max(16px, env(safe-area-inset-right)) !important;
    pointer-events: auto;
}

/* ===========================================================================
   05. BOTONES UNIVERSALES Y NAVEGACIÓN
   =========================================================================== */
.btn-utility,
.nav-button {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    background: var(--btn-bg);
    border: var(--btn-border);
    color: #f5f2eb;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: var(--ui-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: auto;
}

.btn-utility:hover,
.nav-button:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

#btn-email,
#btn-share,
#btn-fullscreen {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

/* ===========================================================================
   06. HOTSPOTS — PRESENTACIÓN EDITORIAL V1I
   =========================================================================== */
.hotspot-radar.hotspot-editorial-marker {
    --hotspot-presentation-color: #ffffff;
    --hotspot-presentation-scale: 1;
    --hotspot-backdrop-blur: 10px;
    --hotspot-reading-backdrop-opacity: 1;
    --hotspot-font-family: inherit;
    --hotspot-title-size: 18px;
    --hotspot-title-weight: 400;
    --hotspot-title-style: normal;
    --hotspot-title-color: #ffffff;
    --hotspot-subtitle-size: 10px;
    --hotspot-subtitle-weight: 600;
    --hotspot-subtitle-color: rgba(255,255,255,.82);
    position: absolute;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%) scale(var(--hotspot-presentation-scale));
    transform-origin: 0 50%;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity .28s ease;
    z-index: 6;
}

.hotspot-visible.hotspot-editorial-marker { opacity: 1; }

.hotspot-editorial-visual {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    font-family: var(--hotspot-font-family);
}

.hotspot-editorial-ring {
    position: absolute;
    left: 0;
    top: 50%;
    display: block;
    width: 36px;
    height: 36px;
    border: 1.35px solid color-mix(in srgb, var(--hotspot-presentation-color) 86%, transparent);
    border-radius: 999px;
    background: rgba(18, 18, 16, 0.05);
    box-shadow: 0 4px 18px rgba(0,0,0,.16);
    overflow: hidden;
    transform: translate(-50%, -50%);
    transition: width .36s cubic-bezier(.22,1,.36,1), height .36s cubic-bezier(.22,1,.36,1), border-radius .36s ease, background .28s ease, box-shadow .28s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hotspot-editorial-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity .24s ease .06s, transform .36s cubic-bezier(.22,1,.36,1);
}

.hotspot-editorial-label {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 3px;
    margin-left: 30px;
    padding: 7px 10px 7px 12px;
    min-width: max-content;
    max-width: 260px;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    transition: margin-left .36s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}

.hotspot-editorial-label::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -8px -14px;
    border-radius: 16px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(18,18,16,.24) 0%, rgba(18,18,16,.17) 48%, rgba(18,18,16,.07) 72%, rgba(18,18,16,0) 100%);
    opacity: var(--hotspot-reading-backdrop-opacity);
    backdrop-filter: blur(var(--hotspot-backdrop-blur));
    -webkit-backdrop-filter: blur(var(--hotspot-backdrop-blur));
}

.hotspot-radar.hotspot-editorial-marker::after {
    content: none;
}

.hotspot-radar.hotspot-editorial-marker[data-radar-enabled="true"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 1px solid color-mix(in srgb, var(--hotspot-presentation-color) 68%, transparent);
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    animation: emaus-hotspot-editorial-radar 2.2s ease-out infinite;
}

@keyframes emaus-hotspot-editorial-radar {
    0% { transform: translate(-50%, -50%) scale(.92); opacity: .52; }
    72%, 100% { transform: translate(-50%, -50%) scale(2.15); opacity: 0; }
}

.hotspot-radar.hotspot-editorial-marker[data-radar-enabled="true"]:hover::after,
.hotspot-radar.hotspot-editorial-marker[data-radar-enabled="true"]:focus-visible::after {
    opacity: 0;
    animation: none;
}

.hotspot-editorial-title {
    color: var(--hotspot-title-color);
    font-size: var(--hotspot-title-size);
    font-weight: var(--hotspot-title-weight);
    font-style: var(--hotspot-title-style);
    line-height: 1.02;
    letter-spacing: .01em;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.hotspot-editorial-subtitle {
    color: var(--hotspot-subtitle-color);
    font-size: var(--hotspot-subtitle-size);
    font-weight: var(--hotspot-subtitle-weight);
    line-height: 1.05;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0,0,0,.24);
}

.hotspot-editorial-subtitle:empty { display: none; }

.hotspot-editorial-marker[data-label-mode="title"] .hotspot-editorial-subtitle {
    display: none;
}

.hotspot-editorial-marker[data-label-mode="marker"] .hotspot-editorial-label {
    display: none;
}

.hotspot-editorial-marker:hover .hotspot-editorial-ring,
.hotspot-editorial-marker:focus-visible .hotspot-editorial-ring {
    background: rgba(18,18,16,.20);
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

.hotspot-editorial-marker[data-open-shape="capsule"]:hover .hotspot-editorial-ring,
.hotspot-editorial-marker[data-open-shape="capsule"]:focus-visible .hotspot-editorial-ring {
    width: 104px;
    height: 66px;
    border-radius: 33px;
}

.hotspot-editorial-marker[data-open-shape="circle"]:hover .hotspot-editorial-ring,
.hotspot-editorial-marker[data-open-shape="circle"]:focus-visible .hotspot-editorial-ring {
    width: 70px;
    height: 70px;
}

.hotspot-editorial-marker[data-open-shape="capsule"]:hover .hotspot-editorial-label,
.hotspot-editorial-marker[data-open-shape="capsule"]:focus-visible .hotspot-editorial-label {
    margin-left: 66px;
    background: transparent;
}

.hotspot-editorial-marker[data-open-shape="circle"]:hover .hotspot-editorial-label,
.hotspot-editorial-marker[data-open-shape="circle"]:focus-visible .hotspot-editorial-label {
    margin-left: 48px;
    background: transparent;
}

.hotspot-editorial-marker:hover .hotspot-editorial-preview,
.hotspot-editorial-marker:focus-visible .hotspot-editorial-preview {
    opacity: 1;
    transform: scale(1);
}

.hotspot-editorial-marker[data-label-behavior="fade"]:hover .hotspot-editorial-label,
.hotspot-editorial-marker[data-label-behavior="fade"]:focus-visible .hotspot-editorial-label {
    opacity: 0;
}

.hotspot-editorial-marker:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
    .hotspot-editorial-ring,
    .hotspot-editorial-preview,
    .hotspot-editorial-label {
        transition-duration: .01ms !important;
    }
}

/* ===========================================================================
   07. SIDEBAR INQUIRE Y LLAMADA A LA ACCIÓN
   =========================================================================== */
.sidebar-premium-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sidebar-premium-container.active {
    visibility: visible;
    pointer-events: auto;
}

.sidebar-premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: backdrop-filter 0.6s ease, background-color 0.6s ease;
}

.sidebar-premium-container.active .sidebar-premium-overlay {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.25);
}

.sidebar-premium-content {
    position: absolute;
    top: 0;
    right: -460px;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: right 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    text-align: center;
}

.sidebar-premium-container.active .sidebar-premium-content {
    right: 0;
}

#btn-inquire-float.btn-utility {
    width: auto;
    height: 38px;
    padding: 0 20px;
    border-radius: var(--pill-radius) !important;
    background-color: #e3cbb3 !important;
    color: #121212 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    gap: 8px;
    display: flex;
    align-items: center;
    margin-right: 6px;
    transition: var(--ui-transition) !important;
    animation: ringtoneVibration 2.5s infinite ease-in-out;
}

#btn-inquire-float.btn-utility:hover {
    background-color: #ffffff !important;
    transform: translateY(-1px) !important;
    animation-play-state: paused;
}

#btn-inquire-float.btn-utility svg {
    flex-shrink: 0;
}

@keyframes ringtoneVibration {

    0%,
    100%,
    40% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(-18deg);
    }

    10% {
        transform: rotate(18deg);
    }

    15% {
        transform: rotate(-15deg);
    }

    20% {
        transform: rotate(12deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(5deg);
    }

    35% {
        transform: rotate(0deg);
    }
}

/* ===========================================================================
   08. FORMULARIO INTERNO DE CAPTACIÓN
   =========================================================================== */
.form-group-premium {
    margin-bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    text-align: left !important;
}

.form-group-premium label {
    color: #ffffff !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
}

.form-group-premium input,
.form-group-premium textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 14px 16px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    outline: none !important;
    transition: var(--ui-transition) !important;
    font-family: inherit;
}

.form-group-premium input:focus,
.form-group-premium textarea:focus {
    border-color: #b58450 !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.btn-submit-premium {
    background: #e3cbb3 !important;
    color: #121212 !important;
    border: none !important;
    padding: 14px 28px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border-radius: var(--pill-radius) !important;
    cursor: pointer;
    margin: 20px auto 0 auto !important;
    display: inline-block !important;
    width: auto !important;
    transition: var(--ui-transition) !important;
}

.btn-submit-premium:hover {
    background: #ffffff !important;
    transform: translateY(-2px) !important;
}

.sidebar-premium-close {
    position: absolute !important;
    top: 25px !important;
    right: 30px !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 32px !important;
    cursor: pointer !important;
    transition: var(--ui-transition);
}

.sidebar-premium-close:hover {
    color: #ffffff !important;
}

/* ===========================================================================
   09. AVISO DE ORIENTACIÓN MÓVIL
   =========================================================================== */
#orientation-warning {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /*
     * E6.B2 — Soft handoff.
     * Al abandonar portrait conserva brevemente la cobertura mientras el
     * viewport/layout se estabiliza y luego desaparece con un fade corto.
     */
    transition:
        opacity 320ms ease 160ms,
        visibility 0s linear 480ms;
}

.warning-content {
    text-align: center;
    color: #f5f2eb;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.warning-content h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin: 0;
    color: #e3cbb3;
    text-transform: uppercase;
}

.warning-content p {
    font-size: 12px;
    color: rgba(245, 242, 235, 0.65);
    line-height: 1.5;
    margin: 0;
}

.phone-icon-animation {
    display: inline-block;
    transform-origin: center center;
    animation: rotatePhone 3s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes rotatePhone {

    0%,
    15% {
        transform: rotate(0deg);
    }

    50%,
    65% {
        transform: rotate(-90deg);
    }

    90%,
    100% {
        transform: rotate(0deg);
    }
}

/* ===========================================================================
   10. ADAPTACIÓN RESPONSIVE PARA MÓVILES Y TABLETS
   =========================================================================== */

/* 10.1 Activación del aviso en pantallas verticales */
@media screen and (orientation: portrait) and (max-width: 900px) {
    #app-viewport.emaus-orientation-gate-active #orientation-warning {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        /*
         * La aparición no necesita esperar al layout.
         * Sólo la salida usa el pequeño hold de 160 ms.
         */
        transition:
            opacity 160ms ease,
            visibility 0s linear 0s;
    }
}

/* 10.2 Escala de la introducción en horizontal móvil */
@media screen and (max-height: 500px) {
    #loader-ui {
        transform: scale(0.85);
    }

    #loader-logo-img {
        max-width: 140px !important;
        max-height: 20vh !important;
        object-fit: contain !important;
    }
}

/* ---------------------------------------------------------------------------
   10.3 Sidebar responsive para móviles y tablets
   --------------------------------------------------------------------------- */
@media screen and (max-width: 960px) {

    .sidebar-premium-container .sidebar-premium-content {
        width: 90vw !important;
        max-width: 780px !important;
        height: auto !important;
        max-height: 88vh !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(100vw, -50%) !important;
        right: auto !important;

        border-radius: 16px !important;
        padding: 25px 30px 20px 30px !important;
        background: rgba(15, 15, 19, 0.96) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;

        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;

        border: 1px solid rgba(227, 203, 179, 0.25) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
        transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .sidebar-premium-container.active .sidebar-premium-content {
        transform: translate(-50%, -50%) !important;
    }

    .sidebar-premium-container .sidebar-premium-close {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 30 !important;
        background: rgba(227, 203, 179, 0.1) !important;
        border: 1px solid rgba(227, 203, 179, 0.3) !important;
        color: #e3cbb3 !important;
        border-radius: 50% !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        cursor: pointer;
        margin: 0 !important;
    }

    .sidebar-premium-container .sidebar-premium-header {
        margin-bottom: 12px !important;
        text-align: center !important;
        padding: 0 25px !important;
    }

    .sidebar-premium-container .sidebar-premium-header h3 {
        color: #e3cbb3 !important;
        letter-spacing: 2px !important;
        font-size: 13px !important;
        margin: 0 0 4px 0 !important;
        text-transform: uppercase;
    }

    .sidebar-premium-container .sidebar-premium-header p {
        color: rgba(245, 242, 235, 0.7) !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    .sidebar-premium-container form {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 16px !important;
        text-align: left !important;
    }

    .sidebar-premium-container .form-group-premium:nth-child(4),
    .sidebar-premium-container .btn-submit-premium {
        grid-column: span 2 !important;
    }

    .sidebar-premium-container .form-group-premium {
        margin-bottom: 2px !important;
    }

    .sidebar-premium-container .form-group-premium label {
        color: rgba(245, 242, 235, 0.7) !important;
        font-size: 9px !important;
        letter-spacing: 1px !important;
        margin-bottom: 2px !important;
        display: block !important;
    }

    .sidebar-premium-container .form-group-premium input {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(227, 203, 179, 0.2) !important;
        color: #f5f2eb !important;
        border-radius: 6px !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
    }

    .sidebar-premium-container .form-group-premium textarea {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(227, 203, 179, 0.2) !important;
        color: #f5f2eb !important;
        border-radius: 6px !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
        height: 50px !important;
        resize: none !important;
    }

    .sidebar-premium-container .btn-submit-premium {
        background: #e3cbb3 !important;
        color: #0f0f13 !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        padding: 10px 20px !important;
        margin-top: 6px !important;
        border: none !important;
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }
}

/* ===========================================================================
   11. INTERACCIÓN WEB DEL MENÚ DESPLEGABLE
   =========================================================================== */

/* Despliegue del menú ÚNICAMENTE sobre su wrapper */
#dropdown-wrapper:hover .dropdown-menu-list {
    display: flex !important;
}

/* Rotación de la flecha ÚNICAMENTE en su wrapper */
#dropdown-wrapper:hover #dropdown-btn span {
    transform: rotate(180deg) !important;
    display: inline-block;
}

/* Evitamos cualquier deformación/reflejo en el texto del botón */
.dropdown-trigger {
    transform: none !important;
}

/* ===========================================================================
   12. FLOATING TEXT CINEMATOGRÁFICO
   =========================================================================== */
.floating-text-node {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    text-align: center;
    user-select: none;
    z-index: 10;
    opacity: 0;
    will-change: opacity, filter, transform;
    transition: opacity 0.15s ease-out, filter 0.15s ease-out, transform 0.15s ease-out;
}

.floating-text-content {
    display: inline-block;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* ===========================================================================
   13. SURFACE RUNTIME — PRESENTATION EFFECTS (v0.9.5 / R3.2)
   =========================================================================== */

.surface-node-runtime {
    --surface-runtime-color: #ffffff;
    --surface-runtime-opacity: 1;
    --surface-runtime-effect-opacity: 1;
    opacity: 1;
    transition: opacity 140ms ease;
}

.surface-node-runtime[data-surface-visibility="latent"][data-surface-revealed="false"] {
    opacity: 0;
}

.surface-hover-preview-runtime {
    position: absolute;
    left: 0;
    top: 0;
    width: min(216px, 34vw);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.82);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px) scale(0.985);
    transform-origin: top left;
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms linear;
    z-index: 12;
}

.surface-hover-preview-runtime.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.surface-hover-preview-image-runtime {
    display: block;
    width: 100%;
    max-height: min(156px, 28vh);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 7px;
    pointer-events: none;
    user-select: none;
}

.surface-effect-fill-runtime {
    fill: var(--surface-runtime-color, #ffffff);
    stroke: none;
}

.surface-soft-pulse-layer-runtime {
    animation: emaus-surface-runtime-soft-pulse 2.8s ease-in-out infinite;
}

.surface-radar-origin-runtime,
.surface-radar-wave-runtime {
    fill: none;
    stroke: var(--surface-runtime-color, #ffffff);
    vector-effect: non-scaling-stroke;
    transform-box: fill-box;
    transform-origin: center;
    pointer-events: none;
}

.surface-radar-origin-runtime {
    stroke-width: 0.66;
    stroke-opacity: var(--surface-runtime-effect-opacity, 1);
    filter:
        drop-shadow(0 0 2px var(--surface-runtime-color, #ffffff)) drop-shadow(0 0 4px var(--surface-runtime-color, #ffffff));
    animation: emaus-surface-runtime-radar-origin 2.4s ease-in-out infinite;
}

.surface-radar-wave-runtime {
    stroke-width: 0.62;
    stroke-opacity: var(--surface-runtime-effect-opacity, 1);
    filter: drop-shadow(0 0 2px var(--surface-runtime-color, #ffffff));
    animation: emaus-surface-runtime-radar-wave 2.4s ease-out infinite;
}

.surface-sweep-layer-runtime {
    opacity: var(--surface-runtime-effect-opacity, 1);
    pointer-events: none;
}

.surface-sweep-beam-runtime {
    pointer-events: none;
    mix-blend-mode: screen;
}

.surface-image-mask-base-runtime,
.surface-image-mask-effect-runtime,
.surface-image-mask-effect-fill-runtime,
.surface-image-mask-sweep-layer-runtime {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.surface-image-mask-effect-fill-runtime {
    width: 100%;
    height: 100%;
}

.surface-image-mask-sweep-layer-runtime {
    overflow: hidden;
}

.surface-image-mask-sweep-beam-runtime {
    position: absolute;
    top: -15%;
    left: -45%;
    width: 34%;
    height: 130%;
    pointer-events: none;
    mix-blend-mode: screen;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 44%,
            rgba(255, 255, 255, 0.72) 50%,
            rgba(255, 255, 255, 0) 56%,
            rgba(255, 255, 255, 0) 100%);
    animation: emaus-surface-runtime-mask-sweep 3.4s linear infinite;
}

@keyframes emaus-surface-runtime-soft-pulse {

    0%,
    100% {
        opacity: 0.22;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes emaus-surface-runtime-radar-origin {

    0%,
    100% {
        opacity: 0.68;
        filter:
            drop-shadow(0 0 2px var(--surface-runtime-color, #ffffff)) drop-shadow(0 0 4px var(--surface-runtime-color, #ffffff));
    }

    45% {
        opacity: 1;
        filter:
            drop-shadow(0 0 4px var(--surface-runtime-color, #ffffff)) drop-shadow(0 0 8px var(--surface-runtime-color, #ffffff));
    }
}

@keyframes emaus-surface-runtime-radar-wave {
    0% {
        transform: scale(1);
        opacity: 0.92;
    }

    82%,
    100% {
        transform: scale(1.36);
        opacity: 0;
    }
}

@keyframes emaus-surface-runtime-mask-sweep {
    from {
        left: -45%;
    }

    to {
        left: 125%;
    }
}

/* ===========================================================================
   14. SURFACE RUNTIME — ACCESSIBILITY (v0.9.5 / R3.4)
   =========================================================================== */

.surface-focus-proxy-runtime {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.surface-node-runtime.is-keyboard-focus .surface-base-runtime {
    stroke: var(--surface-runtime-color, #ffffff);
    stroke-width: 0.78;
    stroke-opacity: 0.92;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 4px var(--surface-runtime-color, #ffffff));
}

.surface-image-mask-runtime.is-keyboard-focus {
    filter:
        drop-shadow(0 0 2px var(--surface-runtime-color, #ffffff)) drop-shadow(0 0 5px var(--surface-runtime-color, #ffffff));
}

@media (prefers-reduced-motion: reduce) {

    .surface-node-runtime,
    .surface-hover-preview-runtime {
        transition: none !important;
    }

    .surface-soft-pulse-layer-runtime,
    .surface-radar-origin-runtime,
    .surface-radar-wave-runtime,
    .surface-image-mask-sweep-beam-runtime {
        animation: none !important;
    }

    .surface-radar-wave-runtime,
    .surface-sweep-layer-runtime,
    .surface-image-mask-sweep-layer-runtime {
        display: none !important;
    }
}

/* ===========================================================================
   15. SURFACE RUNTIME — VARIANTS SELECTOR (PH3 / V0.1)
   =========================================================================== */

.surface-variants-selector-runtime {
    max-width: calc(100% - 24px);
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #ffffff;
    font: inherit;
    box-sizing: border-box;
    pointer-events: auto;
    isolation: isolate;
}

.surface-variant-options-runtime {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
    overflow: visible;
}

.surface-variant-option-runtime {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        opacity 150ms ease;
    transform-origin: center;
}

.surface-variants-selector-runtime.is-circle .surface-variant-option-runtime {
    border-radius: 50%;
}

.surface-variants-selector-runtime.is-square .surface-variant-option-runtime {
    border-radius: 9px;
}

.surface-variant-option-thumbnail-runtime {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.surface-variant-option-thumbnail-runtime[hidden],
.surface-variant-option-fallback-runtime[hidden] {
    display: none;
}

.surface-variant-option-fallback-runtime {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
}

.surface-variant-option-runtime:hover,
.surface-variant-option-runtime:focus-visible {
    z-index: 2;
    transform: scale(1.16);
    border-color: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.14);
    outline: none;
}

.surface-variant-option-runtime.is-selected {
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.28),
        0 5px 14px rgba(0, 0, 0, 0.24);
}

.surface-variant-option-runtime:active {
    transform: scale(1.04);
}

@media (pointer: coarse) {
    .surface-variant-option-runtime {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .surface-variant-option-runtime {
        transition: none !important;
    }
}

/* ===========================================================================
   16. SURFACE RUNTIME — VARIANT OVERLAY (v0.9.5 / R5.2)
   =========================================================================== */

.surface-variant-layer-runtime {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.surface-variant-overlay-runtime {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}

.surface-variant-overlay-image-runtime {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: fill;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===========================================================================
   E4.8 — ENTRY COMPOSED RUNTIME
   Canonical 16:9 composition rendered as cover inside the Runtime viewport.
   The same authoring metrics used by Studio are expressed in cqw against
   this canonical stage, so narrow/wide viewports crop instead of reflowing.
   =========================================================================== */

#entry-experience.entry-runtime-composed-active {
    align-items: stretch;
    justify-content: stretch;
}

#entry-experience.entry-runtime-composed-active #entry-ui,
#entry-experience.entry-runtime-composed-active #entry-bg-img,
#entry-experience.entry-runtime-composed-active #loader-video-bg,
#entry-experience.entry-runtime-composed-active #loader-overlay {
    display: none !important;
}

/* ===========================================================================
   E6.B3 — MASTER AUDIO CONTROL / PERSISTENTE
   =========================================================================== */
.audio-master-control {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid rgba(245, 242, 235, 0.12);
    border-radius: var(--btn-radius);
    background: rgba(18, 18, 18, 0.08);
    color: rgba(245, 242, 235, 0.52);
    opacity: 0.72;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    pointer-events: auto;
    z-index: 99998;
    align-items: center;
    justify-content: center;
    transition: opacity 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

/* E6.B3A — Cuando Fullscreen está visible, el Master Audio ocupa un slot
 * real inmediatamente a su izquierda dentro de la geometría de utilidades. */
body.emaus-audio-master-con-fullscreen .audio-master-control {
    /*
     * Fullscreen:
     * right 16 + width 38.
     *
     * Slot Audio:
     * + gap 12 = right 66.
     *
     * El margin-left de Fullscreen reserva exactamente:
     * 12 gap + 38 Audio + 12 gap = 62 px entre el control anterior
     * y Fullscreen.
     */
    right: max(66px, calc(env(safe-area-inset-right) + 50px));
}

body.emaus-audio-master-con-fullscreen #btn-fullscreen {
    margin-left: 50px;
}

.audio-master-control svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.audio-master-control:hover,
.audio-master-control:focus-visible {
    opacity: 1;
    color: rgba(245, 242, 235, 0.88);
    border-color: rgba(245, 242, 235, 0.26);
    background: rgba(18, 18, 18, 0.22);
}

.audio-master-control:focus-visible {
    outline: 2px solid rgba(181, 132, 80, 0.72);
    outline-offset: 3px;
}

.audio-master-control .audio-master-muted-mark {
    display: none;
}

.audio-master-control.is-muted {
    opacity: 0.92;
    color: rgba(245, 242, 235, 0.9);
    border-color: rgba(245, 242, 235, 0.24);
    background: rgba(18, 18, 18, 0.38);
}

.audio-master-control.is-muted .audio-master-wave {
    display: none;
}

.audio-master-control.is-muted .audio-master-muted-mark {
    display: block;
}

/* ===========================================================================
   E6.B3B — FIRMA VISUAL BASE / ACCIONES PUNTUALES
   ---------------------------------------------------------------------------
   Presencia disponible pero deliberadamente discreta.
   La acción no compite con el contenido de la experiencia.

   Esta receta es la firma Runtime inicial de v1.
   Un futuro Presentation System podrá sustituirla sin cambiar función.
   =========================================================================== */

#btn-email,
#btn-share,
#btn-fullscreen,
#btn-prev,
#btn-next,
#btn-toggle-hotspots {
    background: rgba(18, 18, 18, 0.08);
    border: 1px solid rgba(245, 242, 235, 0.12);
    color: rgba(245, 242, 235, 0.52);
    border-radius: var(--btn-radius) !important;
    opacity: 0.72;
    box-shadow: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: none;
    transition:
        opacity 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

/*
 * Email / Compartir / Fullscreen comparten el mismo diámetro visual
 * del Master Audio dentro del grupo superior.
 */
#btn-email,
#btn-share,
#btn-fullscreen {
    width: 38px;
    height: 38px;
}

/*
 * Las flechas mantienen por ahora su área física de navegación existente,
 * pero adoptan la misma receta material y de opacidad.
 */
#btn-prev,
#btn-next {
    background: rgba(18, 18, 18, 0.08);
}

/* Hover/focus: aparece la utilidad, sin convertirse en una llamada de atención. */
#btn-email:hover,
#btn-share:hover,
#btn-fullscreen:hover,
#btn-prev:hover,
#btn-next:hover,
#btn-toggle-hotspots:hover,
#btn-email:focus-visible,
#btn-share:focus-visible,
#btn-fullscreen:focus-visible,
#btn-prev:focus-visible,
#btn-next:focus-visible,
#btn-toggle-hotspots:focus-visible {
    opacity: 1;
    color: rgba(245, 242, 235, 0.88);
    border-color: rgba(245, 242, 235, 0.26);
    background: rgba(18, 18, 18, 0.22);
    box-shadow: none;
    transform: none;
}

#btn-email:focus-visible,
#btn-share:focus-visible,
#btn-fullscreen:focus-visible,
#btn-prev:focus-visible,
#btn-next:focus-visible,
#btn-toggle-hotspots:focus-visible {
    outline: 2px solid rgba(181, 132, 80, 0.72);
    outline-offset: 3px;
}

/* ===========================================================================
   E6.D1 — RESPONSIVE SAFE AREAS + ACCESSIBILITY RUNTIME
   =========================================================================== */
.ui-dropdown-block {
    top: max(16px, env(safe-area-inset-top)) !important;
    left: max(16px, env(safe-area-inset-left)) !important;
}

.ui-layer-pos-central .navigation-controls {
    bottom: max(30px, env(safe-area-inset-bottom)) !important;
}

.ui-layer-pos-lateral .navigation-controls {
    padding-left: max(40px, calc(env(safe-area-inset-left) + 16px)) !important;
    padding-right: max(40px, calc(env(safe-area-inset-right) + 16px)) !important;
}

.ui-inferior-izquierda-bar {
    left: max(30px, env(safe-area-inset-left)) !important;
    bottom: max(30px, env(safe-area-inset-bottom)) !important;
}

#btn-toggle-ambient:focus-visible {
    outline: 2px solid rgba(181, 132, 80, 0.72);
    outline-offset: 3px;
}

/* Área táctil mínima de 44×44 px sin alterar el diámetro visual de 38 px. */
#btn-email,
#btn-share,
#btn-fullscreen {
    position: relative;
    touch-action: manipulation;
}

.audio-master-control {
    touch-action: manipulation;
}

#btn-email::after,
#btn-share::after,
#btn-fullscreen::after,
.audio-master-control::after {
    content: "";
    position: absolute;
    inset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .phone-icon-animation {
        animation: none !important;
        transform: rotate(-90deg);
    }

    .audio-master-control,
    #btn-email,
    #btn-share,
    #btn-fullscreen,
    #btn-prev,
    #btn-next,
    #btn-toggle-hotspots,
    #btn-toggle-ambient,
    .floating-text-node,
    .entry-runtime-composed-layer.entry-runtime-composed-appearance-fade {
        transition: none !important;
    }

    .entry-runtime-composed-layer.entry-runtime-composed-appearance-fade {
        opacity: var(--entry-composed-layer-opacity, 1) !important;
    }
}

.entry-runtime-composed-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.777778vh);
    width: max(100%, 177.777778dvh);
    height: max(100%, 56.25vw);
    overflow: hidden;
    transform: translate(-50%, -50%);
    container-type: inline-size;
    color: #f5f2eb;
    pointer-events: auto;
}

.entry-runtime-composed-layer {
    position: absolute;
    box-sizing: border-box;
    max-width: calc(100% - 2.5cqw);
    max-height: calc(100% - 2.5cqw);
    transform-origin: center center;
}

.entry-runtime-composed-background,
.entry-runtime-composed-overlay {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
}

.entry-runtime-composed-visual {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.entry-runtime-composed-background .entry-runtime-composed-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.entry-runtime-composed-media {
    width: 27.083333cqw;
    max-height: 62%;
}

.entry-runtime-composed-media[data-entry-size="small"] {
    width: 17.708333cqw;
}

.entry-runtime-composed-media[data-entry-size="large"] {
    width: 39.583333cqw;
}

.entry-runtime-composed-media .entry-runtime-composed-visual {
    width: 100%;
    height: auto;
    max-height: 100%;
}

.entry-runtime-composed-layer[data-entry-anchor="top-left"] {
    top: 7%;
    left: 7%;
}

.entry-runtime-composed-layer[data-entry-anchor="top-center"] {
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
}

.entry-runtime-composed-layer[data-entry-anchor="top-right"] {
    top: 7%;
    right: 7%;
}

.entry-runtime-composed-layer[data-entry-anchor="center-left"] {
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
}

.entry-runtime-composed-layer[data-entry-anchor="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.entry-runtime-composed-layer[data-entry-anchor="center-right"] {
    top: 50%;
    right: 7%;
    transform: translateY(-50%);
}

.entry-runtime-composed-layer[data-entry-anchor="bottom-left"] {
    bottom: 12%;
    left: 7%;
}

.entry-runtime-composed-layer[data-entry-anchor="bottom-center"] {
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
}

.entry-runtime-composed-layer[data-entry-anchor="bottom-right"] {
    right: 7%;
    bottom: 12%;
}

.entry-runtime-composed-layer.entry-runtime-composed-appearance-fade {
    opacity: 0 !important;
    transition: opacity 0.55s ease;
}

.entry-runtime-composed-layer.entry-runtime-composed-appearance-fade.is-entry-runtime-composed-layer-revealed {
    opacity: var(--entry-composed-layer-opacity, 1) !important;
}

.entry-runtime-composed-layer.entry-runtime-composed-appearance-none {
    transition: none;
}

.entry-runtime-composed-stack {
    width: max-content;
    max-width: min(35.416667cqw, calc(100% - 2.5cqw));
    color: #f5f2eb;
}

.entry-runtime-composed-stack[data-entry-width="narrow"] {
    max-width: min(23.958333cqw, calc(100% - 2.5cqw));
}

.entry-runtime-composed-stack[data-entry-width="wide"] {
    max-width: min(47.916667cqw, calc(100% - 2.5cqw));
}

.entry-runtime-composed-stack-flow {
    display: flex;
    width: 100%;
    flex-direction: column;
    box-sizing: border-box;
}

.entry-runtime-composed-stack-flow[data-entry-align="left"] {
    align-items: flex-start;
    text-align: left;
}

.entry-runtime-composed-stack-flow[data-entry-align="center"] {
    align-items: center;
    text-align: center;
}

.entry-runtime-composed-stack-flow[data-entry-align="right"] {
    align-items: flex-end;
    text-align: right;
}

.entry-runtime-composed-stack-flow[data-entry-gap="compact"] {
    gap: 0.625cqw;
    --entry-stack-action-offset: 0.729167cqw;
}

.entry-runtime-composed-stack-flow[data-entry-gap="balanced"] {
    gap: 1.041667cqw;
    --entry-stack-action-offset: 1.302083cqw;
}

.entry-runtime-composed-stack-flow[data-entry-gap="airy"] {
    gap: 1.5625cqw;
    --entry-stack-action-offset: 1.770833cqw;
}

.entry-runtime-composed-stack-text {
    max-width: 100%;
    color: #fff;
    text-wrap: balance;
}

.entry-runtime-composed-stack-text[data-entry-text-variant="eyebrow"] {
    color: #f5f2eb;
    font-size: calc(0.729167cqw * var(--entry-composed-text-scale, 1));
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.15625cqw;
    text-transform: uppercase;
    opacity: 0.9;
}

.entry-runtime-composed-stack-text[data-entry-text-variant="title"] {
    font-size: calc(2.708333cqw * var(--entry-composed-text-scale, 1));
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.entry-runtime-composed-stack-text[data-entry-text-variant="body"] {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.78);
    font-size: calc(0.885417cqw * var(--entry-composed-text-scale, 1));
    line-height: 1.6;
}

.entry-runtime-composed-stack-logo {
    display: block;
    width: min(calc(11.458333cqw * var(--entry-composed-logo-scale, 1)),
            100%);
    height: auto;
    max-height: calc(5.729167cqw * var(--entry-composed-logo-scale, 1));
    object-fit: contain;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action {
    margin-top: var(--entry-stack-action-offset, 1.302083cqw);
    padding:
        calc(0.729167cqw * var(--entry-composed-action-scale, 1)) calc(1.979167cqw * var(--entry-composed-action-scale, 1));
    border-radius:
        calc(0.208333cqw * var(--entry-composed-action-scale, 1));
    font-size:
        calc(0.677083cqw * var(--entry-composed-action-scale, 1));
    letter-spacing:
        calc(0.104167cqw * var(--entry-composed-action-scale, 1));
    text-transform: uppercase;
    white-space: nowrap;
    --entry-action-attention-rgb: 181, 132, 80;
    position: relative;
    isolation: isolate;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-white"] {
    --entry-action-attention-rgb: 255, 255, 255;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-black"] {
    --entry-action-attention-rgb: 17, 17, 17;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="filled"] {
    --entry-action-attention-rgb: 181, 132, 80;
}

/*
 * Runtime usa :not(:disabled) como fuente de verdad perceptiva.
 * Así Attention sigue exactamente el mismo readiness del Action existente
 * y no depende de una segunda clase/lifecycle para comenzar.
 */
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action:not(:disabled)[data-entry-action-attention="soft-pulse"] {
    overflow: visible;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention="soft-pulse"]::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(var(--entry-action-attention-rgb), 0.55);
    border-radius: inherit;
    box-shadow: 0 0 12px rgba(var(--entry-action-attention-rgb), 0.19);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.98);
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action:not(:disabled)[data-entry-action-attention="soft-pulse"]:not(:hover):not(:focus-visible)::after {
    animation: emaus-entry-action-soft-pulse 2.8s ease-out infinite;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention="sweep"] {
    overflow: hidden;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention="sweep"]::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -35%;
    bottom: -35%;
    left: -52%;
    width: 34%;
    pointer-events: none;
    opacity: 0;
    transform: skewX(-18deg);
    background: linear-gradient(90deg,
            transparent,
            rgba(var(--entry-action-attention-rgb), 0.41),
            transparent);
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action:not(:disabled)[data-entry-action-attention="sweep"]:not(:hover):not(:focus-visible)::before {
    animation: emaus-entry-action-sweep 3.4s ease-in-out infinite;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention="radar"] {
    overflow: visible;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention="radar"]::before,
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention="radar"]::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 1px solid rgba(var(--entry-action-attention-rgb), 0.62);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.98);
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action:not(:disabled)[data-entry-action-attention="radar"]:not(:hover):not(:focus-visible)::before {
    animation: emaus-entry-action-radar 2.8s ease-out infinite;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action:not(:disabled)[data-entry-action-attention="radar"]:not(:hover):not(:focus-visible)::after {
    animation: emaus-entry-action-radar 2.8s ease-out 0.55s infinite;
}

@keyframes emaus-entry-action-soft-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.98);
    }

    18% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.70;
        transform: scale(1.06);
    }

    82% {
        opacity: 0.12;
    }
}

@keyframes emaus-entry-action-sweep {

    0%,
    66% {
        left: -52%;
        opacity: 0;
    }

    72% {
        opacity: 0.94;
    }

    88% {
        left: 118%;
        opacity: 0;
    }

    100% {
        left: 118%;
        opacity: 0;
    }
}

@keyframes emaus-entry-action-radar {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    18% {
        opacity: 0.58;
    }

    72%,
    100% {
        opacity: 0;
        transform: scale(1.24);
    }
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention]:hover::before,
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention]:hover::after,
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention]:focus-visible::before,
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention]:focus-visible::after,
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action:disabled[data-entry-action-attention]::before,
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action:disabled[data-entry-action-attention]::after {
    animation: none !important;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {

    #entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention]::before,
    #entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-attention]::after {
        animation: none !important;
        opacity: 0 !important;
    }
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action#btn-discover-action[data-entry-action-style="editorial-gold"] {
    border-color: #b58450;
    background: transparent;
    color: #fff;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-white"] {
    border-color: rgba(255, 255, 255, 0.92);
    background: transparent;
    color: #fff;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-black"] {
    border-color: rgba(0, 0, 0, 0.88);
    background: transparent;
    color: #111;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="filled"] {
    border-color: #f5f2eb;
    background: #f5f2eb;
    color: #151515;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-white"]:hover:not(:disabled),
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-white"]:focus-visible:not(:disabled) {
    background: #fff !important;
    color: #151515 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.18) !important;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-black"]:hover:not(:disabled),
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="editorial-black"]:focus-visible:not(:disabled) {
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.28) !important;
}

#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="filled"]:hover:not(:disabled),
#entry-experience .entry-runtime-composed-stack-action#btn-discover-action[data-entry-action-style="filled"]:focus-visible:not(:disabled) {
    background: #fff !important;
    border-color: #fff !important;
    color: #111 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.18) !important;
}

/* ===========================================================================
   INTERVENTION 04 — ORBIT NAVIGATION UX
   =========================================================================== */
body.ui-cosmetica-minimal #btn-prev,
body.ui-cosmetica-minimal #btn-next,
#btn-prev[data-arrow-style="minimal"],
#btn-next[data-arrow-style="minimal"] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: rgba(255, 255, 255, 0.88) !important;
    opacity: 0.90;
    font-size: 116px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

body.ui-cosmetica-minimal #btn-prev:hover,
body.ui-cosmetica-minimal #btn-next:hover,
body.ui-cosmetica-minimal #btn-prev:focus-visible,
body.ui-cosmetica-minimal #btn-next:focus-visible,
#btn-prev[data-arrow-style="minimal"]:hover,
#btn-next[data-arrow-style="minimal"]:hover,
#btn-prev[data-arrow-style="minimal"]:focus-visible,
#btn-next[data-arrow-style="minimal"]:focus-visible {
    background: transparent !important;
    border: 0 !important;
    color: rgba(255,255,255,.96) !important;
    opacity: 1;
    transform: scale(1.08);
}

.emaus-navigation-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    z-index: 145;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,.88);
    isolation: isolate;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-50% + 8px));
    transition: opacity .32s ease, transform .32s ease;
}


.emaus-navigation-hint::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -10px -22px;
    border-radius: 999px;
    background: radial-gradient(
        ellipse at center,
        rgba(10, 10, 10, 0.54) 0%,
        rgba(10, 10, 10, 0.38) 48%,
        rgba(10, 10, 10, 0.16) 72%,
        rgba(10, 10, 10, 0) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0 58%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, #000 0 58%, transparent 100%);
    pointer-events: none;
}

.emaus-navigation-hint > * {
    position: relative;
    z-index: 1;
}

.emaus-navigation-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.emaus-navigation-hint.is-visible::before,
.emaus-navigation-hint.is-visible > * {
    animation: emaus-navigation-hint-attention 1.05s ease-in-out 2;
}

.emaus-navigation-hint-gesture {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 62px;
    line-height: 1;
    opacity: .88;
}

.emaus-navigation-hint-arrow {
    font-size: 20px;
    opacity: .68;
}

.emaus-navigation-hint-hand {
    display: inline-block;
    font-size: 22px;
    transform: translateX(0);
    animation: emaus-navigation-hand-swipe 1.2s ease-in-out infinite;
}

body.emaus-navigation-hint-active #btn-prev,
body.emaus-navigation-hint-active #btn-next {
    animation: emaus-navigation-arrow-hint 1.05s ease-in-out 2;
}

#btn-prev.emaus-idle-navigation-hint,
#btn-next.emaus-idle-navigation-hint,
#emaus-navigation-back.emaus-idle-navigation-hint,
#emaus-navigation-home.emaus-idle-navigation-hint {
    animation: emaus-navigation-arrow-hint 1.05s ease-in-out 1;
}

@keyframes emaus-navigation-hint-attention {
    0%, 100% { opacity: .76; }
    50% { opacity: 1; }
}

@keyframes emaus-navigation-hand-swipe {
    0%, 100% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
}

@keyframes emaus-navigation-arrow-hint {
    0%, 100% { opacity: .58; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    body.emaus-navigation-hint-active #btn-prev,
    body.emaus-navigation-hint-active #btn-next,
    #btn-prev.emaus-idle-navigation-hint,
    #btn-next.emaus-idle-navigation-hint,
    #emaus-navigation-back.emaus-idle-navigation-hint,
    #emaus-navigation-home.emaus-idle-navigation-hint {
        animation: none !important;
    }
    .emaus-navigation-hint,
    .emaus-navigation-hint.is-visible::before,
    .emaus-navigation-hint.is-visible > *,
    .emaus-navigation-hint-hand {
        animation: none !important;
    }
    .emaus-navigation-hint {
        transition: opacity .15s linear !important;
    }
}

/* V1M.2 — Hotspot Forma al abrir: Sin abrir */
.hotspot-editorial-marker[data-open-shape="none"]:hover .hotspot-editorial-ring,
.hotspot-editorial-marker[data-open-shape="none"]:focus-visible .hotspot-editorial-ring {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(18,18,16,.05);
    box-shadow: 0 4px 18px rgba(0,0,0,.16);
}

.hotspot-editorial-marker[data-open-shape="none"]:hover .hotspot-editorial-preview,
.hotspot-editorial-marker[data-open-shape="none"]:focus-visible .hotspot-editorial-preview {
    opacity: 0;
    transform: scale(1.08);
}

.hotspot-editorial-marker[data-open-shape="none"]:hover .hotspot-editorial-label,
.hotspot-editorial-marker[data-open-shape="none"]:focus-visible .hotspot-editorial-label,
.hotspot-editorial-marker[data-open-shape="none"][data-label-behavior="fade"]:hover .hotspot-editorial-label,
.hotspot-editorial-marker[data-open-shape="none"][data-label-behavior="fade"]:focus-visible .hotspot-editorial-label {
    margin-left: 30px;
    opacity: 1;
}

/* ===========================================================================
   INTERVENTION 05 — CLOSEOUT POLISH / Linear arrows + Scene State ownership
   =========================================================================== */
#btn-prev[data-linear-unavailable="true"],
#btn-next[data-linear-unavailable="true"] {
    opacity: 0.16 !important;
    pointer-events: none !important;
    cursor: default !important;
    transform: none !important;
}

#app-viewport.emaus-scene-state-transitioning #btn-prev,
#app-viewport.emaus-scene-state-transitioning #btn-next {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 90ms ease !important;
}

@media (prefers-reduced-motion: reduce) {
    #app-viewport.emaus-scene-state-transitioning #btn-prev,
    #app-viewport.emaus-scene-state-transitioning #btn-next {
        transition: none !important;
    }
}

/* ===========================================================================
   18. HOTSPOT INFORMATIONAL MODAL — I07 EDITORIAL PRESETS
   =========================================================================== */
.emaus-info-modal {
    --emaus-info-accent: #ffffff;
    --emaus-info-font-family: inherit;
    --emaus-info-title-weight: 500;
    --emaus-info-title-style: normal;
    --emaus-info-title-color: #ffffff;
    --emaus-info-subtitle-color: rgba(255, 255, 255, 0.68);
    position: fixed;
    inset: 0;
    z-index: 99999;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(5, 5, 5, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition:
        background-color 220ms ease,
        backdrop-filter 220ms ease,
        -webkit-backdrop-filter 220ms ease;
    pointer-events: auto;
}

.emaus-info-modal[data-modal-open="true"]:not([data-modal-size="full"]) {
    background: rgba(5, 5, 5, 0.14);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.emaus-info-modal[data-modal-open="true"][data-modal-size="full"] {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.emaus-info-modal .modal-card-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--emaus-info-accent) 13%, rgba(255, 255, 255, 0.10));
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(18, 18, 16, 0.84), rgba(12, 12, 11, 0.78));
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    color: #ffffff;
    font-family: var(--emaus-info-font-family, inherit);
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.985);
    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        opacity 180ms ease;
    outline: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.emaus-info-modal[data-modal-size="plate"] .modal-card-container {
    width: 25vw;
    height: auto;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 12px;
    background: rgba(14, 14, 13, 0.9);
}

.emaus-info-modal[data-modal-size="compact"] .modal-card-container {
    width: clamp(300px, 32vw, 500px);
    max-width: calc(100vw - 48px);
    max-height: min(68vh, 620px);
}

.emaus-info-modal[data-modal-size="editorial"] .modal-card-container {
    width: clamp(480px, 46vw, 820px);
    max-width: calc(100vw - 48px);
    max-height: min(76vh, 760px);
}

.emaus-info-modal[data-modal-size="wide"] .modal-card-container {
    width: clamp(680px, 68vw, 1180px);
    max-width: calc(100vw - 48px);
    max-height: min(82vh, 860px);
}

.emaus-info-modal[data-modal-size="full"] .modal-card-container {
    left: 50%;
    top: 50%;
    width: 85vw;
    height: 85vh;
    max-width: 1600px;
    max-height: 1000px;
    border-radius: 16px;
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.emaus-info-modal .modal-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 0 0 auto;
    padding: 17px 18px 12px 20px;
    background: transparent;
}

.emaus-info-modal .modal-premium-header h2 {
    min-width: 0;
    margin: 0;
    color: var(--emaus-info-title-color, rgba(255, 255, 255, 0.96));
    font-family: var(--emaus-info-font-family, inherit);
    font-size: clamp(17px, 1.35vw, 22px);
    font-weight: var(--emaus-info-title-weight, 500);
    font-style: var(--emaus-info-title-style, normal);
    line-height: 1.08;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emaus-info-modal .modal-close-runtime {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.58);
    font: inherit;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease;
}

.emaus-info-modal .modal-close-runtime:hover,
.emaus-info-modal .modal-close-runtime:focus-visible {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.07);
    outline: none;
}

.emaus-info-modal .modal-close-runtime:active {
    transform: scale(0.95);
}

.emaus-info-modal .modal-media-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 0 14px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
}

.emaus-info-modal .modal-media-placeholder[hidden] {
    display: none;
}

.emaus-info-modal[data-modal-size="compact"] .modal-media-placeholder {
    aspect-ratio: 4 / 3;
    max-height: 44vh;
}

.emaus-info-modal[data-modal-size="editorial"] .modal-media-placeholder,
.emaus-info-modal[data-modal-size="wide"] .modal-media-placeholder {
    aspect-ratio: 16 / 9;
    max-height: 52vh;
}

.emaus-info-modal[data-modal-size="plate"] .modal-premium-header {
    position: absolute;
    z-index: 4;
    inset: 0 0 auto 0;
    padding: 15px 14px 34px 16px;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.64) 0%, rgba(8, 8, 8, 0.28) 52%, rgba(8, 8, 8, 0) 100%);
    pointer-events: none;
}

.emaus-info-modal[data-modal-size="plate"] .modal-premium-header h2 {
    font-size: clamp(15px, 1.05vw, 18px);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.emaus-info-modal[data-modal-size="plate"] .modal-close-runtime {
    pointer-events: auto;
    background: rgba(10, 10, 10, 0.36);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.emaus-info-modal[data-modal-size="plate"] .modal-media-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    flex: 0 0 auto;
    margin: 0;
    border-radius: 0;
    background: rgba(8, 8, 8, 0.92);
}

.emaus-info-modal[data-modal-size="plate"] .modal-media-placeholder > img,
.emaus-info-modal[data-modal-size="plate"] .modal-media-placeholder > video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.emaus-info-modal[data-modal-size="plate"] .modal-premium-footer {
    display: none !important;
}

.emaus-info-modal[data-modal-size="full"] .modal-media-placeholder {
    flex: 1 1 auto;
    margin: 0;
    border-radius: 0;
    background: rgba(15, 15, 15, 0.3);
}

.emaus-info-modal[data-content-type="local_page"] .modal-media-placeholder {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    background: #f2f0eb;
}

.emaus-info-modal .emaus-local-page-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #ffffff;
}

.emaus-info-modal:not([data-modal-size="full"]):not([data-modal-size="plate"]) .modal-media-placeholder > img,
.emaus-info-modal:not([data-modal-size="full"]):not([data-modal-size="plate"]) .modal-media-placeholder > video,
.emaus-info-modal:not([data-modal-size="full"]):not([data-modal-size="plate"]) .carousel-slide {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
}

.emaus-info-modal[data-modal-size="full"] .modal-media-placeholder > img,
.emaus-info-modal[data-modal-size="full"] .modal-media-placeholder > video,
.emaus-info-modal[data-modal-size="full"] .carousel-slide {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.emaus-info-modal .modal-premium-footer {
    flex: 0 0 auto;
    padding: 12px 20px 17px;
    background: transparent;
}

.emaus-info-modal .modal-premium-footer:has(#modal-descripcion[hidden]) {
    display: none;
}

.emaus-info-modal #modal-descripcion {
    margin: 0;
    max-width: 72ch;
    color: var(--emaus-info-subtitle-color, rgba(255, 255, 255, 0.68));
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.015em;
}

.emaus-info-modal #modal-descripcion[hidden] {
    display: none;
}

.emaus-info-modal[data-modal-size="full"] .modal-premium-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.emaus-info-modal[data-modal-size="full"] .modal-premium-header h2 {
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.emaus-info-modal[data-modal-size="full"] .modal-premium-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.emaus-info-modal[data-modal-size="full"] #modal-descripcion {
    color: #cccccc;
    font-size: 14px;
}

@media (max-width: 700px) {
    .emaus-info-modal[data-modal-size="plate"] .modal-card-container,
    .emaus-info-modal[data-modal-size="compact"] .modal-card-container,
    .emaus-info-modal[data-modal-size="editorial"] .modal-card-container,
    .emaus-info-modal[data-modal-size="wide"] .modal-card-container {
        width: calc(100vw - 28px);
        max-width: none;
        max-height: calc(100vh - 28px);
    }

    .emaus-info-modal[data-modal-size="compact"] .modal-media-placeholder,
    .emaus-info-modal[data-modal-size="editorial"] .modal-media-placeholder,
    .emaus-info-modal[data-modal-size="wide"] .modal-media-placeholder {
        max-height: 52vh;
    }

    .emaus-info-modal[data-modal-size="full"] .modal-card-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emaus-info-modal,
    .emaus-info-modal .modal-card-container,
    .emaus-info-modal .modal-close-runtime {
        transition: none !important;
    }
}

.emaus-info-modal:not([data-modal-size="full"]):not([data-modal-size="plate"]) .modal-card-container {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.emaus-info-modal:not([data-modal-size="full"]):not([data-modal-size="plate"]) .modal-card-container::-webkit-scrollbar {
    width: 6px;
}

.emaus-info-modal:not([data-modal-size="full"]):not([data-modal-size="plate"]) .modal-card-container::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}


/* ===========================================================================
   TUULA / GLOBAL — FILTER DRAWER V0.1
   ---------------------------------------------------------------------------
   Presentation shell only. Controls keep browser-session UI state and do not
   filter Scene/Surface/Hotspot data. Availability delegates to the canonical
   Surface reveal control; it does not own a second availability state.
   =========================================================================== */
.emaus-filter-shell {
    --emaus-filter-drawer-width: clamp(300px, 30vw, 360px);
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    z-index: 120;
    display: none;
    pointer-events: none;
}

.emaus-filter-tab {
    position: absolute;
    top: 50%;
    left: 0;
    width: 38px;
    min-height: 112px;
    padding: 14px 8px;
    border: 1px solid rgba(245, 242, 235, 0.18);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: rgba(18, 18, 17, 0.72);
    color: rgba(245, 242, 235, 0.8);
    box-shadow: 8px 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition:
        left 280ms cubic-bezier(.22, 1, .36, 1),
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.emaus-filter-tab:hover,
.emaus-filter-tab:focus-visible,
.emaus-filter-shell.is-open .emaus-filter-tab {
    color: #f5f2eb;
    border-color: rgba(181, 132, 80, 0.7);
    background: rgba(24, 22, 20, 0.9);
}

.emaus-filter-tab:focus-visible,
.emaus-filter-close:focus-visible,
.emaus-filter-chip:focus-visible,
.emaus-filter-availability:focus-visible {
    outline: 2px solid rgba(181, 132, 80, 0.72);
    outline-offset: 3px;
}

.emaus-filter-tab-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
}

.emaus-filter-tab-arrow {
    font-size: 19px;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 220ms ease;
}

.emaus-filter-shell.is-open .emaus-filter-tab {
    left: var(--emaus-filter-drawer-width);
}

.emaus-filter-shell.is-open .emaus-filter-tab-arrow {
    transform: rotate(180deg);
}

.emaus-filter-drawer {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 0;
    width: var(--emaus-filter-drawer-width);
    max-height: calc(100% - 32px);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
        linear-gradient(180deg, rgba(22, 21, 19, 0.94), rgba(13, 13, 12, 0.91));
    border: 1px solid rgba(245, 242, 235, 0.12);
    border-left: 0;
    border-radius: 0 14px 14px 0;
    box-shadow: 20px 12px 52px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #f5f2eb;
    transform: translateX(calc(-100% - 2px));
    visibility: hidden;
    pointer-events: auto;
    transition:
        transform 320ms cubic-bezier(.22, 1, .36, 1),
        visibility 320ms step-end;
}

.emaus-filter-shell.is-open .emaus-filter-drawer {
    transform: translateX(0);
    visibility: visible;
    transition:
        transform 320ms cubic-bezier(.22, 1, .36, 1),
        visibility 0ms step-start;
}

.emaus-filter-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 28px 22px;
    background: linear-gradient(180deg, rgba(20, 19, 18, 0.99) 70%, rgba(20, 19, 18, 0));
}

.emaus-filter-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: rgba(181, 132, 80, 0.95);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.emaus-filter-header h2 {
    margin: 0;
    font: inherit;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
}

.emaus-filter-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 242, 235, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(245, 242, 235, 0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: 160ms ease;
}

.emaus-filter-close:hover {
    color: #f5f2eb;
    border-color: rgba(245, 242, 235, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.emaus-filter-content {
    padding: 2px 28px 30px;
}

.emaus-filter-group {
    padding: 22px 0;
    border-top: 1px solid rgba(245, 242, 235, 0.09);
}

.emaus-filter-group:first-child {
    border-top: 0;
}

.emaus-filter-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    color: rgba(245, 242, 235, 0.92);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.emaus-filter-group-heading output {
    color: rgba(245, 242, 235, 0.52);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.emaus-filter-range-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.emaus-filter-range-row > span {
    color: rgba(245, 242, 235, 0.38);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.emaus-filter-range-row input[type="range"] {
    width: 100%;
    accent-color: #b58450;
    cursor: ew-resize;
}

.emaus-filter-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.emaus-filter-chip {
    min-height: 38px;
    border: 1px solid rgba(245, 242, 235, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(245, 242, 235, 0.64);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: 160ms ease;
}

.emaus-filter-chip:hover,
.emaus-filter-chip.is-selected {
    border-color: rgba(181, 132, 80, 0.72);
    color: #f5f2eb;
    background: rgba(181, 132, 80, 0.15);
}

.emaus-filter-group-availability {
    padding-bottom: 0;
}

.emaus-filter-availability {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(245, 242, 235, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: #f5f2eb;
    padding: 10px 12px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: 160ms ease;
}

.emaus-filter-availability > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.emaus-filter-availability strong {
    font-size: 11px;
    font-weight: 600;
}

.emaus-filter-availability small {
    color: rgba(245, 242, 235, 0.4);
    font-size: 9px;
}

.emaus-filter-availability[aria-pressed="true"] {
    border-color: rgba(181, 132, 80, 0.62);
    background: rgba(181, 132, 80, 0.10);
}

.emaus-filter-switch {
    position: relative;
    width: 34px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 242, 235, 0.18);
    border-radius: 999px;
    background: rgba(245, 242, 235, 0.06);
    box-sizing: border-box;
    transition: 180ms ease;
}

.emaus-filter-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(245, 242, 235, 0.65);
    transform: translateX(0);
    transition: 180ms ease;
}

.emaus-filter-availability[aria-pressed="true"] .emaus-filter-switch {
    border-color: rgba(181, 132, 80, 0.9);
    background: rgba(181, 132, 80, 0.35);
}

.emaus-filter-availability[aria-pressed="true"] .emaus-filter-switch-knob {
    transform: translateX(16px);
    background: #f5f2eb;
}

body.ui-cosmetica-cuadrada .emaus-filter-drawer,
body.ui-cosmetica-cuadrada .emaus-filter-tab,
body.ui-cosmetica-cuadrada .emaus-filter-close,
body.ui-cosmetica-cuadrada .emaus-filter-chip,
body.ui-cosmetica-cuadrada .emaus-filter-availability {
    border-radius: 0;
}

body.ui-cosmetica-minimal .emaus-filter-drawer {
    background: rgba(11, 11, 10, 0.82);
    box-shadow: none;
}

body.ui-cosmetica-minimal .emaus-filter-tab {
    background: rgba(11, 11, 10, 0.48);
    box-shadow: none;
}

@media (max-width: 700px) {
    .emaus-filter-shell {
        --emaus-filter-drawer-width: min(86vw, 340px);
    }

    .emaus-filter-drawer {
        top: max(8px, env(safe-area-inset-top));
        bottom: max(8px, env(safe-area-inset-bottom));
    }

    .emaus-filter-header {
        padding: 24px 22px 18px;
    }

    .emaus-filter-content {
        padding: 2px 22px 24px;
    }
}

@media (max-height: 520px) {
    .emaus-filter-tab {
        min-height: 92px;
    }

    .emaus-filter-header {
        padding-top: 20px;
        padding-bottom: 14px;
    }

    .emaus-filter-group {
        padding: 15px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emaus-filter-tab,
    .emaus-filter-tab-arrow,
    .emaus-filter-drawer,
    .emaus-filter-close,
    .emaus-filter-chip,
    .emaus-filter-availability,
    .emaus-filter-switch,
    .emaus-filter-switch-knob {
        transition-duration: .01ms !important;
    }
}


/* ==========================================================================
   EMAUS ONLINE B3.4b CAPABILITY GATES UX
   --------------------------------------------------------------------------
   Visible-but-pending capability affordance + immediate press acknowledgement.
   ========================================================================== */
#btn-prev[data-online-capability-state="pending"],
#btn-next[data-online-capability-state="pending"],
#emaus-navigation-back[data-online-capability-state="pending"],
#emaus-navigation-home[data-online-capability-state="pending"] {
    opacity: 0.24 !important;
    cursor: progress !important;
    pointer-events: none !important;
    filter: saturate(0.25);
    transition:
        opacity 160ms ease,
        filter 160ms ease,
        transform 120ms ease !important;
}

#btn-prev[data-online-capability-state="pending"],
#btn-next[data-online-capability-state="pending"] {
    transform: scale(0.98) !important;
}

#btn-prev.emaus-control-pressed,
#btn-next.emaus-control-pressed {
    opacity: 1 !important;
    transform: scale(0.92) !important;
}

#emaus-navigation-back.emaus-control-pressed,
#emaus-navigation-home.emaus-control-pressed,
#emaus-back-control.emaus-control-pressed {
    opacity: 1 !important;
    transform: scale(0.90) !important;
    background: rgba(8, 8, 8, 0.42) !important;
}

@media (prefers-reduced-motion: reduce) {
    #btn-prev[data-online-capability-state="pending"],
    #btn-next[data-online-capability-state="pending"],
    #emaus-navigation-back[data-online-capability-state="pending"],
    #emaus-navigation-home[data-online-capability-state="pending"],
    #btn-prev.emaus-control-pressed,
    #btn-next.emaus-control-pressed,
    #emaus-navigation-back.emaus-control-pressed,
    #emaus-navigation-home.emaus-control-pressed,
    #emaus-back-control.emaus-control-pressed {
        transition: none !important;
    }
}
