/**
 * ==========================================================================
 * LE COMPTOIR DES ESSENCES — INSIGNIA LUMINOSA «ESPECIAL NAVIDAD» (2026)
 * Ubicación Canónica: Justo debajo de «CONSULTAR AL BOTICARIO» (más corta,
 * con cofre joya negro/oro #D4AF37 y halo áureo intenso de alta visibilidad).
 * Encapsulación total sobre #lce-navidad-badge — CERO impacto en CSS global.
 * ==========================================================================
 */

#lce-navidad-badge {
    position: absolute;
    top: 134px;
    right: 3.5%;
    z-index: 68;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 4px 14px 4px 9px;
    background: linear-gradient(135deg, #561326 0%, #2F0A15 55%, #1B060C 100%);
    border: 1.5px solid #D4AF37;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow:
        0 0 18px 4px rgba(212, 175, 55, 0.68),
        0 0 38px 10px rgba(212, 175, 55, 0.30),
        0 6px 16px rgba(0, 0, 0, 0.78),
        inset 0 1px 0 rgba(255, 245, 214, 0.42);
    animation: lceNavidadCapsulePulse 2.2s ease-in-out infinite;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Halo trasero potente de resplandor dorado #D4AF37 */
#lce-navidad-badge::before {
    content: "";
    position: absolute;
    inset: -11px -15px;
    border-radius: 999px;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.78) 0%,
        rgba(212, 175, 55, 0.38) 46%,
        rgba(212, 175, 55, 0) 75%
    );
    filter: blur(6px);
    z-index: -1;
    pointer-events: none;
    animation: lceNavidadHaloStrong 2.2s ease-in-out infinite;
}

#lce-navidad-badge:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.08);
    box-shadow:
        0 0 26px 7px rgba(212, 175, 55, 0.88),
        0 0 50px 15px rgba(212, 175, 55, 0.44),
        0 8px 20px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 250, 230, 0.65);
}

#lce-navidad-badge .lce-navidad-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.34) 0%, rgba(16, 5, 8, 0.88) 76%);
    border: 1px solid rgba(212, 175, 55, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

#lce-navidad-badge .lce-navidad-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.75));
}

#lce-navidad-badge .lce-navidad-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.12;
}

#lce-navidad-badge .lce-navidad-kicker {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #D4AF37;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

#lce-navidad-badge .lce-navidad-title {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFDF9;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 10px rgba(212, 175, 55, 0.55);
}

@keyframes lceNavidadCapsulePulse {
    0%, 100% {
        box-shadow:
            0 0 16px 3px rgba(212, 175, 55, 0.58),
            0 0 32px 8px rgba(212, 175, 55, 0.25),
            0 6px 16px rgba(0, 0, 0, 0.78),
            inset 0 1px 0 rgba(255, 245, 214, 0.38);
    }
    50% {
        box-shadow:
            0 0 25px 6px rgba(212, 175, 55, 0.88),
            0 0 48px 14px rgba(212, 175, 55, 0.42),
            0 6px 18px rgba(0, 0, 0, 0.85),
            inset 0 1px 0 rgba(255, 250, 230, 0.62);
    }
}

@keyframes lceNavidadHaloStrong {
    0%, 100% {
        opacity: 0.72;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* ==========================================================================
   TABLET VERTICAL (601px - 900px Portrait)
   ========================================================================== */
@media screen and (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
    body[data-room="el-maestro-boticario"] #lce-navidad-badge {
        top: 96px;
        right: 24px;
        height: 36px;
        padding: 3px 12px 3px 7px;
    }
    body[data-room="el-maestro-boticario"] #lce-navidad-badge .lce-navidad-icon-wrap {
        width: 28px;
        height: 28px;
    }
    body[data-room="el-maestro-boticario"] #lce-navidad-badge .lce-navidad-icon {
        width: 24px;
        height: 24px;
    }
    body[data-room="el-maestro-boticario"] #lce-navidad-badge .lce-navidad-title {
        font-size: 10.5px;
    }
}

/* ==========================================================================
   MÓVIL VERTICAL (<= 768px) — Más corto que «CONSULTAR AL BOTICARIO», 0 solapes
   ========================================================================== */
@media screen and (max-width: 768px) and (orientation: portrait) {
    #lce-navidad-badge {
        top: calc(83px + env(safe-area-inset-top, 0px));
        right: calc(14px + env(safe-area-inset-right, 0px));
        height: 31px;
        padding: 3px 9px 3px 5px;
        gap: 6px;
    }

    /* En las 5 salas secundarias donde .room-hero-title ocupa top 76..120px, se sitúa limpio debajo */
    body:not([data-room="el-maestro-boticario"]):not([data-room="pdp"]) #lce-navidad-badge {
        top: calc(128px + env(safe-area-inset-top, 0px));
    }

    #lce-navidad-badge::before {
        inset: -8px -10px;
    }

    #lce-navidad-badge .lce-navidad-icon-wrap {
        width: 23px;
        height: 23px;
    }

    #lce-navidad-badge .lce-navidad-icon {
        width: 20px;
        height: 20px;
    }

    #lce-navidad-badge .lce-navidad-kicker {
        font-size: 6.3px;
        letter-spacing: 1px;
    }

    #lce-navidad-badge .lce-navidad-title {
        font-size: 8.6px;
        letter-spacing: 1.2px;
    }
}

/* ==========================================================================
   MÓVIL HORIZONTAL / LANDSCAPE (max-width: 1024px y max-height: 500px)
   ========================================================================== */
@media screen and (orientation: landscape) and (max-width: 1024px) and (max-height: 500px) {
    #lce-navidad-badge {
        top: 88px;
        right: 2.5%;
        height: 29px;
        padding: 2px 9px 2px 5px;
        gap: 5px;
    }

    #lce-navidad-badge::before {
        inset: -7px -9px;
    }

    #lce-navidad-badge .lce-navidad-icon-wrap {
        width: 22px;
        height: 22px;
    }

    #lce-navidad-badge .lce-navidad-icon {
        width: 19px;
        height: 19px;
    }

    #lce-navidad-badge .lce-navidad-kicker {
        font-size: 6px;
        letter-spacing: 0.9px;
    }

    #lce-navidad-badge .lce-navidad-title {
        font-size: 8.2px;
        letter-spacing: 1.1px;
    }
}
