/* Estilo del panel: se siente como una extension de HubSpot (identidad medida en la interfaz de HubSpot el 28-sep-2026,
   data/p7_identidad_hubspot.md): Lexend Deca 14 px peso 300 con interlineado de 24 px, texto #333333, fondo de pagina
   #F0F0F0 con areas de contenido blancas, barra superior #333333 de 44 px, boton primario #00494B en pildora,
   secundarios blancos con borde #8A8A8A en pildora, ligas #006162 subrayadas en peso 600, pestanas de 30 px con radio
   de 6 px y campos de 30 a 32 px. La marca es IDEABITAT: no se usan el logotipo, el nombre ni la fuente HubSpot Sans.
   Siempre en claro (tambien dentro del bloque de HubSpot, que es claro): sin modo oscuro automatico.
   Verde, ambar y rojo solo para las bandas Bien, Atencion y Alerta del P4 (5.5 de 23_Diseno), nunca para la tendencia
   ni para las series de las graficas. Lexend Deca (licencia OFL, fuentes/LICENSE-Lexend-Deca-OFL.txt) servida desde
   el mismo dominio (CSP font-src 'self'), latin y latin-ext por unicode-range. Sin estilos en linea ni imagenes data:
   (CSP img-src 'self'): las barras son SVG con atributos y la flecha de las listas desplegables son degradados. */

@font-face { font-family: "Lexend Deca"; font-style: normal; font-weight: 300; font-display: swap; src: url("fuentes/lexend-deca-latin-300-normal.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; }
@font-face { font-family: "Lexend Deca"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/lexend-deca-latin-400-normal.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; }
@font-face { font-family: "Lexend Deca"; font-style: normal; font-weight: 500; font-display: swap; src: url("fuentes/lexend-deca-latin-500-normal.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; }
@font-face { font-family: "Lexend Deca"; font-style: normal; font-weight: 600; font-display: swap; src: url("fuentes/lexend-deca-latin-600-normal.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; }
@font-face { font-family: "Lexend Deca"; font-style: normal; font-weight: 300; font-display: swap; src: url("fuentes/lexend-deca-latin-ext-300-normal.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: "Lexend Deca"; font-style: normal; font-weight: 400; font-display: swap; src: url("fuentes/lexend-deca-latin-ext-400-normal.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: "Lexend Deca"; font-style: normal; font-weight: 500; font-display: swap; src: url("fuentes/lexend-deca-latin-ext-500-normal.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: "Lexend Deca"; font-style: normal; font-weight: 600; font-display: swap; src: url("fuentes/lexend-deca-latin-ext-600-normal.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; }

:root {
  color-scheme: light;
  /* texto y superficies */
  --texto: #333333;
  --texto-suave: #545454;          /* 7.5:1 sobre blanco */
  --texto-tenue: #6b6b6b;          /* 4.7:1 sobre #F0F0F0 */
  --fondo: #f0f0f0;
  --superficie: #ffffff;
  --superficie-2: #f8f8f8;
  --caja: #f5f5f5;
  --linea: #dfdfdf;
  --linea-fuerte: #cbcbcb;
  --borde-control: #8a8a8a;
  --barra: #333333;
  --barra-texto-suave: #cfcfcf;
  /* acento: boton primario y ligas */
  --primario: #00494b;
  --primario-hover: #00696b;
  --primario-activo: #003638;
  --liga: #006162;
  --acento-suave: #e6f0f0;
  --acento-medio: #a9cbcb;
  --foco: #006162;
  --alerta-texto: #b3261e;
  /* bandas del P4: los unicos verde, ambar y rojo del panel */
  --bien: #2f8a4c;
  --atencion: #d4940f;
  --alerta: #c9372c;
  --banda-gris-1: #8a8a8a;
  --banda-gris-2: #b8b8b8;
  --banda-gris-3: #dddddd;
  /* series de las graficas (graficas.js): teal, azul acero, violeta apagado y gris azulado; sin verde, ambar ni rojo */
  --grafica-1: #00494b;
  --grafica-2: #5b8db8;
  --grafica-3: #8a6bb0;
  --grafica-4: #a9bcc9;
  --grafica-rejilla: #ebebeb;
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.05);
  --sombra-flotante: 0 8px 28px rgba(0, 0, 0, 0.18);
  --radio: 6px;
  --radio-caja: 8px;
  --pildora: 999px;
  --letra: "Lexend Deca", Helvetica, Arial, sans-serif;
  --letra-cifras: "Lexend Deca";
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--letra);
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
b, strong { font-weight: 600; }
code { font-family: var(--letra); font-weight: 400; }

/* Ligas como en HubSpot: #006162, subrayadas, peso 600 */
a { color: var(--liga); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primario); text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ barra superior */
.barra {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 24px;
  background: var(--barra);
  color: #fff;
}
.marca { display: flex; align-items: center; gap: 10px; flex: none; }
/* la marca de Ideabitat (el mismo dibujo que icono.svg): cuadro teal con la barra blanca, sin imagenes */
.marca::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(#fff, #fff) center / 4px 12px no-repeat, var(--primario);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.marca-nombre { font-weight: 600; font-size: 14px; letter-spacing: 0.14em; line-height: 20px; }
.marca-sub { padding-left: 10px; border-left: 1px solid #5e5e5e; color: var(--barra-texto-suave); font-size: 12px; line-height: 20px; }
.usuario { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; font-size: 12px; line-height: 18px; }
.usuario-nombre { font-weight: 400; }
.usuario-perfil { color: var(--barra-texto-suave); font-weight: 300; }
.barra :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------------------------ pestanas de vista (como las vistas de HubSpot) */
.subbarra { padding: 7px 24px; background: var(--superficie); border-bottom: 1px solid var(--linea); }
.pestanas { display: flex; flex-wrap: wrap; gap: 4px; }
.pestana, .hoja {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 1px 12px;
  color: var(--texto);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radio);
}
.pestana:hover, .hoja:hover { color: var(--texto); background: var(--caja); text-decoration: none; }
.pestana.activa, .hoja.activa { color: var(--primario); background: var(--acento-suave); border-color: var(--acento-medio); }

.contenido { max-width: 1440px; margin: 0 auto; padding: 20px 24px 56px; }

/* ------------------------------------------------------------------ botones y controles */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  margin-top: 12px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  color: #fff;
  background: var(--primario);
  border: 1px solid var(--primario);
  border-radius: var(--pildora);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.boton:hover { color: #fff; background: var(--primario-hover); border-color: var(--primario-hover); text-decoration: none; }
.boton:active { background: var(--primario-activo); border-color: var(--primario-activo); }
.boton:disabled { opacity: 0.55; cursor: progress; }
.boton.secundario {
  margin: 0;
  min-height: 30px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--texto);
  background: var(--superficie);
  border-color: var(--borde-control);
}
.boton.secundario:hover { color: var(--texto); background: var(--caja); border-color: var(--texto); }
.boton.secundario:active { background: #ebebeb; }
.barra .boton.secundario, .lateral-cabeza .boton.secundario { min-height: 28px; color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.6); }
.barra .boton.secundario:hover, .lateral-cabeza .boton.secundario:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
/* boton de texto (como "Filtros avanzados" de HubSpot): sin fondo ni borde, 12 px peso 600, pildora al pasar */
.boton-texto {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: var(--liga);
  background: none;
  border: 0;
  border-radius: var(--pildora);
  padding: 3px 8px;
  cursor: pointer;
}
.boton-texto:hover { background: var(--acento-suave); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .boton:focus-visible, .boton-texto:focus-visible,
.cifra-boton:focus-visible, .boton-parte:focus-visible, a:focus-visible, .ayuda:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 2px;
}

label { font-size: 12px; font-weight: 600; line-height: 18px; color: var(--texto); }
input, select, textarea {
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  min-height: 32px;
  padding: 5px 12px;
  color: var(--texto);
  background-color: var(--superficie);
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
}
input:hover, select:hover, textarea:hover { border-color: var(--texto); }
input:focus, select:focus, textarea:focus { border-color: var(--liga); }
input[readonly] { background-color: var(--superficie-2); }
textarea { width: 100%; max-width: 560px; min-height: 0; padding: 8px 12px; resize: vertical; }
input[type="checkbox"] { min-height: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--primario); }
/* listas desplegables y busqueda en pildora, como los filtros y la busqueda de HubSpot; la flecha son dos degradados */
select {
  appearance: none;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 32px 4px 14px;
  border-radius: var(--pildora);
  background-image: linear-gradient(45deg, transparent 50%, var(--texto) 50%), linear-gradient(135deg, var(--texto) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
input[type="search"] { min-height: 30px; padding: 4px 40px 4px 16px; border-radius: var(--pildora); }

/* ------------------------------------------------------------------ filtros globales */
.filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  padding: 12px 16px 14px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-caja);
}
.filtro { display: flex; flex-direction: column; gap: 4px; min-width: 104px; flex: 1 1 104px; max-width: 190px; }
.filtro-periodo { flex: 2 1 272px; max-width: 320px; min-width: 272px; }
.filtro-comparar { min-width: 160px; }
.filtro select { font-size: 13px; }
.rango { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.rango input { min-height: 30px; padding: 3px 10px; font-size: 12px; border-radius: var(--pildora); }
.filtros-acciones { display: flex; align-items: center; gap: 12px; margin-left: auto; min-height: 30px; }
.quitar-filtros { font-size: 12px; }
.aviso-copia { min-height: 1.2em; margin: 4px 2px 0; font-size: 12px; line-height: 18px; }

/* ------------------------------------------------------------------ banda de estado */
.banda {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin: 12px 0 16px;
  padding: 8px 16px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-left: 4px solid var(--primario);
  border-radius: var(--radio-caja);
  font-size: 13px;
  line-height: 20px;
  color: var(--texto-suave);
}
.banda-etiqueta { padding: 1px 8px; border-radius: 4px; background: var(--acento-suave); color: var(--primario); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; line-height: 18px; }
.banda-sep { color: var(--texto-tenue); }
.banda-nota { flex-basis: 100%; font-size: 12px; line-height: 18px; color: var(--texto-tenue); }

/* Avisos abiertos: se abren en la misma pagina (details), tambien dentro del marco de HubSpot */
.banda-avisos[open] { flex-basis: 100%; }
.banda-avisos summary { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; list-style: none; color: var(--texto); font-weight: 600; border-radius: 3px; }
.banda-avisos summary::-webkit-details-marker { display: none; }
.banda-avisos summary:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.banda-avisos-ver { font-weight: 600; color: var(--liga); text-decoration: underline; text-underline-offset: 2px; }
.banda-avisos summary:hover .banda-avisos-ver { text-decoration-thickness: 2px; }
.banda-avisos[open] .si-cerrado, .banda-avisos:not([open]) .si-abierto { display: none; }
.avisos-lista { display: grid; gap: 8px; margin: 10px 0 4px; padding: 0; list-style: none; }
.aviso { padding: 12px 14px; background: var(--superficie); border: 1px solid var(--linea); border-left: 4px solid var(--acento-medio); border-radius: var(--radio); }
.aviso-alerta { border-left-color: var(--alerta-texto); }
.aviso-atencion { border-left-color: var(--liga); }
.aviso-cabeza { margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--texto); }
.aviso-severidad { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--caja); color: var(--texto-suave); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.aviso-alerta .aviso-severidad { color: var(--alerta-texto); background: #fbeceb; }
.aviso-datos { display: grid; gap: 6px; margin: 0; }
.aviso-datos > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.aviso-datos dt { font-size: 12px; font-weight: 600; line-height: 20px; color: var(--texto-suave); }
.aviso-datos dd { margin: 0; font-size: 13px; line-height: 20px; color: var(--texto); overflow-wrap: anywhere; }
@media (max-width: 560px) { .aviso-datos > div { grid-template-columns: 1fr; gap: 1px; } }

/* Cambio de vista dentro del marco (tablero.js): "Cargando..." y el aviso con "Reintentar" si el servicio no contesta */
.estado-carga { position: fixed; top: 8px; right: 8px; z-index: 50; margin: 0; padding: 4px 14px; border-radius: var(--pildora); background: var(--barra); color: #fff; font-size: 12px; font-weight: 400; line-height: 18px; box-shadow: var(--sombra-flotante); }
body.cargando { cursor: progress; }
body.cargando .vista { opacity: 0.55; transition: opacity 150ms ease-out; }
.falla-carga { position: sticky; top: 0; z-index: 45; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 10px 14px; background: var(--superficie); border: 1px solid var(--linea-fuerte); border-left: 4px solid var(--alerta-texto); border-radius: var(--radio-caja); box-shadow: var(--sombra-flotante); }
.falla-texto { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 20px; color: var(--texto); }
.vista:focus { outline: none; }

/* ------------------------------------------------------------------ secciones numeradas (areas de contenido blancas) */
.seccion {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-caja);
  padding: 20px 24px 24px;
  margin-bottom: 16px;
  box-shadow: var(--sombra);
}
.seccion-cabeza { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.seccion-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--acento-suave);
  color: var(--primario);
  font-weight: 600;
  font-size: 13px;
  border-radius: 50%;
}
.seccion h1 { margin: 0; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--texto); }
.seccion-nota { margin: 4px 0 0; color: var(--texto-suave); font-size: 14px; line-height: 22px; max-width: 980px; }
.subtitulo { font-size: 16px; font-weight: 500; line-height: 24px; margin: 24px 0 8px; color: var(--texto); }
.seccion > .subtitulo:first-child { margin-top: 0; }
.dos-columnas { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 1000px) { .dos-columnas { grid-template-columns: 1.4fr 1fr; } }

.nota { color: var(--texto-suave); font-size: 12px; line-height: 18px; margin: 4px 0; }
.sin-datos, .vacio { color: var(--texto-tenue); font-size: 13px; }
.aviso-filtro { display: block; font-size: 12px; line-height: 18px; color: var(--texto-suave); border-left: 3px solid var(--acento-medio); padding-left: 8px; margin: 6px 0; }
.aviso-fijo { font-size: 13px; line-height: 20px; padding: 10px 14px; background: var(--acento-suave); border: 1px solid var(--acento-medio); border-radius: var(--radio-caja); color: var(--texto); margin: 0 0 16px; }
.etiqueta-gris { display: inline-block; font-size: 11px; font-weight: 400; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--caja); border: 1px solid var(--linea); color: var(--texto-suave); margin-left: 4px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ cifras que abren su lista */
.cifra-boton {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--linea-fuerte);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.cifra-boton:hover { color: var(--liga); text-decoration-color: var(--liga); }
/* las cifras chicas y las de las tablas se leen como ligas */
.cifra-boton.chica, .tabla .cifra-boton { color: var(--liga); font-weight: 600; text-decoration-color: currentColor; text-underline-offset: 2px; }
.cifra-boton.chica:hover, .tabla .cifra-boton:hover { color: var(--primario); text-decoration-thickness: 2px; }

.ayuda { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid var(--borde-control); border-radius: 50%; font-size: 10px; font-weight: 600; line-height: 1; color: var(--texto-suave); cursor: help; vertical-align: middle; font-style: normal; text-transform: none; letter-spacing: 0; }
.ayuda:hover { border-color: var(--liga); color: var(--liga); }
.ayuda-texto {
  display: none;
  position: absolute;
  z-index: 20;
  top: 22px;
  left: -10px;
  width: 280px;
  padding: 10px 12px;
  background: var(--barra);
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  border-radius: var(--radio);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  box-shadow: var(--sombra-flotante);
}
.ayuda:hover .ayuda-texto, .ayuda:focus .ayuda-texto { display: block; }
th .ayuda-texto { left: auto; right: -10px; }

/* ------------------------------------------------------------------ tarjeta del mes */
.tarjeta-mes { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .tarjeta-mes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .tarjeta-mes { grid-template-columns: repeat(3, 1fr); } }
.medida {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 16px 12px;
  border: 1px solid var(--linea);
  border-radius: var(--radio-caja);
  background: var(--superficie);
}
.medida-cabeza { display: flex; align-items: center; gap: 8px; }
.medida h2 { margin: 0; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--texto); }
.medida-valor { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.medida-valor .cifra-boton { font-size: 32px; font-weight: 300; line-height: 40px; color: var(--texto); }
.medida-valor .cifra-boton:hover { color: var(--liga); }
.medida-que { font-size: 12px; line-height: 18px; color: var(--texto-suave); }
.medida-secundaria { margin: 0; font-size: 13px; line-height: 20px; color: var(--texto-suave); }
.medida-secundaria .cifra-boton { font-size: 18px; font-weight: 500; }
.medida-base { margin: 0; font-size: 12px; line-height: 20px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.medida-tendencia { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 6px; }
.medida-meta { margin: 2px 0 0; font-size: 13px; line-height: 20px; color: var(--texto); }
.medida-comparacion { margin: 6px 0 0; font-size: 12px; line-height: 18px; color: var(--texto-suave); border-top: 1px solid var(--linea); padding-top: 6px; }
.nivel-gris .medida-valor .cifra-boton, td.nivel-gris .cifra-boton, .nivel-gris > .embudo-valor .cifra-boton { color: var(--texto-tenue); }
.nivel-solo_conteo .medida-valor .cifra-boton, td.nivel-solo_conteo .cifra-boton { color: var(--texto-tenue); }
td.nivel-gris .cifra-boton, td.nivel-solo_conteo .cifra-boton { font-weight: 400; }

.tendencia { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--texto); }
.tendencia svg { width: 11px; height: 11px; fill: var(--texto-suave); }
.tendencia-sin-cambio-claro, .tendencia-sin { font-weight: 400; color: var(--texto-suave); }
.tendencia-sin { font-size: 12px; }

/* Bandas del P4: el unico lugar con verde, ambar y rojo */
.bandas { width: 100%; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--caja); overflow: hidden; }
.bandas rect.banda-bien, .punto.banda-bien { fill: var(--bien); background: var(--bien); }
.bandas rect.banda-atencion, .punto.banda-atencion { fill: var(--atencion); background: var(--atencion); }
.bandas rect.banda-alerta, .punto.banda-alerta { fill: var(--alerta); background: var(--alerta); }
.bandas rect.banda-baja, .punto.banda-baja { fill: var(--banda-gris-2); background: var(--banda-gris-2); }
.bandas rect.banda-none, .punto.banda-none { fill: var(--banda-gris-3); background: var(--banda-gris-3); }
.bandas.en-gris rect.banda-bien, .bandas-leyenda.en-gris .punto.banda-bien { fill: var(--banda-gris-1); background: var(--banda-gris-1); }
.bandas.en-gris rect.banda-atencion, .bandas-leyenda.en-gris .punto.banda-atencion { fill: var(--banda-gris-2); background: var(--banda-gris-2); }
.bandas.en-gris rect.banda-alerta, .bandas-leyenda.en-gris .punto.banda-alerta { fill: var(--banda-gris-3); background: var(--banda-gris-3); }
.bandas-leyenda { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 18px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.bandas-leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

.grafica { width: 100%; height: 240px; }
.grafica-linea { height: 96px; margin-top: 6px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 4px; padding: 0; list-style: none; font-size: 12px; line-height: 18px; color: var(--texto-suave); }
.leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.punto.serie-1 { background: var(--grafica-1); }
.punto.serie-2 { background: var(--grafica-2); }
.punto.serie-3 { background: var(--grafica-3); }
.punto.serie-4 { background: var(--grafica-4); }
.sparkline { width: 100px; height: 24px; }
.sparkline polyline { fill: none; stroke: var(--grafica-1); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ------------------------------------------------------------------ volumen */
.volumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--linea); border-radius: var(--radio-caja); overflow: hidden; }
.volumen-cifra { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; border-right: 1px solid var(--linea); margin-right: -1px; border-bottom: 1px solid var(--linea); margin-bottom: -1px; }
.volumen-nombre { font-size: 13px; font-weight: 500; line-height: 20px; color: var(--texto); }
.volumen-valor .cifra-boton { font-size: 28px; font-weight: 300; line-height: 36px; color: var(--texto); }
.volumen-valor .cifra-boton:hover { color: var(--liga); }
.volumen-cambio { font-size: 12px; line-height: 18px; color: var(--texto-suave); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ embudo */
.embudo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.embudo-paso { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--linea); border-top: 3px solid var(--primario); border-radius: var(--radio-caja); background: var(--superficie); }
.embudo-nombre { font-size: 13px; font-weight: 500; line-height: 20px; color: var(--texto); }
.embudo-valor .cifra-boton { font-size: 30px; font-weight: 300; line-height: 38px; color: var(--texto); }
.embudo-valor .cifra-boton:hover { color: var(--liga); }
.embudo-base { font-size: 12px; line-height: 18px; color: var(--texto-suave); }
.embudo-base-valor { font-size: 22px; font-weight: 300; line-height: 30px; color: var(--texto); margin-right: 8px; }
dl.embudo-base { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 0 0 12px; }
dl.embudo-base dt { font-size: 13px; font-weight: 500; line-height: 20px; color: var(--texto); }
dl.embudo-base dd { margin: 0; }
.cifra-grande .cifra-boton { font-size: 30px; font-weight: 300; line-height: 38px; color: var(--texto); }
.cifra-mediana .cifra-boton { font-size: 22px; font-weight: 400; line-height: 30px; color: var(--texto); }
.cifra-grande .cifra-boton:hover, .cifra-mediana .cifra-boton:hover { color: var(--liga); }
.barra-celda { width: 40%; }
.barra-celda svg { width: 70%; height: 8px; margin-right: 6px; vertical-align: middle; background: var(--caja); border-radius: 4px; }
.barra-motivo { fill: var(--grafica-1); }

/* ------------------------------------------------------------------ calientes */
.hojas-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hojas-resumen a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 16px; border: 1px solid var(--linea); border-radius: var(--radio-caja); text-decoration: none; color: inherit; font-weight: 300; background: var(--superficie); transition: border-color 120ms ease-out, box-shadow 120ms ease-out; }
.hojas-resumen a:hover { border-color: var(--liga); box-shadow: var(--sombra); }
.hoja-numero { font-size: 26px; font-weight: 300; line-height: 34px; color: var(--texto); font-variant-numeric: tabular-nums; }
.hoja-titulo { font-size: 13px; font-weight: 600; line-height: 20px; color: var(--liga); }
.hojas-resumen a:hover .hoja-titulo { text-decoration: underline; }
.hojas { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--linea); }
.hoja .hoja-titulo { color: inherit; font-size: 14px; }
.hojas-resumen .hoja-titulo { color: var(--liga); }
.hoja-n { min-width: 22px; padding: 0 7px; border-radius: var(--pildora); background: var(--caja); color: var(--texto-suave); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.hoja.activa .hoja-n { background: var(--superficie); color: var(--primario); }
.hoja-cabeza { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.que-trae { margin: 0 0 8px; font-size: 14px; line-height: 22px; color: var(--texto-suave); max-width: 820px; }
.hoja-acciones { display: flex; gap: 8px; align-items: center; }
.etiqueta-chica { font-size: 12px; }
.conteo-lista { font-size: 12px; line-height: 18px; color: var(--texto-suave); margin: 4px 0 8px; }
.renglon-gris td, .renglon-gris th { color: var(--texto-tenue); background: var(--superficie-2); }
.aviso-renglon { font-size: 12px; }
/* anchos sugeridos: el aviso largo se dobla en su columna y el nombre del duenio no queda de una palabra por renglon */
.tabla-lista .col-situacion { width: 170px; min-width: 150px; }
.tabla-lista .col-fecha { width: 150px; min-width: 130px; }
.tabla-lista .col-duenio { width: 132px; min-width: 132px; }
/* la primera columna (cliente o persona) lleva las acciones del renglon, para que se vean sin desplazarse */
.tabla-lista .col-principal { min-width: 190px; }
.acciones-renglon { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 4px; }
.acciones-renglon .boton-texto { padding: 1px 6px; margin-left: -6px; }
.acciones-renglon .liga-hubspot { gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.tabla-lista .celda-base.aviso-renglon { color: var(--texto-suave); }
.acciones-renglon .liga-tipo { font-size: 11px; color: var(--texto-tenue); }
.acciones-renglon .liga-negocio, .acciones-renglon .liga-contacto { white-space: nowrap; }
.texto-largo { min-width: 260px; max-width: 420px; font-size: 12px; }
.frase { font-style: italic; color: var(--texto-suave); }
.paginas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.paginas a, .pagina-actual { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 0 8px; border: 1px solid var(--linea); border-radius: var(--radio); text-decoration: none; color: var(--liga); font-size: 12px; font-weight: 600; }
.paginas a:hover { background: var(--caja); text-decoration: none; }
.pagina-actual { background: var(--primario); color: #fff; border-color: var(--primario); }

/* ------------------------------------------------------------------ tablas */
.tabla-desliza { overflow-x: auto; margin: 0 0 14px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.tabla caption { text-align: left; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--texto); padding: 6px 0 8px; }
.tabla th, .tabla td { padding: 8px 10px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.tabla thead th { font-size: 12px; font-weight: 600; line-height: 18px; color: var(--texto); background: var(--caja); border-bottom: 1px solid var(--linea-fuerte); position: sticky; top: 0; z-index: 1; }
.tabla tbody th { font-weight: 500; }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla tbody tr:hover td, .tabla tbody tr:hover th { background: var(--superficie-2); }
.tabla .celda-base { display: block; font-size: 11px; line-height: 16px; color: var(--texto-tenue); }
.tabla-personas .celda-base { white-space: nowrap; }
/* los titulos de las columnas numericas se doblan: la tabla cabe a 1024 sin desplazarse */
.tabla-personas thead th.num { white-space: normal; }
@media (max-width: 1180px) {
  .tabla-personas th, .tabla-personas td { padding-left: 6px; padding-right: 6px; }
  .tabla-personas .col-persona { min-width: 140px; white-space: normal; }
  .tabla-personas thead th { min-width: 76px; }
}
/* la tabla del CRM de la setter tiene dos columnas: sin estirarla a todo el ancho */
.tabla-personas.tabla-angosta { width: auto; min-width: min(100%, 560px); }
.tabla-angosta thead th.num, .tabla-angosta td.num { min-width: 150px; }
.tabla .celda-lectura { display: block; }
.tabla .celda-lectura .tendencia { font-size: 11px; line-height: 16px; }
.tabla .fecha { white-space: nowrap; }
.tabla-equipo { margin-bottom: 18px; }
.tabla-titulo { font-size: 16px; font-weight: 500; line-height: 24px; margin: 18px 0 8px; color: var(--texto); }
.tabla-subtitulo { font-weight: 300; color: var(--texto-suave); }
.tabla-personas .col-persona { min-width: 180px; white-space: nowrap; }
.tabla-personas thead th { white-space: normal; min-width: 88px; }
.tabla-lista td, .tabla-lista th { font-size: 12px; line-height: 18px; padding: 7px 8px; }
.tabla-lista thead th { font-size: 11px; }
.que-paso { min-width: 120px; max-width: 360px; font-size: 12px; }
.que-paso summary { cursor: pointer; color: var(--liga); font-weight: 600; }
.que-paso p { margin: 6px 0 0; }
.tabla-linea { color: var(--primario); }
.no-aplica { color: var(--texto-tenue); }
.ligas-renglon { white-space: nowrap; font-size: 12px; }
.liga-contacto { display: block; margin-top: 3px; }
.acciones-renglon .liga-contacto { margin-top: 0; }
/* en la tabla, id y "Copiar liga" en un solo renglon: la tabla se desliza en lugar de doblar la altura de cada fila */
.ligas-renglon .liga-hubspot { flex-wrap: nowrap; gap: 6px; }

/* Ligas a HubSpot: en el panel abren pestana nueva; dentro del marco, id con "Copiar liga" (copiar.js) */
.liga-hubspot { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.liga-hubspot code { font-size: 12px; }
.boton.secundario.boton-copiar { min-height: 24px; padding: 0 10px; font-size: 12px; line-height: 16px; }
.acciones-renglon .boton.secundario.boton-copiar, .ligas-renglon .boton.secundario.boton-copiar { min-height: 22px; padding: 0 8px; font-size: 11px; }
.liga-manual { min-width: 18em; font-size: 12px; }
.aviso-marco { border-left: 3px solid var(--acento-medio); padding-left: 8px; }
/* Texto temporal de document.execCommand('copy'): fuera de la vista, sin estilos en linea (CSP style-src 'self') */
.copiar-temporal { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------------------------ panel lateral (listas y conversaciones) */
.velo { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 30; }
.lateral {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(1280px, 96vw);
  display: flex;
  flex-direction: column;
  background: var(--superficie);
  box-shadow: var(--sombra-flotante);
}
/* cabeza del panel como los paneles laterales de HubSpot: color del primario, titulo blanco y "Cerrar" */
.lateral-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 20px; background: var(--primario); color: #fff; }
.lateral-cabeza :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lateral-titulo { margin: 0; font-size: 18px; font-weight: 500; line-height: 26px; color: #fff; overflow-wrap: anywhere; }
/* contenedor con nombre: la lista oculta columnas segun el ancho del panel, no el de la ventana */
.lateral-contenido { overflow: auto; padding: 14px 20px 30px; flex: 1; container: lateral / inline-size; }
.con-lateral { overflow: hidden; }
.lista-resumen { margin: 0 0 4px; font-size: 13px; line-height: 22px; }
.lista-resumen strong { font-size: 20px; font-weight: 500; color: var(--texto); }
.lista-partes { display: inline-flex; margin: 8px 0 10px; border: 1px solid var(--borde-control); border-radius: var(--pildora); overflow: hidden; }
.boton-parte { font: inherit; font-size: 12px; font-weight: 600; line-height: 18px; padding: 5px 14px; background: var(--superficie); color: var(--texto); border: none; cursor: pointer; }
.boton-parte + .boton-parte { border-left: 1px solid var(--borde-control); }
.boton-parte:hover { background: var(--caja); }
.boton-parte.activa { background: var(--primario); color: #fff; }
.lista-mas { margin: 10px 0; }

/* Lista del panel lateral: la primera columna lleva fecha y acciones; todo el renglon abre la conversacion. Las columnas
   prio-3 se ocultan con el panel angosto y las prio-2 en el bloque de HubSpot (unos 640 px); "Ver todas las columnas"
   las muestra con desplazamiento horizontal. */
.lista-herramientas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0; }
.lista-herramientas .nota { margin: 0; }
.boton-columnas { display: none; }
.boton-columnas[aria-pressed="true"] { background: var(--acento-suave); border-color: var(--liga); }
.renglon-abre { cursor: pointer; }
.tabla-lista .col-principal .fecha { font-weight: 500; }
@container lateral (max-width: 1100px) {
  .lista:not(.todas-columnas) .prio-3 { display: none; }
  .boton-columnas { display: inline-flex; }
}
@container lateral (max-width: 780px) {
  .lista:not(.todas-columnas) .prio-2 { display: none; }
}

.conversacion [data-volver] { margin-left: -8px; }
.tabla .boton { margin-top: 0; }
.conversacion h3 { font-size: 14px; font-weight: 600; line-height: 20px; margin: 18px 0 6px; color: var(--texto); }
.conversacion-datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 0; padding: 12px 14px; background: var(--superficie-2); border: 1px solid var(--linea); border-radius: var(--radio-caja); }
.conversacion-datos dt { font-size: 12px; font-weight: 600; line-height: 18px; color: var(--texto-suave); }
.conversacion-datos dd { margin: 0; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.conversacion p, .objeciones, .puntos { overflow-wrap: anywhere; }
.objeciones, .puntos { margin: 0; padding-left: 18px; font-size: 13px; line-height: 22px; }
.dialogo { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--letra); font-weight: 300; font-size: 13px; line-height: 22px; background: var(--superficie-2); border: 1px solid var(--linea); border-radius: var(--radio-caja); padding: 12px 14px; max-height: 60vh; overflow: auto; }
/* en el panel lateral el dialogo no lleva su propio desplazamiento: un solo desplazamiento, el del panel */
.lateral .dialogo { max-height: none; overflow: visible; }
@media (max-width: 720px) {
  .lateral { width: 100vw; }
  .lateral-cabeza { min-height: 46px; padding: 8px 12px; }
  .lateral-titulo { font-size: 16px; line-height: 22px; }
  .lateral-contenido { padding: 10px 12px 24px; }
}

/* ------------------------------------------------------------------ ayuda */
.buscador { display: flex; flex-direction: column; gap: 4px; max-width: 520px; margin-bottom: 16px; }
.catalogo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.catalogo-item { padding: 14px 16px; border: 1px solid var(--linea); border-radius: var(--radio-caja); background: var(--superficie); }
.catalogo-item h2 { margin: 0 0 4px; font-size: 16px; font-weight: 500; line-height: 24px; color: var(--texto); }
.catalogo-item p { margin: 4px 0; font-size: 13px; line-height: 20px; }
.catalogo-meta { color: var(--texto-suave); font-size: 12px !important; }
.definiciones { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 10px 24px; margin: 0; font-size: 13px; line-height: 22px; }
.definiciones dt { font-weight: 600; color: var(--texto); }
.definiciones dd { margin: 0; color: var(--texto-suave); }

/* ------------------------------------------------------------------ acceso, invitacion y pie del marco */
.tarjeta { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-caja); padding: 24px; box-shadow: var(--sombra); }
.tarjeta h1 { margin: 0 0 8px; font-size: 24px; font-weight: 500; line-height: 32px; color: var(--texto); }
.tarjeta h2 { margin: 16px 0 8px; font-size: 18px; font-weight: 500; line-height: 26px; color: var(--texto); }
.acceso { max-width: 440px; margin: 48px auto; padding: 32px; }
.paso { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.paso > label { margin-top: 6px; }
.paso > .boton { align-self: flex-start; }
.acceso .paso > .boton { align-self: stretch; }
.acceso .paso > .boton.secundario { margin-top: 4px; }
.qr { align-self: center; padding: 8px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); }
.clave code { font-size: 14px; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.mensaje { min-height: 1.5em; margin: 12px 0 0; color: var(--alerta-texto); font-size: 13px; line-height: 20px; font-weight: 400; }
/* en las secciones de administracion el mensaje vacio no deja hueco (en el acceso si, para que nada brinque) */
.seccion > .mensaje:empty { min-height: 0; margin: 0; }
.pie-marco { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--linea); }

/* ------------------------------------------------------------------ administracion: usuarios, invitaciones y cierres */
.admin-invitar .paso { max-width: 520px; }
.casilla { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 300; }
.resultado-invitacion { max-width: 720px; margin-top: 16px; padding: 14px 16px; background: var(--acento-suave); border: 1px solid var(--acento-medio); border-radius: var(--radio-caja); }
.resultado-invitacion > p { margin: 0; }
.resultado-invitacion input { width: 100%; font-size: 13px; }
.resultado-invitacion .boton-copiar { margin-top: 4px; }
.tabla-invitaciones .acciones-renglon, .tabla-usuarios .acciones-renglon { display: table-cell; white-space: nowrap; margin: 0; }
.tabla-invitaciones .acciones-renglon .boton-texto, .tabla-usuarios .acciones-renglon .boton-texto { margin: 0 2px 0 0; }
.tabla-invitaciones th .nota, .tabla-usuarios th .nota { font-weight: 300; }
.cierre-mes { margin-top: 16px; padding: 20px; }
.cierre-mes > p { margin: 6px 0; }
.cierre-mes .subtitulo { margin-top: 0; }
.cierre-acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 16px; margin-top: 16px; }
.cierre-accion { padding: 14px 16px; background: var(--superficie-2); border: 1px solid var(--linea); border-radius: var(--radio-caja); }
.cierre-accion .tabla-titulo { margin-top: 0; }
.cierre-accion p { margin: 6px 0; }
.cierre-accion label { font-weight: 300; font-size: 13px; line-height: 20px; color: var(--texto-suave); }
.cierre-accion input[type="text"] { width: 100%; max-width: 560px; }
.cierre-accion .boton { margin-top: 4px; }

/* ------------------------------------------------------------------ dentro del bloque de HubSpot y pantallas angostas */
.en-marco .barra { min-height: 40px; padding: 0 12px; gap: 12px; }
.en-marco .marca-sub { display: none; }
.en-marco .subbarra { padding: 5px 12px; }
.en-marco .pestanas { gap: 2px; }
.en-marco .pestana { padding: 1px 9px; font-size: 13px; }
.en-marco .contenido { padding: 12px 12px 32px; }

@media (max-width: 900px) {
  .barra { padding: 0 16px; }
  .subbarra { padding: 6px 16px; }
  .contenido { padding: 12px 16px 40px; }
  .definiciones { grid-template-columns: 1fr; gap: 2px 0; }
  .definiciones dd { margin-bottom: 8px; }
}
@media (max-width: 720px) {
  .marca-sub { display: none; }
  .barra { gap: 10px; padding: 0 12px; }
  .usuario { gap: 8px; }
  .subbarra { padding: 5px 12px; }
  .pestana { padding: 1px 9px; font-size: 13px; }
}
@media (max-width: 560px) {
  .tarjeta, .seccion { padding: 16px; }
  .acceso { margin: 24px auto; padding: 20px; }
  .cierre-mes { padding: 14px 12px; }
  .cierre-accion { padding: 12px; }
  .seccion-num { display: none; }
  .filtro { max-width: none; }
  .usuario-perfil { display: none; }
}
