@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/opinaut/fonts/CabinetGrotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/opinaut/fonts/CabinetGrotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('/opinaut/fonts/CabinetGrotesk-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #121212;
  --ink-raised: #1C1C1C;
  --bone: #ECE8DF;
  --bone-muted: #B3AEA4;
  --line: #3A3A3A;
  --white: #FFFFFF;
  --font-brand: 'Cabinet Grotesk', system-ui, sans-serif;
  --column: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-brand);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--bone); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 4px;
}

.solo-lector {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: absolute;
  left: 1rem; top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--bone);
  color: var(--ink);
  z-index: 2;
}
.saltar:focus { top: 1rem; }

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--column);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.logo { display: block; height: 27px; width: auto; }

.idioma {
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.idioma:hover { border-color: var(--bone); }

main {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }

.portada { padding: 3rem 0 2rem; }
.entrada { font-size: 1.3rem; margin: 1.5rem 0 2rem; }

/* El reporte imita el aviso que Opinaut pone sobre lo que modera. */
.reporte {
  border-left: 3px solid var(--bone);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.reporte p { margin: 0; color: var(--bone-muted); }
.reporte .reporte-titulo { color: var(--bone); font-weight: 500; margin-bottom: 0.25rem; }

.bloque {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.bloque h2 { margin-bottom: 1.5rem; }

/* Lo retirado sigue legible: tachado, pero con contraste AAA. */
.retirado {
  margin: 0 0 0.75rem;
  color: var(--bone-muted);
  font-size: 1.2rem;
}
blockquote.retirado { margin-left: 0; }
blockquote.retirado p { margin: 0; }
.retirado del {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--bone);
}

.motivo {
  margin: 0 0 1.5rem;
  color: var(--bone-muted);
  font-size: 1rem;
}
.sello {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--bone);
  border-radius: 2px;
  color: var(--bone);
  font-weight: 500;
  transform: rotate(-2deg);
}

.queda {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.35;
}

.foto-retirada { margin: 0 0 2rem; }
.foto-hueco {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  background: var(--ink-raised);
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--bone-muted);
}
.foto-hueco p { margin: 0; max-width: 24rem; }
.foto-hueco del { text-decoration-thickness: 2px; text-decoration-color: var(--bone); }
.foto-retirada figcaption { margin-top: 0.75rem; color: var(--bone-muted); font-size: 1rem; }

.cierre {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--line);
}
.cierre p { margin: 1rem 0 2rem; color: var(--bone-muted); }

.boton {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 2rem;
  background: var(--bone);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: 2px;
}
.boton:hover { background: var(--white); }

.pie {
  max-width: var(--column);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--bone-muted);
  font-size: 1rem;
}
.pie p { margin: 0; }
.pie a { display: inline-block; padding: 0.6rem 0; color: var(--bone-muted); }
