/* Pantalla de acceso de Vision English.
   Vive en su propio archivo para no cruzarse con styles.css. */

.acceso-fondo {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(140deg, #4c1d95 0%, #7439f6 55%, #a855f7 100%);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.acceso-fondo[hidden] { display: none; }

/* Mientras no se sepa quién entra, la app no se muestra. */
body.acceso-comprobando .app-shell,
body.acceso-bloqueado .app-shell { visibility: hidden; }

.acceso-tarjeta {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.acceso-logo {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.acceso-titulo {
  margin: 0 0 6px;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e1b3a;
  text-align: center;
}

.acceso-subtitulo {
  margin: 0 0 26px;
  font-size: .93rem;
  color: #6b6b85;
  text-align: center;
}

.acceso-campo { margin-bottom: 15px; }

.acceso-campo label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #3f3d56;
}

.acceso-campo input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0dff0;
  border-radius: 11px;
  font-size: .97rem;
  color: #1e1b3a;
  background: #fbfaff;
  transition: border-color .15s, box-shadow .15s;
}

.acceso-campo input:focus {
  outline: none;
  border-color: #7439f6;
  box-shadow: 0 0 0 3px rgba(116, 57, 246, .16);
}

.acceso-boton {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 0;
  border-radius: 11px;
  background: #7439f6;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .08s;
}

.acceso-boton:hover:not(:disabled) { background: #6329e6; }
.acceso-boton:active:not(:disabled) { transform: translateY(1px); }
.acceso-boton:disabled { opacity: .6; cursor: progress; }

.acceso-cambio {
  margin: 20px 0 0;
  font-size: .88rem;
  color: #6b6b85;
  text-align: center;
}

.acceso-cambio button {
  border: 0;
  background: none;
  padding: 0;
  color: #7439f6;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.acceso-aviso {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fdeaea;
  border: 1px solid #f6c9c9;
  color: #a32020;
  font-size: .87rem;
  line-height: 1.4;
}

.acceso-aviso[hidden] { display: none; }
.acceso-aviso.exito { background: #eafaf0; border-color: #bfe8cf; color: #1c7a45; }

/* Botón de salir, que acceso.js añade a la barra lateral. */
.acceso-salir {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: inherit;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s, background .15s;
}

.acceso-salir:hover { opacity: 1; background: rgba(255, 255, 255, .13); }

@media (max-width: 480px) {
  .acceso-tarjeta { padding: 28px 22px 22px; }
  .acceso-titulo { font-size: 1.35rem; }
}

/* ── Selector de voz en la barra lateral ──────────────────────────────── */

.voz-selector {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}

.voz-etiqueta {
  display: block;
  margin-bottom: 7px;
  font-size: .76rem;
  font-weight: 700;
  opacity: .8;
}

.voz-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .18);
  color: inherit;
  font: inherit;
  font-size: .8rem;
}

.voz-probar {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: rgba(116, 57, 246, .3);
  color: inherit;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.voz-probar:hover { background: rgba(116, 57, 246, .45); }
.voz-probar.sonando { animation: vozPulso 1.1s ease-in-out infinite; }

@keyframes vozPulso {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.voz-info, .voz-vacio {
  margin: 7px 0 0;
  font-size: .71rem;
  opacity: .6;
  line-height: 1.4;
}
