/* PMCC Digital ID: mobile-first vertical identity, editorial navy/green/white. */
.id-app{background:linear-gradient(145deg,#e9f0f6,#f5f8fb);min-height:100vh}
.mobile-id-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;box-shadow:0 1px 12px #09274318;padding:11px 18px;position:sticky;top:0;z-index:15}
.mobile-id-header b{font-size:15px}.mobile-id-header a{font-size:13px;font-weight:700}.mobile-id-header button{border:1px solid #aad783;background:#f1faea;color:#397b1a;border-radius:9px;font-size:12px;font-weight:700;padding:8px 10px}
.id-shell{max-width:690px;margin:0 auto;padding:20px 16px 36px}.id-preview{max-width:800px;margin:15px auto}
.id-card{position:relative;max-width:680px;margin:auto;overflow:hidden;color:#071e36;background:linear-gradient(154deg,#fff 55%,#f8fbfd);border:1px solid #e1e7ee;border-radius:35px;box-shadow:0 18px 45px #0a29432b}
.id-corner-top{position:absolute;top:-8px;right:-35px;height:155px;width:295px;background:linear-gradient(128deg,#d3f0ac 5%,#7bbb1f 55%,#08304a 55%,#153a5c);transform:rotate(21deg);clip-path:polygon(0 0,100% 0,100% 100%,65% 85%,0 42%);opacity:.96;z-index:0}
.id-card:before{content:'';position:absolute;top:20%;right:-24%;width:80%;height:40%;pointer-events:none;background:repeating-radial-gradient(ellipse at 30% 100%,transparent 0 13px,#9db9c91e 14px 15px);opacity:.7}
.id-brand{padding:34px 36px 8px;position:relative;z-index:1}.id-brand img{width:min(80%,410px);height:96px;object-fit:contain;object-position:left center}
.id-title{position:relative;z-index:1;display:flex;align-items:center;gap:11px;margin:12px 28px 0 38%;padding:11px 18px 11px 0;border-radius:13px;background:linear-gradient(100deg,#5fa610 0%,#70b626 10%,#184367 10%,#061d36 98%);color:white;font-size:clamp(21px,3.9vw,31px);font-weight:800;letter-spacing:.02em;white-space:nowrap}
.id-person-symbol{width:72px;display:grid;place-items:center}.id-person-symbol .ui-icon{width:30px;height:30px;color:white}
.id-identity{position:relative;z-index:1;display:flex;gap:22px;align-items:center;margin-top:-12px;padding:0 30px 16px}.id-photo{height:190px;width:190px;border:7px solid white;outline:5px solid #76b82b;border-radius:50%;overflow:hidden;flex:0 0 auto;display:grid;place-items:center;background:#e8f3e3;color:#428e18;font-size:54px;font-weight:800;box-shadow:0 6px 15px #06233921}.id-photo img{width:100%;height:100%;object-fit:cover}
.id-names{min-width:0;padding-top:28px}.id-names h1{font-size:clamp(22px,3.7vw,34px);line-height:1.1;letter-spacing:-.03em;margin:0 0 10px;overflow-wrap:anywhere;font-weight:820}.id-names p{font-size:clamp(13px,2.2vw,19px);margin:0;color:#243e55;overflow-wrap:anywhere}
.id-info{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:20px;padding:7px 30px 30px;align-items:center}.id-facts{min-width:0}
.id-facts>div{display:grid;grid-template-columns:53% minmax(0,47%);align-items:center;border-bottom:1px solid #c8d3dd;padding:12px 0;min-height:60px;gap:8px}.id-facts>div:last-child{border:0}.id-facts span{display:flex;gap:9px;align-items:center;font-size:13px;color:#283d52}.id-facts span .ui-icon{color:#4b951b;min-width:25px;width:25px;height:25px}.id-facts b{font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.id-qr-column{min-width:0;align-self:center;text-align:center}.id-qr{display:grid;place-items:center;min-height:185px;padding:8px;border-radius:17px;background:white;border:1px solid #cfdce5;box-shadow:0 7px 17px #09274313;position:relative}.id-qr:before{content:'';position:absolute;inset:6px;border:4px solid #6ab222;border-radius:12px;pointer-events:none;clip-path:polygon(0 0,20% 0,20% 7%,7% 7%,7% 20%,0 20%,0 0,100% 0,100% 20%,93% 20%,93% 7%,80% 7%,80% 0,100% 0,100% 100%,80% 100%,80% 93%,93% 93%,93% 80%,100% 80%,100% 100%,0 100%,0 80%,7% 80%,7% 93%,20% 93%,20% 100%,0 100%)}.id-qr canvas,.id-qr img{width:100%!important;max-width:175px;height:auto!important;aspect-ratio:1}.qr-realtime{display:block;margin:6px 0 10px;font-size:10px;line-height:1.3;color:#536a7c}.id-status{display:flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;background:linear-gradient(130deg,#438e13,#85c834);color:white;line-height:1.2;font-size:12px;font-weight:800;padding:9px 6px}.id-status .ui-icon{height:19px;width:19px;flex-shrink:0}.id-status.id-inactive{background:#b75445}
.id-ribbon{position:relative;background:linear-gradient(115deg,#08243e 0%,#173f5e 58%,#205b76);color:white;border-top:6px solid #8ec42b;min-height:139px;display:flex;justify-content:center;align-items:center;text-align:center;overflow:hidden;padding:25px 116px 23px 35px}.id-ribbon:before{content:'';position:absolute;height:25px;left:-5%;right:-5%;top:-22px;background:white;border-radius:50%;transform:rotate(2deg)}.id-ribbon:after{content:'';position:absolute;bottom:-16px;left:-6%;height:30px;width:112%;background:#fff;border-radius:50% 50% 0 0;transform:rotate(-1deg)}.id-ribbon p{font-size:clamp(18px,2.7vw,23px);line-height:1.27;position:relative;z-index:1;margin:0;letter-spacing:-.02em}.id-ribbon img{position:absolute;right:28px;top:2px;bottom:0;height:125px;max-width:116px;object-fit:contain;filter:grayscale(1) brightness(0) invert(1);opacity:.55}
.id-actionbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px 26px 28px;background:linear-gradient(180deg,#fafdff,#eff5fa);position:relative}.id-actionbar a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;min-height:130px;padding:12px 8px;background:white;border:1px solid #dae4eb;box-shadow:0 7px 15px #112e4910;color:#092542;border-radius:20px;font-size:16px;font-weight:850;line-height:1.13}.id-actionbar a:hover{background:#f2faed;text-decoration:none}.id-actionbar .ui-icon{color:#4b9618;width:46px;height:46px}.id-bottom-swoosh{height:24px;background:linear-gradient(165deg,#102b47 0%,#09243d 50%,#7ab81b 50%,#a1d346 80%,#0d3551 80%)}
.id-device-options{text-align:center;margin:18px auto 0;max-width:680px}.id-device-options h3{font-size:15px}.id-device-options button{margin:10px auto}.install-help{margin-bottom:15px}.install-help[hidden]{display:none!important}
.mobile-only-warning{display:none}
@media(min-width:800px){.id-preview .id-card{max-width:740px}.id-preview .id-identity{padding-left:42px;padding-right:42px}.id-preview .id-info{padding-left:42px;padding-right:42px}}
@media(max-width:570px){.mobile-id-header{padding:9px 10px}.mobile-id-header a{font-size:12px}.mobile-id-header b{font-size:14px}.mobile-id-header button{font-size:11px;padding:6px 9px}.id-shell{padding:12px 8px 40px}.id-card{border-radius:23px}.id-corner-top{width:160px;height:114px;right:-30px}.id-brand{padding:23px 20px 0}.id-brand img{width:82%;height:69px}.id-title{margin:15px 16px 0 34%;padding:7px 8px 7px 0;gap:2px;font-size:clamp(15px,4.2vw,21px);border-radius:10px;letter-spacing:0}.id-person-symbol{width:35px}.id-person-symbol .ui-icon{width:23px;height:23px}.id-identity{padding:10px 15px 20px;gap:13px;margin-top:-7px}.id-photo{width:105px;height:105px;border-width:4px;outline-width:3px;font-size:34px}.id-names{padding-top:9px}.id-names h1{font-size:clamp(17px,5vw,23px)}.id-names p{font-size:12px}.id-info{grid-template-columns:minmax(0,1fr) 115px;gap:11px;padding:2px 12px 17px}.id-facts>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:7px 0;min-height:58px}.id-facts span{font-size:10.5px;line-height:1.2;gap:5px}.id-facts span .ui-icon{min-width:16px;height:17px;width:17px}.id-facts b{font-size:11.5px;padding-left:22px}.id-qr{min-height:119px;padding:7px}.id-qr canvas,.id-qr img{max-width:107px}.id-status{font-size:10px;padding:7px 4px;white-space:normal}.id-status .ui-icon{width:16px;height:16px}.qr-realtime{font-size:9px;margin:5px 0}.id-ribbon{min-height:110px;padding:18px 72px 21px 14px}.id-ribbon p{font-size:clamp(13px,4vw,17px)}.id-ribbon img{right:10px;height:92px;max-width:65px}.id-actionbar{gap:7px;padding:14px 11px 20px}.id-actionbar a{min-height:98px;font-size:11.5px;border-radius:14px;padding:6px 4px}.id-actionbar .ui-icon{width:31px;height:31px}.id-bottom-swoosh{height:15px}}
@media(max-width:360px){.id-info{grid-template-columns:minmax(0,1fr) 103px;gap:5px}.id-facts b{font-size:10.8px}.id-title{margin-left:31%;font-size:14px}.id-photo{width:94px;height:94px}.id-identity h1{font-size:16px}}
@media print{.mobile-id-header,.id-device-options,.site-header,.site-footer,.notice-strip,.page-title{display:none!important}.id-shell,.id-preview{padding:0;margin:0}.id-card{box-shadow:none;border:0;max-width:none}.layout{padding:0}body{background:white}}

@media(min-width:721px){.mobile-id-header #install-id{display:none!important}}

/* v0.2.6 - ID PWA ocupa la pantalla del teléfono; acceso dentro de la aplicación. */
.id-auth-shell{min-height:100dvh;display:grid;place-items:center;padding:20px 14px;background:linear-gradient(150deg,#ebf5e8,#f5f8fb 60%,#eaf1f7)}
.id-auth-card{width:min(440px,100%);padding:25px 24px 28px;border-radius:23px;background:white;box-shadow:0 14px 38px #082d4820;border:1px solid #dce8e0}
.id-auth-card .id-login-logo{display:block;object-fit:contain;object-position:left;width:205px;max-height:110px}
.id-login-label{font-weight:850;letter-spacing:.08em;color:#478a19;font-size:12px;margin:2px 0 12px}
.id-auth-card h1{font-size:clamp(24px,6vw,29px);margin:0 0 16px;color:#0b2945}.id-auth-card p{font-size:13px;color:#4b6174}
.id-auth-card label{color:#18354b}.id-auth-card .btn{width:100%;margin-top:12px}
.id-auth-card .id-mfa-qr{margin:12px auto;display:grid;place-items:center}
.id-auth-card .recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.id-auth-card .recovery-grid code{font-size:12px;padding:9px}
@media(max-width:570px){.id-shell{padding:0 0 26px}.id-card{width:100%;max-width:none;border-radius:0;border-left:0;border-right:0;min-height:calc(100dvh - 56px);box-shadow:none}.mobile-id-header{min-height:56px}.id-app-launcher,.id-device-options{margin:13px 10px 0}.id-auth-shell{padding:0 13px}.id-auth-card{padding:23px 20px}}
@media (display-mode: standalone) and (max-width: 570px){.mobile-id-header{display:none}.id-card{min-height:100dvh}.id-shell{padding-top:0}}

/* v0.2.6.2 — identificación estática y completa en la ventana visible del teléfono. */
@media(max-width:720px){
  html:has(body.id-viewport-lock){height:100%;overflow:hidden;overscroll-behavior:none}
  body.id-viewport-lock{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}
  body.id-viewport-lock .id-shell{display:flex;justify-content:center;align-items:flex-start;max-width:none;width:100%;padding:0!important;margin:0!important;overflow:hidden;box-sizing:border-box}
  body.id-viewport-lock .id-card{flex:0 0 auto;display:flex;flex-direction:column;width:100%;max-width:none;min-height:0;transform-origin:center top;will-change:transform;box-sizing:border-box}
  body.id-viewport-lock .id-card .id-info{flex:1 0 auto}
  body.id-viewport-lock .id-card .id-actionbar{flex-shrink:0}
  body.id-viewport-lock .mobile-id-header{flex-shrink:0}
  body.id-viewport-lock .id-qr-unavailable{font-size:11px;color:#536a7c;text-align:center;padding:12px 3px}
}
.id-offline-empty{padding:20px;text-align:center;color:#18354b;max-width:390px;margin:0 auto}

.id-card[hidden]{display:none!important}
