/* Entrada «En construcción» de Losair. Letras y colores de la web (muestras/comun.css), todo en local. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/_construccion/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 300; font-display: swap; src: url("/_construccion/fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/_construccion/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/_construccion/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("/_construccion/fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --papel: #f2f2f0;
  --blanco: #ffffff;
  --tinta: #121314;
  --texto-2: #46494c;
  --texto-3: #63676b;
  --linea: #c9cbcc;
  --acero: #8a8f94;
  --amarillo: #f2c200;
  --error: #a3261c;
  --f-titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-texto: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--papel);
  color: var(--tinta);
  font: 400 17px/1.55 var(--f-texto);
  -webkit-font-smoothing: antialiased;
}

/* Franja de seguridad, como el cierre de la web */
.franja { height: 8px; background: repeating-linear-gradient(-45deg, var(--tinta) 0 14px, var(--amarillo) 14px 28px); }

main {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) 16px 40px;
  display: grid;
  align-content: center;
  gap: 28px;
  text-align: center;
}

/* Logo siempre negro y completo, como en su Instagram */
.logo { display: block; width: auto; height: clamp(150px, 26vw, 200px); margin: 0 auto; }

.etiqueta { font: 500 13px/1 var(--f-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); }
h1 { margin-top: 10px; font: 700 clamp(40px, 9vw, 56px)/1 var(--f-titulo); text-transform: uppercase; letter-spacing: .01em; }
.entrada { margin-top: 14px; color: var(--texto-2); text-wrap: pretty; }

form { display: grid; gap: 10px; text-align: left; padding-top: 24px; border-top: 1px solid var(--linea); }
label { font-weight: 500; font-size: 15px; }
.campo { position: relative; }
.campo input {
  width: 100%;
  min-height: 52px;
  padding: 12px 56px 12px 16px;
  border: 1px solid var(--acero);
  border-radius: 0;
  background: var(--blanco);
  color: var(--tinta);
  font: 400 17px/1.2 var(--f-texto);
}
.campo input:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.ojo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--texto-2);
  cursor: pointer;
}
.ojo[hidden] { display: none; }
.ojo:hover { color: var(--tinta); }
.ojo:focus-visible { outline: 3px solid var(--tinta); outline-offset: -3px; }
.ojo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ojo .cerrado { display: none; }
.ojo[aria-pressed="true"] .abierto { display: none; }
.ojo[aria-pressed="true"] .cerrado { display: block; }

.aviso { color: var(--error); font-weight: 500; font-size: 15px; }
.campo input[aria-invalid="true"] { border-color: var(--error); }

button[type="submit"] {
  margin-top: 6px;
  min-height: 52px;
  border: 0;
  background: var(--tinta);
  color: var(--blanco);
  font: 700 18px/1 var(--f-titulo);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
button[type="submit"]:hover { background: #2a2c2e; }
button[type="submit"]:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

.contacto { font-size: 15px; color: var(--texto-2); }
.contacto a { color: var(--tinta); font-weight: 500; text-underline-offset: 3px; }

footer { padding: 24px 16px 28px; text-align: center; font-size: 13px; color: var(--texto-3); }
footer a { color: var(--texto-2); text-decoration: none; }
footer a:hover { color: var(--tinta); }
footer b { font-weight: 700; color: var(--tinta); }
footer span { font-weight: 300; color: var(--tinta); }
