/* Lista de espera de ApplyPilot · estilos compartidos (sitio, salida y panel).
   Tomados del prototipo prototipos/lista-de-espera (2026-12-03), sin el selector del prototipo. */
@font-face { font-family: "Barlow"; font-weight: 400; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --primario: #c8006a; --primario-hover: #a20056; --fondo: #ffffff; --tenue: #f2f2f0;
  --texto: #141414; --texto-suave: #575757; --borde: #e0e0dc; --borde-control: #767676; --via: #cfcfca;
  --anillo: #0069b4; --exito: #1f7a14; --exito-fondo: #edf7ea; --error: #b42318; --error-fondo: #fef3f2;
  --l1: #c8006a; --l2: #0069b4; --l3: #2e8b22; --l4: #c26200; --l5: #7b3fa0;
  --margen: 16px;
}
@media (min-width: 768px) { :root { --margen: 24px; } }
@media (min-width: 1024px) { :root { --margen: 40px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--tenue); color: var(--texto); font-family: "Barlow", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
a { color: var(--primario); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, label.chip:focus-within { outline: 2px solid var(--anillo); outline-offset: 2px; }
.rotulo { font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700; letter-spacing: 0.015em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.barra { max-width: 1120px; margin: 0 auto; padding: 20px var(--margen) 0; display: flex; align-items: center; gap: 12px; }
.barra img { height: 30px; }
.etiqueta { display: inline-block; padding: 2px 12px; border: 2px solid var(--primario); border-radius: 9999px; color: var(--primario); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; background: #fff; }
.barra .etiqueta { margin-left: auto; }

main { max-width: 1120px; margin: 0 auto; padding: 24px var(--margen) 64px; }

/* Portada + formulario */
.rejilla { display: grid; gap: 24px; align-items: start; }
.portada { grid-area: portada; }
.formulario { grid-area: form; }
.estaciones { grid-area: est; }
.rejilla { grid-template-areas: "portada" "form" "est"; }
@media (min-width: 960px) {
  .rejilla { grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "portada form" "est form"; column-gap: 56px; row-gap: 32px; }
  .formulario { position: sticky; top: 24px; }
}
h1 { font-size: 40px; line-height: 42px; }
@media (min-width: 960px) { h1 { font-size: 56px; line-height: 58px; } }
h1 .sub { background-image: linear-gradient(var(--primario), var(--primario)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 7px; padding-bottom: 2px; }
.bajada { margin-top: 12px; font-size: 18px; line-height: 27px; color: var(--texto-suave); max-width: 34em; }

/* Línea de metro horizontal decorativa */
.metro { display: flex; align-items: center; margin-top: 20px; max-width: 420px; }
.metro i { display: block; }
.metro .p { width: 14px; height: 14px; border-radius: 50%; background: var(--primario); }
.metro .t { height: 6px; background: var(--primario); flex: 1; }
.metro .a { width: 26px; height: 26px; border-radius: 50%; border: 6px solid var(--primario); background: #fff; }
.metro .v { height: 6px; background: var(--via); flex: 3; }
.metro .f { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--via); background: #fff; }

/* Lo que vas a poder hacer: línea vertical */
.estaciones h2 { font-size: 22px; line-height: 28px; margin-bottom: 12px; }
.estaciones ol { list-style: none; position: relative; padding-left: 40px; }
.estaciones ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 6px; background: var(--via); border-radius: 3px; }
.estaciones li { position: relative; padding: 8px 0 16px; }
.estaciones li::before { content: ""; position: absolute; left: -36px; top: 10px; width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--c); background: #fff; }
.estaciones b { display: block; font-weight: 600; font-size: 17px; }
.estaciones span { color: var(--texto-suave); }
.estaciones .etiqueta { font-size: 11px; line-height: 16px; padding: 0 8px; margin-left: 6px; vertical-align: 2px; }

/* Tarjeta del formulario */
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: 24px 20px; }
.formulario .tarjeta { border: 3px solid var(--primario); box-shadow: 0 18px 40px rgba(20,20,20,0.10); }
.formulario h2 { font-size: 24px; line-height: 28px; }
.formulario .ayuda-top { margin-top: 4px; color: var(--texto-suave); font-size: 15px; line-height: 22px; }
.campo { margin-top: 16px; }
.campo > label, .grupo legend { display: block; font-weight: 600; font-size: 15px; line-height: 22px; margin-bottom: 6px; }
.campo .opc { font-weight: 400; color: var(--texto-suave); }
input[type=email], input[type=text], select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--borde-control); border-radius: 6px; font: inherit; color: var(--texto); background: #fff; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto) 50%), linear-gradient(135deg, var(--texto) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.dos { display: grid; gap: 0 12px; }
@media (min-width: 420px) { .dos { grid-template-columns: 1fr 1fr; } }
.error { display: none; margin-top: 6px; color: var(--error); font-size: 14px; line-height: 20px; font-weight: 500; }
.con-error input, .con-error select { border-color: var(--error); border-width: 2px; }
.con-error .error { display: block; }

.grupo { border: 0; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
label.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--via); border-radius: 9999px; font-size: 15px; line-height: 20px; color: var(--texto-suave); cursor: pointer; user-select: none; background: #fff; }
label.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
label.chip svg { display: none; }
label.chip:has(input:checked) { background: var(--exito-fondo); border-color: var(--exito-fondo); color: var(--exito); font-weight: 600; }
label.chip:has(input:checked) svg { display: inline; }

.consentimiento { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--texto-suave); }
.consentimiento input { width: 22px; height: 22px; flex: none; margin-top: 0; accent-color: var(--primario); }
.consentimiento.con-error { color: var(--error); }
.consentimiento .error { margin-top: 4px; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 9999px; background: var(--primario); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; }
.boton:hover { background: var(--primario-hover); }
.boton.ancho { width: 100%; margin-top: 20px; }
.boton.sec { background: #fff; color: var(--texto); border: 2px solid var(--texto); min-height: 44px; font-size: 15px; padding: 0 18px; }
.nota-final { margin-top: 12px; font-size: 13px; line-height: 19px; color: var(--texto-suave); text-align: center; }

/* Tiquete */
.vista-tiquete { max-width: 560px; margin: 0 auto; }
.vista-tiquete h1 { font-size: 40px; line-height: 44px; }
.tiquete { margin-top: 20px; background: #fff; border: 3px solid var(--l5); border-radius: 12px; padding: 22px 22px 20px; box-shadow: 0 18px 40px rgba(20,20,20,0.12); position: relative; }
.tiquete .cab { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-suave); font-weight: 600; }
.tiquete .num { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.tiquete .num span { color: var(--texto-suave); font-size: 18px; }
.tiquete .num b { font-size: 64px; line-height: 64px; font-weight: 600; }
.tiquete .linea { display: flex; align-items: center; margin: 20px 0 6px; }
.tiquete .linea i { display: block; }
.tiquete .linea .p { width: 14px; height: 14px; border-radius: 50%; background: var(--l5); }
.tiquete .linea .t { height: 6px; flex: 2; background: var(--l5); }
.tiquete .linea .a { width: 28px; height: 28px; border-radius: 50%; border: 7px solid var(--l5); background: #fff; }
.tiquete .linea .v { height: 6px; flex: 3; background: var(--via); }
.tiquete .linea .f { width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--via); background: #fff; }
.tiquete .rotulos { display: flex; justify-content: space-between; font-size: 13px; color: var(--texto-suave); }
.tiquete .datos { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--via); font-size: 15px; color: var(--texto-suave); }
.tiquete .datos b { color: var(--texto); font-weight: 600; }
.invitar { margin-top: 16px; }
.invitar h2 { font-size: 20px; line-height: 26px; font-weight: 600; font-family: inherit; text-transform: none; letter-spacing: 0; }
.copiar { display: flex; gap: 8px; margin-top: 10px; }
.copiar input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 1px solid var(--via); border-radius: 6px; font: inherit; font-size: 14px; color: var(--texto-suave); background: var(--tenue); }
.regla { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--texto-suave); }
.estado-copia { min-height: 20px; margin-top: 4px; font-size: 14px; color: var(--exito); font-weight: 600; }
.salir { margin-top: 20px; font-size: 14px; color: var(--texto-suave); }

/* Política */
.vista-politica { max-width: 760px; margin: 0 auto; }
.aviso { background: #fff7e6; border: 1px solid #f0c36d; color: #6b4300; border-radius: 8px; padding: 12px 14px; font-size: 15px; line-height: 22px; }
.vista-politica h1 { font-size: 40px; line-height: 44px; margin-top: 16px; }
.vista-politica h2 { font-size: 22px; line-height: 28px; margin-top: 28px; }
.vista-politica p, .vista-politica li { margin-top: 8px; font-size: 16px; line-height: 25px; }
.vista-politica ul { padding-left: 22px; }
.pc { background: #fff1c2; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* Panel */
.vista-panel h1 { font-size: 40px; line-height: 44px; margin-top: 16px; }
.metricas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 20px; }
.metrica { background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: 16px; }
.metrica span { display: block; color: var(--texto-suave); font-size: 14px; }
.metrica b { display: block; font-size: 36px; line-height: 42px; font-weight: 600; }
.bloques { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.bloque h2 { font-size: 20px; line-height: 26px; margin-bottom: 10px; }
.barra-dato { display: grid; grid-template-columns: minmax(0, 150px) 1fr 40px; gap: 10px; align-items: center; font-size: 14px; line-height: 20px; margin-top: 8px; }
.barra-dato .pista { height: 10px; background: var(--tenue); border-radius: 5px; overflow: hidden; }
.barra-dato .lleno { height: 10px; border-radius: 5px; background: var(--c, var(--primario)); }
.barra-dato b { text-align: right; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
th { color: var(--texto-suave); font-weight: 600; }
.tabla { overflow-x: auto; }
.acciones-panel { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Añadidos del sitio real */
.campo-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-general { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 6px; background: var(--error-fondo); color: var(--error); font-size: 15px; line-height: 22px; font-weight: 500; }
.error-general.visible { display: block; }
.boton[disabled] { opacity: 0.7; cursor: progress; }
.estaciones .verde { --c: var(--l3); } .estaciones .rosa { --c: var(--l1); } .estaciones .azul { --c: var(--l2); } .estaciones .morado { --c: var(--l5); }
.politica-volver { margin-top: 28px; }
.vista-salir { max-width: 560px; margin: 0 auto; }
.vista-salir h1 { font-size: 40px; line-height: 44px; }
.vista-salir p { margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--texto-suave); }
.vista-salir .boton { margin-top: 20px; }
.ok { color: var(--exito); font-weight: 600; }
.tabla-titulo { font-size: 20px; line-height: 26px; }
.pie-panel { margin-top: 12px; font-size: 14px; color: var(--texto-suave); }
.vacio { color: var(--texto-suave); font-size: 15px; }
