/* plataforma/acceso.css — Pantallas propias de la plataforma: entrar (Google o correo), elegir curso, cargando, y el menú de
   cursos que abre la bandera del logo. Usa los colores de la app (estilos.css) cuando ya están cargados y, antes, los suyos. */
.acceso {
  --ac-bg: #f3f4f9; --ac-surface: #fff; --ac-ink: #141726; --ac-muted: #586079; --ac-line: #dfe2ec; --ac-accent: #4a43dc; --ac-accent-ink: #fff; --ac-bad: #c42e3a; --ac-ok: #13804f;
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px 16px; box-sizing: border-box;
  background: radial-gradient(120% 80% at 50% 0%, #e6e5ff 0%, var(--ac-bg) 60%); color: var(--ac-ink);
  font: 16px/1.45 "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  .acceso { --ac-bg: #0b0d15; --ac-surface: #141724; --ac-ink: #eceef7; --ac-muted: #a0a6c0; --ac-line: #2a2f45; --ac-accent: #8f8bff; --ac-accent-ink: #0b0d15; --ac-bad: #ff6b74; --ac-ok: #4fd19a;
    background: radial-gradient(120% 80% at 50% 0%, #24224b 0%, var(--ac-bg) 60%); color-scheme: dark; }
}
.acceso-caja { box-sizing: border-box; min-width: 0; width: min(420px, 100%); background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: 22px; padding: 28px 22px 22px;
  box-shadow: 0 14px 40px rgba(20, 23, 38, .12); text-align: center; display: grid; gap: 14px; }
.acceso-marca { margin: 0; font: 800 2.1rem/1 "Unbounded", "Arial Black", system-ui, sans-serif; letter-spacing: -.03em; }
.acceso-banderas { display: flex; justify-content: center; gap: 10px; color: var(--ac-ink); }
.acceso-banderas .bandera-suelta { width: 44px; height: auto; }
.acceso-lema, .acceso-nota { margin: 0; color: var(--ac-muted); }
.acceso-nota { font-size: .88rem; }
.acceso-titulo { margin: 4px 0 0; font: 700 1.25rem/1.2 "Unbounded", system-ui, sans-serif; }
.acceso-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 16px; border-radius: 14px;
  border: 0; background: var(--ac-accent); color: var(--ac-accent-ink); font: 700 1rem/1.2 "Atkinson Hyperlegible", system-ui, sans-serif; cursor: pointer; }
.acceso-btn:disabled { opacity: .6; cursor: default; }
.acceso-btn:focus-visible, .acceso-curso:focus-visible, .acceso-correo summary:focus-visible { outline: 3px solid var(--ac-accent); outline-offset: 2px; }
.acceso-google { background: #fff; color: #1f1f1f; border: 1px solid #c8ccd8; }
.ico-g { width: 22px; height: 22px; flex: none; }
.acceso-correo { text-align: left; }
.acceso-correo summary { cursor: pointer; color: var(--ac-accent); font-weight: 700; padding: 6px 2px; list-style-position: inside; }
.acceso-correo form { display: grid; gap: 8px; margin-top: 8px; }
.acceso-correo label { font-weight: 700; font-size: .9rem; }
.acceso-correo input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ac-line); background: transparent; color: inherit; font: inherit; }
.acceso-correo small { color: var(--ac-muted); }
.acceso-error { margin: 0; color: var(--ac-bad); font-weight: 700; }
.acceso-ok { margin: 0; color: var(--ac-ok); font-weight: 700; }
.acceso-cursos { display: grid; gap: 10px; }
.acceso-curso { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 16px; border: 1px solid var(--ac-line); background: transparent;
  color: inherit; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.acceso-curso:hover { border-color: var(--ac-accent); transform: translateY(-1px); }
.acceso-curso .bandera-suelta { width: 52px; height: auto; flex: none; }
.acceso-curso b { display: block; font-size: 1.05rem; }
.acceso-curso small { color: var(--ac-muted); }
.acceso-cargando { display: flex; align-items: center; gap: 10px; color: var(--ac-muted); font-weight: 700; }
.acceso .girando { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--ac-line); border-top-color: var(--ac-accent); animation: acceso-girar .8s linear infinite; display: inline-block; }
@keyframes acceso-girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acceso .girando { animation-duration: 2.4s; } .acceso-curso { transition: none; } }

/* Con la nube, la cuenta la da el inicio de sesión: no se escribe otro nombre en la bienvenida. */
body.en-nube [data-bv="volver"] { display: none !important; }

/* La bandera del logo es un botón (abre el menú de cursos). */
#bandera-curso { cursor: pointer; }
.boton-curso { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.boton-curso:focus-visible { position: fixed; z-index: 9001; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; border-radius: 12px;
  background: var(--accent, #4a43dc); color: var(--accent-ink, #fff); font: 700 .95rem/1.2 var(--f-body, system-ui), sans-serif; outline: 3px solid var(--ink, #141726); }
.menu-curso { position: fixed; z-index: 9000; min-width: 220px; padding: 8px; border-radius: 16px; background: var(--surface, #fff); color: var(--ink, #141726);
  border: 1px solid var(--line, #dfe2ec); box-shadow: var(--sombra-alta, 0 10px 30px rgba(20, 23, 38, .18)); display: grid; gap: 4px; }
.menu-curso-tit { margin: 4px 8px 6px; font-size: .8rem; font-weight: 700; color: var(--muted, #586079); text-transform: uppercase; letter-spacing: .04em; }
.menu-curso-op { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 0; background: transparent; color: inherit;
  font: 700 1rem/1.2 var(--f-body, system-ui), sans-serif; text-align: left; cursor: pointer; }
.menu-curso-op:hover, .menu-curso-op:focus-visible { background: var(--surface-2, #eaecf4); outline: none; }
.menu-curso-op.on { background: var(--accent-soft, #e6e5ff); }
.menu-curso-op .bandera-suelta { width: 40px; height: auto; flex: none; }
