/* México Opina: landing de una sola imagen. Sin dependencias externas. */
:root { --negro: #000; --blanco: #fff; --gris: #b5b5b5; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--negro); color: var(--blanco);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--blanco); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- portada ---------- */
.portada { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate; }
/* relleno difuminado: solo se nota en pantallas verticales */
.portada::before { content: ""; position: absolute; inset: -40px; z-index: -1;
  background: url("/assets/img/mexico-opina-blur.jpg") center / cover no-repeat;
  filter: blur(28px) brightness(.22); }
.portada picture, .portada img { display: block; }
.portada img { width: 100%; height: min(100vw, 100svh); object-fit: cover; object-position: 50% 45%; /* vertical: recorte que conserva el título */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); }
.portada picture { width: 100%; }
/* horizontal: la imagen llena la pantalla como en el sitio anterior, sin franjas blancas */
@media (min-aspect-ratio: 1/1) {
  .portada picture { position: absolute; inset: 0; }
  .portada img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 45%;
    -webkit-mask-image: none; mask-image: none; }
}
.pie { position: absolute; inset: auto 0 0 0; padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  text-align: center; font-size: .8125rem; color: var(--gris);
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent); }
.pie a { color: var(--gris); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pie a:hover { color: var(--blanco); }

/* ---------- entrada suave (se omite con reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .portada img { animation: aparecer 1.2s ease-out both; }
  @keyframes aparecer { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
}

/* ---------- páginas de texto (políticas, 404) ---------- */
.texto { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; overflow-wrap: anywhere; }
.texto h1 { font: 400 clamp(2.25rem, 7vw, 3.5rem)/1.05 "Bebas Neue", system-ui, sans-serif; letter-spacing: .02em;
  text-align: center; margin: 0 0 2rem; }
.texto h2 { font-size: 1.15rem; line-height: 1.3; margin: 2.25rem 0 .75rem; }
.texto p { margin: 0 0 1rem; color: #ddd; }
.volver { display: inline-block; margin-bottom: 2rem; font-size: .875rem; color: var(--gris); }

.error { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem 1.25rem; }
.error h1 { font: 400 clamp(3rem, 14vw, 7rem)/1 "Bebas Neue", system-ui, sans-serif; margin: 0 0 .5rem; letter-spacing: .02em; }
.error p { color: var(--gris); margin: 0 0 1.5rem; }
.boton { display: inline-block; padding: .7rem 1.4rem; border: 1px solid var(--blanco); text-decoration: none;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8125rem; }
.boton:hover { background: var(--blanco); color: var(--negro); }
@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
