:root{--red:#b71c1c;--red2:#d32f2f;--dark:#17202a;--muted:#65727e;--green:#16804a;--blue:#2256a3;--bg:#f3f6f8;--card:#fff;--line:#dce3e8;--amber:#9a6500}*{box-sizing:border-box}html,body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--dark)}body{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);padding:9px 12px;display:flex;align-items:center;gap:10px}.topbar img{width:42px;height:42px;object-fit:contain}.brand{min-width:0}.brand b{display:block;font-size:15px}.brand span{display:block;font-size:12px;color:var(--muted)}.timer{margin-left:auto;background:#fff5df;border:1px solid #f1cc7a;border-radius:12px;padding:6px 9px;text-align:center;min-width:86px}.timer b{font-variant-numeric:tabular-nums;font-size:17px}.mini{font-size:12px;color:var(--muted)}.demo-ribbon{position:sticky;top:61px;z-index:19;background:#fff0f0;color:#8f1212;text-align:center;font-weight:900;padding:8px;font-size:13px;border-bottom:1px solid #f0caca;letter-spacing:.2px}.wrap{width:min(760px,100%);margin:auto;padding:14px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:0 6px 20px rgba(29,43,54,.05)}h1{font-size:25px;line-height:1.15;margin:0 0 8px}h2{font-size:20px;margin:0 0 8px}h3{font-size:17px;margin:0}p{line-height:1.45}.muted{color:var(--muted)}.btn,button{appearance:none;border:0;border-radius:14px;padding:14px 16px;font-size:16px;font-weight:800;cursor:pointer;text-decoration:none;text-align:center;display:block;width:100%;background:var(--blue);color:#fff}.btn.red,button.red{background:var(--red2)}.btn.green,button.green{background:var(--green)}.btn.light,button.light{background:#eef3f6;color:var(--dark);border:1px solid var(--line)}.btn.outline{background:#fff;color:var(--blue);border:2px solid #b9cdec}input{width:100%;padding:14px;border:1px solid #cdd7de;border-radius:12px;font-size:16px;background:#fff}label{display:block;font-weight:750;margin:12px 0 6px}.notice{border-radius:14px;padding:12px 14px;background:#eef6ff;border:1px solid #cfe3ff}.ok{background:#eefaf2;border-color:#bfe2c9;color:#116633}.warn{background:#fff8e6;border-color:#f1d38d;color:#5f4700}.error{background:#fff0f0;border-color:#edbcbc;color:#8f1212}.queue-number{font-size:48px;font-weight:950;text-align:center;margin:8px 0}.queue-label{text-align:center;color:var(--muted)}.footer{text-align:center;color:#77838e;font-size:12px;padding:18px}.credentials{display:grid;grid-template-columns:1fr 1fr;gap:8px}.credentials div{background:#f6f8fa;border:1px dashed #bdc8d0;border-radius:12px;padding:10px}.credentials b{display:block;font-size:18px}.bigcheck{font-size:56px;text-align:center}.row{display:flex;gap:10px;align-items:center}.row .grow{flex:1}.steps{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 16px}.step-pill{background:#e8edf1;color:#66727e;border-radius:999px;text-align:center;padding:9px 10px;font-weight:850;font-size:13px}.step-pill.active{background:#eaf6ef;color:#12683b;border:1px solid #b9dec8}.step-pill.done{background:#16804a;color:#fff}.family-strip{display:flex;gap:10px;align-items:center;background:#f8fafb;border:1px solid var(--line);padding:11px;border-radius:14px;margin:12px 0}.family-strip img{width:42px;height:42px;object-fit:contain}.doc-grid{display:grid;gap:12px}.doc-card{border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff}.doc-card.done{border-color:#8bc9a5;background:#f3fbf6}.doc-top{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px}.doc-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#eef3f6;font-size:20px;flex:0 0 auto}.doc-card.done .doc-icon{background:#dff3e7}.doc-card .btn{margin-top:8px}.file-help{font-size:12px;color:var(--muted);margin-top:6px}.section-kicker{font-size:12px;font-weight:900;color:var(--red);letter-spacing:.5px;text-transform:uppercase}.review-list{display:grid;gap:8px;margin:12px 0}.review-item{display:flex;gap:8px;align-items:center;padding:10px;border-radius:12px;background:#f3faf6;border:1px solid #cce7d5}.review-item b{color:#12683b}.end-actions{display:grid;gap:10px;margin-top:14px}.photo-note{font-size:13px;background:#f6f8fa;border-radius:12px;padding:10px;margin:8px 0}.photo-form{margin-top:8px}.photo-form input[type=file]{padding:11px;background:#fff}.demo-thumb{width:100%;max-height:280px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#f8fafb;margin-top:8px}.status-badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;background:#eef3f6;color:#5b6975}.status-badge.done{background:#dff3e7;color:#12683b}.privacy{font-size:12px;color:#6c7882;text-align:center;margin-top:7px}@media(max-width:560px){.wrap{padding:10px}.card{border-radius:15px;padding:14px}h1{font-size:21px}.credentials{grid-template-columns:1fr}.topbar{padding:8px 9px}.topbar img{width:38px;height:38px}.demo-ribbon{top:55px;font-size:12px}.timer{min-width:80px;padding:5px 7px}.btn,button,input{font-size:16px;min-height:50px}.queue-number{font-size:44px}.steps{gap:6px}.step-pill{font-size:12px;padding:8px 7px}.doc-card{padding:12px}.doc-top{gap:8px}}

.doc-card.done .btn.green{background:var(--green);color:#fff;border-color:var(--green)}
.final-review{border:2px solid #88cda5;background:#f5fcf7;box-shadow:0 10px 28px rgba(22,128,74,.12)}
.green-kicker{color:var(--green)}
.send-explain{margin:14px 0;padding:14px;border-radius:14px;background:#fff;border:1px solid #bfe2c9;line-height:1.45;color:#244c35}
.send-big{font-size:18px;min-height:58px;box-shadow:0 7px 18px rgba(22,128,74,.22)}
.success-final{border:2px solid #88cda5;background:#f7fcf8}
.success-lead{text-align:center;font-size:17px;line-height:1.5}
.secretaria-box{display:grid;gap:8px;margin:14px 0;padding:15px;border-radius:14px;background:#eefaf2;border:1px solid #bfe2c9;color:#164f30;line-height:1.4}
.secretaria-box>b{font-size:18px;margin-bottom:2px}
@media(max-width:560px){.send-big{font-size:16px;min-height:56px}.success-lead{font-size:16px}}

.doc-card,.final-review{scroll-margin-top:125px}

/* v5 · seguridad visual y optimización móvil */
html{-webkit-text-size-adjust:100%;scroll-padding-top:128px}
body{overflow-x:hidden;padding-bottom:env(safe-area-inset-bottom)}
button,.btn,input{touch-action:manipulation}
button:disabled{opacity:.68;cursor:wait}
button:focus-visible,.btn:focus-visible,input:focus-visible{outline:3px solid rgba(34,86,163,.28);outline-offset:2px}
.brand{flex:1;overflow:hidden}.brand b,.brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.center{text-align:center}.queue-notice{text-align:center}.student-chip{width:48px;height:48px;min-width:48px;border-radius:50%;display:grid;place-items:center;background:#eef3f6;border:1px solid #d7e0e6;font-weight:900;font-size:15px;color:#42515d}
.doc-title{flex:1;min-width:0}.doc-title h3,.doc-title .mini{overflow-wrap:anywhere}
.photo-form input[type=file]{min-height:54px;padding:8px;line-height:1.25}
.photo-form input[type=file]::file-selector-button{min-height:40px;border:0;border-radius:10px;padding:9px 12px;margin-right:10px;font-weight:800;background:#eef3f6;color:#17202a;cursor:pointer}
.exit-form{width:auto;min-width:92px}.compact-exit{padding-top:14px;padding-bottom:14px}
.demo-thumb{aspect-ratio:11/15}

@media(max-width:560px){
  .wrap{padding:10px 10px calc(16px + env(safe-area-inset-bottom))}
  .topbar{padding:7px max(9px,env(safe-area-inset-right)) 7px max(9px,env(safe-area-inset-left));gap:8px}
  .topbar img{width:36px;height:36px}
  .brand b{font-size:14px}.brand span{font-size:11px}
  .timer{min-width:72px;padding:4px 7px;border-radius:10px}.timer b{font-size:16px}
  .demo-ribbon{top:51px;padding:7px 8px;font-size:11px;line-height:1.25}
  .card{padding:14px;margin-bottom:11px;border-radius:14px}
  h1{font-size:21px}h2{font-size:19px}p{margin-top:8px;margin-bottom:10px}
  .steps{margin:8px 0 12px}.step-pill{font-size:11.5px;padding:8px 5px}
  .doc-grid{gap:10px}.doc-card{padding:11px;scroll-margin-top:118px}
  .doc-top{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start}
  .doc-icon{grid-row:1 / span 2}.status-badge{grid-column:2;justify-self:start;margin-top:2px}
  .demo-thumb{max-height:225px;margin-top:6px}
  .btn,button{min-height:50px;padding:13px 14px}
  input{min-height:50px;padding:12px 13px}
  .review-item{align-items:flex-start;padding:9px}
  .send-explain{padding:12px;margin:12px 0}
  .bigcheck{font-size:48px}
  .secretaria-box{padding:12px}
  .queue-number{font-size:42px}
}

@media(max-width:420px){
  .brand span{display:none}
  .brand b{font-size:13.5px}
  .credentials b{font-size:17px}
  .demo-ribbon{font-size:10.5px}
  .doc-card .btn{font-size:15px}
  .family-strip{align-items:flex-start}
}

@media(max-width:360px){
  .topbar img{width:32px;height:32px}.demo-ribbon{top:47px}
  .timer{min-width:68px}.timer .mini{font-size:10px}.timer b{font-size:15px}
  .steps{grid-template-columns:1fr}.step-pill{text-align:left;padding-left:12px}
  .row{align-items:stretch;flex-direction:column}.exit-form{width:100%}
  .doc-top{grid-template-columns:34px minmax(0,1fr)}.doc-icon{width:34px;height:34px}
}

.mt8{margin-top:8px}.mt12{margin-top:12px}.mt14{margin-top:14px}

/* v6 · portada profesional + avance guiado + carga visual */
:root{
  --wine:#9f1720;
  --wine-dark:#741017;
  --green-soft:#eefaf2;
  --green-line:#9fd3b3;
  --blue-soft:#eef5ff;
  --blue-line:#9bbbe5;
  --shadow:0 12px 34px rgba(33,45,58,.09);
}

.practice-hero{
  position:relative;
  overflow:hidden;
  margin:8px 0 14px;
  padding:28px 24px 24px;
  border-radius:24px;
  background:linear-gradient(145deg,#ffffff 0%,#fbfcfd 60%,#f7f1f2 100%);
  border:1px solid #e3e7ea;
  box-shadow:var(--shadow);
  text-align:center;
}
.practice-hero::before{
  content:"";
  position:absolute;
  width:210px;height:210px;
  right:-115px;top:-125px;
  border-radius:50%;
  background:rgba(159,23,32,.08);
}
.practice-hero::after{
  content:"";
  position:absolute;
  width:150px;height:150px;
  left:-95px;bottom:-100px;
  border-radius:50%;
  background:rgba(34,86,163,.06);
}
.hero-logo{width:84px;height:84px;margin:0 auto 10px;border-radius:22px;display:grid;place-items:center;background:#fff;border:1px solid #e6e9ec;box-shadow:0 8px 22px rgba(31,43,55,.08)}
.hero-logo img{width:66px;height:66px;object-fit:contain}
.hero-badge,.result-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 11px;background:#fff0f1;border:1px solid #efc9cc;color:var(--wine);font-weight:900;font-size:11px;letter-spacing:.7px;margin-bottom:10px}
.practice-hero h1{font-size:30px;max-width:600px;margin:0 auto 10px;letter-spacing:-.4px}
.practice-hero p{max-width:620px;margin:0 auto 20px;color:#55636e;font-size:16px}
.hero-flow{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:9px;max-width:590px;margin:0 auto}
.hero-flow>div{display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 9px;border-radius:16px;background:rgba(255,255,255,.86);border:1px solid #e4e8eb}
.hero-flow span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:var(--wine);color:#fff;font-weight:950;font-size:14px;margin-bottom:3px}
.hero-flow b{font-size:14px}.hero-flow small{font-size:11px;color:var(--muted)}
.private-hero{margin-top:12px}.access-card{max-width:620px;margin-left:auto;margin-right:auto}

.login-card h2{margin-bottom:6px}
.level-select{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 16px}
.level-option{position:relative;margin:0;display:flex;align-items:center;gap:11px;padding:13px;border:2px solid #dde4e9;border-radius:16px;background:#fff;cursor:pointer;min-height:76px;transition:.18s ease}
.level-option input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.level-option .level-mark{width:42px;height:42px;min-width:42px;border-radius:13px;display:grid;place-items:center;background:#f1f4f6;color:#53616d;font-weight:950;font-size:18px;transition:.18s ease}
.level-option b{display:block;font-size:16px}.level-option small{display:block;margin-top:3px;color:var(--muted);font-weight:650;font-size:12px}
.level-option:hover{border-color:#c8d4dc;background:#fbfcfd}
.level-option:has(input:checked){border-color:#c6646b;background:#fff7f7;box-shadow:0 0 0 3px rgba(159,23,32,.07)}
.level-option:has(input:checked) .level-mark{background:var(--wine);color:#fff}

.step-card{border-top:4px solid #d9e2e8}.current-step{border-top-color:var(--wine)}
.step-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.step-number{width:44px;height:44px;min-width:44px;border-radius:14px;display:grid;place-items:center;background:var(--wine);color:#fff;font-size:21px;font-weight:950;box-shadow:0 6px 14px rgba(159,23,32,.18)}
.step-head h1{margin:2px 0 0}
.doc-count{display:inline-flex;margin:4px 0 12px;padding:8px 11px;border-radius:999px;background:#f1f5f7;color:#3f4d58;font-size:13px}

.doc-card{position:relative;overflow:hidden;transition:border-color .25s ease,background .25s ease,box-shadow .25s ease,transform .25s ease}
.doc-card.pending{background:#fbfcfd;border-color:#e0e6ea}
.doc-card.current{background:linear-gradient(180deg,#fff 0%,var(--blue-soft) 100%);border:2px solid var(--blue-line);box-shadow:0 10px 26px rgba(34,86,163,.10)}
.doc-card.done{background:linear-gradient(180deg,#f9fffb 0%,#edf9f1 100%);border:2px solid var(--green-line);box-shadow:0 8px 22px rgba(22,128,74,.09)}
.doc-card.attention{transform:translateY(-2px);box-shadow:0 0 0 5px rgba(34,86,163,.10),0 12px 28px rgba(34,86,163,.14)}
.doc-sequence{position:absolute;right:10px;top:10px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#edf1f4;color:#66727e;font-size:12px;font-weight:950}
.doc-card.current .doc-sequence{background:#2256a3;color:#fff}.doc-card.done .doc-sequence{background:var(--green);color:#fff}
.doc-card.current .doc-icon{background:#dceafd;color:#2256a3}.doc-card.done .doc-icon{background:#d9f0e2;color:#12683b}
.status-badge.current{background:#dceafd;color:#164e91}.status-badge.done{background:#d9f0e2;color:#12683b}
.upload-button{background:#2256a3;color:#fff;border:0;box-shadow:0 6px 15px rgba(34,86,163,.18)}
.upload-btn-icon{font-size:18px;margin-right:4px}.file-help.chosen{color:#12683b;font-weight:750}
.success-note{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#e7f7ed;border:1px solid #b7dfc6;color:#135e35}
.success-note span{font-size:12px;color:#52705f;overflow-wrap:anywhere;text-align:right}

.upload-toast{position:fixed;z-index:60;left:50%;top:86px;transform:translate(-50%,-18px);opacity:0;display:flex;align-items:center;gap:10px;width:min(430px,calc(100% - 24px));padding:12px 14px;border-radius:16px;background:#153f2a;color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.22);transition:.25s ease;pointer-events:none}
.upload-toast.show{transform:translate(-50%,0);opacity:1}.upload-toast.leaving{transform:translate(-50%,-12px);opacity:0}
.upload-toast>span{width:34px;height:34px;min-width:34px;border-radius:50%;display:grid;place-items:center;background:#38a867;font-weight:950;font-size:19px}
.upload-toast b{display:block;font-size:14px}.upload-toast small{display:block;color:#d8eee1;margin-top:2px}

.busy-overlay[hidden]{display:none!important}.busy-overlay{position:fixed;inset:0;z-index:100;background:rgba(15,23,31,.48);backdrop-filter:blur(4px);display:grid;place-items:center;padding:18px;opacity:0;transition:opacity .15s ease}.busy-overlay.show{opacity:1}
.busy-card{width:min(390px,100%);background:#fff;border-radius:22px;padding:26px 22px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.busy-card b{display:block;font-size:21px;margin-top:8px}.busy-card span{display:block;color:var(--muted);margin-top:7px;line-height:1.4}
.hourglass{font-size:48px;line-height:1;animation:hourglass-turn 1.15s ease-in-out infinite}
.busy-line{height:5px;background:#e9eef1;border-radius:99px;overflow:hidden;margin-top:18px}.busy-line i{display:block;height:100%;width:38%;background:var(--wine);border-radius:99px;animation:busy-move 1.1s ease-in-out infinite}
@keyframes hourglass-turn{0%,45%{transform:rotate(0)}55%,100%{transform:rotate(180deg)}}
@keyframes busy-move{0%{transform:translateX(-110%)}50%{transform:translateX(90%)}100%{transform:translateX(270%)}}

.final-check{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:var(--green);color:#fff;font-size:28px;font-weight:950;box-shadow:0 8px 20px rgba(22,128,74,.2)}
.final-review{text-align:left}.final-review h2{text-align:center;font-size:24px}.final-review>.section-kicker{text-align:center}
.bigcheck{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:var(--green);color:#fff;font-size:34px;font-weight:950}
.result-badge{display:flex;width:max-content;margin:0 auto 8px;background:#edf9f1;border-color:#b9dec8;color:#12683b}
.queue-card{text-align:center}.queue-visual{font-size:42px;margin-bottom:4px}

@media(max-width:560px){
  .practice-hero{padding:22px 14px 18px;border-radius:18px;margin-top:5px}
  .hero-logo{width:70px;height:70px;border-radius:18px}.hero-logo img{width:55px;height:55px}
  .practice-hero h1{font-size:24px;line-height:1.12}.practice-hero p{font-size:14px;margin-bottom:15px}
  .hero-flow{gap:6px}.hero-flow>div{padding:10px 5px;border-radius:13px}.hero-flow span{width:28px;height:28px}.hero-flow b{font-size:12px}.hero-flow small{font-size:10px}
  .level-select{grid-template-columns:1fr;gap:8px}.level-option{min-height:68px;padding:11px 12px}
  .level-option .level-mark{width:38px;height:38px;min-width:38px}
  .step-head{align-items:flex-start;gap:10px}.step-number{width:40px;height:40px;min-width:40px;border-radius:12px;font-size:19px}
  .doc-count{margin-bottom:9px}
  .doc-card{border-radius:15px}.doc-sequence{right:8px;top:8px}
  .demo-thumb{max-height:195px}
  .upload-toast{top:70px}
  .busy-card{padding:22px 17px;border-radius:19px}.busy-card b{font-size:19px}.hourglass{font-size:44px}
  .success-note{align-items:flex-start;flex-direction:column}.success-note span{text-align:left}
}

@media(max-width:390px){
  .hero-flow>div{padding:9px 3px}.hero-flow b{font-size:11px}.hero-flow small{font-size:9.5px}
  .practice-hero h1{font-size:22px}
  .doc-title h3{padding-right:22px}
}

.infox-credit{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:20px 12px;color:#687681;font-size:12px}.infox-credit span{white-space:nowrap}.infox-credit img{width:auto;height:32px;max-width:150px;object-fit:contain}@media(max-width:560px){.infox-credit{gap:6px;padding:17px 8px}.infox-credit img{height:28px;max-width:130px}}
