/**
 * consentimiento-legal.css — estilos de la ventana de aceptación legal
 * (ver assets/js/consentimiento-legal.js). Usa los colores corporativos de
 * identidad.css con valores de respaldo por si ese archivo no cargara.
 * - Modo normal: ventana centrada con fondo oscuro bloqueante.
 * - Modo compacto (.sye-consent--compacto, páginas legales): barra inferior sin
 *   fondo bloqueante, para poder leer los documentos antes de aceptar.
 */
html.sye-consent-abierto { overflow: hidden; }

#sye-consent {
    position: fixed; inset: 0; z-index: 2147483000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 47, 87, .72); padding: 16px;
    font-family: Arial, Helvetica, sans-serif;
}
.sye-consent__caja {
    background: #fff; color: #1f2937; width: 100%; max-width: 640px; max-height: 94vh; overflow-y: auto;
    border-radius: 12px; border-top: 5px solid var(--sye-verde, #9CCC3C);
    padding: 24px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); outline: none;
}
#sye-consent h2 {
    font: 700 22px/1.25 var(--sye-fuente-titulos, 'Poppins', Arial, sans-serif);
    color: var(--sye-azul-900, #0A2F57); margin: 0 0 8px; text-align: left;
}
#sye-consent p { font-size: 15px; line-height: 1.5; margin: 0 0 10px; color: #1f2937; text-align: left; font-weight: 400; }
#sye-consent ul { margin: 0 0 12px; padding-left: 20px; }
#sye-consent li { font-size: 14px; line-height: 1.45; margin-bottom: 4px; color: #374151; list-style: disc; }
#sye-consent .sye-consent__decl {
    background: #f3f6fa; border-left: 4px solid var(--sye-azul-500, #0C6CB4);
    padding: 10px 12px; font-size: 13px; max-height: 150px; overflow-y: auto; color: #374151;
}
#sye-consent .sye-consent__chk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; font-size: 14px; line-height: 1.45; }
#sye-consent .sye-consent__chk input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--sye-azul-700, #0B4F86); }
#sye-consent .sye-consent__chk a { color: var(--sye-azul-500, #0C6CB4); font-weight: 700; text-decoration: underline; }
#sye-consent .sye-consent__ayuda { font-size: 12.5px; color: #6b7280; margin: 0 0 8px; }
.sye-consent__acciones { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.sye-consent__acciones button {
    min-height: 46px; padding: 0 22px; border-radius: 8px; font: 600 15px Arial, sans-serif; cursor: pointer;
}
.sye-btn-pri { background: var(--sye-azul-700, #0B4F86); color: #fff; border: 2px solid var(--sye-azul-700, #0B4F86); }
.sye-btn-pri:hover:not(:disabled) { background: var(--sye-azul-900, #0A2F57); }
.sye-btn-pri:disabled { opacity: .45; cursor: not-allowed; }
.sye-btn-sec { background: #fff; color: var(--sye-azul-900, #0A2F57); border: 2px solid #9ca3af; }
.sye-btn-sec:hover { background: #f3f4f6; }
#sye-consent button:focus-visible, #sye-consent a:focus-visible, #sye-consent input:focus-visible {
    outline: 3px solid var(--sye-verde, #9CCC3C); outline-offset: 2px;
}
/* Compacto: barra inferior no bloqueante */
#sye-consent.sye-consent--compacto { inset: auto 0 0 0; background: transparent; padding: 0; pointer-events: none; }
.sye-consent--compacto .sye-consent__caja { max-width: 980px; max-height: 60vh; border-radius: 12px 12px 0 0; pointer-events: auto; padding: 16px 20px; }
.sye-consent--compacto ul { display: none; } /* la declaración SÍ se muestra: es el texto que queda en la constancia */
.sye-consent--compacto .sye-consent__decl { max-height: 80px; }
.sye-consent__aviso {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2147483001;
    background: var(--sye-azul-900, #0A2F57); color: #fff; padding: 12px 18px; border-radius: 8px;
    font: 14px/1.4 Arial, sans-serif; max-width: min(92vw, 560px); box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
@media (max-width: 520px) {
    .sye-consent__caja { padding: 18px 16px; }
    #sye-consent h2 { font-size: 19px; }
    .sye-consent__acciones button { flex: 1 1 100%; }
}
