/* La lista de espera: portada carbón como la página de venta y el formulario
   en tarjetas claras, fácil de llenar desde el teléfono (se abre por QR).
   Liviano, regla del dueño: sin desenfoque ni animaciones que no terminan. */
@font-face { font-family: Urbanist; src: url(fuentes/Urbanist-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Urbanist; src: url(fuentes/Urbanist-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Urbanist; src: url(fuentes/Urbanist-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Urbanist; src: url(fuentes/Urbanist-ExtraBold.ttf); font-weight: 800; font-display: swap; }
:root {
  --lienzo: #f3f4f7;
  --papel: #ffffff;
  --texto: #171a21;
  --suave: #5d6577;
  --borde: #dfe2e9;
  --campo: #f8f9fb;
  --foco: #2f5bd8;
  --portada: #16181d;
  --portada-texto: #f2f3f6;
  --portada-suave: #a9b0bf;
  --boton: #16181d;
  --boton-texto: #ffffff;
  --error: #b42318;
  --error-fondo: #fdecea;
  --bien: #0f7b4a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --lienzo: #101216;
    --papel: #1b1e25;
    --texto: #eceef3;
    --suave: #a3aab8;
    --borde: #2d313b;
    --campo: #14161b;
    --foco: #8fb0ff;
    --portada: #0b0c0f;
    --boton: #eceef3;
    --boton-texto: #101216;
    --error: #ffb4a9;
    --error-fondo: #3b1a17;
    --bien: #5fd49a;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--lienzo);
  color: var(--texto);
  font: 16px/1.55 Urbanist, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ancho { width: min(760px, 100% - 32px); margin-inline: auto; }
a { color: var(--foco); }

.portada { background: var(--portada); color: var(--portada-texto); padding: 28px 0 72px; }
.logo { display: block; height: 34px; width: auto; }
.etiqueta {
  display: inline-block; margin: 28px 0 10px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid #3a3f4b; color: var(--portada-suave); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.bajada { color: var(--portada-suave); font-size: 1.05rem; margin: 0 0 18px; max-width: 60ch; }
.ventajas { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ventajas li::before { content: "✓"; color: #7fdcae; font-weight: 800; margin-right: 10px; }

main { margin-top: -48px; padding-bottom: 24px; }
section {
  background: var(--papel); border: 1px solid var(--borde); border-radius: 18px;
  padding: 22px; margin: 0 0 14px; box-shadow: 0 6px 24px rgba(16, 18, 22, .06);
}
h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 16px; font-weight: 700; }
.paso {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--boton); color: var(--boton-texto); font-size: 14px; font-weight: 800;
}
.rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ancho-2 { grid-column: 1 / -1; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.campo b { color: var(--error); font-weight: 700; }
.campo i { color: var(--suave); font-weight: 400; font-style: normal; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--texto); background: var(--campo);
  border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; width: 100%;
  min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--foco); outline-offset: 1px; border-color: transparent; }
[aria-invalid="true"] { border-color: var(--error); background: var(--error-fondo); }

.chips { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips label {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--borde); background: var(--campo); cursor: pointer; font-size: 15px;
}
.chips input { width: auto; min-height: 0; margin: 0; accent-color: var(--boton); }
.chips label:has(input:checked) { border-color: var(--texto); font-weight: 600; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.permiso { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--suave); margin: 18px 4px; }
.permiso input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--boton); }

.error { background: var(--error-fondo); color: var(--error); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-weight: 600; }
.enviar {
  width: 100%; border: 0; border-radius: 999px; padding: 16px 22px; cursor: pointer;
  background: var(--boton); color: var(--boton-texto); font: inherit; font-size: 1.05rem; font-weight: 700;
}
.enviar:disabled { opacity: .6; cursor: wait; }

.listo { text-align: center; padding: 36px 22px; }
.listo:focus { outline: none; }
.listo h2 { justify-content: center; font-size: 1.5rem; }
.sello {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bien); color: #fff; font-size: 30px; font-weight: 800;
}
.puesto { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.secundario {
  display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-weight: 600;
}

footer { text-align: center; color: var(--suave); font-size: 13px; padding: 8px 16px 40px; }

@media (max-width: 560px) {
  .rejilla { grid-template-columns: 1fr; }
  section { padding: 18px 16px; }
  .portada { padding-bottom: 64px; }
}
