@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --negro: #171717;
  --blanco-calido: #fbf5f0;
  --grafito: #3a3a3a;
  --gris-claro: #e6e8ee;
  --rojo-brasa: #d9401e;

  --tinta-tenue: rgb(23 23 23 / 12%);
  --tinta-sutil: rgb(23 23 23 / 6%);
  --margen: clamp(1.25rem, 5vw, 4.5rem);
}

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

html {
  color-scheme: light;
  background: var(--blanco-calido);
  font-family: "Inter", Arial, sans-serif;
}

body {
  position: relative;
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--negro);
  background: var(--blanco-calido);
}

/* Trama de tela: dos urdimbres cruzadas, apenas perceptibles. */
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgb(217 64 30 / 7%), transparent 70%),
    repeating-linear-gradient(90deg, var(--tinta-sutil) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg, var(--tinta-sutil) 0 1px, transparent 1px 6px);
  opacity: 0.4;
  content: "";
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--rojo-brasa);
  outline-offset: 3px;
}

.solo-lectores {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Pliego: el papel impreso que sostiene toda la composición. */
.pliego {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vh, 4rem);
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 88rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 5vh, 3.5rem) var(--margen);
}

/* Cabecera */

.cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: clamp(1rem, 3vh, 1.75rem);
  border-bottom: 1px solid var(--tinta-tenue);
  animation: surgir 220ms cubic-bezier(0, 0, 0.2, 1) both;
}

.identidad {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.identidad__isotipo {
  width: clamp(2.25rem, 4vw, 2.9rem);
  height: auto;
}

.identidad__nombre {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
}

.cabecera__descriptor {
  margin: 0;
  color: var(--grafito);
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Lienzo */

.lienzo {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

/* Aviso principal: el mensaje de expectativa es lo primero que se lee. */

.aviso {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 62rem;
}

.aviso__lema {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1rem, 3vh, 1.75rem);
  color: var(--grafito);
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  animation: surgir 240ms 60ms cubic-bezier(0, 0, 0.2, 1) both;
}

.aviso__brasa {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rojo-brasa);
  box-shadow: 0 0 0 0.4rem rgb(217 64 30 / 12%);
  animation: brasa 4.5s ease-in-out infinite;
}

.aviso__titulo {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.75rem, min(8.5vw, 12vh), 8.5rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-wrap: balance;
  animation: surgir 250ms 120ms cubic-bezier(0, 0, 0.2, 1) both;
}

/* Rojo brasa en texto grande: 4.1:1 sobre el fondo, válido AA para titulares. */
.aviso__destacado {
  color: var(--rojo-brasa);
}

.aviso__apoyo {
  max-width: 38ch;
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid var(--rojo-brasa);
  color: var(--grafito);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  text-wrap: pretty;
  animation: surgir 250ms 180ms cubic-bezier(0, 0, 0.2, 1) both;
}

/* Redes: la única acción de la página. */

.redes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.75rem, 5vh, 3rem);
  animation: surgir 250ms 240ms cubic-bezier(0, 0, 0.2, 1) both;
}

.red {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.6rem 1.5rem 0.6rem 1.1rem;
  border: 1px solid var(--negro);
  color: var(--negro);
  background: rgb(255 255 255 / 45%);
  text-decoration: none;
  transition:
    border-color 150ms ease-out,
    background-color 150ms ease-out,
    color 150ms ease-out;
}

.red:hover {
  border-color: var(--rojo-brasa);
  color: var(--negro);
  background: rgb(217 64 30 / 8%);
}

.red--principal {
  color: var(--blanco-calido);
  background: var(--negro);
}

.red--principal:hover {
  border-color: var(--rojo-brasa);
  color: var(--blanco-calido);
  background: var(--grafito);
}

/* Glifos oficiales de Instagram y Facebook (Simple Icons, CC0). */
.red__icono {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  fill: currentcolor;
}

.red__texto {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.red__nombre {
  font-size: 1rem;
  font-weight: 700;
}

.red__usuario {
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Cierre */

.cierre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: clamp(1rem, 3vh, 1.75rem);
  border-top: 1px solid var(--tinta-tenue);
  color: var(--grafito);
  animation: surgir 250ms 300ms cubic-bezier(0, 0, 0.2, 1) both;
}

.cierre__texto {
  margin: 0;
  font-size: 0.875rem;
}

.cierre__firma {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* Animaciones */

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brasa {
  0%,
  100% {
    box-shadow: 0 0 0 0.35rem rgb(217 64 30 / 10%);
    opacity: 0.75;
  }

  50% {
    box-shadow: 0 0 0 0.55rem rgb(217 64 30 / 16%);
    opacity: 1;
  }
}

/* Adaptación a pantallas angostas */

@media (max-width: 32rem) {
  .cabecera {
    align-items: baseline;
  }

  .identidad__nombre {
    letter-spacing: 0.18em;
  }

  .cabecera__descriptor {
    letter-spacing: 0.12em;
  }

  .redes {
    flex-direction: column;
    align-self: stretch;
  }

  .cierre {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Ventanas de poca altura: comprimir sin perder jerarquía */

@media (max-height: 60rem) {
  .pliego {
    gap: clamp(1rem, 3vh, 2rem);
    padding-block: clamp(1rem, 3.5vh, 2rem);
  }

  .aviso__lema {
    margin-bottom: 0.75rem;
  }

  .aviso__apoyo {
    margin-top: clamp(1rem, 2.5vh, 1.5rem);
  }

  .redes {
    margin-top: clamp(1.25rem, 3vh, 2rem);
  }
}

@media (max-height: 34rem) {
  .pliego {
    gap: 1rem;
    padding-block: 0.8rem;
  }

  .cabecera {
    padding-bottom: 0.75rem;
  }

  .aviso__titulo {
    font-size: clamp(2rem, 10vh, 3rem);
  }

  .aviso__apoyo {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .redes {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cabecera,
  .aviso__lema,
  .aviso__brasa,
  .aviso__titulo,
  .aviso__apoyo,
  .redes,
  .cierre {
    animation: none;
  }

  .red {
    transition: none;
  }
}
