/* ============================================================
   Módulo de cookies — Basida (solo WebPublic)
   Reutiliza los tokens de marca definidos en style.css:
   --primary, --secondary, --light, --dark
   ============================================================ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: #FFFFFF;
    border-top: 1px solid rgba(9, 30, 62, .12);
    box-shadow: 0 -10px 30px -18px rgba(9, 30, 62, .35);
    padding: 1rem 1.25rem;
    transform: translateY(110%);
    transition: transform .45s cubic-bezier(.22, .9, .3, 1);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__text {
    font-size: .9rem;
    color: #43536b;
    margin-bottom: .75rem;
}

.cookie-banner__text a {
    color: var(--primary);
    font-weight: 700;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cookie-banner__actions .btn {
    flex: 1 1 auto;
    min-width: 150px;
    font-weight: 700;
}

.cookie-banner__link {
    background: none;
    border: none;
    color: #43536b;
    text-decoration: underline;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    padding: .5rem 0 0;
}

@media (min-width: 768px) {
    .cookie-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .cookie-banner__text {
        margin-bottom: 0;
        max-width: 640px;
    }

    .cookie-banner__actions {
        flex-wrap: nowrap;
    }

    .cookie-banner__actions .btn {
        flex: none;
        min-width: 140px;
    }

    .cookie-banner__link {
        padding: 0;
    }
}

/* Botón flotante para reabrir preferencias (acceso permanente, exigido por la AEPD) */
.cookie-settings-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1070;
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 20px -8px rgba(9, 30, 62, .5);
}

.cookie-settings-btn.is-visible {
    display: inline-flex;
}

/* Interruptores del modal de preferencias, en el verde de marca */
#cookieModal .form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

#cookieModal .form-check-input:disabled {
    opacity: .65;
}

#cookieModal .cookie-category + .cookie-category {
    border-top: 1px solid rgba(9, 30, 62, .08);
    margin-top: .75rem;
    padding-top: .75rem;
}
