*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:system-ui,sans-serif;}

header{background-color:#254a93;color:rgb(90, 62, 62);padding:10px 20px;}
.header-container{
  display:flex;
  align-items:center;
  max-width:1200px;
  margin:0 auto;
  gap:16px;
}

.logo{flex:0 0 auto;}
.logo img {
    width:75px !important;
    height:auto !important;
    max-width:75px !important;
    display:block;
}

nav{
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  gap:0;
}
nav a{
  display:flex;
  align-items:center;
  justify-content:center;

  text-decoration:none;
  color:white;
  padding:8px 11px;
  margin:0 12px;
  font-size:.82rem;
  font-weight:bold;
  text-transform:capitalize;
  white-space:nowrap;
  transition:background-color .3s ease;
  border-radius:3px;
}

nav a:hover{background-color:#14b549;}
nav a.activo{background-color:#14b549;}
nav a.activo:hover{background-color:#0fa040;}
nav a.bloqueado{color:rgba(255,255,255,.55);cursor:pointer;}
nav a.bloqueado:hover{background-color:rgba(255,255,255,.1);}
.lock-icon{
    display:inline-block;
    font-size:10px;
    margin-left:4px;
    line-height:1;
}

/* Área de sesión — tamaño fijo, siempre al final */
.session-area{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    padding-right:25px;
}
.btn-amarillo{
  background-color:#eaf12e;
  color:#1a1a1a;
  padding:9px 18px;
  font-size:14px;
  font-weight:bold;
  border:none;
  border-radius:5px;
  cursor:pointer;
  white-space:nowrap;
  transition:background-color .3s ease;
}
.btn-amarillo:hover{background-color:#d5d954;}

.user-badge{
    display:flex;
    align-items:center;
    gap:10px;
    max-width:180px;
    min-width:0;
    flex-shrink:1;
}

.user-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#eaf12e;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.user-avatar .dashicons{
    font-size:20px;
    width:20px;
    height:20px;
    color:#254a93;
    line-height:20px;
}
.user-name{
    color:#fff !important;
    font-family:inherit;
    font-size:.82rem;
    font-weight:600;
    line-height:1.2;
    display:block;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    max-width:130px;
}

/* Menú Hamburguesa */
.menu-icon{
  display:none;
  cursor:pointer;
  font-size:28px;
  color:white;
  flex-shrink:0;
}

/* Modal */
.modal-bg{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:99999;
  align-items:center;
  justify-content:center;
}
.modal-bg.show{display:flex;}

.modal-box{
  background:#fff;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  border-radius:10px;
  padding:32px 28px;
  max-width:360px;
  width:90%;
  text-align:center;
  box-shadow:0 8px 40px rgba(0,0,0,.2);
  animation:popIn .2s ease;
}

@keyframes popIn{
  from{
    transform:scale(.92);
    opacity:0;
  }
  to{
    transform:scale(1);
    opacity:1;
  }
}

.modal-icon{
  font-size:2.2rem;
  margin-bottom:10px;
}

.modal-box h3{
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:#254a93;
    font-size:1.2rem;
    font-weight:700;
    margin-bottom:8px;
    line-height:1.3;
}

.modal-box p{
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:#555;
    font-size:.9rem;
    line-height:1.6;
    margin-bottom:20px;
}

.modal-btns{
  display:flex;
  gap:10px;
  justify-content:center;
}

.btn-ok{
  background:#254a93;
  color:#fff;
  padding:9px 22px;
  border:none;
  border-radius:5px;
  font-size:14px;
  font-weight:bold;
  cursor:pointer;
  transition:background .2s;
}
.btn-ok:hover{background:#1a3570;}

.btn-cancel{
  background:#eee;
  color:#333;
  padding:9px 18px;
  border:none;
  border-radius:5px;
  font-size:14px;
  cursor:pointer;
}
.btn-cancel:hover{background:#ddd;}

/* Menú móvil */
.mobile-nav{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,.88);
  padding-top:60px;
  text-align:center;
  z-index:9999;
}

.mobile-nav a{
  display:block;
  padding:12px;
  font-size:1.1rem;
  color:white;
  text-decoration:none;
  text-transform:capitalize;
}

.mobile-nav a:hover{
  background-color:#14b549;
}

.mobile-nav a.bloqueado{
  color:rgba(255,255,255,.45);
}

.mobile-nav a.bloqueado:hover{
  background-color:rgba(255,255,255,.06);
}

.desktop-name{
    display:inline;
}

.mobile-name{
    display:none;
}

@media (max-width:900px){

  nav{
    display:none;
  }

  .menu-icon{
    display:block;
    flex-shrink:0;
    margin-left:12px;
  }

  .user-badge{
    max-width:150px;
  }

  .user-name{
    max-width:90px;
    font-size:.78rem;
  }

    .desktop-name{
        display:none;
    }

    .mobile-name{
        display:inline;
    }
}