/* Consentimiento de cookies — banner inferior + modal de preferencias.
   Diseño sobrio, mobile-first, sin bloquear el contenido. */

.cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: #0A2658;
    color: #f8fafc;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
    font-size: 0.88rem;
    line-height: 1.45;
}

.cc-banner-text {
    flex: 1 1 320px;
    min-width: 0;
}

.cc-banner-text strong { color: #fff; }

.cc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.cc-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.cc-btn-primary {
    background: #1f7a3d;
    color: #fff;
}

.cc-btn-ghost {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.35);
}

.cc-btn:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

/* ── Modal de preferencias ──────────────────────────────────────────── */
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 11001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
}

.cc-modal-box {
    width: 100%;
    max-width: 460px;
    background: #fff;
    color: #0b1220;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.cc-modal-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0A2658;
}

.cc-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

.cc-row-text small {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 2px;
}

.cc-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
    cursor: pointer;
}

.cc-row input[disabled] { cursor: not-allowed; opacity: 0.6; }

.cc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 560px) {
    .cc-banner-actions { width: 100%; }
    .cc-banner-actions .cc-btn { flex: 1 1 auto; }
}
