:root{--blue:#4B5CA5;--deep:#121c3e;--aqua:#5dbec0;--line:#e5eaf2;--muted:#63718a}*{box-sizing:border-box}body{margin:0;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--deep);background:#f5f8fd;min-height:100dvh;display:flex;flex-direction:column}a{color:#355ba4;text-decoration:none}a:hover{text-decoration:underline}.portal-header{height:76px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px clamp(20px,5vw,72px);border-bottom:1px solid var(--line)}.portal-logo img{width:190px;max-height:56px;object-fit:contain}.portal-header nav{display:flex;flex-wrap:wrap;gap:18px;font-size:13px;font-weight:750}.portal-main{flex:1;overflow-y:auto;max-height:calc(100dvh - 114px);padding:clamp(24px,3vw,44px) 16px}.portal-container{max-width:1150px;margin:auto}.portal-footer{text-align:center;padding:13px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}.eyebrow{font-size:11px;font-weight:850;letter-spacing:.17em;color:#378eab}.auth-card{max-width:480px;margin:3vh auto;padding:clamp(24px,3.4vw,42px);border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 25px 65px #25376515}.auth-card.wide{max-width:820px;margin:0 auto}h1{font-size:clamp(28px,3vw,43px);letter-spacing:-.045em;line-height:1.13;margin:12px 0}h2{font-size:20px;margin:0 0 20px}.auth-card>p,.page-heading p{color:var(--muted);line-height:1.6;margin:8px 0 26px}label{display:block;font-size:12px;font-weight:750;margin:12px 0;color:#405070}label input:not([type=checkbox]),label select,label textarea{display:block;width:100%;border:1px solid #d9e1ed;padding:12px;border-radius:10px;font:inherit;font-size:14px;color:var(--deep);background:#fff;margin-top:7px;min-height:44px}label textarea{resize:vertical}.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border:0;border-radius:11px;font:inherit;font-weight:750;font-size:13px;cursor:pointer}.primary{background:linear-gradient(110deg,#4B5CA5,#5DBEC0);color:#fff}.outline{border:1px solid #cad6e7;background:#fff}.auth-foot{font-size:13px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.form-grid .full{grid-column:1/-1}.checkline{display:flex;align-items:flex-start;gap:10px;margin:20px 0}.checkline input{margin:2px 0}.flash{padding:14px 18px;border-radius:10px;margin:12px 0 20px;background:#e4f6f0;color:#185a47;font-size:13px}.flash.error{background:#fff1ee;color:#a63438}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.metric,.dashboard-card{background:#fff;border:1px solid var(--line);box-shadow:0 8px 30px #243b6610;border-radius:17px}.metric{padding:23px}.metric small,.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{font-size:42px;display:block;margin:5px 0;letter-spacing:-.05em}.dashboard-card{padding:22px;margin:22px 0}.card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.card-heading span{font-size:12px;color:var(--muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}td,th{padding:13px 12px;border-bottom:1px solid var(--line)}th{color:#66738a;font-size:11px;text-transform:uppercase;white-space:nowrap}.tag{display:inline-block;padding:6px 9px;background:#e7f5f7;color:#31677d;border-radius:999px;font-size:11px;font-weight:800}.empty{text-align:center;color:var(--muted);padding:24px}.work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.work{border:1px solid var(--line);padding:20px;border-radius:12px}.work h3{font-size:16px;margin:0}.work p{color:var(--muted);font-size:13px;line-height:1.5}.work-header{display:flex;justify-content:space-between;gap:10px;align-items:center}.progress-bar{height:8px;border-radius:99px;background:#e9edf5;overflow:hidden;margin:17px 0 9px}.progress-bar i{display:block;background:linear-gradient(90deg,#5dbec0,#4b5ca5);height:100%;border-radius:99px}.work small,.history small{color:var(--muted);font-size:11px}.work details{margin-top:15px}.work summary{cursor:pointer;color:#405c99;font-size:12px;font-weight:750}.history{padding:9px 0;border-bottom:1px solid var(--line)}.history small{display:block}@media(max-width:640px){.portal-header{height:auto;min-height:65px;align-items:flex-start;flex-direction:column;padding:10px 17px}.portal-header nav{gap:10px;font-size:12px}.portal-main{max-height:none;padding:20px 14px}.form-grid,.summary-grid,.work-grid{grid-template-columns:1fr}.page-heading{display:block}.dashboard-card{padding:15px}.card-heading{display:block}.portal-footer{font-size:10px}}

/* Identidad IPEYS: foco visible y logotipo proporcionado por la empresa */
:focus-visible{outline:3px solid #5DBEC0;outline-offset:3px}.portal-header{box-shadow:0 8px 32px rgba(24,35,82,.045)}.auth-card{box-shadow:0 28px 80px rgba(42,70,129,.085)}

/* Registro: logo obligatorio, fotografías opcionales y ficha del directorio en revisión. */
.register-card{max-width:900px}
.register-card .register-section-heading{display:flex;align-items:center;gap:12px;padding:20px 0 8px;margin:20px 0 6px;border-top:1px solid var(--line)}
.register-card .register-section-heading:first-of-type{border-top:0;margin-top:12px;padding-top:4px}
.register-section-heading .step{width:36px;height:36px;border-radius:11px;background:linear-gradient(140deg,#4b5ca5,#5dbec0);color:#fff;font-size:12px;font-weight:850;display:grid;place-items:center;flex-shrink:0}
.register-section-heading h2{font-size:17px;margin:0 0 3px}
.register-section-heading small{font-size:12px;color:var(--muted);font-weight:450;line-height:1.5}
.register-card .required-note{color:#bd454f}
.register-card .optional-note{color:var(--muted);font-weight:450}
.register-card .upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.register-card .upload-panel{padding:16px;border:1px solid #dbe3f2;border-radius:15px;background:linear-gradient(135deg,#f9fbff,#f5fcfc);min-width:0}
.register-card .upload-panel label{margin:0 0 4px;color:var(--deep);font-size:13px}
.register-card .upload-help{font-size:11px;color:var(--muted);margin:0 0 11px;line-height:1.5}
.register-card .upload-panel input[type=file]{display:block;width:100%;max-width:100%;font-size:12px;color:#3e5079;border:1px dashed #b7c9df;border-radius:9px;background:white;padding:10px;cursor:pointer}
.register-card .upload-panel input::file-selector-button{border:0;border-radius:7px;padding:7px 11px;background:#e8edf9;color:#34498c;font-weight:750;margin-right:9px;cursor:pointer}
.register-card .upload-preview{min-height:90px;margin-top:13px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;border-radius:10px;color:#75839b;text-align:center;font-size:12px}
.register-card .upload-preview:has(figure){justify-content:flex-start;align-items:stretch}
.register-card .upload-preview figure{margin:0;width:calc(33.33% - 6px);min-width:70px;max-width:140px;overflow:hidden;border:1px solid #dae5ee;border-radius:9px;background:#fff}
.register-card .upload-preview img{display:block;width:100%;aspect-ratio:1.3;object-fit:cover;background:#fff}
.register-card .upload-preview figcaption{font-size:10px;padding:6px;color:#66738a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.register-card .upload-preview.single figure{width:140px}
.register-card .upload-invalid{color:#9e2c32;font-weight:700}
.register-card .register-info{margin:6px 0 0;padding:13px 15px;background:#edf8f8;border-radius:10px;color:#315d68;font-size:12px;line-height:1.6}
.register-card .retry-files{margin:8px 0 0;font-size:12px}
@media(max-width:640px){.register-card .upload-grid{grid-template-columns:1fr}.register-card .upload-preview figure{width:calc(33.33% - 6px)}.register-card .register-section-heading{margin-top:14px}}
