/* Félix tokens (Plaza): slate #082422, linen #FEFCF9, turquoise #2BF2F1, lime #DCFF00, muted #EFEBE7, concrete #CFCABF */
@font-face{font-family:Saans;src:url(./fonts/SaansLTStd-Regular.otf) format("opentype");font-weight:400 500;font-display:swap}
@font-face{font-family:Saans;src:url(./fonts/SaansLTStd-SemiBold.otf) format("opentype");font-weight:600 700;font-display:swap}
@font-face{font-family:Plain;src:url(./fonts/PlainLTStd-Black.otf) format("opentype");font-weight:800 900;font-display:swap}

:root{
  --slate:#082422;--linen:#FEFCF9;--turq:#2BF2F1;--turq-100:#A9F8F7;--lime:#DCFF00;
  --muted:#EFEBE7;--concrete:#CFCABF;--fg-muted:#636158;--earth:#4F4438;--sand:#E3D3BA;--err:#B3420F;
  --display:Plain,Saans,system-ui,sans-serif;--ui:Saans,system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--linen);color:var(--slate);font-family:var(--ui);-webkit-text-size-adjust:100%}
a{color:var(--slate)}
.app{max-width:480px;margin:0 auto;min-height:100dvh}
.screen{display:none;min-height:100dvh;padding:20px 20px calc(24px + env(safe-area-inset-bottom));flex-direction:column;gap:16px}
.screen.is-active{display:flex}
form{display:contents}

.top{display:flex;align-items:center;justify-content:space-between;min-height:36px}
.top.center{justify-content:center}
.wordmark{display:block;height:24px;width:auto}
.tag{font-size:13px;color:var(--fg-muted)}
.spacer{width:36px}
.back{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-10px;border:0;background:none;cursor:pointer;color:var(--slate)}
.back svg,.row svg,.badge svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.back svg{width:22px;height:22px}

.bar{display:flex;flex-direction:column;gap:10px}
.bar .top{min-height:36px}
.bar .count{font-size:13px;font-weight:600;min-width:44px;text-align:right}
.progress{display:grid;gap:6px}
.progress i{height:4px;border-radius:4px;background:var(--concrete)}
.progress i.on{background:var(--slate)}
.progress.form i.on{background:var(--turq)}

.h1{margin:0;font-family:var(--display);font-weight:900;font-size:30px;line-height:1.05;letter-spacing:-.4px}
.h1.xl{font-size:38px;line-height:1.02}
.mt{margin-top:8px}.mt-xl{margin-top:72px}
.body{margin:0;font-size:17px;line-height:1.45}
.body.sm{font-size:15px}
.lead{margin:4px 0 0;font-size:15px;line-height:1.4;color:#35605F}
.lead strong,.note strong{color:var(--slate);font-weight:600}
.muted{color:var(--fg-muted)}
.block{display:block}
.center{text-align:center}
.grow-center{margin:auto 0}
.fine{margin:0;font-size:13px;line-height:1.45;color:var(--fg-muted)}
.note{background:var(--muted);border-radius:16px;padding:14px 16px;font-size:16px;line-height:1.4}
.note.sm{font-size:13px;padding:10px 12px;border-radius:12px;color:var(--earth)}
.label{font-size:13px;font-weight:600;color:var(--earth)}
.group{display:flex;flex-direction:column;gap:8px}

.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stat{background:var(--turq-100);border-radius:16px;padding:14px 12px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px}
.stat-n{font-family:var(--display);font-weight:900;font-size:24px}
.flags{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 4px}
/* screen 1: air between stats, flags and partner logos; scales with phone height */
.stats + .group,.group + .group{margin-top:clamp(4px,2.5vh,24px)}
.group{gap:10px}
.flags img{width:100%;height:40px;object-fit:contain}
.logos{display:flex;flex-direction:column;gap:6px;margin:0 -20px;overflow:hidden}
.marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}
.track{list-style:none;margin:0;padding:0;display:flex;gap:6px;width:max-content}
.track li{flex:none;display:flex;align-items:center;justify-content:center;width:96px;height:44px;border-radius:12px;border:1px solid var(--concrete);background:#fff}
.track img{max-width:72px;max-height:24px;width:auto;height:auto}

.illo{display:block;width:100%;max-width:280px;height:auto;max-height:200px;object-fit:contain;margin:0 auto}
.illo.grow{flex:1;min-height:0;max-height:220px;object-fit:contain}
/* Texas screen: two-phones illustration fills the gap above the buttons (Diego 10-21) */
.illo.hero{max-height:240px;margin:8px auto 0}
/* edu2: breathing room between the illustration and the Hoy / Después rows (Diego 10-21: 'looks cramped') */
.steps.roomy{margin:auto 0;padding:20px 0;gap:16px}
.steps.roomy + .actions{margin-top:0}
.steps{display:flex;flex-direction:column;gap:12px}
.step{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.4}
.step b{font-weight:600;font-size:16px}
.pill{flex:none;min-width:84px;text-align:center;background:var(--lime);border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600}
.box{border:1.5px solid var(--slate);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.row{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4}
.row svg{width:20px;height:20px;flex:none;margin-top:1px}
.badge{margin-top:56px;width:72px;height:72px;border-radius:999px;background:var(--lime);display:flex;align-items:center;justify-content:center}
.badge svg{width:36px;height:36px;stroke-width:2.5}

.actions{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:8px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;width:100%;border:0;border-radius:999px;background:var(--turq);color:var(--slate);font:600 17px var(--ui);text-decoration:none;cursor:pointer}
[tabindex="-1"]:focus{outline:none}
.btn:focus-visible,.in:focus-visible,.back:focus-visible,.check input:focus-visible{outline:3px solid var(--slate);outline-offset:2px}
.btn[disabled]{opacity:.6;cursor:progress}
.btn-outline{background:transparent;border:1.5px solid var(--slate)}

.fld{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.opt{font-weight:400;color:var(--fg-muted)}
.in{height:48px;border:1.5px solid var(--concrete);border-radius:12px;padding:0 14px;font:400 16px var(--ui);color:var(--slate);background:var(--linen);width:100%}
.in[aria-invalid=true],.money[aria-invalid=true]{border-color:var(--err)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.grid-dob{display:grid;grid-template-columns:1fr 1.6fr 1.2fr;gap:8px}
.grid-city{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}
.dob{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.dob legend{padding:0;font-size:14px;font-weight:600;margin-bottom:6px}
.dob .opt{font-size:12px}
.money{display:flex;align-items:center;gap:6px;height:48px;border:1.5px solid var(--concrete);border-radius:12px;padding:0 14px;background:var(--linen);font-weight:400}
.money input{border:0;outline:none;flex:1;min-width:0;height:100%;font:400 16px var(--ui);color:var(--slate);background:transparent}
.check{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.45;cursor:pointer}
.check input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--slate)}
.err{margin:0;font-size:14px;color:var(--err);font-weight:600}

@media (max-height:780px){.illo,.illo.grow{max-height:120px}.stats + .group,.group + .group{margin-top:0}.flags{row-gap:4px}.flags img{height:36px}}
@media (max-width:360px){.grid2{grid-template-columns:1fr}.h1.xl{font-size:32px}}
@media (prefers-reduced-motion:no-preference){.screen.is-active{animation:in .18s ease-out}@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
  .track{animation:marquee 40s linear infinite}.rev .track{animation-direction:reverse}@keyframes marquee{to{transform:translateX(calc(-50% - 3px))}}}
@media (prefers-reduced-motion:reduce){.marquee{overflow-x:auto}}
