/* Centro de Mando — hoja de estilos compartida.
   Paleta y decisiones de accesibilidad documentadas en
   docs/01-architecture/FASE6_DISENO_CENTRO_MANDO.md */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #faf8f5;
  color: #1a1a18;
}

a { color: #1a5fb4; }
a:hover { color: #154a8c; }

:focus-visible {
  outline: 3px solid #1a5fb4;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.pagina { min-height: 100vh; display: flex; flex-direction: column; }

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid #ddd8d0;
  background: #ffffff;
}

.cabecera-marca { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.cabecera-usuario { display: flex; align-items: center; gap: 20px; }

.enlace-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  margin: -10px -12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

main.contenido {
  flex: 1;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

h1 { margin: 0; font-size: 26px; }
h2 { margin: 0; font-size: 20px; }

.tarjeta {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #847e72;
  border-radius: 10px;
  padding: 28px;
}
.tarjeta:hover { border-color: #1a5fb4; }

.resumen-panel {
  background: #ffffff;
  border: 1px solid #847e72;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.barra-progreso-pista {
  height: 16px;
  background: #eeece7;
  border-radius: 8px;
  overflow: hidden;
}
.barra-progreso-relleno { height: 100%; background: #1f7a3d; }

.lista-elementos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.fila {
  background: #ffffff;
  border: 1px solid #847e72;
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.fila.actual { border-color: #1a5fb4; border-width: 2px; background: #f3f8fe; }

.estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.boton-primario {
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  background: #1a5fb4;
  border: none;
  border-radius: 6px;
  padding: 16px;
  min-height: 56px;
  cursor: pointer;
}

.boton-secundario {
  display: block;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  padding: 14px;
  border: 2px solid #847e72;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 17px; font-weight: 700; }
.campo input[type="text"], .campo input[type="password"] {
  font-size: 18px;
  padding: 14px 16px;
  border: 2px solid #847e72;
  border-radius: 6px;
  font-family: inherit;
  min-height: 52px;
}

.error-login {
  background: #fbe9e7;
  color: #7a1a12;
  border: 1px solid #b3261e;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
}
