/* SVP Grisi — hoja de estilos
   Paleta tomada del sello de Grisi: azul institucional sobre fondos claros.
   Motivo distintivo: el sello circular (anillo azul) del logotipo. */

:root {
  --azul: #0055b8;
  --azul-hover: #00479b;
  --azul-hondo: #0a2c66;
  --azul-claro: #e6effa;
  --azul-linea: #b9cff0;
  --fondo: #f3f6fa;
  --superficie: #ffffff;
  --tinta: #14213d;
  --gris: #5b6475;
  --gris-suave: #8a93a6;
  --borde: #dce3ee;
  --verde: #1f8a5b;
  --verde-claro: #e3f4ec;
  --ambar: #9a5f07;
  --ambar-claro: #fdf1dc;
  --rojo: #b4233c;
  --rojo-claro: #fbe7ea;

  --radio: 10px;
  --radio-chico: 7px;
  --sombra: 0 1px 2px rgba(10, 44, 102, 0.06), 0 2px 8px rgba(10, 44, 102, 0.05);
  --fuente: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --barra: 248px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--fondo);
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 .75em; }

:focus-visible { outline: 3px solid var(--azul-linea); outline-offset: 2px; border-radius: 4px; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sello (logotipo en anillo) ---------- */

.sello {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--azul), 0 0 0 7px #fff, 0 0 0 9px var(--azul-linea);
}
.sello img { width: 74%; height: auto; }
.sello--grande { width: 132px; height: 132px; box-shadow: 0 0 0 5px var(--azul), 0 0 0 12px #fff, 0 0 0 15px rgba(255,255,255,.35); }

/* ---------- Estructura del panel ---------- */

.panel { display: flex; min-height: 100vh; }

.barra {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--barra);
  background: var(--azul-hondo);
  color: #dbe6f7;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.barra__marca {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px 22px;
  color: #fff;
}
.barra__marca .sello { width: 48px; height: 48px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(255,255,255,.25); }
.barra__nombre { font-weight: 700; font-size: 16px; line-height: 1.15; }
.barra__nombre small { display: block; font-weight: 500; font-size: 12.5px; color: #a9bde0; }

.nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.nav__grupo { margin-top: 18px; }
.nav__titulo { padding: 0 12px 6px; font-size: 12.5px; color: #8fa6cf; font-weight: 600; }
.nav a, .nav .nav__pronto {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radio-chico);
  color: #dbe6f7;
  font-weight: 500;
}
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav a.activo { background: #fff; color: var(--azul-hondo); font-weight: 650; }
.nav a.activo .icon { color: var(--azul); }
.nav .nav__pronto { color: #7f95bf; cursor: default; }
.nav__etiqueta { margin-left: auto; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #9fb3d8; }

.barra__usuario {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.barra__usuario .avatar { background: #fff; color: var(--azul-hondo); }
.barra__usuario-nombre { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.25; }
.barra__usuario-rol { font-size: 12px; color: #a9bde0; }
.barra__salir { margin-left: auto; }
.barra__salir button { background: none; border: 0; color: #a9bde0; padding: 6px; border-radius: 6px; cursor: pointer; }
.barra__salir button:hover { color: #fff; background: rgba(255,255,255,.08); }

.contenido { flex: 1; margin-left: var(--barra); min-width: 0; }
.contenido__interior { max-width: 1180px; margin: 0 auto; padding: 32px 36px 56px; }

.movil-barra { display: none; }
.velo { display: none; }

/* ---------- Encabezado de página ---------- */

.encabezado { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.encabezado__texto p { margin: 6px 0 0; color: var(--gris); }
.miga { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gris); margin-bottom: 8px; }
.miga a { color: var(--gris); }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radio-chico);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn--primario { background: var(--azul); color: #fff; }
.btn--primario:hover { background: var(--azul-hover); }
.btn--secundario { background: #fff; color: var(--tinta); border-color: var(--borde); }
.btn--secundario:hover { border-color: var(--azul-linea); background: #fafcff; }
.btn--peligro { background: #fff; color: var(--rojo); border-color: #efc3cb; }
.btn--peligro:hover { background: var(--rojo-claro); }
.btn--chico { padding: 6px 11px; font-size: 13.5px; }
.btn--icono { padding: 7px; }
.btn--bloque { width: 100%; padding: 13px 16px; font-size: 16px; }

/* ---------- Paneles y tablas ---------- */

.caja { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); }
.caja__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--borde); }
.caja__cuerpo { padding: 20px; }
.caja + .caja { margin-top: 20px; }

.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--borde); }
.filtros .campo-busqueda { flex: 1 1 240px; }

.tabla-envoltura { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabla th { text-align: left; font-size: 13px; font-weight: 600; color: var(--gris); padding: 11px 16px; background: #f8fafd; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla td { padding: 12px 16px; border-bottom: 1px solid #edf1f7; vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover td { background: #fafcff; }
.tabla .acciones { text-align: right; white-space: nowrap; }
.tabla .acciones form { display: inline; }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla .secundario { display: block; font-size: 13px; color: var(--gris); }

.inactivo td { color: var(--gris-suave); }

.vacio { padding: 48px 20px; text-align: center; color: var(--gris); }
.vacio h3 { color: var(--tinta); margin-bottom: 6px; }

/* ---------- Etiquetas ---------- */

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #eef2f8; color: var(--gris); white-space: nowrap; }
.chip--azul { background: var(--azul-claro); color: var(--azul); }
.chip--verde { background: var(--verde-claro); color: var(--verde); }
.chip--ambar { background: var(--ambar-claro); color: var(--ambar); }
.chip--rojo { background: var(--rojo-claro); color: var(--rojo); }

.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-weight: 700; font-size: 13px; flex: none; }

.logo-mini { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borde); object-fit: contain; background: #fff; padding: 3px; }
.logo-mini--vacio { display: inline-grid; place-items: center; color: var(--gris-suave); background: #f6f8fb; }

.persona { display: flex; align-items: center; gap: 11px; }
.persona strong { font-weight: 600; }

/* ---------- Formularios ---------- */

.formulario { display: grid; gap: 18px; }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label, .etiqueta { font-weight: 600; font-size: 14px; }
.campo .ayuda { font-size: 13px; color: var(--gris); }
.campo .error { font-size: 13px; color: var(--rojo); font-weight: 500; }

.input, select.input, textarea.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd8e6;
  border-radius: var(--radio-chico);
  font: inherit;
  color: var(--tinta);
  background: #fff;
  min-height: 42px;
}
.input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-claro); }
.input.con-error { border-color: var(--rojo); }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.campo-busqueda { position: relative; }
.campo-busqueda .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--gris-suave); }
.campo-busqueda .input { padding-left: 36px; }

.casilla { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.casilla input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--azul); }

.pie-formulario { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }

.lista-definicion { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.lista-definicion dt { color: var(--gris); }
.lista-definicion dd { margin: 0; font-weight: 500; }

/* ---------- Avisos ---------- */

.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radio-chico); margin-bottom: 20px; font-weight: 500; }
.aviso--ok { background: var(--verde-claro); color: #166445; }
.aviso--error { background: var(--rojo-claro); color: #8d1a2f; }
.aviso--info { background: var(--azul-claro); color: #0b3f86; }

/* ---------- Inicio del administrador ---------- */

.resumen { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); }
.cifra { padding: 20px 22px; border-right: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.cifra:nth-child(3n) { border-right: 0; }
.cifra:nth-last-child(-n+3) { border-bottom: 0; }
.cifra__valor { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cifra__nombre { color: var(--gris); font-size: 14px; }
a.cifra { color: inherit; text-decoration: none; }
a.cifra:hover { background: #fafcff; }

.fases { list-style: none; margin: 0; padding: 6px 0; }
.fases li { display: flex; gap: 14px; align-items: center; padding: 12px 20px; }
.fases li + li { border-top: 1px solid #edf1f7; }
.fases__punto { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--azul-linea); flex: none; }
.fases__punto--listo { background: var(--verde); border-color: var(--verde); }
.fases__punto--actual { background: var(--azul); border-color: var(--azul); box-shadow: 0 0 0 4px var(--azul-claro); }
.fases__texto { flex: 1; }
.fases__texto span { display: block; font-size: 13px; color: var(--gris); }

.actividad { list-style: none; margin: 0; padding: 0; }
.actividad li { display: flex; gap: 12px; padding: 12px 20px; border-top: 1px solid #edf1f7; font-size: 14px; }
.actividad li:first-child { border-top: 0; }
.actividad time { margin-left: auto; color: var(--gris-suave); white-space: nowrap; font-size: 13px; }

/* ---------- Paginación ---------- */

.paginacion { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--borde); font-size: 14px; color: var(--gris); flex-wrap: wrap; }
.paginacion__botones { display: flex; gap: 6px; }

/* ---------- Acceso ---------- */

.acceso {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  background: var(--azul-hondo);
}
.acceso__lado {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  color: #fff;
  background:
    repeating-radial-gradient(circle at 22% 40%, rgba(255,255,255,0) 0 46px, rgba(255,255,255,.06) 46px 48px),
    radial-gradient(circle at 22% 40%, #0d3a85 0%, var(--azul-hondo) 70%);
}
.acceso__lado .sello { position: absolute; top: calc(40% - 66px); left: calc(22% - 66px); }
.acceso__lado h1 { font-size: 34px; max-width: 14ch; }
.acceso__lado p { color: #b8cae9; max-width: 42ch; margin-top: 12px; }
.acceso__forma { background: #fff; display: flex; align-items: center; padding: 48px; }
.acceso__forma > div { width: 100%; max-width: 380px; margin: 0 auto; }
.acceso__forma h2 { font-size: 24px; margin-bottom: 6px; }
.acceso__forma .intro { color: var(--gris); margin-bottom: 26px; }
.acceso__sello-movil { display: none; }

.contrasena { position: relative; }
.contrasena .input { padding-right: 46px; }
.contrasena button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: var(--gris); cursor: pointer; border-radius: 6px; }

/* ---------- Vista de campo ---------- */

.campo-app { min-height: 100vh; background: var(--fondo); }
.campo-app__barra { background: var(--azul-hondo); color: #fff; padding: 14px 18px 64px; }
.campo-app__fila { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto; }
.campo-app__fila .sello { width: 44px; height: 44px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(255,255,255,.25); }
.campo-app__fila form { margin-left: auto; }
.campo-app__fila button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.campo-app__saludo { max-width: 640px; margin: 22px auto 0; }
.campo-app__saludo h1 { font-size: 24px; }
.campo-app__saludo p { color: #b8cae9; margin: 4px 0 0; }
.campo-app__cuerpo { max-width: 640px; margin: -44px auto 0; padding: 0 16px 40px; display: grid; gap: 14px; }

.tarjeta-accion { display: flex; align-items: center; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; box-shadow: var(--sombra); color: var(--tinta); }
.tarjeta-accion__icono { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--azul-claro); color: var(--azul); flex: none; }
.tarjeta-accion__icono .icon { width: 24px; height: 24px; }
.tarjeta-accion h2 { font-size: 17px; }
.tarjeta-accion p { margin: 2px 0 0; color: var(--gris); font-size: 14px; }
.tarjeta-accion--pronto { opacity: .75; }
.tarjeta-accion .chip { margin-left: auto; }

.lista-tiendas { list-style: none; margin: 0; padding: 0; }
.lista-tiendas li { padding: 12px 18px; border-top: 1px solid #edf1f7; }
.lista-tiendas li:first-child { border-top: 0; }
.lista-tiendas span { display: block; color: var(--gris); font-size: 13.5px; }


/* ---------- Fase 2: concursos ---------- */

.separador { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--gris); font-size: 14px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--borde); }
.nota-pie { text-align: center; color: var(--gris); font-size: 14px; margin: 18px 0 0; }
.input--grande { font-size: 20px; letter-spacing: .04em; min-height: 52px; text-align: center; font-variant-numeric: tabular-nums; }

.casillas-columnas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; padding: 12px; border: 1px solid var(--borde); border-radius: var(--radio-chico); max-height: 280px; overflow-y: auto; }

.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 16px; }
.foto { display: flex; flex-direction: column; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; background: #fff; }
.foto__imagen { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9eef5; }
.foto__imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto__numero { position: absolute; left: 8px; top: 8px; background: rgba(10,44,102,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.foto__datos { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font-size: 13.5px; color: var(--gris); flex: 1; }
.foto__datos strong { color: var(--tinta); font-size: 14.5px; }
.foto__acciones { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px 14px; border-top: 1px solid #edf1f7; }

.estrellas { display: flex; gap: 2px; }
.estrella { background: none; border: 0; padding: 2px; font-size: 21px; line-height: 1; color: #cfd8e6; cursor: pointer; }
.estrella--llena { color: #e3a008; }
.estrella:hover { color: #f0b429; }

.zona-peligro { border-color: #efc3cb; }
.zona-peligro .caja__cabeza { border-bottom: 0; }

/* Captura en el celular */
.ubicacion { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra); }
.ubicacion[data-estado="buscando"] { color: var(--gris); }
.ubicacion[data-estado="buscando"] .icon { animation: latido 1.2s ease-in-out infinite; }
.ubicacion[data-estado="lista"] { color: var(--verde); background: var(--verde-claro); border-color: #bfe3d1; }
.ubicacion[data-estado="imprecisa"] { color: var(--ambar); background: var(--ambar-claro); border-color: #f1d9a8; }
.ubicacion[data-estado="error"] { color: var(--rojo); background: var(--rojo-claro); border-color: #efc3cb; }
@keyframes latido { 50% { opacity: .35; } }

.toma-foto { display: grid; place-items: center; gap: 10px; min-height: 190px; border: 2px dashed var(--azul-linea); border-radius: 14px; background: var(--azul-claro); color: var(--azul); font-weight: 700; font-size: 17px; cursor: pointer; overflow: hidden; text-align: center; padding: 10px; }
.toma-foto span { display: inline-flex; align-items: center; gap: 8px; }
.toma-foto .icon { width: 26px; height: 26px; }
.toma-foto img { max-width: 100%; max-height: 360px; border-radius: 10px; }
.toma-foto--lista { border-style: solid; background: #fff; font-size: 14px; font-weight: 600; }

.progreso { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.progreso__paso { width: 26px; height: 6px; border-radius: 999px; background: var(--borde); }
.progreso__paso--hecho { background: var(--verde); }
.progreso__texto { margin-left: 6px; font-size: 13px; color: var(--gris); }
a.tarjeta-accion { text-decoration: none; }
a.tarjeta-accion:hover { border-color: var(--azul-linea); }

.listo { display: flex; gap: 14px; align-items: center; }
.listo__icono { width: 48px; height: 48px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; flex: none; }
.listo__icono .icon { width: 26px; height: 26px; stroke-width: 3; }
.listo__foto { width: 100%; border-radius: 12px; border: 1px solid var(--borde); }

.pasos { margin: 0; padding-left: 22px; line-height: 1.8; }

@media (prefers-reduced-motion: reduce) {
  .ubicacion[data-estado="buscando"] .icon { animation: none; }
}


/* ---------- Fase 3: fotos periódicas ---------- */

.marcas { list-style: none; margin: 0; padding: 0; }
.marcas li + li { border-top: 1px solid #edf1f7; }
.marca { display: block; padding: 16px 18px; color: var(--tinta); text-decoration: none !important; }
.marca:hover { background: #fafcff; }
.marca__fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marca__fila strong { font-size: 17px; }
.marca__detalle { display: block; margin-top: 6px; font-size: 13.5px; color: var(--gris); }

.barra-avance { margin-top: 10px; height: 8px; border-radius: 999px; background: #e8edf5; overflow: hidden; }
.barra-avance span { display: block; height: 100%; border-radius: 999px; background: var(--verde); transition: width .3s ease; }

.interruptor { display: flex; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--borde); border-radius: 999px; box-shadow: var(--sombra); }
.interruptor a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px; color: var(--gris); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.interruptor a.activo { background: var(--azul); color: #fff; }

.lineas { list-style: none; margin: 0; padding: 0; }
.lineas li + li { border-top: 1px solid #edf1f7; }
.linea { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--tinta); text-decoration: none !important; min-height: 56px; }
.linea:hover { background: #fafcff; }
.linea__nombre { flex: 1; font-weight: 600; }

.conteo-fotos { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; box-shadow: var(--sombra); font-size: 14.5px; }
.conteo-fotos .ayuda { color: var(--gris); font-size: 13px; }

.fila-equipo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fila-equipo span { display: block; color: var(--gris); font-size: 13.5px; }

.foto__imagen--borrada { display: grid; place-items: center; color: var(--gris-suave); font-size: 13px; background: repeating-linear-gradient(45deg, #f1f4f9 0 10px, #e9eef5 10px 20px); }

.grupo-lineas { margin-top: 10px; }
.grupo-lineas > strong { display: block; margin-bottom: 6px; }


/* ---------- Fase 4: reportes ---------- */

.pestanas { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--borde); overflow-x: auto; }
.pestanas a { padding: 10px 14px; color: var(--gris); font-weight: 600; font-size: 14.5px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.pestanas a:hover { color: var(--tinta); }
.pestanas a.activo { color: var(--azul); border-bottom-color: var(--azul); }

.medidor { display: flex; align-items: center; gap: 10px; }
.medidor__barra { flex: 1; height: 8px; border-radius: 999px; background: #e8edf5; overflow: hidden; min-width: 90px; }
.medidor__barra span { display: block; height: 100%; border-radius: 999px; background: var(--verde); }
.medidor__barra span.medio { background: #d9a10b; }
.medidor__barra span.bajo { background: var(--rojo); }
.medidor strong { font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }

.grafica-columnas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 220px; align-items: end; padding-top: 22px; }
.grafica-columnas__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.grafica-columnas__barra { width: 100%; max-width: 64px; background: var(--azul); border-radius: 6px 6px 0 0; min-height: 0; }
.grafica-columnas__valor { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.grafica-columnas__etiqueta { font-size: 12.5px; color: var(--gris); white-space: nowrap; }

.distribucion { display: flex; height: 18px; border-radius: 5px; overflow: hidden; background: #e8edf5; font-size: 11px; font-weight: 700; color: #fff; }
.distribucion span { display: grid; place-items: center; overflow: hidden; }
.distribucion__5 { background: #1f8a5b; } .distribucion__4 { background: #5fae6e; } .distribucion__3 { background: #d9a10b; }
.distribucion__2 { background: #e07a33; } .distribucion__1 { background: #b4233c; }

.barras-h { display: grid; gap: 10px; }
.barras-h__fila { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto 60px; gap: 12px; align-items: center; }
.barras-h__nombre { font-weight: 600; }
.barras-h__barra { height: 14px; background: #e8edf5; border-radius: 999px; overflow: hidden; }
.barras-h__barra span { display: block; height: 100%; background: var(--azul); border-radius: 999px; }
.barras-h__valor { font-variant-numeric: tabular-nums; white-space: nowrap; }
.barras-h__valor small { color: var(--gris); }
.barras-h__extra { color: var(--gris); font-size: 13.5px; text-align: right; }

.delta { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gris); }
.delta--sube { color: var(--verde); }
.delta--baja { color: var(--rojo); }

.tabla tfoot td { background: #f8fafd; border-top: 1px solid var(--borde); }

.resumen-equipo { display: flex; flex-wrap: wrap; gap: 28px; border-bottom: 1px solid var(--borde); }
.resumen-equipo > div { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.resumen-equipo .ayuda { color: var(--gris); font-size: 13px; }
.resumen-equipo strong { font-size: 18px; }

@media (max-width: 900px) {
  .barras-h__fila { grid-template-columns: 1fr auto; }
  .barras-h__barra { grid-column: 1 / -1; order: 3; }
  .barras-h__extra { display: none; }
  .grafica-columnas { gap: 6px; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1080px) {
  .resumen { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .barra { transform: translateX(-100%); transition: transform .2s ease; }
  .panel.menu-abierto .barra { transform: none; }
  .panel.menu-abierto .velo { display: block; position: fixed; inset: 0; background: rgba(10,44,102,.45); z-index: 30; }
  .contenido { margin-left: 0; }
  .movil-barra { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--azul-hondo); color: #fff; position: sticky; top: 0; z-index: 20; }
  .movil-barra button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .movil-barra .sello { width: 34px; height: 34px; box-shadow: 0 0 0 2px #fff; }
  .contenido__interior { padding: 22px 16px 48px; }
  .rejilla { grid-template-columns: 1fr; }
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .cifra:nth-child(n) { border-right: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
  .cifra:nth-child(2n) { border-right: 0; }
  .acceso { grid-template-columns: 1fr; }
  .acceso__lado { display: none; }
  .acceso__forma { padding: 32px 22px; align-items: flex-start; }
  .acceso__sello-movil { display: flex; justify-content: center; margin: 18px 0 30px; }
  .tabla .ocultar-movil { display: none; }
}

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