/* =========================================================
   LUCE BONITO · PRIVACIDAD Y CONTENIDO EXTERNO
   ========================================================= */

.lb-consent-layer,
.lb-consent-layer *,
.lb-consent-layer *::before,
.lb-consent-layer *::after {
    box-sizing: border-box;
}

.lb-consent-layer {
    position: relative;
    z-index: 2147483000;
    color: #553d59;
    font-family: "Jost", Arial, sans-serif;
}

.lb-consent-layer [hidden] {
    display: none !important;
}

body.lb-consent-modal-open {
    overflow: hidden;
}

.lb-consent-banner {
    position: fixed;
    z-index: 2147483001;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    background:
        radial-gradient(circle at 4% 0%, rgba(248, 220, 235, .76), transparent 40%),
        linear-gradient(145deg, #fffdfd, #faf3fb);
    border: 1px solid rgba(103, 57, 111, .16);
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(63, 32, 69, .22);
}

.lb-consent-banner-copy {
    min-width: 0;
}

.lb-consent-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #976b9f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.lb-consent-banner h2,
.lb-consent-modal-panel h2 {
    margin: 0;
    color: #5b2367;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.05;
}

.lb-consent-banner p {
    max-width: 670px;
    margin: 8px 0 0;
    color: #735f76;
    font-size: 14px;
    line-height: 1.55;
}

.lb-consent-banner-actions,
.lb-consent-modal-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    gap: 9px;
}

.lb-consent-button {
    min-height: 44px;
    margin: 0;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.lb-consent-button:hover {
    transform: translateY(-1px);
}

.lb-consent-button--accept {
    color: #fff;
    background: linear-gradient(135deg, #865493, #6c3579);
    box-shadow: 0 8px 18px rgba(91, 35, 103, .18);
}

.lb-consent-button--reject {
    color: #fff;
    background: linear-gradient(135deg, #a36f8c, #81536f);
    box-shadow: 0 8px 18px rgba(106, 61, 84, .16);
}

.lb-consent-button--configure,
.lb-consent-button--save {
    color: #5b2367;
    background: #fff;
    border-color: rgba(91, 35, 103, .28);
    box-shadow: 0 6px 16px rgba(75, 42, 82, .08);
}

.lb-consent-button:focus-visible,
.lb-consent-close:focus-visible,
.lb-consent-switch:focus-visible,
.lb-privacy-trigger:focus-visible,
.tiktok-consent-action:focus-visible {
    outline: 3px solid #6d2e7d !important;
    outline-offset: 3px !important;
}

.lb-privacy-trigger {
    position: fixed;
    z-index: 2147482998;
    bottom: 13px;
    left: 13px;
    min-height: 36px;
    margin: 0;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #674b6c;
    background: rgba(255, 251, 253, .94);
    border: 1px solid rgba(91, 35, 103, .18);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(67, 35, 73, .14);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.lb-privacy-trigger span {
    color: #a36f9f;
    font-size: 15px;
}

.lb-consent-modal {
    position: fixed;
    z-index: 2147483002;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.lb-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 24, 43, .52);
    backdrop-filter: blur(4px);
}

.lb-consent-modal-panel {
    position: relative;
    width: min(690px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    padding: 25px;
    overflow: auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(234, 210, 242, .58), transparent 36%),
        #fffdfd;
    border: 1px solid rgba(91, 35, 103, .16);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(42, 22, 47, .32);
}

.lb-consent-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.lb-consent-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    display: grid;
    place-items: center;
    color: #684d6c;
    background: #fff;
    border: 1px solid rgba(91, 35, 103, .17);
    border-radius: 50%;
    font: 400 27px/1 Arial, sans-serif;
    cursor: pointer;
}

.lb-consent-modal-intro {
    margin: 10px 0 20px;
    color: #735f76;
    font-size: 14px;
    line-height: 1.55;
}

.lb-consent-option {
    margin-top: 12px;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(248, 239, 248, .66);
    border: 1px solid rgba(91, 35, 103, .11);
    border-radius: 18px;
}

.lb-consent-option-copy {
    min-width: 0;
    color: inherit;
}

.lb-consent-option-copy strong {
    display: block;
    color: #5b2367;
    font-size: 15px;
}

.lb-consent-option-copy p {
    margin: 5px 0 0;
    color: #765f79;
    font-size: 13px;
    line-height: 1.5;
}

.lb-consent-required {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #6d4c72;
    background: #fff;
    border: 1px solid rgba(91, 35, 103, .15);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.lb-consent-switch {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 30px;
    margin: 0;
    padding: 0;
    background: #c7b9c9;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease;
}

.lb-consent-switch span {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(39, 22, 42, .24);
    transition: transform .2s ease;
}

.lb-consent-switch[aria-checked="true"] {
    background: #875493;
}

.lb-consent-switch[aria-checked="true"] span {
    transform: translateX(24px);
}

.lb-consent-note {
    margin: 15px 3px 20px;
    color: #7e6b80;
    font-size: 12px;
    line-height: 1.5;
}

.lb-consent-modal-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Estado de la sección TikTok antes de permitir contenido externo. */
.reels-track > .tiktok-consent-card {
    flex: 1 1 100% !important;
    width: min(760px, 100%) !important;
    max-width: 760px !important;
    min-height: 310px !important;
    margin: 0 auto !important;
    padding: 32px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .96), transparent 42%),
        linear-gradient(145deg, #f9eaf2, #ede0f5) !important;
    border: 1px solid rgba(91, 35, 103, .13) !important;
    border-radius: 24px !important;
    box-shadow: 0 14px 34px rgba(70, 38, 77, .10) !important;
}

.reels-track > .tiktok-consent-card:hover {
    transform: none !important;
}

.tiktok-consent-symbol {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #9b6ba4, #6c3579);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(91, 35, 103, .19);
    font-family: Georgia, serif;
    font-size: 28px;
}

.tiktok-consent-card strong {
    padding: 0 !important;
    color: #5b2367 !important;
    background: transparent !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(25px, 4vw, 34px) !important;
    font-weight: 600 !important;
    line-height: 1.05 !important;
}

.tiktok-consent-card p {
    max-width: 520px;
    margin: 0;
    color: #745f77;
    font-size: 14px;
    line-height: 1.55;
}

.tiktok-consent-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.tiktok-consent-action {
    min-height: 42px;
    padding: 10px 17px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: linear-gradient(135deg, #865493, #6c3579) !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    font: 700 12px/1.2 "Jost", Arial, sans-serif !important;
    letter-spacing: .04em;
    text-decoration: none !important;
    cursor: pointer;
}

.reels-section .tiktok-consent-card a.tiktok-consent-action {
    display: inline-flex !important;
}

.tiktok-consent-action--secondary {
    color: #5b2367 !important;
    background: rgba(255, 255, 255, .8) !important;
    border-color: rgba(91, 35, 103, .20) !important;
}

@media (max-width: 800px) {
    .lb-consent-banner {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lb-consent-banner-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .lb-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 17px;
        border-radius: 20px;
    }

    .lb-consent-banner h2,
    .lb-consent-modal-panel h2 {
        font-size: 27px;
    }

    .lb-consent-banner p {
        font-size: 13px;
    }

    .lb-consent-banner-actions,
    .lb-consent-modal-actions {
        grid-template-columns: 1fr;
    }

    .lb-consent-button {
        width: 100%;
    }

    .lb-consent-modal {
        padding: 10px;
        align-items: end;
    }

    .lb-consent-modal-panel {
        max-height: calc(100vh - 20px);
        padding: 20px 16px 17px;
        border-radius: 24px;
    }

    .lb-consent-option {
        align-items: flex-start;
        gap: 12px;
    }

    .lb-consent-required {
        padding: 6px 8px;
        font-size: 9px;
    }

    .reels-track > .tiktok-consent-card {
        min-height: 285px !important;
        padding: 25px 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-consent-layer *,
    .lb-consent-layer *::before,
    .lb-consent-layer *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
