/*
 * Página provisoria de cabmdp.com.ar. Estática: sin build ni dependencias.
 * Sigue el Manual de Uso de Marca (docs/referencia/marca/README.md).
 */

/* ── Tipografía ─────────────────────────────────────────────────────────────
 * El manual pide Monument Extended, que es comercial y no se incluye. Se decidió (2026-11-18)
 * usar Archivo en ancho extendido, que es libre (SIL OFL 1.1, ver fuentes/OFL.txt) y de aspecto
 * parecido.
 *
 * Si algún día hay licencia web de Monument: agregar su @font-face y poner su nombre primero en
 * --fuente-marca, que es la única variable de tipografía de la página.
 */
@font-face {
  font-family: "Archivo Expandida";
  src: url("fuentes/archivo-expandida.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --fuente-marca: "Archivo Expandida", "Archivo", "Arial Black", system-ui, sans-serif;

  /* Colores del manual (página 3). */
  --negro: #242223; /* primario */
  --naranja: #f96611; /* acento */
  --gris: #c6c6c6; /* terciario: solo texto sobre negro, nunca sobre naranja */

  /* Interletrado del manual (página 4): "50", leído como 50/1000 em. */
  --interletrado: 0.05em;

  color-scheme: dark;
}

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

html {
  background: var(--negro);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--naranja);
  font-family: var(--fuente-marca);
  font-weight: 400;
  letter-spacing: var(--interletrado);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Estructura ─────────────────────────────────────────────────────────────
 * Arriba la escena sobre negro con grano, con el logo una sola vez; abajo la banda naranja
 * divisoria con el mensaje en negro (como la portada del manual, página 1). */
.pagina {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* sin esto, un texto que no parte línea ensancha la página */
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.escena {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 8vh, 6rem) 1.5rem;
}

/* Textura: grano de pizarrón, hecho con un filtro SVG de ruido en una baldosa de 240 px (un
 * data-URI de unos 400 bytes, sin archivos). Más una luz suave al centro, como el manual. Si se
 * prefiere prescindir de ella, alcanza con borrar este bloque. */
.escena::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 50% 40%, rgb(255 255 255 / 0.05), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E");
  background-size: auto, 240px 240px;
  opacity: 0.7;
}

.logo {
  display: block;
  width: min(40rem, 84vw);
  max-width: 100%;
  height: auto;
}

/* ── Banda naranja y mensaje ────────────────────────────────────────────────
 * Texto en negro de marca sobre naranja (5,2:1). Nunca gris sobre naranja (página 4).
 * Mayúsculas siempre en bold. */
.banda {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(2rem, 7vh, 4.5rem) 1.5rem;
  background: var(--naranja);
  color: var(--negro);
  text-align: center;
}

.titulo {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.25rem, min(8.4vw - 0.25rem, 0.8rem + 4.6vw), 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.texto {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
  text-wrap: balance;
}

.texto strong {
  font-weight: 700; /* palabra de acento */
}

/* ── Entrada ────────────────────────────────────────────────────────────────
 * Un fundido corto al cargar. Con "reducir movimiento" no hay animación. */
@media (prefers-reduced-motion: no-preference) {
  .logo {
    animation: sube 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .banda > * {
    animation: sube 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }

  .banda > :last-child {
    animation-delay: 0.3s;
  }
}

@keyframes sube {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ── Accesibilidad ──────────────────────────────────────────────────────────
 * Hoy la página no tiene enlaces ni controles; esto deja resuelto el foco para cuando los tenga.
 * Naranja sobre el negro y negro sobre la banda naranja. */
:focus-visible {
  outline: 3px solid var(--naranja);
  outline-offset: 4px;
}

.banda :focus-visible {
  outline-color: var(--negro);
}
