@font-face {
  font-family: "Bricolage";
  src: url("fuentes/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("fuentes/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Sorteo de Bromazo City: la estética de los vídeos (maqueta de juguete, contornos gruesos, cielo y amarillo). */
:root {
  --cielo: #bfe3ff;
  --cielo-hondo: #8cc8f5;
  --tinta: #17171f;
  --amarillo: #ffd21f;
  --rojo: #e0271b;
  --azul: #1e63ff;
  --cesped: #3fae5c;
  --papel: #ffffff;
  --gris: #5b6170;
  --borde: 3px solid var(--tinta);
  --sombra: 0 7px 0 var(--tinta);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cielo); color: var(--tinta);
  font-family: "Bricolage", system-ui, sans-serif; font-size: 1.05rem; line-height: 1.5;
}
a { color: var(--azul); }
:focus-visible { outline: 4px solid var(--azul); outline-offset: 3px; }

.ciudad { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.escaparate { position: sticky; top: 0; height: 100vh; overflow: hidden; border-right: var(--borde); }
.escaparate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.escaparate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 45%, #0b1a3399 100%); }
.rotulo { position: absolute; left: 40px; right: 40px; bottom: 44px; z-index: 1; color: #fff; }
.pegatina {
  display: inline-block; background: var(--rojo); color: #fff; font-weight: 800; font-stretch: 85%;
  font-size: 1.15rem; letter-spacing: 0.02em; padding: 6px 16px; border: 3px solid #fff; border-radius: 12px;
  transform: rotate(-3deg); box-shadow: 0 5px 0 #7a0f08; text-decoration: none;
}
.rotulo h1 {
  margin: 18px 0 10px; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.92; font-weight: 800; font-stretch: 75%;
  letter-spacing: -0.02em; text-shadow: 0 4px 0 var(--tinta), 3px 3px 0 var(--tinta), -3px 3px 0 var(--tinta), 0 10px 24px #0007;
}
.rotulo p { margin: 0; font-size: 1.15rem; max-width: 30ch; text-shadow: 0 2px 8px #000a; }

.mostrador { padding: 40px clamp(16px, 5vw, 64px) 56px; display: flex; flex-direction: column; justify-content: center; }
.ficha {
  background: var(--papel); border: var(--borde); border-radius: 28px; box-shadow: var(--sombra);
  padding: 28px clamp(20px, 3vw, 34px); max-width: 560px; width: 100%; margin-inline: auto;
}
.ficha h2 { margin: 0; font-size: 1.75rem; line-height: 1.1; font-stretch: 85%; }
.pasos { display: flex; gap: 8px; margin: 14px 0 22px; }
.pasos span { flex: 1; height: 8px; border-radius: 4px; background: #e3e7ee; }
.pasos span.hecho { background: var(--amarillo); box-shadow: inset 0 0 0 2px var(--tinta); }
.subtitulo { color: var(--gris); margin: 4px 0 0; }

.campo { margin-bottom: 18px; }
.campo label, .grupo-titulo { display: block; font-weight: 700; margin-bottom: 6px; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 54px; border: var(--borde); border-radius: 14px; padding: 12px 14px;
  font: inherit; color: var(--tinta); background: #fff; transition: box-shadow 0.15s;
}
.campo textarea { min-height: 92px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; box-shadow: 0 0 0 5px var(--amarillo); }
.campo input[aria-invalid="true"] { box-shadow: 0 0 0 5px #fca5a5; }
.ayuda { font-size: 0.92rem; color: var(--gris); margin: 6px 0 0; }
.telefono { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button {
  font: inherit; font-size: 0.95rem; font-weight: 600; background: #fff; color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 999px; padding: 5px 13px; cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--amarillo); }

.casilla { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; }
.casilla input { width: 24px; height: 24px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--azul); }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px;
  font: inherit; font-size: 1.2rem; font-weight: 800; color: var(--tinta); background: var(--amarillo);
  border: var(--borde); border-radius: 18px; box-shadow: 0 6px 0 var(--tinta); cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s; text-decoration: none;
}
.boton:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--tinta); }
.boton[disabled] { opacity: 0.6; cursor: wait; }
.boton.secundario { background: #fff; font-size: 1.05rem; min-height: 52px; }
.boton.whatsapp { background: #25d366; }
.enlace-plano { background: none; border: 0; padding: 0; font: inherit; color: var(--azul); text-decoration: underline; cursor: pointer; }
.acciones { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.volver { margin-top: 6px; text-align: center; }

.aviso { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; font-weight: 600; background: #fee2e2; color: #7f1d1d; border: 2px solid #7f1d1d; }
.aviso:empty { display: none; }
.trampa { position: absolute; left: -9999px; }
.legal { font-size: 0.9rem; color: var(--gris); max-width: 560px; margin: 18px auto 0; text-align: center; }

/* Carnet de vecino */
.carnet {
  position: relative; background: var(--amarillo); border: var(--borde); border-radius: 22px; box-shadow: var(--sombra);
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px; margin: 6px 0 22px; overflow: hidden;
}
.carnet img { width: 112px; height: 112px; object-fit: cover; border: var(--borde); border-radius: 16px; display: block; }
.carnet .de { font-weight: 700; font-size: 0.95rem; }
.carnet .num { font-size: 2.6rem; line-height: 1; font-weight: 800; font-stretch: 75%; }
.carnet .quien { margin-top: 4px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.carnet .quien small { display: block; font-weight: 500; }
.amigos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 8px; }
.hueco {
  aspect-ratio: 1; border: 3px dashed #9aa3b5; border-radius: 16px; display: grid; place-items: center;
  font-size: 2.2rem; color: #9aa3b5; background: #f6f8fb;
}
.hueco.lleno { border: var(--borde); background: #dff5e5; color: var(--tinta); }
.mi-enlace { display: flex; gap: 8px; margin: 14px 0 12px; }
.mi-enlace input { flex: 1; min-width: 0; min-height: 52px; border: var(--borde); border-radius: 14px; padding: 0 12px; font: inherit; font-size: 0.95rem; background: #f6f8fb; }
.mi-enlace .boton { width: auto; padding: 0 18px; min-height: 52px; font-size: 1rem; }
.pop { animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes pop { from { transform: scale(0.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 860px) {
  .ciudad { grid-template-columns: 1fr; }
  .escaparate { position: relative; height: 62vh; min-height: 420px; border-right: 0; border-bottom: var(--borde); }
  .rotulo { left: 18px; right: 18px; bottom: 54px; }
  .mostrador { padding: 0 16px 40px; margin-top: -36px; position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .pop { animation: none; }
  .boton { transition: none; }
}
