/* FP Consentimiento — Ley 21.719 */

:root {
    --fpc-primary: #1a1a2e;
    --fpc-accent: #c1121f;
    --fpc-bg: #ffffff;
    --fpc-text: #2b2b2b;
    --fpc-radius: 10px;
    --fpc-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    --fpc-z: 999999;
}

/* ---------- Banner ---------- */

.fpc-banner {
    position: fixed;
    z-index: var(--fpc-z);
    background: var(--fpc-bg);
    color: var(--fpc-text);
    box-shadow: var(--fpc-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.fpc-pos-bottom {
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: var(--fpc-radius);
    max-width: 720px;
    margin: 0 auto;
}

.fpc-pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--fpc-radius);
    width: min(92vw, 560px);
}

.fpc-banner-inner {
    padding: 22px 24px;
}

.fpc-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--fpc-primary);
    line-height: 1.3;
}

.fpc-text {
    margin: 0 0 16px;
    font-size: 14px;
}

.fpc-text-small { font-size: 13px; }

.fpc-controller {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    opacity: 0.8;
}

.fpc-text a {
    color: var(--fpc-accent);
    text-decoration: underline;
}

/* Botones — Aceptar y Rechazar con la MISMA prominencia (Ley 21.719) */

.fpc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fpc-btn {
    cursor: pointer;
    border: 2px solid var(--fpc-primary);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.15s ease;
    font-family: inherit;
    line-height: 1.2;
}

.fpc-btn:hover { opacity: 0.85; }

.fpc-btn-primary {
    background: var(--fpc-primary);
    color: #fff;
}

.fpc-btn-secondary {
    background: transparent;
    color: var(--fpc-primary);
}

/* ---------- Modal ---------- */

.fpc-modal {
    position: fixed;
    inset: 0;
    z-index: calc(var(--fpc-z) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fpc-modal[hidden] { display: none; }

.fpc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.fpc-modal-box {
    position: relative;
    background: var(--fpc-bg);
    color: var(--fpc-text);
    border-radius: var(--fpc-radius);
    box-shadow: var(--fpc-shadow);
    width: min(92vw, 620px);
    max-height: 85vh;
    overflow-y: auto;
    padding: 26px 26px 22px;
}

.fpc-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--fpc-text);
    opacity: 0.6;
}

.fpc-modal-close:hover { opacity: 1; }

.fpc-cat {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.fpc-cat p {
    margin: 8px 0 0;
    font-size: 13px;
    opacity: 0.85;
}

.fpc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fpc-cat-head strong {
    font-size: 14.5px;
    color: var(--fpc-primary);
}

.fpc-always {
    font-size: 12px;
    font-weight: 600;
    color: var(--fpc-accent);
    white-space: nowrap;
}

/* Switch */

.fpc-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.fpc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fpc-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.fpc-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.fpc-switch input:checked + .fpc-slider { background: var(--fpc-accent); }
.fpc-switch input:checked + .fpc-slider::before { transform: translateX(20px); }
.fpc-switch input:focus-visible + .fpc-slider { outline: 2px solid var(--fpc-primary); outline-offset: 2px; }

/* ---------- Botón flotante (revocación fácil) ---------- */

.fpc-float {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: calc(var(--fpc-z) - 1);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--fpc-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.fpc-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .fpc-pos-bottom {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    .fpc-banner-inner { padding: 18px 16px; }
    .fpc-actions { flex-direction: column; }
    .fpc-btn { width: 100%; }
    .fpc-float { width: 40px; height: 40px; bottom: 12px; left: 12px; }
}
