/* PAGINAS LEGALES Y LIBRO: no modifica el home. Colores y tamanos locales en :root. */
:root { --legal-ink: #173650; --legal-muted: #607080; --legal-accent: #d60a70; --legal-border: #d7e1e9; --legal-soft: #f4f8fa; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--legal-ink); background: #fff; font: 16px/1.6 "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: #1263ad; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
/* CABECERA: logo y regreso, sin altura de pantalla ni slider. */
.legal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1180px; padding: 20px 16px; margin: auto; border-bottom: 1px solid var(--legal-border); }
.legal-header img { width: 132px; height: auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--legal-ink); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }
.legal-main { width: min(960px, calc(100% - 32px)); margin: 40px auto 64px; }
.legal-eyebrow { margin: 0 0 8px; color: var(--legal-accent); font-size: 0.8125rem; font-weight: 750; }
h1 { margin: 0 0 18px; font-size: 2rem; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
h2 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 16px; }
.legal-intro > p:not(.legal-eyebrow) { max-width: 850px; color: var(--legal-muted); }
.provider-details { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; padding: 22px 0; margin: 24px 0; border-block: 1px solid var(--legal-border); font-size: 0.875rem; }
.provider-details dt { color: var(--legal-muted); margin-bottom: 4px; }
.provider-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.response-notice, .service-status { padding: 14px 18px; border-left: 4px solid #ffc529; background: #fff9df; font-size: 0.875rem; }
.service-status { border-color: #1263ad; background: #eff6fc; }
.required-note, .legal-note { color: var(--legal-muted); font-size: 0.8125rem; }
/* CAMPOS: dos columnas; wide-field ocupa la fila. El navegador conserva sus validaciones nativas. */
.complaint-form fieldset { min-width: 0; padding: 26px 0 30px; margin: 20px 0 0; border: 0; border-top: 1px solid var(--legal-border); }
.complaint-form legend { float: left; width: 100%; padding: 0; margin-bottom: 24px; font-size: 1.125rem; font-weight: 700; }
.complaint-form legend span { margin-right: 12px; color: var(--legal-accent); font-size: 0.875rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; clear: both; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 0.875rem; font-weight: 600; }
.wide-field { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #bdcbd7; border-radius: 6px; color: var(--legal-ink); background: #fff; font-weight: 400; line-height: 1.5; }
input, select { min-height: 46px; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #f4c52d; outline-offset: 3px; }
.form-grid input[type=file] { padding: 9px; font-size: 0.8125rem; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-radius: 4px; color: #173650; background: #edf2f6; cursor: pointer; }
.field-help, .field-explanation { color: var(--legal-muted); font-size: 0.8125rem; font-weight: 400; }
.field-explanation { align-self: center; margin: 0; }
.guardian-fields { margin-top: 24px; padding: 16px; background: var(--legal-soft); }
.guardian-fields summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; }
.guardian-fields .form-grid { margin-top: 20px; }
.check-label { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.875rem; }
.check-label input { width: 18px; min-height: 18px; height: 18px; }
.privacy-notice { padding: 22px 0; border-top: 1px solid var(--legal-border); }
.privacy-notice h2 { font-size: 1rem; }
.privacy-notice p { color: var(--legal-muted); font-size: 0.875rem; margin-bottom: 0; }
.form-submit { display: flex; align-items: center; gap: 24px; margin: 12px 0 24px; }
.form-submit p { max-width: 380px; margin: 0; color: var(--legal-muted); font-size: 0.8125rem; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 20px; border: 0; border-radius: 999px; color: #fff; background: var(--legal-accent); cursor: pointer; font-size: 0.875rem; font-weight: 700; }
button svg { width: 20px; height: 20px; flex: 0 0 20px; }
button:disabled { opacity: 0.6; cursor: wait; }
.form-submit button { flex: 0 0 auto; }
.form-error { padding: 14px; border-left: 4px solid #b42318; color: #8e1b13; background: #fff2f0; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* CONSTANCIA: solo despues de registrar; botones para descargar/imprimir la misma hoja. */
.complaint-result { padding: 28px 0 12px; border-top: 3px solid #348a3b; }
.receipt-reference { font-size: 1.1rem; font-weight: 750; overflow-wrap: anywhere; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.receipt-actions button { background: #1263ad; }
.receipt-print-frame { position: fixed; width: 0; height: 0; border: 0; }
/* TERMINOS Y PRIVACIDAD: texto de lectura y separadores simples, sin tarjetas. */
.legal-document { max-width: 850px; }
.legal-document section { padding: 24px 0; border-top: 1px solid var(--legal-border); }
.legal-document section p, .legal-document li { color: var(--legal-muted); font-size: 0.9375rem; }
.legal-document section p:last-child { margin-bottom: 0; }
.legal-document ul { padding-left: 22px; }
.document-date { color: var(--legal-muted); font-size: 0.8125rem; margin-bottom: 26px; }
@media(max-width:700px) { .provider-details { grid-template-columns: 1fr 1fr; gap: 16px; } .provider-address { grid-column: 1 / -1; } .form-grid { grid-template-columns: 1fr; gap: 18px; } .form-submit { align-items: flex-start; flex-direction: column; gap: 12px; } .form-submit button { width: 100%; } }
@media(max-width:400px) { .legal-header { padding: 16px; gap: 12px; } .legal-header img { width: 112px; } .back-link { font-size: 0.8125rem; } .legal-main { margin-top: 28px; } h1 { font-size: 1.625rem; } .complaint-form legend { font-size: 1rem; } .receipt-actions { flex-direction: column; } }
@media print { .legal-header, .site-footer, .receipt-actions { display: none; } .legal-main { width: 100%; margin: 0; } }
