/**
 * Banner de consentimiento de cookies · Ley 1581 Colombia.
 * Diseño sobrio. Botones aceptar/rechazar con IGUAL prominencia (requisito SIC).
 */

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 9999;
    padding: 1rem;
    background: rgba(10, 10, 12, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f5f5f7;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__box {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-banner__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.cookie-banner__text {
    margin: 0;
    color: #d4d4d8;
}

.cookie-banner__link {
    color: #d32f92;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__link:hover { color: #ff6ab8; }

/* Preferencias granulares */
.cookie-banner__preferences {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner__preferences[hidden] { display: none; }

.cookie-banner__pref {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    color: #e4e4e7;
}

.cookie-banner__pref input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: #7b1fa2;
}

.cookie-banner__pref strong {
    display: block;
    font-weight: 600;
    color: #fff;
}

.cookie-banner__pref small {
    display: block;
    font-size: 0.82rem;
    color: #a1a1aa;
    margin-top: 0.1rem;
}

/* Botones · requisito SIC: igual prominencia. Mismo padding + tamaño. */
.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.cookie-banner__btn {
    flex: 1 1 180px;
    min-width: 140px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    font-family: inherit;
}

.cookie-banner__btn:active { transform: translateY(1px); }

.cookie-banner__btn--accept {
    background: linear-gradient(90deg, #7b1fa2, #d32f92);
    color: #fff;
}
.cookie-banner__btn--accept:hover { filter: brightness(1.08); }

.cookie-banner__btn--reject {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.cookie-banner__btn--reject:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.cookie-banner__btn--prefs {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}
.cookie-banner__btn--prefs:hover { background: rgba(255, 255, 255, 0.14); }

@media (max-width: 540px) {
    .cookie-banner { padding: 0.75rem; font-size: 0.9rem; }
    .cookie-banner__btn { flex: 1 1 100%; }
}

/* ── Placeholders de embeds bloqueados ─────────────────────── */
.consent-blocked {
    margin: 1rem 0;
    padding: 1.25rem;
    min-height: 180px;
    background: linear-gradient(135deg, #fafafa, #f4f4f5);
    border: 1px dashed rgba(0, 0, 0, 0.14);
    border-radius: 0.5rem;
    color: #3f3f46;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.consent-blocked:hover,
.consent-blocked:focus-visible {
    border-color: #7b1fa2;
    outline: none;
}

.consent-blocked__inner {
    max-width: 480px;
}

.consent-blocked__icon {
    display: inline-block;
    font-size: 2.2rem;
    color: #7b1fa2;
    margin-bottom: 0.4rem;
}

.consent-blocked__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: #0a0a0c;
}

.consent-blocked__text {
    font-size: 0.9rem;
    margin: 0;
    color: #71717a;
}

.consent-blocked__text a {
    color: #7b1fa2;
    text-decoration: underline;
}
