:root{--navy:#06172a;--navy2:#0a2844;--blue:#1680c5;--green:#0f8f5f;--red:#b42318;--amber:#b7791f;--gray:#667085;--line:#dfe7ef;--bg:#f4f7fb;--white:#fff;--shadow:0 20px 60px rgba(2,19,36,.2)}
*{box-sizing:border-box}html,body{margin:0}body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#122033;background:#f4f7fb}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.hidden{display:none!important}
#splash{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(1,12,24,.91),rgba(7,38,66,.83)),url('bg-dots.jpg') center/cover no-repeat;color:white}.splash-box{text-align:center;width:min(94vw,720px)}.splash-logos{display:flex;align-items:center;justify-content:center;gap:30px}.splash-logos img{object-fit:contain;filter:drop-shadow(0 18px 45px rgba(0,0,0,.4))}.splash-logos .police{height:min(24vw,180px)}.splash-logos .interpol{height:min(21vw,155px)}.splash-title{font-size:clamp(28px,4.2vw,44px);font-weight:900;margin-top:20px}.splash-sub{color:#d8eaf8;margin-top:8px}.loader{width:220px;max-width:55vw;height:4px;margin:25px auto 0;background:rgba(255,255,255,.16);border-radius:99px;overflow:hidden}.loader span{display:block;height:100%;background:#fff;animation:load 2.5s linear forwards}@keyframes load{from{width:0}to{width:100%}}
.public-body{min-height:100vh;background:linear-gradient(180deg,rgba(3,17,31,.88),rgba(8,32,54,.9)),url('bg-dots.jpg') center/cover fixed no-repeat;color:white}.topbar{display:flex;justify-content:space-between;align-items:center;padding:14px clamp(14px,4vw,54px);background:rgba(3,16,29,.72);border-bottom:1px solid rgba(255,255,255,.12);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:15px}.brand-logos{display:flex;align-items:center;gap:12px}.brand-logos img:first-child{height:54px}.brand-logos img:last-child{height:48px}.brand strong{display:block}.brand small{color:#b4d0e3}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:11px 15px;font-weight:800;cursor:pointer}.btn-primary{background:linear-gradient(135deg,#0d3c63,#1680c5);color:white}.btn-light{background:white;color:#0a2844;border:1px solid #d3dde7}.btn-danger{background:#b42318;color:white}.admin-link{color:white;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08)}.container{width:min(1120px,calc(100% - 24px));margin:auto;padding:34px 0}.hero{display:grid;grid-template-columns:1fr .85fr;gap:28px;align-items:center;min-height:68vh}.hero h1{font-size:clamp(38px,6vw,68px);line-height:.98;margin:15px 0}.hero p{color:#d0e2ef;font-size:18px;line-height:1.6}.card{background:rgba(255,255,255,.98);color:#122033;border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.card-head{padding:24px;border-bottom:1px solid var(--line)}.card-body{padding:24px}.search-row{display:flex;gap:10px}.search-row input{flex:1;min-width:0;border:1px solid #cfd8e2;border-radius:11px;padding:13px}.profile{max-width:880px;margin:auto}.profile-head{padding:20px;background:linear-gradient(135deg,rgba(6,23,42,.95),rgba(10,40,68,.92)),url('bg-dots.jpg') center/cover;color:white;text-align:center}.profile-logos{display:flex;align-items:center;justify-content:center;gap:32px}.profile-logos img:first-child{height:74px}.profile-logos img:last-child{height:62px}.status{display:inline-block;padding:8px 14px;border-radius:99px;font-weight:900;margin-top:14px}.status.active{background:#dff6eb;color:#086244}.status.suspended{background:#fff3cd;color:#8a5b00}.status.inactive,.status.expired{background:#fee4e2;color:#9f1d16}.profile-body{display:grid;grid-template-columns:180px 1fr;gap:24px;padding:24px}.portrait{width:180px;height:220px;border-radius:18px;overflow:hidden;background:#e5ecf3}.portrait img{width:100%;height:100%;object-fit:cover}.identity h2{font-size:34px;margin:4px 0}.role{color:#1368a6;font-weight:900;text-transform:uppercase}.grid-info{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:18px}.info{padding:14px;border:1px solid #e7edf4;background:#f7f9fc;border-radius:14px}.info small{display:block;color:#667085;font-weight:800;text-transform:uppercase;font-size:10px;margin-bottom:5px}.profile-foot{padding:15px 24px;background:#fbfcfe;border-top:1px solid var(--line);color:#667085;font-size:12px}.not-found{max-width:700px;margin:70px auto;text-align:center;padding:35px}
.admin-body{background:var(--bg);min-height:100vh}.admin-top{background:var(--navy);color:white;padding:14px 24px;display:flex;justify-content:space-between;align-items:center}.admin-wrap{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 64px)}.sidebar{background:white;border-right:1px solid var(--line);padding:18px}.sidebar a{display:block;padding:11px 12px;border-radius:10px;margin-bottom:5px;font-weight:700;color:#344054}.sidebar a:hover,.sidebar a.active{background:#eaf4fb;color:#0d3c63}.main{padding:24px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{background:white;border:1px solid var(--line);border-radius:15px;padding:17px}.stat b{font-size:30px;color:var(--navy)}.table-card{background:white;border:1px solid var(--line);border-radius:15px;overflow:auto}table{width:100%;border-collapse:collapse;min-width:800px}th,td{padding:12px;border-bottom:1px solid #edf1f5;text-align:left;font-size:13px}th{background:#f8fafc;color:#667085;text-transform:uppercase;font-size:10px}.form-card{background:white;border:1px solid var(--line);border-radius:15px;padding:22px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.field label{display:block;font-weight:800;font-size:12px;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;padding:11px;border:1px solid #cfd8e2;border-radius:10px}.field.full{grid-column:1/-1}.alert{padding:12px 14px;border-radius:10px;margin-bottom:14px}.alert.success{background:#dff6eb;color:#086244}.alert.error{background:#fee4e2;color:#9f1d16}.login-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#06172a,#0d3c63)}.login-card{width:min(440px,calc(100% - 24px));background:white;border-radius:20px;padding:28px;box-shadow:var(--shadow)}.login-logos{display:flex;justify-content:center;align-items:center;gap:20px}.login-logos img:first-child{height:78px}.login-logos img:last-child{height:65px}.muted{color:#667085;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap}.pagination{display:flex;gap:6px;margin-top:14px}.pagination a{padding:8px 11px;background:white;border:1px solid var(--line);border-radius:8px}
@media(max-width:850px){.hero{grid-template-columns:1fr}.admin-wrap{grid-template-columns:1fr}.sidebar{display:flex;gap:6px;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.sidebar a{white-space:nowrap}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.brand small{display:none}.brand-logos img:first-child{height:42px}.brand-logos img:last-child{height:36px}.profile-body{grid-template-columns:1fr;text-align:center}.portrait{margin:auto}.grid-info,.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.search-row{flex-direction:column}.stats{grid-template-columns:1fr 1fr}.main{padding:14px}.profile-logos{gap:18px}.profile-logos img:first-child{height:64px}.profile-logos img:last-child{height:52px}}

.credential-help{color:#44546a!important;font-size:16px!important;line-height:1.55;font-weight:500;margin:12px 0 0}.group-title{margin:22px 0 10px;color:#0a2844;font-size:22px}.expiry-alert{background:#fff7e5;border:1px solid #f3d48a;color:#7a4c00;border-radius:14px;padding:14px;margin-top:18px}.role-note{font-size:12px;color:#667085;margin-top:6px}


/* V4 - Ajuste visual final para igualar DICRIM e INTERPOL */

/* Splash / pantalla de carga */
.splash-logos{
  gap: 48px !important;
  align-items: center !important;
}

.splash-logos .police,
.splash-logos img:first-child{
  height: min(25vw, 220px) !important;
  max-height: 220px !important;
  width: auto !important;
}

.splash-logos .interpol,
.splash-logos img:last-child{
  height: min(34vw, 310px) !important;
  max-height: 310px !important;
  width: auto !important;
  transform: scale(1.08) !important;
  transform-origin: center center !important;
}

/* Barra superior */
.brand-logos{
  gap: 18px !important;
}

.brand-logos img:first-child{
  height: 58px !important;
  max-height: 58px !important;
  width: auto !important;
}

.brand-logos img:last-child{
  height: 78px !important;
  max-height: 78px !important;
  width: auto !important;
}

/* Perfil público */
.profile-logos{
  gap: 42px !important;
}

.profile-logos img:first-child{
  height: 82px !important;
  max-height: 82px !important;
  width: auto !important;
}

.profile-logos img:last-child{
  height: 115px !important;
  max-height: 115px !important;
  width: auto !important;
}

/* Login administrativo */
.login-logos img:first-child{
  height: 86px !important;
  max-height: 86px !important;
  width: auto !important;
}

.login-logos img:last-child{
  height: 124px !important;
  max-height: 124px !important;
  width: auto !important;
}

/* Mantiene visible el texto de ayuda en portada */
.card-head .credential-help{
  color:#344054 !important;
  opacity:1 !important;
  font-size:17px !important;
  line-height:1.55 !important;
  font-weight:600 !important;
  margin:12px 0 0 !important;
  text-shadow:none !important;
}

@media(max-width:650px){
  .splash-logos{
    gap: 22px !important;
  }

  .splash-logos .police,
  .splash-logos img:first-child{
    height: 130px !important;
    max-height: 130px !important;
  }

  .splash-logos .interpol,
  .splash-logos img:last-child{
    height: 185px !important;
    max-height: 185px !important;
  }

  .brand-logos img:first-child{
    height: 42px !important;
    max-height: 42px !important;
  }

  .brand-logos img:last-child{
    height: 58px !important;
    max-height: 58px !important;
  }

  .profile-logos img:first-child{
    height: 68px !important;
    max-height: 68px !important;
  }

  .profile-logos img:last-child{
    height: 94px !important;
    max-height: 94px !important;
  }
}
