html.stk-acceso-abierto {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.stk-acceso-panel,
.stk-acceso-pagina {
  --stk-acceso-texto: #152d42;
  --stk-acceso-secundario: #53697d;
  --stk-acceso-azul: #195b83;
  --stk-acceso-borde: #cbd7e1;
  color: var(--stk-acceso-texto);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.stk-acceso-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 500px);
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: -12px 0 36px rgb(14 29 44 / 16%);
  overflow: hidden;
}

.stk-acceso-panel:not([open]) { display: none; }

.stk-acceso-panel[open] {
  display: flex;
  flex-direction: column;
  animation: stk-acceso-entrada .23s ease-out both;
}

.stk-acceso-panel::backdrop {
  background: rgb(14 26 41 / 55%);
}

@keyframes stk-acceso-entrada {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.stk-acceso-barra {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: env(safe-area-inset-top, 0px) 18px 0 26px;
  background: #202d3c;
  color: #fff;
  font-size: 17px;
}

.stk-acceso-barra button,
.stk-acceso-clave button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.stk-acceso-barra button { font-size: 25px; }
.stk-acceso-barra button:hover { background: rgb(255 255 255 / 10%); }

.stk-acceso-cuerpo {
  flex: 1;
  min-height: 0;
  padding: 34px clamp(20px, 7vw, 42px) max(30px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.stk-acceso-pagina {
  padding: 40px 16px;
  background: #f1f5f8;
}

.stk-acceso-tarjeta {
  max-width: 500px;
  margin: 0 auto;
  padding: clamp(20px, 7vw, 40px);
  border: 1px solid #dfe8ef;
  border-radius: 14px;
  background: #fff;
}

.stk-acceso-formularios [hidden] { display: none !important; }

.stk-acceso-formularios h1 {
  margin: 0 0 8px;
  color: var(--stk-acceso-texto);
  font-family: inherit;
  font-size: clamp(23px, 5.6vw, 29px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-align: center;
  text-transform: none;
}

.stk-acceso-intro {
  margin: 0 0 24px;
  color: var(--stk-acceso-secundario);
  text-align: center;
}

.stk-acceso-formularios a {
  color: var(--stk-acceso-azul);
  font-weight: 700;
}

.stk-acceso-boton {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--stk-acceso-borde);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.stk-acceso-formularios .stk-acceso-google { color: var(--stk-acceso-texto); }
.stk-acceso-formularios .stk-acceso-google:hover { background: #f4f7fa; text-decoration: none; }
.stk-acceso-primario { border-color: var(--stk-acceso-azul); background: var(--stk-acceso-azul); color: #fff; }
.stk-acceso-primario:hover { background: #134a6d; }

.stk-acceso-separador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 17px;
  color: var(--stk-acceso-secundario);
  font-size: 13px;
}

.stk-acceso-separador::before,
.stk-acceso-separador::after {
  flex: 1;
  height: 1px;
  background: #e1e8ee;
  content: '';
}

.stk-acceso-campo { margin-bottom: 14px; }
.stk-acceso-campo label { display: block; margin: 0 0 5px; font-weight: 700; }
.stk-acceso-campo input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--stk-acceso-borde);
  border-radius: 8px;
  background: #fff;
  color: var(--stk-acceso-texto);
  font: inherit;
  font-size: 16px;
}

.stk-acceso-clave { position: relative; }
.stk-acceso-clave input { padding-right: 47px; }
.stk-acceso-clave button {
  position: absolute;
  top: 1px;
  right: 1px;
  color: var(--stk-acceso-secundario);
}

.stk-acceso-terminos { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.stk-acceso-terminos input { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.stk-acceso-error { margin: 0 0 12px; color: #a82735; }

.stk-acceso-recuperar,
.stk-acceso-alternativa {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

.stk-acceso-alternativa {
  padding-top: 16px;
  border-top: 1px solid #e1e8ee;
  color: var(--stk-acceso-secundario);
}

.stk-acceso-formularios :focus-visible,
.stk-acceso-barra button:focus-visible {
  outline: 2px solid #3e8fc4;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .stk-acceso-panel { width: 100%; }
  .stk-acceso-cuerpo { padding: 24px 20px max(24px, env(safe-area-inset-bottom, 0px)); }
  .stk-acceso-pagina { padding: 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .stk-acceso-panel[open] { animation: none; }
}
