/* Páginas legales y Libro de Reclamaciones. Mismas fuentes y colores que la landing (ver landing-src/landing.css), pero con CSS propio: son
   documentos de lectura, no necesitan el CSS de la landing. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/landing/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/landing/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --ink: #0a1128;
  --ink-2: #111b3c;
  --paper: #f5f0e6;
  --paper-2: #ebe3d1;
  --brand: #ed801b;
  --brand-2: #ffa347;
  --azul: #2f5bd6;
  --suave: #b9c4e4;
  --linea: rgb(10 17 40 / 0.14);
  --error: #b42318;
  --ok: #0a7a4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.cabecera { background: var(--ink); }
.cabecera div { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cabecera img { height: 30px; width: auto; display: block; }
.cabecera a.volver { color: rgb(255 255 255 / 0.8); text-decoration: none; font-weight: 600; font-size: 15px; }
.cabecera a.volver:hover { color: #fff; }

main { max-width: 800px; margin: 0 auto; padding: 44px 20px 72px; }
.etiqueta { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
h1 { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 12px; }
.fecha { color: rgb(10 17 40 / 0.6); font-size: 15px; margin: 0 0 28px; }
.intro { font-size: 18px; margin: 0 0 28px; }

.indice { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 18px 22px 18px 22px; margin: 0 0 36px; }
.indice strong { display: block; margin-bottom: 6px; font-size: 15px; }
.indice ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15.5px; line-height: 1.6; }
.indice a { color: var(--ink); text-decoration: none; }
.indice a:hover { color: var(--azul); text-decoration: underline; }
@media (max-width: 640px) { .indice ol { columns: 1; } }

h2 { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 8px; scroll-margin-top: 16px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 24px; }
li { margin-bottom: 6px; }
a { color: var(--azul); }
strong { font-weight: 700; }

.destacado { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 16px 20px; margin: 0 0 18px; }
.destacado p:last-child, .destacado ul:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15.5px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linea); vertical-align: top; }
th { background: var(--paper-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.tabla-caja { overflow-x: auto; }

.pie { background: var(--ink-2); color: rgb(255 255 255 / 0.7); font-size: 14.5px; }
.pie div { max-width: 1100px; margin: 0 auto; padding: 32px 20px; display: grid; gap: 22px; grid-template-columns: 1.4fr 1fr; }
.pie p { margin: 0 0 4px; line-height: 1.55; }
.pie strong { color: #fff; }
.pie nav { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.pie a { color: rgb(255 255 255 / 0.8); text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie .copia { border-top: 1px solid rgb(255 255 255 / 0.1); padding: 16px 20px; text-align: center; color: rgb(255 255 255 / 0.5); font-size: 13.5px; display: block; max-width: none; }
@media (max-width: 700px) { .pie div { grid-template-columns: 1fr; } }

/* Formulario del Libro de Reclamaciones */
form.hoja { display: grid; gap: 22px; }
fieldset { border: 1px solid var(--linea); border-radius: 14px; background: #fff; padding: 18px 20px 20px; margin: 0; min-width: 0; }
legend { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 800; font-size: 1.15rem; padding: 0 8px; }
.cuadricula { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.cuadricula .completo { grid-column: 1 / -1; }
@media (max-width: 640px) { .cuadricula { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid rgb(10 17 40 / 0.3); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(47 91 214 / 0.35); border-color: var(--azul); }
.invalido, .invalido:focus { border-color: var(--error); outline: 3px solid rgb(180 35 24 / 0.3); }
.ayuda { font-size: 14px; color: rgb(10 17 40 / 0.6); margin: 4px 0 0; }
.marca { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.marca input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.boton { font: inherit; font-weight: 800; font-size: 17px; border: 0; border-radius: 999px; padding: 14px 28px; background: var(--brand); color: var(--ink); cursor: pointer; }
.boton:hover { background: var(--brand-2); }
.boton[disabled] { opacity: 0.6; cursor: wait; }
.aviso-error { background: #fdecea; border: 1px solid #f3b4ac; color: var(--error); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.constancia { background: #fff; border: 2px solid var(--ok); border-radius: 16px; padding: 24px; }
.constancia .numero { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; margin: 4px 0 12px; }
.constancia .no-imprimir { margin-top: 18px; }
[hidden] { display: none !important; }

/* Páginas de error (404 y error del servidor) */
.vista-error { min-height: 100vh; display: flex; flex-direction: column; }
.vista-error main.centro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 20px 72px; }
.codigo { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; letter-spacing: -0.05em; color: var(--brand); margin: 0 0 8px; }
.vista-error .intro { max-width: 34rem; margin: 0 auto 28px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 32px; }
.boton, .boton-sec { display: inline-block; text-decoration: none; text-align: center; }
.boton-sec { font-weight: 800; font-size: 17px; border: 2px solid var(--ink); border-radius: 999px; padding: 12px 26px; color: var(--ink); }
.boton-sec:hover { background: var(--ink); color: #fff; }

@media print {
  .cabecera, .pie, .no-imprimir { display: none !important; }
  body { background: #fff; }
}
