/* ===== RESET ===== */
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif}
body{min-height:100vh;background:#087fa3;color:#fff}

/* ===== FONDO / PÁGINA ===== */
.page{
  min-height:100vh;
  background:linear-gradient(90deg,#073b80 0%,#07598e 25%,#08799c 48%,#0795aa 72%,#08bbc9 100%);
  border-top:1px solid rgba(255,255,255,.45)
}

/* ===== BOTÓN CERRAR ===== */
.close-btn{
  position:absolute;top:13px;right:64px;width:46px;height:46px;
  border:0;background:transparent;color:#fff;font-size:40px;
  cursor:pointer;
}

/* ===== CONTENEDOR CENTRAL ===== */
.center-wrap{width:530px;margin:0 auto;padding-top:17px;text-align:center}
.center-wrap>img{display:block;margin:0 auto}

/* ===== PESTAÑAS (centrado perfecto, sin subrayado) ===== */
.tabs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:29px;
  margin-bottom:42px;
  position:relative;
  z-index:50;
}

.tabs .tab,
.tabs a.tab,
.tabs button.tab{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:151px;
  height:60px;
  padding:0 25px;
  border:0 !important;
  border-radius:32px;
  background:transparent;
  color:#fff !important;
  font-family:Arial,Helvetica,sans-serif;
  font-size:18px;
  font-weight:600;
  line-height:60px !important;   /* centrado vertical perfecto */
  text-align:center;
  text-decoration:none !important;
  text-decoration-line:none !important;
  text-decoration-style:none !important;
  text-underline-offset:0 !important;
  border-bottom:0 !important;
  outline:none;
  cursor:pointer !important;
  pointer-events:auto !important;
  user-select:none;
  position:relative;
  z-index:51;
  transition:background .2s ease;
  -webkit-tap-highlight-color:transparent;
  vertical-align:middle;
  white-space:nowrap;
}

/* Quitar subrayado/color azul en TODOS los estados */
.tabs .tab:link,
.tabs .tab:visited,
.tabs .tab:hover,
.tabs .tab:active,
.tabs .tab:focus,
.tabs a.tab:link,
.tabs a.tab:visited,
.tabs a.tab:hover,
.tabs a.tab:active,
.tabs a.tab:focus{
  color:#fff !important;
  text-decoration:none !important;
  text-decoration-line:none !important;
  border-bottom:0 !important;
  outline:none;
  box-shadow:none;
}

/* Quitar pseudo-elementos raros */
.tabs a::before,
.tabs a::after,
.tabs .tab::before,
.tabs .tab::after{
  display:none !important;
  content:none !important;
}

/* Hover */
.tabs .tab:hover{
  background:rgba(255,255,255,.10);
}

/* Activo */
.tabs .tab.active{
  background:rgba(255,255,255,.18);
}
.tabs .tab.active:hover{
  background:rgba(255,255,255,.22);
}

/* Anchos específicos */
.tab:nth-child(2){min-width:175px}
.tab:nth-child(3){min-width:137px}

/* Icono externo */
.external{
  font-size:14px;
  margin-left:6px;
  display:inline-block;
  vertical-align:middle;
  line-height:1;
}

/* ===== PROMO CARD ===== */
.promo-card{
  width:497px;height:108px;margin:0 auto 15px;border-radius:22px;
  background:rgba(119,190,215,.48);
  display:flex;align-items:center;padding:0 27px;text-align:left;
  position:relative;
  z-index:1;
}
.promo-icon{position:relative;width:70px;height:64px;flex:0 0 70px}
.monitor{
  position:absolute;left:0;top:11px;width:65px;height:40px;
  border:2px solid #fff;border-radius:3px;
}
.monitor:before{
  content:"";position:absolute;left:29px;top:40px;width:2px;height:12px;background:#fff;
}
.monitor:after{
  content:"";position:absolute;left:18px;top:51px;width:24px;height:2px;background:#fff;
}
.plus-circle{
  position:absolute;right:1px;top:12px;width:28px;height:28px;
  border:2px solid #fff;border-radius:50%;
  text-align:center;line-height:24px;font-size:24px;background:#4799b6;
}
.promo-copy{margin-left:14px;line-height:1.08;font-size:14px}
.promo-copy strong,.promo-copy span{display:block}

/* ===== TÍTULO ===== */
h1{
  margin:10px 0 23px;font-size:39px;line-height:1.12;font-weight:300;
  position:relative;
  z-index:1;
}

/* ===== FORMULARIO ===== */
.login-form{width:276px;margin:0 auto;position:relative;z-index:1}
.login-form>input,
.password-wrap{width:276px;height:63px;margin-bottom:15px}
.login-form input{
  width:100%;height:100%;border:0;border-radius:4px;outline:none;
  background:#fff;color:#4d4d4d;padding:0 14px;font-size:17px;
}
.login-form input::placeholder{color:#c9c9c9}
.password-wrap{position:relative}
.password-wrap input{padding-right:47px}

/* ===== OJO CONTRASEÑA ===== */
.eye-btn{
  position:absolute;right:10px;top:10px;width:34px;height:36px;
  border:0;background:transparent;padding:0;
  cursor:pointer;
}
.eye-shape{
  position:absolute;left:5px;top:11px;width:22px;height:14px;
  border:2px solid #777;border-radius:50%;
}
.eye-shape:after{
  content:"";position:absolute;left:7px;top:3px;width:5px;height:5px;
  border:2px solid #777;border-radius:50%;
}
.eye-slash{
  position:absolute;left:4px;top:17px;width:26px;height:2px;
  background:#777;transform:rotate(43deg);
}
.eye-btn.showing .eye-slash{display:none}

/* ===== FOCO / INPUT FILLED ===== */
.login-form>input:focus,
.password-wrap:focus-within,
.login-form>input.filled,
.password-wrap.filled{
  box-shadow:inset 0 -2px 0 #ff9800;
}

/* ===== BOTÓN ACCEDER ===== */
.access-btn{
  width:276px;height:59px;margin-top:21px;
  border:0;border-radius:4px;
  background:#a7a7a9!important;color:#fff;
  font-size:17px;font-weight:600;
  cursor:pointer;
}
.access-btn:disabled{
  background:#a7a7a9!important;
  cursor:not-allowed;
}
.access-btn:not(:disabled){
  background:#ff9800!important;
  cursor:pointer;
}

/* ===== ENLACE OLVIDÉ ===== */
.forgot{
  display:inline-block;margin-top:10px;color:#fff;
  text-decoration:none;font-size:13px;cursor:pointer;
}

/* ===== ENLACES INFERIORES ===== */
.bottom-links{
  margin-top:23px;display:flex;justify-content:center;align-items:center;
  gap:20px;font-size:12px;
}
.separator{width:2px;height:24px;background:#fff}
.security{display:inline-flex;align-items:center;gap:9px}
.lock-circle{
  width:29px;height:29px;border:1px solid #fff;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
}

/* ===== MENSAJE ERROR ===== */
.error-message{min-height:20px;color:#ffe2d0;font-size:13px}

/* ===== PÁGINAS DE ESPERA / DASHBOARD ===== */
.waiting-page,.dashboard-page{
  min-height:100vh;display:grid;place-items:center;
  background:linear-gradient(135deg,#073b80,#08a9b8);padding:24px;
}
.waiting-card,.dashboard-card{
  width:min(94vw,520px);padding:48px 32px;border-radius:24px;
  background:rgba(255,255,255,.12);text-align:center;
}
.loader{
  width:58px;height:58px;margin:0 auto 26px;
  border:5px solid rgba(255,255,255,.28);border-top-color:#fff;
  border-radius:50%;animation:spin .9s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.waiting-card h1,.dashboard-card h1{font-size:30px;margin:0 0 14px}
.waiting-card p,.dashboard-card p{font-size:16px}
.request-badge{
  display:inline-block;margin-top:18px;padding:9px 15px;border-radius:20px;
  background:rgba(255,255,255,.16);font-size:13px;
}
.success-icon{
  width:62px;height:62px;margin:0 auto 20px;border-radius:50%;
  display:grid;place-items:center;background:#20b56a;font-size:34px;
}
.muted{opacity:.8}
.logout-btn{
  display:inline-block;margin-top:20px;padding:13px 25px;
  border-radius:6px;background:#ff9800;color:#fff;text-decoration:none;
  cursor:pointer;
}

/* ===== RESPONSIVE ===== */
@media(max-width:760px){
  .center-wrap{width:min(94vw,530px)}
  .close-btn{right:8px}
  .promo-card{width:min(94vw,497px)}
  .tabs{gap:5px}
  .tab{min-width:auto;padding:0 12px}
  .tab:nth-child(2){min-width:auto}
  .tab:nth-child(3){min-width:auto}
  h1{font-size:34px}
  .bottom-links{flex-wrap:wrap}
  .separator{display:none}
}

/* ===== Tamaño definitivo: los 3 campos son idénticos ===== */
.login-form > input,
.login-form > .password-wrap,
.login-form > .password-wrap > input {
  width: 276px !important;
  height: 63px !important;
  min-width: 276px !important;
  min-height: 63px !important;
  max-width: 276px !important;
  max-height: 63px !important;
}
.login-form > input,
.login-form > .password-wrap {
  margin-bottom: 15px;
}

/* ===== Mensaje de error: solo tras "Solicitar nuevamente" ===== */
.login-error{
  width:276px;
  margin:-8px auto 14px;
  color:#ff3b30;
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.15px;
  line-height:18px;
  text-align:left;
}

/* ===== Logo pantalla de espera ===== */
.waiting-logo{
  display:block;
  width:140px;
  max-width:70%;
  max-height:90px;
  object-fit:contain;
  margin:0 auto 24px;
}
.waiting-card h1{
  margin:0;
  font-size:24px;
  line-height:1.2;
  font-weight:400;
}

/* ===== CURSOR MANO EN TODO LO CLICKEABLE ===== */
button,
.tab,
.tabs .tab,
.tabs a.tab,
.access-btn,
.eye-btn,
.close-btn,
.forgot,
a,
.logout-btn{
  cursor:pointer;
}
button:disabled,
.access-btn:disabled{
  cursor:not-allowed;
}

/* ===== Z-INDEX PARA QUE NADA TAPE LAS PESTAÑAS ===== */
.promo-card,
.center-wrap h1,
.login-form{
  position:relative;
  z-index:1;
}
.tabs{
  position:relative;
  z-index:50;
}
.tabs .tab{
  position:relative;
  z-index:51;
  pointer-events:auto !important;
}

/* ===== REFUERZO FINAL: anti-subrayado y centrado ===== */
.tabs a,
.tabs a:link,
.tabs a:visited,
.tabs a:hover,
.tabs a:active,
.tabs a:focus{
  text-decoration:none !important;
  text-decoration-line:none !important;
  text-decoration-style:none !important;
  text-decoration-color:transparent !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  color:#fff !important;
}

.tabs a::before,
.tabs a::after,
.tabs .tab::before,
.tabs .tab::after{
  display:none !important;
  content:none !important;
}

.tabs{
  align-items:center !important;
}

/* ===== Evitar cualquier span interno desalineado ===== */
.tabs .tab > *,
.tabs .tab span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  vertical-align:middle;
}