/* ============================================================================
 *  Asistencia de Obra — assets/css/style.css
 *  Hoja de estilos maestra. Variables, layout y componentes según
 *  diseno-asistencia.md. Mobile-first. Fase 2.
 * ========================================================================= */

/* ----------------------------------------------------------------------
 * 1) TIPOGRAFÍA LOCAL — Plus Jakarta Sans (variable font, 400 a 800)
 *    Los dos archivos cubren "latin" y "latin-ext" (acentos y ñ del
 *    español). Se sirven locales para que funcione sin internet (PWA).
 * ------------------------------------------------------------------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------------
 * 2) TOKENS DE COLOR — TEMA CLARO (diseno-asistencia.md §3)
 * ------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  /* Marca */
  --primario:        #2563EB;
  --primario-oscuro: #1D4ED8;
  --primario-claro:  #DBEAFE;
  --accion:          #14B8A6;
  --accion-oscuro:   #0D9488;
  --accion-claro:    #CCFBF1;

  /* Menú lateral */
  --sidebar:          #1B2540;
  --sidebar-hover:    #26314F;
  --sidebar-texto:    #AEB8CE;
  --sidebar-seccion:  #6B7A99;

  /* Apoyo */
  --morado: #8B5CF6;
  --naranja: #F59E0B;
  --rojo: #EF4444;
  --verde: #22C55E;

  /* Fondos, bordes, textos */
  --fondo: #F5F7FB;
  --fondo-movil-1: #EEF4FD;
  --fondo-movil-2: #F7FAFF;
  --tarjeta: #FFFFFF;
  --borde: #E6EAF2;
  --texto: #0F172A;
  --texto-2: #475569;
  --texto-3: #94A3B8;

  --sombra-tarjeta: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.06);
}

/* ----------------------------------------------------------------------
 * 3) TOKENS DE COLOR — TEMA OSCURO (diseno-asistencia.md §12)
 * ------------------------------------------------------------------- */
[data-theme="dark"] {
  --fondo: #0F172A;
  --tarjeta: #1E293B;
  --borde: #334155;
  --texto: #E2E8F0;
  --texto-2: #94A3B8;
  --texto-3: #64748B;
  --sombra-tarjeta: 0 1px 3px rgba(0,0,0,.4);
  /* El menú lateral y los colores de acento no cambian en modo oscuro. */
}

/* ----------------------------------------------------------------------
 * 4) RESET Y BASE
 * ------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .2s ease, color .2s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--borde); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--texto-3); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--accion); outline-offset: 2px; }

[x-cloak] { display: none !important; }

[data-theme="light"] .icono-claro { display: none; }
[data-theme="dark"] .icono-oscuro { display: none; }

.num { font-variant-numeric: tabular-nums; }

@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes entrada { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ----------------------------------------------------------------------
 * 5) TIPOGRAFÍA — Escala (diseno-asistencia.md §4)
 * ------------------------------------------------------------------- */
.txt-saludo       { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.txt-titulo-pagina { font-size: 24px; font-weight: 700; letter-spacing: -.3px; margin: 0; }
.txt-valor-indicador { font-size: 28px; font-weight: 800; }
.txt-titulo-tarjeta { font-size: 16px; font-weight: 700; }
.txt-normal { font-size: 14px; font-weight: 500; }
.txt-etiqueta { font-size: 12px; font-weight: 600; }
.txt-secundario { color: var(--texto-2); }
.txt-terciario { color: var(--texto-3); }

/* ----------------------------------------------------------------------
 * 6) LAYOUT MAESTRO (app-shell)
 * ------------------------------------------------------------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
}

.main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: entrada .25s ease;
  padding-bottom: 96px; /* espacio para la barra inferior en celular */
}

@media (min-width: 768px) {
  .content { padding: 22px; padding-bottom: 22px; }
}

.app-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 190;
}
.app-backdrop.show { opacity: 1; pointer-events: auto; }
@media (min-width: 768px) { .app-backdrop { display: none; } }

/* ----------------------------------------------------------------------
 * 7) SIDEBAR — 260px computadora / 76px tablet / off-canvas celular
 * ------------------------------------------------------------------- */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
  transition: width .18s ease;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  white-space: nowrap;
}
.sb-logo {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accion), var(--accion-oscuro));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(13,202,168,.35);
}
.sb-logo svg, .sb-logo i { color: #fff; width: 22px; height: 22px; }
.sb-name { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.sb-tag  { color: var(--accion); font-weight: 700; font-size: 12px; }

.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 24px; }
.sb-sec {
  padding: 16px 12px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sidebar-seccion);
  white-space: nowrap;
}
.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 10px;
  color: var(--sidebar-texto);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.sb-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.sb-link:hover { background: var(--sidebar-hover); color: #fff; }
.sb-link.active {
  background: var(--sidebar-hover);
  color: #fff;
  border-left-color: var(--accion);
}

/* Tablet: sidebar reducido a íconos, expandible */
@media (min-width: 768px) and (max-width: 1199px) {
  .sidebar:not(.is-expanded) { width: 76px; }
  .sidebar:not(.is-expanded) .sb-name,
  .sidebar:not(.is-expanded) .sb-tag,
  .sidebar:not(.is-expanded) .sb-sec,
  .sidebar:not(.is-expanded) .sb-link-label { display: none; }
  .sidebar:not(.is-expanded) .sb-link { justify-content: center; }
  .sidebar.is-expanded { position: absolute; box-shadow: 0 20px 50px rgba(15,23,42,.35); }
}

/* Celular: sidebar en panel deslizable (off-canvas) */
@media (max-width: 767px) {
  .sidebar {
    position: fixed; left: 0; top: 0; width: 280px;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0,0,0,.3);
    transition: transform .22s ease;
  }
  .sidebar.is-open { transform: translateX(0); }
}

.sb-toggle-rail {
  display: none;
  align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; border: none;
  background: var(--sidebar-hover); color: #fff; cursor: pointer; flex-shrink: 0;
}
.sb-toggle-rail svg { width: 15px; height: 15px; }
@media (min-width: 768px) and (max-width: 1199px) {
  .sb-toggle-rail { display: flex; }
}

.sb-close-mobile {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: var(--sidebar-hover); color: #fff; cursor: pointer; margin-left: auto;
}
.sb-close-mobile svg { width: 17px; height: 17px; }

/* ----------------------------------------------------------------------
 * 8) TOPBAR — 72px, blanca/tarjeta, sticky
 * ------------------------------------------------------------------- */
.topbar {
  height: 72px; flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: var(--tarjeta);
  border-bottom: 1px solid var(--borde);
  position: sticky; top: 0; z-index: 150;
}

.tb-burger {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: transparent; color: var(--texto); cursor: pointer;
}
.tb-burger:hover { background: var(--fondo); }
@media (min-width: 768px) { .tb-burger { display: none; } }

.tb-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--fondo); border: 1px solid var(--borde);
  border-radius: 999px; padding: 0 16px; height: 42px;
  flex: 1; max-width: 420px;
}
.tb-search input { border: none; background: transparent; outline: none; flex: 1; font-family: inherit; font-size: 13.5px; color: var(--texto); }
.tb-search svg { color: var(--texto-3); width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 639px) { .tb-search .tb-search-text { display: none; } }

.tb-spacer { flex: 1; }

.tb-obra-select {
  display: none;
  align-items: center; gap: 8px;
  border: 1px solid var(--borde); border-radius: 10px;
  padding: 0 12px; height: 40px; background: var(--tarjeta);
  font-size: 13px; font-weight: 600; color: var(--texto);
}
@media (min-width: 900px) { .tb-obra-select { display: flex; } }
.tb-obra-select select { border: none; background: transparent; outline: none; font-family: inherit; font-weight: 600; color: var(--texto); }

.btn-ponchar {
  display: flex; align-items: center; gap: 8px;
  background: var(--accion); color: #fff; border: none; border-radius: 10px;
  height: 40px; padding: 0 16px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  white-space: nowrap;
}
.btn-ponchar svg { width: 17px; height: 17px; }
.btn-ponchar:hover { background: var(--accion-oscuro); }
@media (max-width: 639px) { .btn-ponchar .btn-ponchar-texto { display: none; } .btn-ponchar { padding: 0 12px; } }

.tb-icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: transparent; color: var(--texto-2); cursor: pointer; flex-shrink: 0;
}
.tb-icon-btn svg { width: 19px; height: 19px; }
.tb-icon-btn:hover { background: var(--fondo); color: var(--texto); }
@media (max-width: 767px) { .tb-icon-btn.tb-hide-sm { display: none; } }

.tb-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--rojo); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--tarjeta);
}

.tb-divider { width: 1px; height: 28px; background: var(--borde); }
@media (max-width: 767px) { .tb-divider { display: none; } }

.tb-user { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.tb-user:hover { background: var(--fondo); }
.tb-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--morado), #6D28D9);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tb-user-info { line-height: 1.2; }
.tb-user-nombre { font-weight: 700; font-size: 13.5px; color: var(--texto); }
.tb-user-rol { font-size: 11.5px; color: var(--texto-2); text-transform: capitalize; }
@media (max-width: 767px) { .tb-user-info, .tb-user-chevron { display: none; } }

.tb-user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 12px;
  box-shadow: var(--sombra-tarjeta); padding: 8px; z-index: 300;
}
.tb-user-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--texto);
}
.tb-user-menu a:hover { background: var(--fondo); }
.tb-user-menu a.peligro { color: var(--rojo); }
.tb-user-menu hr { border: none; border-top: 1px solid var(--borde); margin: 6px 2px; }
.tb-user-menu svg { width: 16px; height: 16px; }

/* Franja de conexión (modo sin internet — se activa en la Fase 11) */
.franja-conexion {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px;
  background: #FEF7E6; color: #B45309; border-bottom: 1px solid #FCE3B0;
  cursor: pointer;
}
.franja-conexion::after { content: '· Tocar para reintentar'; font-weight: 600; opacity: .75; }
.franja-conexion.ok::after { content: ''; }
.franja-conexion.mostrar { display: flex; }
.franja-conexion.ok { background: #ECFDF5; color: #047857; border-bottom-color: #A7F3D0; }

/* ----------------------------------------------------------------------
 * 9) BARRA INFERIOR (celular) — 5 íconos
 * ------------------------------------------------------------------- */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  background: var(--tarjeta); border-top: 1px solid var(--borde);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  align-items: flex-end; justify-content: space-between;
}
@media (max-width: 767px) { .bottom-nav { display: flex; } }

.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; color: var(--texto-3); font-size: 10.5px; font-weight: 700;
  min-height: 44px; justify-content: center;
}
.bn-item svg { width: 21px; height: 21px; }
.bn-item.active { color: var(--primario); }

.bn-scan {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: -22px;
}
.bn-scan-circulo {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primario), var(--primario-oscuro));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(37,99,235,.4);
  border: 4px solid var(--tarjeta);
}
.bn-scan-circulo svg { width: 24px; height: 24px; color: #fff; }
.bn-scan span { font-size: 10.5px; font-weight: 700; color: var(--texto-3); }

/* ----------------------------------------------------------------------
 * 10) BOTONES
 * ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
@media (min-width: 768px) { .btn { height: 40px; } }

.btn-accion { background: var(--accion); color: #fff; }
.btn-accion:hover { background: var(--accion-oscuro); }

.btn-marca { background: var(--primario); color: #fff; }
.btn-marca:hover { background: var(--primario-oscuro); }

.btn-secundario { background: var(--tarjeta); color: var(--texto); border-color: var(--borde); }
.btn-secundario:hover { background: var(--fondo); }

.btn-peligro { background: #fff; color: var(--rojo); border-color: rgba(239,68,68,.35); }
.btn-peligro:hover { background: rgba(239,68,68,.08); }
.btn-peligro.lleno { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.btn-peligro.lleno:hover { background: #DC2626; }

.btn-bloque { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ----------------------------------------------------------------------
 * 11) TARJETAS
 * ------------------------------------------------------------------- */
.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 20px;
  box-shadow: var(--sombra-tarjeta);
  padding: 20px;
}
@media (min-width: 768px) { .tarjeta { border-radius: 16px; padding: 22px; } }

.grid-indicadores {
  display: grid; grid-template-columns: repeat(1, 1fr); gap: 14px;
}
@media (min-width: 640px) { .grid-indicadores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-indicadores { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.tarjeta-indicador { position: relative; }
.ti-cabecera { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.ti-icono {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ti-icono svg { width: 24px; height: 24px; }
.ti-pildora-mini {
  font-size: 11.5px; font-weight: 700; color: var(--texto-2);
  background: var(--fondo); border: 1px solid var(--borde);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.ti-valor { font-size: 28px; font-weight: 800; line-height: 1.1; }
.ti-etiqueta { font-size: 13px; font-weight: 700; color: var(--texto); margin-top: 4px; }
.ti-nota { font-size: 12px; color: var(--texto-3); margin-top: 2px; }

.bg-primario  { background: var(--primario); }
.bg-accion    { background: var(--accion); }
.bg-morado    { background: var(--morado); }
.bg-naranja   { background: var(--naranja); }
.bg-verde     { background: var(--verde); }
.bg-rojo      { background: var(--rojo); }

/* ----------------------------------------------------------------------
 * 12) PÍLDORAS DE ESTADO
 * ------------------------------------------------------------------- */
.pildora {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.pildora-presente  { background: var(--accion-claro); color: var(--accion-oscuro); }
.pildora-salio     { background: var(--primario-claro); color: var(--primario-oscuro); }
.pildora-sinsalida { background: #FEF3C7; color: #B45309; }
.pildora-noasistio { background: #F1F5F9; color: #64748B; }
.pildora-feriado   { background: #EDE9FE; color: #6D28D9; }
.pildora-fueradezona { background: #FEE2E2; color: #B91C1C; }
.pildora-anulado   { background: #F1F5F9; color: #94A3B8; text-decoration: line-through; }
.pildora-pagado    { background: #DCFCE7; color: #15803D; }
.pildora-pendiente { background: #FEF3C7; color: #B45309; }

/* ----------------------------------------------------------------------
 * 13) TABLAS
 * ------------------------------------------------------------------- */
.tabla-envoltorio { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tabla thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--texto-3); background: var(--fondo);
  padding: 12px 14px; border-bottom: 1px solid var(--borde); white-space: nowrap;
}
table.tabla tbody td {
  padding: 12px 14px; border-bottom: 1px solid var(--borde);
  color: var(--texto); height: 56px; vertical-align: middle;
}
table.tabla tbody tr:hover { background: var(--fondo); }
table.tabla tbody tr:last-child td { border-bottom: none; }
.tabla-vacia { text-align: center; padding: 40px 20px; color: var(--texto-3); font-size: 13.5px; }

/* ----------------------------------------------------------------------
 * 14) ALERTAS / BANNERS
 * ------------------------------------------------------------------- */
.banner-alerta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #FEF7E6; border: 1px solid #FCE3B0; color: #92400E;
  border-radius: 14px; padding: 14px 18px;
}
.banner-alerta svg { color: var(--naranja); width: 22px; height: 22px; flex-shrink: 0; }
.banner-alerta-texto { flex: 1; font-size: 13.5px; font-weight: 600; min-width: 180px; }
.banner-alerta .btn { height: 36px; padding: 0 14px; font-size: 13px; background: var(--naranja); color: #fff; }
.banner-alerta .btn:hover { background: #D97706; }

/* ----------------------------------------------------------------------
 * 15) FORMULARIOS (base — se amplía en fases con datos)
 * ------------------------------------------------------------------- */
.campo-grupo { display: flex; flex-direction: column; gap: 6px; }
.campo-grupo label { font-size: 12.5px; font-weight: 700; color: var(--texto); }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--borde); border-radius: 12px;
  background: var(--tarjeta); color: var(--texto);
  height: 44px; padding: 0 14px; font-family: inherit; font-size: 14px; outline: none;
}
textarea.input { height: auto; padding: 10px 14px; resize: vertical; min-height: 88px; }
.input:focus { border-color: var(--accion); }
@media (min-width: 768px) { .input, select.input, textarea.input { height: 40px; } textarea.input { height: auto; } }

/* ----------------------------------------------------------------------
 * 16) UTILIDADES
 * ------------------------------------------------------------------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.oculto-sm { display: none; }
@media (min-width: 768px) { .oculto-sm { display: initial; } .solo-sm { display: none !important; } }
.mono { font-variant-numeric: tabular-nums; }
.texto-verde { color: var(--verde); }
.texto-rojo { color: var(--rojo); }
.texto-accion { color: var(--accion); }
.texto-primario { color: var(--primario); }

/* ----------------------------------------------------------------------
 * 17) PIE DE PÁGINA
 * ------------------------------------------------------------------- */
.footer {
  text-align: center; padding: 18px 20px 24px;
  font-size: 12px; color: var(--texto-3);
}
