    .cookies-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(172, 172, 172, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .modal-cookies {
        display: flex;
        position: fixed;
        z-index: 9999;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* opcional: ajustar tamaño */
        width: 80vw;
        max-width: 1300px;
        height: auto;
        justify-content: center;
        align-items: flex-end;
        pointer-events: auto;

    }

    #cookiesBackdrop,
    #modal-cookies {
        display: none;
    }

    .modal-cookies-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1rem 2rem;
        width: 100%;
        background-color: rgb(54, 54, 54);
        border-radius: 12px;
    }

    .modal-cookies-text {
        flex: 1;
        min-width: 0;
    }

    .modal-cookies-text p {
        text-align: left;
        color: #fff;
        font-size: calc(0.7rem + .3vw);
        margin: 0;
        line-height: 1.5;
    }

    .modal-cookies-text a {
        color: #fff;
        font-weight: bold;
        text-decoration: underline;
    }

    .modal-cookies-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
        align-items: center;
        white-space: nowrap;
    }

    @media (max-width: 600px) {
        .modal-cookies {
            width: 95vw;
        }

        .modal-cookies-content {
            flex-direction: column;
            align-items: flex-start;
            padding: 1rem;
        }

        .modal-cookies-actions {
            width: 100%;
            flex-direction: column;
            justify-content: flex-end;
        }
    }

    .modal-cookies-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10000;
        justify-content: center;
        align-items: center;
    }

    .modal-cookies-overlay.active {
        display: flex;
    }

    .modal-cookies-panel {
        background: #1a1a1a;
        color: #fff;
        border-radius: 12px;
        width: 100%;
        max-width: 520px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 2rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        position: relative;
    }

    .modal-cookies-panel h3 {
        margin: 0 0 0.5rem;
        font-size: 1.2rem;
        color: #fff;
    }

    .modal-cookies-panel>p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.75);
        margin: 0 0 1.5rem;
        line-height: 1.5;
    }

    .modal-cookies-panel>p a {
        color: #fff;
        font-weight: bold;
        text-decoration: underline;
    }

    .modal-cookies-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.4rem;
        cursor: pointer;
        line-height: 1;
        padding: 0;
    }

    .modal-cookies-close:hover {
        color: #fff;
    }

    .cookie-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px 14px;
        gap: 12px;
        margin-bottom: 10px;
    }

    .cookie-option-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .cookie-name {
        font-weight: bold;
        font-size: 0.9rem;
    }

    .cookie-desc {
        font-size: 0.78rem;
        opacity: 0.75;
        line-height: 1.4;
    }

    .cookie-toggle {
        position: relative;
        display: inline-block;
        width: 48px;
        height: 26px;
        flex-shrink: 0;
        cursor: pointer;
        margin: 0;
    }

    .cookie-toggle.disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .cookie-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        inset: 0;
        background: #555;
        border-radius: 26px;
        transition: 0.3s;
    }

    .slider::before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        left: 3px;
        bottom: 3px;
        background: white;
        border-radius: 50%;
        transition: 0.3s;
    }

    input:checked+.slider {
        background: #28a745;
    }

    input:checked+.slider::before {
        transform: translateX(22px);
    }

    .modal-panel-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-top: 1.2rem;
    }