/* ===== Política de Privacidad ===== */

body.sin-sesion {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    display: block;
}

.contenido-publico {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px;
}

.documento-privacidad {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.privacidad-encabezado {
    text-align: center;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 2px solid #eff6ff;
}

.icono-escudo { font-size: 44px; display: block; margin-bottom: 10px; }

.privacidad-encabezado h1 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.privacidad-encabezado p {
    color: #64748b;
    font-size: 14px;
}

.seccion-privacidad {
    margin-bottom: 26px;
}

.seccion-privacidad h2 {
    font-size: 17px;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.seccion-privacidad p,
.seccion-privacidad li {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

.seccion-privacidad ul {
    padding-left: 22px;
}

.seccion-privacidad a {
    color: #1e3a8a;
    font-weight: 600;
}

.derechos-lista {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.derecho-item {
    background: #f8fafc;
    border-left: 3px solid #1e3a8a;
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #475569;
}

.derecho-item strong { color: #1e3a8a; }

.privacidad-pie {
    text-align: center;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

/* ===== Modal bloqueante de consentimiento (Ley 21.719) ===== */
.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consent-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
}

.consent-modal-header {
    padding: 26px 30px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.consent-modal-header h2 {
    font-size: 20px;
    color: #1e3a8a;
    margin: 6px 0 10px;
}

.consent-modal-header p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.consent-version {
    margin-top: 8px !important;
    font-size: 11.5px !important;
    color: #94a3b8 !important;
}

.consent-modal-scroll {
    overflow-y: auto;
    padding: 18px 22px;
    flex: 1;
    background: #f8fafc;
}

.documento-privacidad.doc-en-modal {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    padding: 26px;
    border-radius: 12px;
}

.consent-modal-footer {
    padding: 16px 30px 22px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #fff;
}

.consent-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 14px;
    cursor: pointer;
}

.consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #1e3a8a;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 12px;
}

.btn-consent { width: 100%; padding: 13px; font-size: 15px; }

@media (max-width: 600px) {
    .documento-privacidad { padding: 24px 18px; }
    .consent-modal-header { padding: 20px 18px 12px; }
    .consent-modal-scroll { padding: 12px; }
    .consent-modal-footer { padding: 14px 18px 18px; }
}
