/* ============ Páginas legales y Libro de Reclamaciones ============ */
.legal-pagina { padding-top: 14px; padding-bottom: 48px; }
.legal-aviso-admin { margin: 0 0 14px; padding: 10px 14px; color: #713f12; font-size: .9rem; background: #fef9c3; border: 1px solid #fde68a; border-radius: 12px; }
.legal-aviso-admin a { color: #713f12; font-weight: 800; }
.legal-cuerpo { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-indice { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding: 10px; background: #fff; border: 1px solid #ececef; border-radius: 16px; }
.legal-indice a { padding: 9px 12px; color: #1f1d1d; font-weight: 700; font-size: .92rem; text-decoration: none; border-radius: 10px; }
.legal-indice a:hover { background: #f3f4f6; }
.legal-indice a[aria-current="page"] { color: #fff; background: #1b1a1a; }
.legal-indice-libro { margin-top: 6px; border: 1px solid #fecaca; }
.legal-texto { max-width: 820px; padding: clamp(18px, 3vw, 34px); background: #fff; border: 1px solid #ececef; border-radius: 18px; line-height: 1.65; }
.legal-texto h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.02em; }
.legal-texto h2 { margin: 26px 0 8px; font-size: 1.15rem; }
.legal-texto ul { padding-left: 1.2em; }
.legal-texto li { margin-bottom: 6px; }
.legal-texto a { color: #0d8f09; font-weight: 700; }
.legal-fecha { margin: 0 0 18px; color: #6b6670; font-size: .88rem; }
.legal-proveedor { margin-top: 28px; padding-top: 14px; color: #6b6670; font-size: .88rem; border-top: 1px solid #ececef; }

/* Libro */
.libro-cabecera { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: #b91c1c; }
.libro-cabecera h1 { color: #1f1d1d; }
.libro-cabecera p { margin: 2px 0 0; color: #4b4650; font-size: .9rem; line-height: 1.45; }
.libro-intro { color: #4b4650; }
.libro-fecha { margin: 0 0 10px; color: #4b4650; font-size: .9rem; }
.libro-form fieldset { margin: 0 0 16px; padding: 14px 16px 16px; border: 1px solid #e5e7eb; border-radius: 14px; }
.libro-form legend { padding: 0 6px; font-weight: 800; }
.libro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.libro-grid .ancho { grid-column: 1 / -1; }
.libro-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; font-weight: 700; }
.libro-grid input[type="text"], .libro-grid input[type="email"], .libro-grid input[type="tel"], .libro-grid select, .libro-grid textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-weight: 400; border: 1px solid #d4d4d8; border-radius: 10px; background: #fff;
}
.libro-grid input:focus, .libro-grid select:focus, .libro-grid textarea:focus { outline: 3px solid rgba(19, 189, 13, .3); border-color: #13bd0d; }
.libro-grid [hidden] { display: none; }
.libro-menor, .libro-radios label { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 600 !important; }
.libro-radios { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .9rem; }
.libro-radios > span { font-weight: 700; }
.libro-tipos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.libro-tipos label { flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px; font-weight: 400 !important; border: 1px solid #e5e7eb; border-radius: 12px; cursor: pointer; }
.libro-tipos label:has(input:checked) { border-color: #13bd0d; background: #f0fdf4; }
.libro-tipos input { margin-top: 3px; }
.libro-tipos span { font-size: .86rem; color: #4b4650; }
.libro-tipos strong { display: block; color: #1f1d1d; font-size: .95rem; }
.libro-notas { margin: 4px 0 16px; color: #4b4650; font-size: .85rem; line-height: 1.5; }
.libro-notas p { margin: 0 0 6px; }
.libro-enviar, .libro-imprimir { padding: 13px 26px; color: #fff; font: inherit; font-weight: 800; background: #13bd0d; border: 0; border-radius: 999px; cursor: pointer; }
.libro-enviar:hover, .libro-imprimir:hover { background: #0fa50a; }
.libro-errores { margin-bottom: 14px; padding: 12px 16px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; }
.libro-errores ul { margin: 6px 0 0; }
.libro-ok { margin-bottom: 16px; padding: 14px 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; }
.libro-ok p { margin: 4px 0 10px; }
.libro-hoja { overflow-x: auto; }
.libro-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .legal-cuerpo { grid-template-columns: 1fr; gap: 14px; }
  .legal-indice { position: static; flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .legal-indice a { flex: none; }
  .legal-indice-libro { margin-top: 0; }
}
@media (max-width: 560px) {
  .libro-grid, .libro-tipos { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .pie, .bot, .legal-indice, .migas, .libro-ok button { display: none !important; }
  .legal-cuerpo { display: block; }
  .legal-texto { border: 0; padding: 0; }
}
