/* Estilo unificado BALU (ESTILO_BALU_UNIFICADO.md, 12-nov-2026): patrón de Yakumi con colores de BALU.
   Copia por app (no hay librería compartida). Fuentes autoalojadas, SIL OFL: fuentes/OFL_*.txt */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('fuentes/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fuentes/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fuentes/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fuentes/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('fuentes/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('fuentes/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('fuentes/sora-latin-800-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --balu-negro: #141414; --balu-negro-2: #1F1F1F; --balu-rojo: #C01830; --balu-rojo-osc: #9E1328; --balu-rojo-claro: #FBE9EC;
  --fondo: #F1F5F9; --tarjeta: #FFFFFF; --texto: #1E293B; --texto-2: #64748B; --suave: #64748B; --borde: #CBD5E1;
  --borde-2: #E2E8F0; --cab-tabla: #F8FAFC; --ok: #15803D; --alerta: #B45309; --mal: #B91C1C;
  --primario: #141414; --acento: #C01830;
  --f-cuerpo: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-titulo: 'Sora', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sombra: 0 1px 3px rgba(0, 0, 0, .08);
}
body { font-family: var(--f-cuerpo); background: var(--fondo); color: var(--texto);
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, .titulo { font-family: var(--f-titulo); font-weight: 600; letter-spacing: -0.01em; }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--balu-rojo); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--balu-rojo); }

/* botones: primario rojo, secundario blanco con borde, peligroso */
.btn-rojo, button.btn-rojo { display: block; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px;
  background: var(--balu-rojo); color: #fff; font-weight: 600; font-size: 14px; text-align: center; text-decoration: none; cursor: pointer; }
.btn-rojo:hover { background: var(--balu-rojo-osc); }
.btn-rojo:disabled { opacity: .7; cursor: progress; }

/* ---- pantalla de inicio de sesión (patrón Yakumi, colores BALU) ---- */
body.en-login { background: linear-gradient(135deg, #141414 0%, #1F1F1F 55%, #2A0E14 100%); min-height: 100vh; }
body.en-login::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 40px 40px; }
.login-centro { position: relative; min-height: calc(100vh - 40px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; gap: 16px; }
.login-tarjeta { width: 100%; max-width: 28rem; background: #fff; color: var(--texto); border-radius: 16px; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .45); border: 0; padding: 0; }
.lt-cab { padding: 24px 24px 18px; text-align: center; border-bottom: 1px solid #F1F5F9; }
.lt-logo { display: block; width: 100%; max-width: 248px; height: auto; margin: 0 auto; }
.lt-sub { margin-top: 10px; color: var(--texto-2); font-size: 14px; font-weight: 600; }
.lt-cuerpo { padding: 28px 32px 32px; }
.lt-cuerpo h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--texto); }
.lt-cuerpo label { display: block; margin: 12px 0; font-size: 14px; font-weight: 500; color: #334155; }
.lt-cuerpo input { width: 100%; height: 44px; padding: 0 12px; margin-top: 6px; border: 1px solid var(--borde); border-radius: 8px;
  font-size: 15px; background: #fff; color: var(--texto); }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 46px; }
.ojo { position: absolute; right: 4px; bottom: 4px; width: 38px; height: 36px; border: 0; background: transparent; color: var(--texto-2);
  cursor: pointer; border-radius: 6px; padding: 0; display: flex; align-items: center; justify-content: center; }
.ojo:hover { color: var(--texto); background: #F1F5F9; }
.caja-error { display: flex; gap: 8px; align-items: flex-start; background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 12px 0; }
.caja-error::before { content: '⚠'; font-weight: 700; }
.caja-error:empty { display: none; }
.login-pie { color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: .04em; margin: 0; text-align: center; }
.girando::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
@media (max-width: 420px) { .lt-cuerpo { padding: 22px 20px 24px; } }
