/* Estilos propios de las plantillas de la base. La libreria de diseno del equipo
   (static/libreria-ui/) se carga antes: fuente, fondo, colores y tema vienen de ella.
   Aqui solo se usan sus tokens (--ink, --surface, --sep, --ds-brand...), nunca colores fijos. */
html { font-size: 16px; }
body { line-height: 1.5; }

/* Cabecera: marca a la izquierda y enlaces a la derecha; en movil los enlaces bajan a una
   segunda fila con desplazamiento horizontal, sin salirse de la pantalla. */
.barra { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .75rem max(1rem, env(safe-area-inset-left)); background: var(--material, var(--surface)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--sep); }
.barra nav { display: flex; align-items: center; gap: .25rem; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.barra nav::-webkit-scrollbar { display: none; }
.barra nav a, .barra nav button.enlace { flex: none; padding: .5rem .75rem; border-radius: .5rem; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.barra nav a:hover, .barra nav button.enlace:hover { color: var(--ink); background: var(--ds-brand-soft); }
.marca { flex: none; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
@media (max-width: 40rem) {
  .barra nav { order: 2; flex-basis: 100%; margin: 0 -.75rem; }
}

.contenedor { max-width: 40rem; margin: 2rem auto; padding: 0 1rem; color: var(--ink); }
label { display: block; margin-bottom: 1rem; font-weight: 600; }
label.casilla { font-weight: 400; }
input[type=text], input[type=email], input[type=password], select { display: block; width: 100%; box-sizing: border-box; min-height: 2.75rem; padding: .5rem .75rem; margin-top: .25rem; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--sep); border-radius: .5rem; }
button, .boton { font: inherit; font-weight: 600; min-height: 2.75rem; padding: .5rem 1rem; border: 0; border-radius: .5rem; background: var(--ds-brand); color: var(--on-brand); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .boton:hover { background: var(--ds-brand-pressed); }
/* Boton con aspecto de enlace (p. ej. Salir dentro de un formulario POST). */
button.enlace { min-height: 0; background: none; color: var(--link); padding: 0; }
button.enlace:hover { background: none; text-decoration: underline; }
.en-linea { display: inline; margin: 0; }
.en-linea select { display: inline-block; width: auto; }
.error { color: var(--bad); background: var(--bad-soft, transparent); padding: .5rem .75rem; border-radius: .5rem; }
.aviso { color: var(--ok); background: var(--ok-soft); padding: .5rem .75rem; border-radius: .5rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--sep); }
.codigos { columns: 2; list-style: none; padding: 0; }
.qr svg { width: 12rem; height: 12rem; background: #fff; padding: .5rem; border-radius: .5rem; }
.notificaciones { list-style: none; padding: 0; }
.notificaciones li { padding: .5rem 0; border-bottom: 1px solid var(--sep); }
