@font-face { font-family: "Fraunces"; src: url("/fuentes/Fraunces.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fuentes/WorkSans.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --tinta:#1F1D1A; --papel:#FBFAF6; --suelo:#F2F0E9; --linea:#DCD8CC;
  --texto-2:#57524A; --texto-3:#6F695F; --foco:#C48A00; --prox:#837D70;
  --serif:"Fraunces", Georgia, serif; --sans:"Work Sans", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: #EAE5D6; color: var(--tinta); font-family: var(--sans); }
body { min-height: 100svh; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px dashed var(--foco); outline-offset: 3px; }

#mapa { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#velo { position: fixed; left: 0; right: 0; top: 0; height: 300px; pointer-events: none;
  background: linear-gradient(rgba(242,240,233,.96) 30%, rgba(242,240,233,0)); }

#cabecera { position: fixed; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 20px) 18px 0; }
.logo img { height: 28px; display: block; }
.pronto { padding: 6px 12px; background: var(--papel); border: 1px solid var(--linea); border-radius: 15px; font-size: 12.5px; font-weight: 500; color: var(--tinta); }

/* Móvil: portada arriba y la hoja pegada al pie */
#columna { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
#columna > * { pointer-events: auto; }
.portada { padding: calc(env(safe-area-inset-top) + 78px) 18px 0; }
h1 { font-family: var(--serif); font-weight: 400; font-variation-settings: "SOFT" 0, "WONK" 0; font-size: 34px; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
.sub { margin: 14px 0 0; max-width: 460px; font-size: 14.5px; line-height: 1.45; color: var(--texto-2); letter-spacing: .01em; }

.hoja { position: relative; background: var(--papel); border: 1px solid var(--linea); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 18px); box-shadow: 0 -10px 30px rgba(31,29,26,.06); }
.asa { position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--linea); }

.campo { display: block; margin: 0 0 6px; font-size: 12.5px; color: var(--texto-2); letter-spacing: .01em; }
#etiqueta-ciudades { margin-top: 16px; margin-bottom: 8px; }
#correo { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--linea); background: var(--suelo); padding: 0 14px; font-size: 16px; outline: none; }
#correo::placeholder { color: var(--texto-3); opacity: .75; }
#correo:focus { border-color: var(--tinta); }
#correo[aria-invalid="true"] { border: 1.5px solid var(--tinta); }
.error { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; line-height: 1.35; color: var(--tinta); }
.error svg { flex: none; margin-top: 1px; }

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

.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 18px; }
.chip { height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid var(--linea); background: var(--papel); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }

.btn { display: block; width: 100%; height: 52px; border-radius: 26px; border: 0; background: var(--tinta); color: var(--papel); font-size: 15px; font-weight: 600; letter-spacing: .01em; cursor: pointer; }
.btn:disabled { background: var(--linea); color: var(--texto-3); cursor: default; }
.btn.sec { background: var(--papel); color: var(--tinta); border: 1px solid var(--tinta); line-height: 50px; }
.letra { margin: 12px 4px 0; text-align: center; font-size: 11.5px; line-height: 1.45; color: var(--texto-3); }
.letra a { color: var(--texto-3); text-decoration: underline; text-underline-offset: 2px; }

#exito .visto { display: block; margin-bottom: 14px; }
#exito h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0 0 10px; }
#exito p { margin: 0 0 24px; font-size: 15px; line-height: 1.45; color: var(--texto-2); }
#exito .letra { margin: 12px 0 0; }


/* Escritorio: la misma composición; el mapa a pantalla completa y la tarjeta centrada de unos 400 px */
@media (min-width: 900px) {
  #cabecera { padding: 28px 40px 0; }
  .logo img { height: 32px; }
  #columna { align-items: center; justify-content: center; gap: 28px; padding: 96px 24px 56px; }
  .portada { padding: 0; width: 400px; }
  h1 { font-size: 40px; }
  .hoja { width: 400px; border: 1px solid var(--linea); border-radius: 24px; padding: 28px 24px 24px; box-shadow: 0 18px 50px rgba(31,29,26,.12); }
  .asa { display: none; }
  #velo { height: 220px; }
}
@media (max-height: 640px) and (max-width: 899px) { .sub { display: none; } }
@media (prefers-reduced-motion: no-preference) { .chip, .btn, #correo { transition: background .15s, border-color .15s, color .15s; } }
