/* ==========================================================================
   LE COMPTOIR DES ESSENCES — JOYERÍA SOCIAL PERIMETRAL Y EN PANELES
   Monopolio Cromático #D4AF37 (Bronce Noble #2A2218 en Pura Elegancia)
   Aislamiento Bipolar Estricto y Silencio Hermético en El Grimorio Secreto
   ========================================================================== */

@keyframes lceSocialGoldGlow {
    0%, 100% {
        box-shadow: 0 0 11px 1px rgba(212, 175, 55, 0.42),
                    inset 0 0 6px rgba(212, 175, 55, 0.22),
                    0 2px 6px rgba(0, 0, 0, 0.85);
    }
    50% {
        box-shadow: 0 0 17px 3px rgba(212, 175, 55, 0.64),
                    inset 0 0 9px rgba(212, 175, 55, 0.34),
                    0 2px 6px rgba(0, 0, 0, 0.85);
    }
}

/* 1. MEDALLONES DE FILIGRANA LUMINOSA (COMUNES A ESQUINA, SALAS Y CONTACTO) */
.lce-social-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lce-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #D4AF37;
    background: radial-gradient(circle at 35% 30%, rgba(212, 175, 55, 0.22) 0%, rgba(12, 10, 8, 0.90) 74%);
    border: 1px solid rgba(212, 175, 55, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px 1px rgba(212, 175, 55, 0.44),
                inset 0 0 6px rgba(212, 175, 55, 0.24),
                0 2px 6px rgba(0, 0, 0, 0.85);
    animation: lceSocialGoldGlow 3.8s ease-in-out infinite;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.28s ease,
                background 0.28s ease,
                box-shadow 0.28s ease,
                color 0.28s ease;
}

.lce-social-link.is-pending {
    cursor: default;
}

.lce-social-link svg {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.65));
}

@media (hover: hover) and (pointer: fine) {
    a.lce-social-link:hover,
    a.lce-social-link:focus-visible {
        transform: translateY(-2px);
        color: #D4AF37;
        border-color: #D4AF37;
        background: radial-gradient(circle at 35% 30%, rgba(212, 175, 55, 0.38) 0%, rgba(18, 15, 11, 0.94) 76%);
        box-shadow: 0 0 20px 4px rgba(212, 175, 55, 0.75),
                    inset 0 0 9px rgba(212, 175, 55, 0.36),
                    0 4px 12px rgba(0, 0, 0, 0.90);
        outline: none;
    }
}

/* 2. SILENCIO HERMÉTICO EN EL GRIMORIO SECRETO (CRIPTA SUBTERRÁNEA) */
body[data-room="el-grimorio-secreto"] .lce-social-corner,
body.room-grimorio-secreto .lce-social-corner,
body.lce-grimorio-context .lce-social-corner,
body[data-room="el-grimorio-secreto"] .lce-social-drawer,
body.room-grimorio-secreto .lce-social-drawer,
body.lce-grimorio-context .lce-social-drawer {
    display: none !important;
}

/* 3. ESQUINA INFERIOR DERECHA — ESCRITORIO Y TABLET HORIZONTAL (>= 769px) */
@media (min-width: 769px) {
    .lce-social-corner {
        position: absolute;
        bottom: 43px;
        right: 3.5%;
        z-index: 70;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        pointer-events: auto;
    }

    .lce-social-corner .lce-social-eyebrow {
        font-family: 'Cinzel', serif;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 2.1px;
        color: #D4AF37;
        text-transform: uppercase;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.98), 0 0 10px rgba(212, 175, 55, 0.65);
        white-space: nowrap;
        -webkit-user-select: none;
        user-select: none;
    }

    .lce-social-corner .lce-social-sep {
        color: #D4AF37;
        font-size: 10px;
        opacity: 0.92;
        margin: 0 1px;
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
        -webkit-user-select: none;
        user-select: none;
    }

    .lce-social-corner .lce-social-link {
        width: 26px;
        height: 26px;
    }

    .lce-social-corner .lce-social-link svg {
        width: 13.5px;
        height: 13.5px;
    }
}

/* En Ficha de Producto en tablets horizontales y portátiles compactos: aire inferior limpio */
@media (min-width: 769px) and (max-width: 1100px) {
    body.pdp-body .pdp-wrapper {
        padding-bottom: 86px !important;
    }
}

@media (min-width: 992px) and (max-height: 720px) {
    body.pdp-body .pdp-wrapper {
        padding-bottom: 80px !important;
    }
}

/* 4. ESQUINA INFERIOR DERECHA — MÓVIL Y TABLET VERTICAL (<= 768px) */
@media (max-width: 768px) {
    .lce-social-corner {
        position: absolute;
        bottom: calc(39px + env(safe-area-inset-bottom, 0px));
        right: calc(14px + env(safe-area-inset-right, 0px));
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        pointer-events: auto;
    }

    .lce-social-corner .lce-social-eyebrow,
    .lce-social-corner .lce-social-sep {
        display: none;
    }

    .lce-social-corner .lce-social-list {
        gap: 7px;
    }

    .lce-social-corner .lce-social-link {
        width: 23px;
        height: 23px;
    }

    .lce-social-corner .lce-social-link svg {
        width: 11.5px;
        height: 11.5px;
    }

    /* En Ficha de Producto móvil: aire inferior limpio para que no roce la tarjeta */
    body.pdp-body .pdp-wrapper {
        padding-bottom: 74px !important;
    }
}

/* 5. CALIBRACIÓN ESQUINA INFERIOR DERECHA EN MÓVIL HORIZONTAL (LANDSCAPE) */
@media screen and (orientation: landscape) and (max-width: 1024px) and (max-height: 500px) {
    .lce-social-corner {
        position: absolute;
        bottom: 23px;
        right: max(18px, calc(env(safe-area-inset-right, 0px) + 8px));
        z-index: 70;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        pointer-events: auto;
    }

    body[data-room="la-trastienda"] .lce-social-corner,
    body.room-trastienda .lce-social-corner,
    body.room-la-trastienda .lce-social-corner {
        bottom: 29px;
    }

    body.pdp-body .pdp-wrapper {
        padding-bottom: 20px !important;
    }

    body.pdp-body .lce-social-corner {
        position: static;
        width: 100%;
        justify-content: center;
        margin: 14px auto -8px auto;
    }

    .lce-social-corner .lce-social-eyebrow,
    .lce-social-corner .lce-social-sep {
        display: none;
    }

    .lce-social-corner .lce-social-list {
        gap: 6px;
    }

    .lce-social-corner .lce-social-link {
        width: 20px;
        height: 20px;
    }

    .lce-social-corner .lce-social-link svg {
        width: 10.5px;
        height: 10.5px;
    }
}

/* 6. EXCEPCIÓN OBLIGATORIA: PURA ELEGANCIA (MÁRMOL BLANCO HABITUAL — BRONCE GRABADO NÍTIDO) */
html:not(.halloween-2026-active) body[data-room="pura-elegancia"] .lce-social-corner .lce-social-eyebrow,
html:not(.halloween-2026-active) body[data-room="pura-elegancia"] .lce-social-corner .lce-social-sep,
html:not(.halloween-2026-active) body.theme-light .lce-social-corner .lce-social-eyebrow,
html:not(.halloween-2026-active) body.theme-light .lce-social-corner .lce-social-sep {
    color: #2A2218;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}

html:not(.halloween-2026-active) body[data-room="pura-elegancia"] .lce-social-corner .lce-social-link,
html:not(.halloween-2026-active) body.theme-light .lce-social-corner .lce-social-link {
    color: #2A2218;
    background: rgba(255, 255, 255, 0.90);
    border: 1.25px solid rgba(107, 85, 45, 0.85);
    box-shadow: 0 0 11px rgba(107, 85, 45, 0.25), 0 2px 6px rgba(42, 34, 24, 0.20);
    animation: none;
}

html:not(.halloween-2026-active) body[data-room="pura-elegancia"] .lce-social-corner .lce-social-link svg,
html:not(.halloween-2026-active) body.theme-light .lce-social-corner .lce-social-link svg {
    filter: none;
}

@media (hover: hover) and (pointer: fine) {
    html:not(.halloween-2026-active) body[data-room="pura-elegancia"] .lce-social-corner a.lce-social-link:hover,
    html:not(.halloween-2026-active) body[data-room="pura-elegancia"] .lce-social-corner a.lce-social-link:focus-visible,
    html:not(.halloween-2026-active) body.theme-light .lce-social-corner a.lce-social-link:hover,
    html:not(.halloween-2026-active) body.theme-light .lce-social-corner a.lce-social-link:focus-visible {
        color: #6b552d;
        border-color: #6b552d;
        background: #FFFFFF;
        box-shadow: 0 0 16px rgba(107, 85, 45, 0.38), 0 3px 10px rgba(107, 85, 45, 0.28);
    }
}

/* 7. INTEGRACIÓN EN EL PIE DEL PANEL LATERAL «ATMÓSFERAS OLFATIVAS» (#rooms-nav-drawer) */
#rooms-nav-drawer .lce-social-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 9px;
}

#rooms-nav-drawer .lce-social-drawer .lce-social-list {
    gap: 12px;
}

#rooms-nav-drawer .lce-social-drawer .lce-social-link {
    width: 28px;
    height: 28px;
}

#rooms-nav-drawer .lce-social-drawer .lce-social-link svg {
    width: 14px;
    height: 14px;
}

@media screen and (orientation: landscape) and (max-width: 1024px) and (max-height: 500px) {
    #rooms-nav-drawer .lce-social-drawer {
        margin-bottom: 4px;
    }
    #rooms-nav-drawer .lce-social-drawer .lce-social-link {
        width: 22px;
        height: 22px;
    }
    #rooms-nav-drawer .lce-social-drawer .lce-social-link svg {
        width: 11px;
        height: 11px;
    }
}

/* 8. INTEGRACIÓN EN EL PIE DEL MODAL DE CONTACTO (#contacto-modal) */
@media (min-width: 769px) {
    #contacto-modal .contacto-modal-container {
        padding: 24px 32px 20px;
    }

    #contacto-modal .contacto-subtitle {
        margin-bottom: 14px;
    }

    #contacto-modal .contacto-form {
        gap: 11px;
    }

    #contacto-modal .contacto-textarea {
        min-height: 68px;
        height: 72px;
    }

    #contacto-modal .contacto-newsletter-consent {
        margin: 6px 0 2px !important;
    }

    #contacto-modal .contacto-legal-consent {
        margin: 2px 0 10px !important;
    }
}

#contacto-modal .lce-social-contacto {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

#contacto-modal .lce-social-contacto-label {
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2.2px;
    color: #D4AF37;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

#contacto-modal .lce-social-contacto .lce-social-list {
    gap: 14px;
}

#contacto-modal .lce-social-contacto .lce-social-link {
    width: 31px;
    height: 31px;
}

#contacto-modal .lce-social-contacto .lce-social-link svg {
    width: 15px;
    height: 15px;
}

/* 9. INTEGRACIÓN EN PIE DE PÁGINAS LEGALES INDEPENDIENTES */
.legal-footer .lce-social-legal-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-footer .lce-social-legal-inline .lce-social-link {
    width: 26px;
    height: 26px;
}

.legal-footer .lce-social-legal-inline .lce-social-link svg {
    width: 13.5px;
    height: 13.5px;
}
