/* Public long forms (driver application, owners' brief): noche header, crema body, big touch targets. */
.ftop { background: var(--noche); color: var(--crema); padding: 12px clamp(16px,4vw,40px); display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.ftop .brand { margin-right: auto; }
.lang { display: flex; border: 1px solid #3A4A63; border-radius: 999px; padding: 3px; }
.lang button { border: 0; border-radius: 999px; min-width: 44px; min-height: 36px; padding: 0; background: transparent; color: var(--crema); font-size: 14px; }
.lang button[aria-pressed="true"] { background: var(--amarillo); color: var(--noche); }
.fhero { background: var(--noche); color: var(--crema); padding: clamp(40px,7vw,80px) 0 clamp(32px,5vw,56px); }
.fhero .eyebrow { color: var(--amarillo); }
.fhero h1 { margin: 10px 0 0; font-weight: 850; font-stretch: 115%; font-size: clamp(36px,6vw,60px); line-height: 1; letter-spacing: -.02em; }
.fhero .sub { margin: 16px 0 0; font-size: 18px; color: #E4DED2; max-width: 36em; }
.fwrap { max-width: 820px; margin: 0 auto; padding-left: clamp(16px,4vw,32px); padding-right: clamp(16px,4vw,32px); }
main.fwrap { padding-top: 32px; padding-bottom: 80px; }
fieldset { border: 0; margin: 0 0 20px; padding: 20px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
legend { display: flex; align-items: center; gap: 12px; float: left; width: 100%; margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 22px; color: var(--noche); }
legend + * { clear: both; }
legend .n { width: 40px; height: 40px; border-radius: 50%; background: var(--noche); color: var(--amarillo); display: grid; place-items: center; font-size: 18px; flex: none; }
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 16px; }
.g2 .full { grid-column: 1 / -1; }
.lbl { margin: 12px 0 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label, .chk { margin: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--input-line); border-radius: 12px; background: #fff; color: var(--text); font-weight: 600; cursor: pointer; }
.checks input, .chk input { width: 22px; height: 22px; min-height: 0; accent-color: var(--noche); flex: none; }
.checks label:has(input:checked) { border-color: var(--noche); background: #F1ECDF; }
.consent .chk { border: 0; padding: 0; font-weight: 500; align-items: flex-start; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 10px; margin-top: 12px; }
.sub3 { margin: 22px 0 8px; font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 18px; color: var(--noche); }
.doc { position: relative; border: 1.5px dashed var(--input-line); border-radius: 16px; display: flex; flex-direction: column; background: #FBF8F2; margin: 0; color: var(--text); overflow: hidden; }
.doc[hidden] { display: none; }
.doc .pick { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 6px; min-height: 48px; cursor: pointer; margin: 0; color: inherit; }
.doc .sil { display: grid; place-items: center; aspect-ratio: 5 / 3; border-radius: 10px; background: #F1ECDF; color: #9A917D; overflow: hidden; margin-bottom: 6px; }
.doc .sil svg { width: 62%; height: auto; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.doc .sil img { width: 100%; height: 100%; object-fit: cover; }
.doc .ttl { font-size: 15px; line-height: 1.25; }
.doc .ex { color: var(--muted); font-weight: 500; font-size: 13px; line-height: 1.35; }
.doc .st { margin-top: 2px; font-weight: 700; font-size: 14px; color: var(--patina); }
.doc .st.ok { color: var(--ok); }
.doc .st.bad { color: var(--danger); }
.doc.has { border-style: solid; border-color: var(--ok); background: #fff; }
.doc.up { border-color: var(--amarillo); }
.doc.err { border-style: solid; border-color: var(--danger); background: var(--danger-soft); }
.doc.bad { border-style: solid; border-color: var(--danger); background: var(--danger-soft); box-shadow: 0 0 0 2px var(--danger-soft); }
.doc .acts { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 0 6px 6px; }
.lnk { min-height: 48px; padding: 0 8px; border: 0; background: transparent; color: var(--patina); font: inherit; font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }
.lnk.retry { color: var(--danger); }
.doc input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.doc:focus-within { outline: 3px solid var(--amarillo); }
.need { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 20px; }
.need ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-2); }
.need li { margin: 2px 0; }
.pcount { font-size: 14px; font-weight: 700; color: var(--amarillo); white-space: nowrap; }
input.bad, select.bad, textarea.bad { border-color: var(--danger); background: var(--danger-soft); }
.chk.bad { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 8px; }
.warn { display: block; margin-top: 4px; color: var(--warn); font-weight: 600; font-size: 13px; }
.submit { width: 100%; min-height: 64px; font-family: var(--font-display); font-weight: 800; font-size: 20px; border-radius: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { text-align: left; padding: 40px 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: #1F7A4D; color: #fff; display: grid; place-items: center; }
.done .check svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { font-weight: 800; font-stretch: 110%; font-size: 34px; color: var(--noche); }
.done p { margin: 0; font-size: 18px; color: var(--text-2); max-width: 32em; }
textarea { resize: vertical; }
@media (max-width: 480px) { .ftop .brand small { display: none; } .ftop { gap: 8px; } }

/* ---- sumate: sticky progress + timeline, photo cards as buttons, live camera */
.stickyhead { position: sticky; top: 0; z-index: 20; }
.stickyhead .ftop { position: static; }
.prog { background: var(--superficie); color: var(--crema); padding: 8px clamp(12px,4vw,40px) 2px; border-top: 1px solid #2A3A52; box-shadow: 0 6px 14px rgb(0 0 0 / .18); }
.prog-top { display: flex; align-items: center; gap: 10px; max-width: 820px; margin: 0 auto; }
.pct { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--amarillo); min-width: 3.2ch; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: #2A3A52; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--amarillo); border-radius: 999px; transition: width .35s ease; }
.prog.full .bar i { background: #5CC98F; }
.left { font-size: 13px; font-weight: 700; color: #E4DED2; white-space: nowrap; }
.steps { list-style: none; margin: 4px auto 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); max-width: 820px; }
.steps li { position: relative; min-width: 0; }
.steps li::before { content: ''; position: absolute; top: 19px; left: 50%; width: 100%; height: 3px; background: #2A3A52; }
.steps li:last-child::before { display: none; }
.steps li[data-state=done]::before { background: var(--amarillo); }
.step { position: relative; z-index: 1; width: 100%; min-height: 48px; padding: 6px 0 2px; border: 0; border-radius: 8px; background: transparent; color: #C9CFD8; flex-direction: column; justify-content: flex-start; gap: 3px; font-weight: 600; font-size: 11px; }
.dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2A3A52; color: var(--crema); font-style: normal; font-weight: 800; font-size: 12px; }
.lab { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps li[data-state=done] .dot { background: var(--amarillo); color: var(--noche); }
.steps li.now .dot { background: var(--noche); color: var(--amarillo); box-shadow: 0 0 0 2px var(--amarillo); }
.steps li.now .lab { color: var(--amarillo); }
.steps li[data-state=done] .lab { color: var(--crema); }
fieldset { scroll-margin-top: 170px; }

.doc .pick { width: 100%; border: 0; border-radius: 0; background: transparent; color: inherit; font-weight: 400; text-align: left; align-items: stretch; justify-content: flex-start; }
.doc .pick .ttl { font-weight: 700; }
.doc .pick .st { font-weight: 700; }
.doc.bad .pick .st:not(.ok) { color: var(--danger); }
.fhint { display: block; margin-top: 6px; font-weight: 500; font-size: 13px; line-height: 1.4; color: var(--muted); }
.need.live { border-color: var(--amarillo); background: #FFF8E1; }
.need.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border-color: var(--patina); background: #E8F3EF; font-weight: 600; }
.error { overflow-wrap: anywhere; }
main.fwrap { padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 40px)); }
.lang button { min-width: 48px; min-height: 40px; }

body.cam-open { overflow: hidden; }
.cam { position: fixed; inset: 0; z-index: 100; height: 100vh; height: 100dvh; background: #000; color: #fff; display: flex; flex-direction: column; }
.cam-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: rgb(0 0 0 / .6); }
.cam-top b { display: block; font-family: var(--font-display); font-size: 18px; }
.cam-top small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: #E4DED2; }
.cam-x { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font-size: 20px; }
.cam-view { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.cam-view video, .cam-view img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-view video.mirror { transform: scaleX(-1); }
.frame { position: absolute; border: 3px dashed rgb(255 255 255 / .9); border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .3); }
.f-card { width: min(88%, calc(56dvh * 1.586)); aspect-ratio: 1.586; }
.f-wide { width: min(92%, calc(52dvh * 1.9)); aspect-ratio: 1.9; }
.f-plate { width: min(80%, calc(40dvh * 2.2)); aspect-ratio: 2.2; }
.f-face { width: min(64%, 46dvh); aspect-ratio: 1; border-radius: 50%; }
.f-paper { width: min(66%, calc(60dvh * .72)); aspect-ratio: .72; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { opacity: .85; }
.cam-bar { display: flex; justify-content: center; align-items: center; min-height: 108px; padding: 12px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgb(0 0 0 / .6); }
.shutter { width: 76px; height: 76px; min-height: 0; padding: 0; border-radius: 50%; border: 6px solid rgb(255 255 255 / .55); background: #fff; background-clip: padding-box; }
.shutter:active { transform: scale(.94); }
.cam-review { display: flex; gap: 12px; width: 100%; max-width: 440px; }
.cam-review .btn { flex: 1; min-height: 56px; font-size: 17px; }
.cam .btn:not(.btn-primary) { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .35); }
@media (max-width: 480px) { .stickyhead .ftop { padding-top: 8px; padding-bottom: 8px; } .steps li::before { top: 19px; } }
@media (max-width: 359px) { .step { font-size: 10px; } .dot { width: 24px; height: 24px; } .steps li::before { top: 18px; } .left { font-size: 12px; } }
@media (max-height: 480px) and (orientation: landscape) { .cam-top small { display: none; } .cam-bar { min-height: 84px; } .shutter { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
