:root{
  --pkw-navy:#111f39;
  --pkw-blue:#243a68;
  --pkw-card:#263865;
  --pkw-card-soft:rgba(38,56,101,.78);
  --pkw-border:rgba(255,255,255,.20);
  --pkw-text:#fff;
  --pkw-soft:rgba(255,255,255,.78);
  --pkw-accent:#160d6d;
  --pkw-accent-2:#0e7fb0;
  --pkw-danger:#c0392b;
  --shadow:0 24px 70px rgba(0,0,0,.38);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:"Segoe UI",Arial,sans-serif;
  color:var(--pkw-text);
  min-height:100vh;
  background:#081423;
}

a{
  color:inherit;
}

/* =========================
   LOGIN PARKWAY
========================= */

.login-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
  position:relative;
  overflow:hidden;
  background:#07152b;
}

/*
IMPORTANTE:
Esta clase debe usar solamente la imagen limpia del laboratorio.
No uses aquí una captura que ya tenga los logos Parkway, G&G, texto o formulario.
*/
.login-bg{
  position:fixed;
  inset:0;
  background-image:url("../img/bg-laboratorio.png");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  z-index:0;
  transform:scale(1.01);
}

.login-bg:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(5,13,29,.72),rgba(5,13,29,.88)),
    linear-gradient(90deg,rgba(2,13,31,.70),rgba(20,37,78,.46));
  z-index:1;
}

.login-shell{
  position:relative;
  z-index:2;
  width:min(980px,94vw);
  min-height:92vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  padding-top:28px;
}

.login-logos{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:70px;
  margin:6px 0 58px;
  flex-wrap:wrap;
}

.logo-pkw{
  height:66px;
  max-width:330px;
  object-fit:contain;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.logo-gg{
  height:96px;
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.login-title{
  font-weight:900;
  letter-spacing:.03em;
  font-size:clamp(1.65rem,3vw,2.35rem);
  line-height:1.05;
  text-transform:uppercase;
  text-shadow:0 8px 18px rgba(0,0,0,.34);
  margin-bottom:54px;
}

.login-card{
  width:min(380px,92vw);
  background:rgba(33,45,93,.82);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 20px 58px rgba(0,0,0,.38);
  border-radius:22px;
  padding:28px 24px 30px;
  text-align:left;
  backdrop-filter:blur(8px);
}

.login-card h1{
  text-align:center;
  font-size:2rem;
  letter-spacing:.04em;
  margin-bottom:24px;
}

.field{
  margin-bottom:17px;
}

.field label{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:#fff;
}

.field input{
  width:100%;
  height:49px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.55);
  background:#fff;
  color:#17223a;
  font-size:1rem;
  outline:none;
  border-radius:2px;
}

.field input:focus{
  border-color:#87ddff;
  box-shadow:0 0 0 3px rgba(135,221,255,.22);
}

.pass-row{
  display:flex;
}

.pass-row input{
  border-radius:2px 0 0 2px;
}

.show-btn{
  width:54px;
  border:0;
  background:#e9edf7;
  color:#12203b;
  font-weight:800;
  cursor:pointer;
  border-radius:0 2px 2px 0;
}

.remember{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:.95rem;
  color:#fff;
  margin:3px 0 28px;
}

.remember input{
  width:16px;
  height:16px;
}

.login-actions{
  display:flex;
  justify-content:center;
}

.primary-btn,
.btn{
  background:linear-gradient(180deg,#211390,#150d67);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  border-radius:4px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  padding:14px 28px;
  box-shadow:0 12px 26px rgba(11,7,71,.28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.primary-btn:hover,
.btn:hover{
  filter:brightness(1.13);
  transform:translateY(-1px);
}

.alert{
  background:rgba(202,50,50,.18);
  border:1px solid rgba(255,120,120,.4);
  color:#ffe7e7;
  padding:10px 12px;
  border-radius:10px;
  margin:0 0 16px;
  font-weight:700;
}

.success{
  background:rgba(43,160,86,.18);
  border-color:rgba(98,230,139,.42);
  color:#e8fff0;
}

/* =========================
   DASHBOARD PARKWAY
========================= */

.app-body{
  min-height:100vh;
  background:
    radial-gradient(circle at top left,rgba(18,148,189,.34),transparent 36%),
    linear-gradient(150deg,#05223d 0%,#04172b 55%,#031627 100%);
  padding:22px;
  color:#eef4fb;
}

.app-bg-grid{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.35;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:54px 54px;
  mask-image:radial-gradient(circle at center,black 45%,transparent 90%);
}

.wrapper{
  position:relative;
  z-index:1;
  width:min(1200px,96%);
  margin:0 auto;
}

.top-nav{
  background:linear-gradient(180deg,rgba(13,47,76,.95),rgba(11,38,62,.95));
  border:1px solid #28557e;
  border-radius:18px;
  padding:14px 20px;
  display:flex;
  align-items:center;
  gap:20px;
  justify-content:space-between;
  box-shadow:0 12px 26px rgba(0,0,0,.28);
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:230px;
}

.brand img.pkw{
  height:46px;
  width:auto;
  object-fit:contain;
}

.brand img.gg{
  height:52px;
  width:auto;
  object-fit:contain;
}

.menu-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  flex:1;
}

.menu-links a{
  text-decoration:none;
  color:#eef4fb;
  font-weight:700;
  font-size:.95rem;
  padding:9px 14px;
  border-radius:10px;
  border:1px solid transparent;
  transition:.2s;
}

.menu-links a:hover{
  background:#1b456b;
  border-color:#2f648f;
}

.right-zone{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.user-box{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #325d82;
  background:#163452;
  color:#b8c8d9;
  font-size:.92rem;
  white-space:nowrap;
}

.user-box strong{
  color:#fff;
}

.logout-btn{
  background:linear-gradient(180deg,#15a3cd,#1294bd);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:.92rem;
  border-radius:11px;
  padding:10px 16px;
  border:1px solid #2db7de;
}

.logout-btn:hover{
  background:#0f7ea1;
}

.hero{
  margin:28px 0 22px;
  padding:26px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  background:rgba(255,255,255,.05);
  box-shadow:0 16px 34px rgba(0,0,0,.22);
}

.hero h1{
  font-size:clamp(1.8rem,3vw,2.55rem);
  margin-bottom:8px;
}

.hero p{
  color:#b8c8d9;
  line-height:1.6;
  max-width:820px;
}

.items-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px;
}

.item-card:nth-child(1){
  grid-column:1 / span 2;
}

.item-card:nth-child(2){
  grid-column:3 / span 2;
}

.item-card:nth-child(3){
  grid-column:5 / span 2;
}

.item-card:nth-child(4){
  grid-column:1 / span 2;
}

.item-card:nth-child(5){
  grid-column:3 / span 2;
}

.item-card:nth-child(6){
  grid-column:5 / span 2;
}

.item-card{
  background:linear-gradient(180deg,#2b4e70,#213d59);
  border:1px solid #4f6d89;
  border-radius:16px;
  padding:18px;
  min-height:166px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow:0 10px 18px rgba(0,0,0,.2);
  transition:.28s;
}

.item-card:hover{
  transform:translateY(-8px);
  border-color:#6e91b2;
  box-shadow:0 16px 28px rgba(0,0,0,.30);
}

.item-inner{
  display:grid;
  justify-items:center;
  gap:10px;
}

.item-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  border:1px solid #2f8aad;
  background:#1d4c70;
  display:grid;
  place-items:center;
  font-size:1.35rem;
}

.item-card h3{
  font-size:1.28rem;
  color:#ecf5ff;
}

.item-card p{
  color:#b8c8d9;
  font-size:.94rem;
  line-height:1.35;
}

.item-link{
  display:inline-block;
  text-decoration:none;
  background:linear-gradient(180deg,#15a3cd,#1294bd);
  border:1px solid #2db7de;
  color:#fff;
  border-radius:11px;
  font-weight:800;
  font-size:1.02rem;
  padding:9px 18px;
  min-width:94px;
}

.bottom-action{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:22px;
}

/* =========================
   FORMULARIOS Y TABLAS
========================= */

.table-card,
.form-card{
  margin-top:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.15);
  border-radius:18px;
  padding:20px;
  overflow:auto;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:14px;
}

.form-grid .full{
  grid-column:1/-1;
}

.form-card input,
.form-card select{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.94);
  color:#14233d;
}

.form-card label{
  font-weight:700;
  margin-bottom:7px;
  display:block;
}

table{
  width:100%;
  border-collapse:collapse;
  color:#eef4fb;
}

th,
td{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.12);
  text-align:left;
}

th{
  color:#fff;
  background:rgba(255,255,255,.07);
}

.pill{
  padding:5px 9px;
  border-radius:999px;
  font-weight:800;
  font-size:.82rem;
  background:rgba(18,148,189,.20);
  border:1px solid rgba(18,148,189,.45);
}

.actions-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.small-btn{
  padding:7px 10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
}

.danger{
  background:rgba(192,57,43,.22);
  border-color:rgba(255,115,115,.42);
}

/* =========================
   PÁGINAS DE MÓDULOS
========================= */

.module-page{
  min-height:55vh;
  display:grid;
  place-items:center;
  text-align:center;
}

.module-box{
  max-width:760px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  padding:36px;
  box-shadow:0 18px 50px rgba(0,0,0,.24);
}

.module-box h1{
  margin-bottom:12px;
}

.module-box p{
  color:#b8c8d9;
  line-height:1.65;
  margin-bottom:22px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){
  .login-logos{
    gap:26px;
    margin-bottom:36px;
  }

  .logo-pkw{
    height:44px;
  }

  .logo-gg{
    height:72px;
  }

  .login-title{
    margin-bottom:34px;
  }

  .items-grid{
    grid-template-columns:1fr;
  }

  .item-card:nth-child(n){
    grid-column:auto;
  }

  .top-nav{
    justify-content:center;
  }

  .brand{
    justify-content:center;
  }

  .right-zone{
    justify-content:center;
  }

  .form-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .login-shell{
    padding-top:8px;
  }

  .login-card{
    padding:22px 18px;
  }

  .login-card h1{
    font-size:1.65rem;
  }

  .app-body{
    padding:14px;
  }

  .top-nav{
    padding:14px;
  }

  .menu-links a{
    width:100%;
    text-align:center;
  }
}

/* =========================
   RESPONSIVE DASHBOARD
   Celulares, tablets, iPad y Android
========================= */

/* Tablets grandes y iPad horizontal */
@media (max-width: 1180px){
  .wrapper{
    width:96%;
  }

  .top-nav{
    gap:16px;
  }

  .brand{
    min-width:auto;
  }

  .menu-links{
    order:3;
    width:100%;
    justify-content:center;
  }

  .items-grid{
    grid-template-columns:repeat(2, minmax(240px, 1fr));
  }

  .item-card:nth-child(n){
    grid-column:auto;
  }
}

/* Tablets verticales y pantallas medianas */
@media (max-width: 900px){
  .app-body{
    padding:16px;
  }

  .wrapper{
    width:100%;
  }

  .top-nav{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:16px;
  }

  .brand{
    width:100%;
    justify-content:center;
    gap:16px;
  }

  .brand img.pkw{
    height:42px;
  }

  .brand img.gg{
    height:48px;
  }

  .menu-links{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2, minmax(130px, 1fr));
    gap:10px;
  }

  .menu-links a{
    width:100%;
    text-align:center;
    padding:11px 12px;
  }

  .right-zone{
    width:100%;
    justify-content:center;
  }

  .hero{
    margin:22px 0 18px;
    padding:22px;
    text-align:center;
  }

  .hero h1{
    font-size:2rem;
  }

  .hero p{
    max-width:100%;
    font-size:.98rem;
  }

  .items-grid{
    grid-template-columns:repeat(2, minmax(220px, 1fr));
    gap:16px;
  }

  .item-card:nth-child(n){
    grid-column:auto;
  }

  .item-card{
    min-height:170px;
    padding:18px 16px;
  }

  .item-card h3{
    font-size:1.12rem;
  }

  .item-card p{
    font-size:.9rem;
  }

  .bottom-action{
    display:grid;
    grid-template-columns:repeat(2, minmax(180px, 1fr));
    gap:12px;
  }

  .bottom-action .item-link{
    width:100%;
    text-align:center;
  }
}

/* Celulares grandes */
@media (max-width: 680px){
  .app-body{
    padding:12px;
  }

  .top-nav{
    border-radius:16px;
  }

  .brand{
    flex-direction:column;
    gap:10px;
  }

  .brand img.pkw{
    height:40px;
    max-width:220px;
  }

  .brand img.gg{
    height:46px;
  }

  .menu-links{
    grid-template-columns:1fr;
  }

  .right-zone{
    flex-direction:column;
    gap:10px;
  }

  .user-box,
  .logout-btn{
    width:100%;
    text-align:center;
  }

  .hero{
    padding:20px 16px;
    border-radius:18px;
  }

  .hero h1{
    font-size:1.65rem;
  }

  .hero p{
    font-size:.94rem;
    line-height:1.55;
  }

  .items-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .item-card{
    min-height:auto;
    padding:20px 16px;
  }

  .item-inner{
    gap:9px;
  }

  .item-icon{
    width:44px;
    height:44px;
  }

  .item-card h3{
    font-size:1.12rem;
  }

  .item-card p{
    font-size:.9rem;
  }

  .item-link{
    width:100%;
    max-width:220px;
    text-align:center;
  }

  .bottom-action{
    grid-template-columns:1fr;
  }
}

/* Celulares pequeños */
@media (max-width: 420px){
  .app-body{
    padding:10px;
  }

  .top-nav{
    padding:14px 12px;
  }

  .brand img.pkw{
    height:34px;
    max-width:190px;
  }

  .brand img.gg{
    height:40px;
  }

  .hero h1{
    font-size:1.45rem;
  }

  .hero p{
    font-size:.9rem;
  }

  .item-card{
    border-radius:14px;
    padding:18px 14px;
  }

  .item-card h3{
    font-size:1.04rem;
  }

  .item-card p{
    font-size:.86rem;
  }

  .item-link{
    font-size:.95rem;
    padding:10px 14px;
  }
}
