/* ============================================================
   Boletas de Honorarios — sistema visual
   Dirección: instrumento de precisión financiera.
   Superficies neutras frías, tipografía técnica, cifras tabulares.
   La materia prima del oficio son números en columnas: la interfaz
   trata a los números como el contenido principal, no como adorno.
   ============================================================ */
:root {
  /* Paleta oficial EmiteBH (ver manual de marca) */
  --marino:       #0F2B46;   /* primario  */
  --marino-alto:  #163A5C;
  --senal:        #1E6FD9;   /* acento    */
  --senal-hover:  #1857AC;
  --senal-claro:  #4C9AF5;   /* acento sobre oscuro */
  --senal-suave:  #E8F0FC;
  --papel:        #F4F2ED;   /* fondo de marca */

  /* Superficies de interfaz */
  --fondo:        #F7F7F5;
  --superficie:   #FFFFFF;
  --borde:        #E4E4E0;
  --borde-fuerte: #CFCFC9;
  --texto:        #0F2B46;
  --texto-2:      #5F6B7A;   /* gris del manual */
  --texto-3:      #8A939E;

  --rojo:         #B42318;
  --rojo-suave:   #FEE4E2;
  --ambar:        #B54708;
  --ambar-suave:  #FEF0C7;
  --verde-ok:     #0E7C66;
  --verde-suave:  #E7F2EF;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --sombra-sutil: 0 1px 2px rgba(15,43,70,.05);
  --sombra-media: 0 4px 12px rgba(15,43,70,.08), 0 1px 3px rgba(15,43,70,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05" 1;
}

h1, h2, h3 { font-family: 'Archivo', sans-serif; font-weight: 600; letter-spacing: -.015em; }

.mono, .cifra {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

a { color: inherit; }

/* ============================================================
   SHELL DE APLICACIÓN
   ============================================================ */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.lateral {
  background: var(--marino);
  color: #fff;
  display: flex; flex-direction: column;
  padding: 1.1rem .8rem;
  position: sticky; top: 0; height: 100vh;
}

.lateral__marca {
  display: flex; align-items: center; gap: .65rem;
  padding: .3rem .5rem 1.4rem;
}
.marca__glifo {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  background: var(--senal); border-radius: 8px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1rem;
  color: #fff;
}
.marca__texto {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: .95rem;
  line-height: 1.15; display: flex; flex-direction: column;
}
.marca__texto small {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: .68rem;
  color: rgba(255,255,255,.45); letter-spacing: .01em; margin-top: 1px;
}

.lateral__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem .65rem; border-radius: var(--r-sm);
  color: rgba(255,255,255,.62);
  text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: background .13s ease, color .13s ease;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item--activo { background: rgba(255,255,255,.1); color: #fff; }

.lateral__pie { display: flex; flex-direction: column; gap: .8rem; }
.chip-aviso, .chip-ok {
  display: flex; align-items: center; gap: .45rem;
  font-size: .76rem; padding: .42rem .6rem; border-radius: var(--r-sm);
  text-decoration: none;
}
.chip-aviso { background: rgba(181,71,8,.22); color: #FDBA74; }
.chip-aviso:hover { background: rgba(181,71,8,.32); }
.chip-ok { background: rgba(14,124,102,.18); color: #6EE7B7; }
.punto { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.lateral__usuario {
  display: flex; align-items: center; gap: .6rem;
  padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.09);
}
.avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 600;
}
.lateral__datos { min-width: 0; }
.lateral__nombre {
  font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lateral__salir {
  font-size: .74rem; color: rgba(255,255,255,.42); text-decoration: none;
}
.lateral__salir:hover { color: rgba(255,255,255,.75); }

/* Columna principal: flex para que el pie quede pegado al fondo
   aunque el contenido sea corto. */
.principal {
  min-width: 0; min-height: 100vh;
  display: flex; flex-direction: column;
}
.principal > .contenido { padding: 2.2rem 2.4rem 3rem; flex: 1; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .lateral {
    position: static; height: auto; flex-direction: row;
    align-items: center; gap: 1rem; padding: .7rem 1rem; overflow-x: auto;
  }
  .lateral__marca { padding: 0; }
  .marca__texto small { display: none; }
  .lateral__nav { flex-direction: row; flex: 1; }
  .nav-item span { display: none; }
  .nav-item { padding: .5rem .6rem; }
  .lateral__pie { flex-direction: row; align-items: center; }
  .chip-aviso, .chip-ok { white-space: nowrap; }
  .lateral__usuario { padding-top: 0; border: none; }
  .lateral__datos { display: none; }
  .principal > .contenido { padding: 1.4rem 1.1rem 2.4rem; }
}

/* ============================================================
   ENCABEZADO DE PÁGINA
   ============================================================ */
.contenido { max-width: 1120px; }
.contenido--angosto { max-width: 660px; }

.encabezado {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.titulo-pag { font-size: 1.65rem; line-height: 1.15; margin-bottom: .25rem; }
.sub-pag { color: var(--texto-2); font-size: .92rem; margin-bottom: 1.8rem; }
.encabezado .sub-pag { margin-bottom: 0; }

/* ============================================================
   TARJETAS
   ============================================================ */
.tarjeta {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  box-shadow: var(--sombra-sutil);
  margin-bottom: 1.1rem;
}
.tarjeta__titulo {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: .98rem;
  margin-bottom: .2rem;
}
.tarjeta__desc {
  color: var(--texto-2); font-size: .87rem; margin-bottom: 1.1rem;
  line-height: 1.5;
}
.tarjeta--probar { background: var(--senal-suave); border-color: #C9DEF9; }

/* ============================================================
   ACCIONES DE INICIO
   ============================================================ */
.grid-acciones {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.accion {
  display: block; text-decoration: none; color: inherit;
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-lg); padding: 1.25rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.accion:hover {
  border-color: var(--borde-fuerte);
  box-shadow: var(--sombra-media);
  transform: translateY(-1px);
}
.accion__icono {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--senal-suave); color: var(--senal);
  display: grid; place-items: center; margin-bottom: .85rem;
  font-size: 1rem; font-weight: 600;
}
.accion__nombre { font-weight: 600; font-size: .95rem; margin-bottom: .15rem; }
.accion__desc { font-size: .84rem; color: var(--texto-2); line-height: 1.45; }

.aviso-config {
  background: var(--superficie); border: 1px solid var(--borde);
  border-left: 3px solid var(--ambar);
  border-radius: var(--r-md); padding: .95rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.aviso-config__texto { font-size: .88rem; flex: 1; min-width: 220px; color: var(--texto-2); }
.aviso-config__texto strong { color: var(--texto); font-weight: 600; }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.campo { margin-bottom: 1.05rem; }
.campo label {
  display: block; font-size: .82rem; font-weight: 500;
  margin-bottom: .35rem; color: var(--texto);
}
.campo input, .campo select, .filtros select {
  width: 100%; padding: .6rem .75rem;
  border: 1px solid var(--borde-fuerte); border-radius: var(--r-sm);
  background: var(--superficie); color: var(--texto);
  font-family: inherit; font-size: .92rem;
  transition: border-color .13s, box-shadow .13s;
}
.campo input::placeholder { color: var(--texto-3); }
.campo input:focus, .campo select:focus, .filtros select:focus {
  outline: none; border-color: var(--senal);
  box-shadow: 0 0 0 3px rgba(30,111,217,.15);
}
.ayuda-campo { font-size: .78rem; color: var(--texto-2); margin-top: .3rem; }
.fila-campos { display: flex; gap: .55rem; }
.fila-campos select { flex: 1; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--senal); color: #fff;
  font-family: inherit; font-size: .89rem; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .13s, box-shadow .13s, transform .06s;
}
.boton:hover { background: var(--senal-hover); }
.boton:active { transform: translateY(1px); }
.boton:disabled { opacity: .6; cursor: default; }
.boton:focus-visible { outline: 2px solid var(--senal); outline-offset: 2px; }
.boton--ancho { width: 100%; }
.boton--fantasma {
  background: var(--superficie); color: var(--texto); border-color: var(--borde-fuerte);
}
.boton--fantasma:hover { background: var(--fondo); border-color: var(--texto-3); }
.boton--peligro { background: var(--rojo); }
.boton--peligro:hover { background: #93231166; background: #96271A; }

.fila-botones { display: flex; gap: .6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }

.enlace { color: var(--senal); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(30,111,217,.3); }
.enlace:hover { border-bottom-color: var(--senal); }
.enlace-boton {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .85rem; color: var(--senal); font-weight: 500;
}
.enlace-boton:hover { text-decoration: underline; }
.enlace-mini { color: var(--senal); font-size: .8rem; text-decoration: none; font-weight: 500; }
.enlace-mini:hover { text-decoration: underline; }

/* ============================================================
   AVISOS
   ============================================================ */
.alerta {
  padding: .7rem .95rem; border-radius: var(--r-md);
  font-size: .88rem; margin-bottom: 1.2rem; border: 1px solid transparent;
}
.alerta--error { background: var(--rojo-suave); color: #912018; border-color: #FDA29B; }
.alerta--ok { background: var(--senal-suave); color: #12457F; border-color: #B9D4F6; }
.alerta--multilinea { white-space: pre-line; line-height: 1.6; }

.aviso-cuidado {
  background: var(--rojo-suave); color: #912018;
  border: 1px solid #FDA29B; border-radius: var(--r-md);
  padding: .8rem 1rem; font-size: .87rem; margin-bottom: 1.4rem;
}

/* ============================================================
   PESTAÑAS
   ============================================================ */
.pestanas {
  display: inline-flex; gap: 2px; margin-bottom: 1.4rem;
  background: #EAECF0; padding: 3px; border-radius: 8px;
}
.pestana {
  background: none; border: none; cursor: pointer;
  padding: .45rem .95rem; border-radius: 6px;
  font-family: inherit; font-size: .87rem; font-weight: 500;
  color: var(--texto-2); transition: background .13s, color .13s;
}
.pestana:hover { color: var(--texto); }
.pestana--activa {
  background: var(--superficie); color: var(--texto);
  box-shadow: var(--sombra-sutil);
}
.oculto { display: none; }

/* ============================================================
   ZONA DE ARCHIVO
   ============================================================ */
.zona-archivo {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 2.2rem 1rem; margin-bottom: 1.2rem;
  border: 1.5px dashed var(--borde-fuerte); border-radius: var(--r-md);
  background: var(--fondo); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.zona-archivo:hover { border-color: var(--senal); background: var(--senal-suave); }
.zona-archivo__icono { font-size: 1.3rem; color: var(--senal); }
.zona-archivo__texto { font-size: .88rem; color: var(--texto-2); }

/* ============================================================
   PROGRESO
   ============================================================ */
.progreso { margin-bottom: 1.4rem; }
.progreso__barra {
  height: 6px; background: #EAECF0; border-radius: 99px; overflow: hidden;
}
.progreso__relleno {
  height: 100%; width: 0%; background: var(--senal);
  border-radius: 99px; transition: width .45s cubic-bezier(.4,0,.2,1);
}
.progreso__texto {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: .55rem; font-size: .86rem; color: var(--texto-2);
}
.progreso__texto strong { font-family: 'IBM Plex Mono', monospace; color: var(--texto); font-weight: 500; }

.marcadores { display: flex; gap: .75rem; }
.marcador {
  flex: 1; padding: .85rem .95rem;
  border: 1px solid var(--borde); border-radius: var(--r-md);
}
.marcador__num {
  font-family: 'Archivo', sans-serif; font-size: 1.45rem; font-weight: 600;
  line-height: 1; margin-bottom: .3rem; font-variant-numeric: tabular-nums;
}
.marcador__lab {
  font-size: .73rem; color: var(--texto-2);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 500;
}
.marcador--ok .marcador__num { color: var(--verde-ok); }
.marcador--err .marcador__num { color: var(--rojo); }
.marcador--omit .marcador__num { color: var(--ambar); }

/* ============================================================
   TABLAS
   ============================================================ */
.tabla { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tabla th {
  text-align: left; padding: .5rem .65rem .6rem;
  font-size: .71rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--texto-3);
  border-bottom: 1px solid var(--borde);
}
.tabla td {
  padding: .6rem .65rem; border-bottom: 1px solid #F1F3F5;
  vertical-align: middle;
}
.tabla tbody tr:last-child td { border-bottom: none; }
.tabla tbody tr { transition: background .1s; }
.tabla tbody tr:hover { background: #FAFBFC; }
.tabla__vacio {
  color: var(--texto-2); text-align: center; padding: 2rem 1rem;
  font-size: .88rem;
}
.der { text-align: right; }

.pill {
  display: inline-block; padding: .16rem .5rem; border-radius: 5px;
  font-size: .7rem; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase;
}
.pill--emitida { background: var(--verde-suave); color: #0B5C4C; }
.pill--error   { background: var(--rojo-suave); color: #912018; }
.pill--omitida { background: var(--ambar-suave); color: #93370D; }
.pill--anulada { background: #EFF1F4; color: var(--texto-2); }

.fila-anulada { color: var(--texto-3); }
.fila-anulada .cifra, .fila-anulada .mono { color: var(--texto-3); }

/* ============================================================
   HISTORIAL: filtros, resumen y división de retención
   ============================================================ */
.barra-filtros {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap;
}
.filtros { display: flex; gap: .5rem; align-items: center; }
.filtros select { width: auto; min-width: 110px; }

.resumen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .9rem; margin-bottom: 1rem;
}
.resumen__item {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-lg); padding: 1.05rem 1.15rem;
}
.resumen__item--destacado { background: var(--marino); border-color: var(--marino); }
.resumen__item--destacado .resumen__num { color: #fff; }
.resumen__item--destacado .resumen__lab { color: rgba(255,255,255,.5); }
.resumen__num {
  font-family: 'Archivo', sans-serif; font-size: 1.5rem; font-weight: 600;
  line-height: 1.1; margin-bottom: .3rem;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.resumen__lab {
  font-size: .71rem; color: var(--texto-2);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
}

/* Elemento propio del oficio: cómo se reparte el bruto del mes.
   Muestra de un vistazo qué proporción se lleva la retención. */
.reparto {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-lg); padding: 1.1rem 1.2rem; margin-bottom: 1.4rem;
}
.reparto__enc {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .65rem;
}
.reparto__titulo { font-size: .8rem; font-weight: 500; color: var(--texto-2); }
.reparto__tasa {
  font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: var(--texto-3);
}
.reparto__barra {
  display: flex; height: 26px; border-radius: 6px; overflow: hidden;
  background: #EAECF0;
}
.reparto__liquido, .reparto__retencion {
  display: flex; align-items: center; padding: 0 .6rem;
  font-size: .74rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.reparto__liquido { background: var(--senal); }
.reparto__retencion { background: var(--marino-alto); justify-content: flex-end; }
.reparto__leyenda {
  display: flex; gap: 1.2rem; margin-top: .6rem;
  font-size: .78rem; color: var(--texto-2);
}
.reparto__leyenda span { display: flex; align-items: center; gap: .35rem; }
.llave { width: 8px; height: 8px; border-radius: 2px; }
.llave--liq { background: var(--senal); }
.llave--ret { background: var(--marino-alto); }

.nota-anuladas { font-weight: 400; font-size: .8rem; color: var(--texto-2); }

/* ============================================================
   LISTA DE SELECCIÓN (anular)
   ============================================================ */
.lista-check {
  max-height: 330px; overflow-y: auto;
  border: 1px solid var(--borde); border-radius: var(--r-md);
}
.check-fila {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .8rem; cursor: pointer;
  border-bottom: 1px solid #F1F3F5; transition: background .1s;
}
.check-fila:last-child { border-bottom: none; }
.check-fila:hover { background: #FAFBFC; }
.check-fila input { accent-color: var(--senal); width: 15px; height: 15px; }
.check-folio {
  color: var(--senal); font-weight: 500; min-width: 3.2rem; font-size: .85rem;
}
.check-nombre { flex: 1; font-size: .88rem; }
.check-monto { color: var(--texto-2); font-size: .84rem; }

/* ============================================================
   ACCESO (login / registro)
   ============================================================ */
.acceso {
  min-height: 100vh; display: grid; place-items: center;
  padding: 2rem 1.2rem;
  background:
    linear-gradient(var(--borde) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--borde) 1px, transparent 1px) 0 0 / 34px 100%,
    var(--fondo);
  position: relative;
}
.acceso::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 20%, var(--fondo) 78%);
}
.acceso__caja {
  position: relative; z-index: 1; width: 100%; max-width: 396px;
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: 0 12px 32px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.04);
}
.acceso__marca {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem;
}
.acceso__glifo {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--marino); border-radius: 8px; color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 700;
}
.acceso__marca-texto {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: .95rem;
  line-height: 1.2;
}
.acceso__marca-texto small {
  display: block; font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: .7rem; color: var(--texto-3);
}
.acceso__titulo { font-size: 1.3rem; margin-bottom: .25rem; }
.acceso__sub { color: var(--texto-2); font-size: .88rem; margin-bottom: 1.5rem; }
.enlace-sec {
  margin-top: 1.3rem; font-size: .86rem; color: var(--texto-2); text-align: center;
}
.enlace-sec a { color: var(--senal); font-weight: 500; text-decoration: none; }
.enlace-sec a:hover { text-decoration: underline; }
.acceso__nota {
  margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--borde);
  font-size: .76rem; color: var(--texto-3); line-height: 1.5; text-align: center;
}

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

/* ---------- Enlace de ayuda junto a la etiqueta ---------- */
.campo__enc {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem; margin-bottom: .35rem;
}
.campo__enc label { margin-bottom: 0; }
.campo__ayuda {
  font-size: .79rem; color: var(--senal); text-decoration: none; font-weight: 500;
}
.campo__ayuda:hover { text-decoration: underline; }

/* ---------- Sitio en construcción ---------- */
.obra {
  min-height: 100vh; display: grid; place-items: center;
  padding: 2rem 1.2rem; background: var(--marino); color: #fff;
}
.obra__caja { max-width: 420px; text-align: center; }
.obra__marca {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 2.2rem;
}
.obra__marca .acceso__glifo { background: var(--senal); }
.obra__marca .acceso__marca-texto { color: #fff; text-align: left; }
.obra__marca .acceso__marca-texto small { color: rgba(255,255,255,.45); }

.obra__barra {
  display: flex; gap: 5px; justify-content: center; margin-bottom: 1.8rem;
}
.obra__barra span {
  width: 34px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.14);
  animation: pulso 1.7s ease-in-out infinite;
}
.obra__barra span:nth-child(2) { animation-delay: .22s; }
.obra__barra span:nth-child(3) { animation-delay: .44s; }
@keyframes pulso {
  0%, 100% { background: rgba(255,255,255,.14); }
  50%      { background: var(--senal); }
}

.obra__titulo {
  font-family: 'Archivo', sans-serif; font-size: 1.5rem; font-weight: 600;
  margin-bottom: .6rem; letter-spacing: -.015em;
}
.obra__texto {
  color: rgba(255,255,255,.6); font-size: .93rem; line-height: 1.6;
}


/* ============================================================
   PIE MINIMALISTA — oscuro, una línea, anclado al fondo
   ============================================================ */
.pie {
  background: var(--marino);
  color: rgba(255,255,255,.55);
  margin-top: auto;              /* empuja el pie al fondo */
  padding: .85rem 1.5rem;
  font-size: .8rem;
}
.pie__linea {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.pie__copy { white-space: nowrap; }
.pie__enlaces { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.pie__enlaces a {
  color: rgba(255,255,255,.55); text-decoration: none;
  transition: color .13s;
}
.pie__enlaces a:hover { color: #fff; }

@media (max-width: 560px) {
  .pie { padding: .8rem 1.1rem; }
  .pie__linea { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .pie__enlaces { gap: 1.1rem; }
}

/* ============================================================
   TARJETAS DE LEGAL Y CONTACTO
   ============================================================ */
.tarjetas-legal {
  display: grid; gap: .9rem; margin: 1.6rem 0 2.4rem;
}
.tarjeta-legal {
  display: block; text-decoration: none; color: inherit;
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-lg); padding: 1.3rem;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.tarjeta-legal:hover {
  border-color: var(--borde-fuerte); box-shadow: var(--sombra-media);
  transform: translateY(-1px);
}
.tarjeta-legal__titulo {
  font-size: 1rem; margin: 0 0 .35rem; padding: 0; border: none;
}
.tarjeta-legal__desc {
  color: var(--texto-2); font-size: .87rem; line-height: 1.55; margin-bottom: .6rem;
}
.tarjeta-legal__ir { color: var(--senal); font-size: .85rem; font-weight: 500; }

.contactos { display: grid; gap: .9rem; margin: 1.6rem 0 2.4rem; }
.contacto-item {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-lg); padding: 1.2rem 1.3rem;
}
.contacto-item__titulo { font-size: .98rem; margin: 0 0 .3rem; padding: 0; border: none; }
.contacto-item__desc {
  color: var(--texto-2); font-size: .86rem; line-height: 1.5; margin-bottom: .55rem;
}
.contacto-item__mail {
  font-family: 'IBM Plex Mono', monospace; font-size: .88rem;
  color: var(--senal); text-decoration: none;
}
.contacto-item__mail:hover { text-decoration: underline; }

.documento__cierre {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--borde);
}
.documento__cierre p { color: var(--texto-2); }
.documento__cierre a { color: var(--senal); font-weight: 500; }

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.cookies {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 720px; margin: 0 auto;
  background: var(--superficie); border: 1px solid var(--borde-fuerte);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  box-shadow: 0 12px 34px rgba(16,24,40,.14);
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  animation: sube .3s ease;
}
@keyframes sube { from { transform: translateY(12px); opacity: 0; } }
.cookies__texto {
  flex: 1; min-width: 250px; font-size: .85rem; line-height: 1.55;
  color: var(--texto-2);
}
.cookies__texto strong { color: var(--texto); font-weight: 600; }
.cookies__texto a { color: var(--senal); font-weight: 500; }
.cookies__botones { display: flex; gap: .55rem; }
.cookies[hidden] { display: none; }

/* ============================================================
   PÁGINAS PÚBLICAS Y DOCUMENTOS LEGALES
   ============================================================ */
.publico { min-height: 100vh; display: flex; flex-direction: column; }
.publico__barra {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; border-bottom: 1px solid var(--borde);
  background: var(--superficie);
}
.publico__marca {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit;
}
.publico__nav { display: flex; align-items: center; gap: 1.3rem; }
.publico__nav a { color: var(--texto-2); text-decoration: none; font-size: .88rem; font-weight: 500; }
.publico__nav a:hover { color: var(--texto); }
.publico__nav .boton { color: #fff; }
.publico__cuerpo { flex: 1; padding: 2.5rem 2rem 3rem; }


.documento { max-width: 720px; margin: 0 auto; }
.documento h1 {
  font-size: 1.9rem; line-height: 1.15; margin-bottom: .4rem;
}
.documento__fecha {
  color: var(--texto-3); font-size: .82rem; margin-bottom: 1.8rem;
}
.documento__entrada {
  font-size: 1rem; line-height: 1.65; color: var(--texto-2);
  padding: 1.1rem 1.25rem; background: var(--superficie);
  border: 1px solid var(--borde); border-radius: var(--r-md);
  margin-bottom: 2.2rem;
}
.documento h2 {
  font-size: 1.15rem; margin: 2.2rem 0 .7rem;
  padding-top: 1.4rem; border-top: 1px solid var(--borde);
}
.documento h2:first-of-type { border-top: none; padding-top: 0; }
.documento h3 {
  font-size: .96rem; margin: 1.4rem 0 .5rem; font-weight: 600;
}
.documento p { margin-bottom: .9rem; line-height: 1.68; color: var(--texto-2); }
.documento strong { color: var(--texto); font-weight: 600; }
.documento em { font-style: italic; }
.documento ul { margin: 0 0 1.1rem 1.2rem; }
.documento li { margin-bottom: .45rem; line-height: 1.6; color: var(--texto-2); }
.documento a { color: var(--senal); }

.documento .destacado {
  background: var(--senal-suave); border-left: 3px solid var(--senal);
  padding: .9rem 1.1rem; border-radius: 0 var(--r-md) var(--r-md) 0;
  color: #12457F; margin: 1.2rem 0;
}
.documento .destacado strong { color: #0F2B46; }

.tabla-doc {
  width: 100%; border-collapse: collapse; font-size: .85rem;
  margin: 1rem 0 1.4rem; background: var(--superficie);
  border: 1px solid var(--borde); border-radius: var(--r-md); overflow: hidden;
}
.tabla-doc th {
  text-align: left; padding: .6rem .8rem; background: var(--fondo);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--texto-3); font-weight: 600;
}
.tabla-doc td {
  padding: .65rem .8rem; border-top: 1px solid var(--borde);
  color: var(--texto-2); line-height: 1.5; vertical-align: top;
}

/* Botón "Ir a mi panel" en la barra pública (cuando hay sesión activa) */
.publico__panel { gap: .4rem; }
.publico__panel svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .publico__barra { padding: .8rem 1.1rem; flex-wrap: wrap; gap: .7rem; }
  .publico__nav { gap: 1rem; font-size: .85rem; }
  .acceso__marca-texto small { display: none; }
}

/* Segunda línea del pie: aviso legal, más tenue */
.pie__legal {
  max-width: 1120px; margin: .3rem auto 0;
  font-size: .74rem; color: rgba(255,255,255,.35);
}

/* ============================================================
   PORTADA PÚBLICA (landing) — responsive
   ============================================================ */
.lp { min-height: 100vh; display: flex; flex-direction: column; }
.lp__contenedor { max-width: 1100px; margin: 0 auto; width: 100%; }

/* ---- Barra ---- */
.lp__barra {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.lp__marca { display: flex; align-items: center; text-decoration: none; }
.lp__logo { height: 34px; width: auto; display: block; }
.lp__nav { display: flex; align-items: center; gap: 1.6rem; }
.lp__nav a {
  color: var(--texto-2); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.lp__nav a:hover { color: var(--texto); }
.lp__nav .boton { color: #fff; }
.lp__ingresar { white-space: nowrap; }

.lp__menu {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; flex-direction: column; gap: 4px;
}
.lp__menu span {
  display: block; width: 22px; height: 2px; background: var(--texto);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
.lp__menu--abierto span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp__menu--abierto span:nth-child(2) { opacity: 0; }
.lp__menu--abierto span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Portada ---- */
.lp__portada {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: center;
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 4rem 2rem 4.5rem;
}
.lp__etiqueta {
  display: inline-block; padding: .3rem .75rem; border-radius: 99px;
  background: var(--senal-suave); color: var(--senal);
  font-size: .78rem; font-weight: 600; margin-bottom: 1.1rem;
}
.lp__titulo {
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.08;
  letter-spacing: -.03em; margin-bottom: 1.1rem;
}
.lp__titulo em { font-style: normal; color: var(--senal); }
.lp__bajada {
  font-size: 1.05rem; line-height: 1.6; color: var(--texto-2);
  max-width: 44ch; margin-bottom: 1.8rem;
}
.lp__acciones { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.boton--grande { padding: .8rem 1.5rem; font-size: .95rem; }
.boton--claro {
  background: #fff; color: var(--marino);
}
.boton--claro:hover { background: var(--papel); }
.lp__nota { font-size: .82rem; color: var(--texto-3); }

/* ---- Demo visual ---- */
.demo {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(15,43,70,.12), 0 3px 8px rgba(15,43,70,.06);
}
.demo__barra {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .85rem; background: var(--fondo);
  border-bottom: 1px solid var(--borde);
}
.demo__punto {
  width: 9px; height: 9px; border-radius: 50%; background: var(--borde-fuerte);
}
.demo__url {
  margin-left: .6rem; font-size: .74rem; color: var(--texto-3);
  font-family: 'IBM Plex Mono', monospace;
}
.demo__cuerpo { padding: 1.1rem; }
.demo__linea-progreso {
  height: 5px; background: #EAECF0; border-radius: 99px; overflow: hidden;
  margin-bottom: .5rem;
}
.demo__relleno {
  height: 100%; width: 87%; background: var(--senal); border-radius: 99px;
  animation: avanzar 2.6s ease-out;
}
@keyframes avanzar { from { width: 0; } }
.demo__estado {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .8rem; color: var(--texto-2); margin-bottom: .9rem;
}
.demo__tabla { width: 100%; border-collapse: collapse; font-size: .78rem; }
.demo__tabla td {
  padding: .42rem .3rem; border-bottom: 1px solid #F1F3F5; color: var(--texto-2);
}
.demo__tabla tr:last-child td { border-bottom: none; }
.demo__pill {
  display: inline-block; padding: .1rem .4rem; border-radius: 4px;
  background: var(--verde-suave); color: #0B5C4C;
  font-size: .64rem; font-weight: 600;
}

/* ---- Secciones ---- */
.lp__seccion { padding: 4rem 2rem; }
.lp__seccion--claro { background: var(--superficie); border-block: 1px solid var(--borde); }
.lp__seccion-titulo {
  font-size: clamp(1.5rem, 3.4vw, 2rem); text-align: center;
  margin-bottom: .5rem; letter-spacing: -.02em;
}
.lp__seccion-bajada {
  text-align: center; color: var(--texto-2); font-size: 1rem;
  max-width: 50ch; margin: 0 auto 2.6rem;
}

/* ---- Comparación ---- */
.lp__problema { background: var(--papel); }
.comparacion { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.comparacion__lado {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-lg); padding: 1.6rem;
}
.comparacion__lado h3 { font-size: 1rem; margin-bottom: 1rem; }
.comparacion__lado ul { list-style: none; }
.comparacion__lado li {
  padding-left: 1.6rem; margin-bottom: .65rem; position: relative;
  color: var(--texto-2); font-size: .89rem; line-height: 1.5;
}
.comparacion__lado li::before {
  position: absolute; left: 0; top: -1px; font-weight: 600;
}
.comparacion__lado--malo { border-top: 3px solid var(--rojo); }
.comparacion__lado--malo li::before { content: "✕"; color: var(--rojo); }
.comparacion__lado--bueno { border-top: 3px solid var(--senal); }
.comparacion__lado--bueno li::before { content: "✓"; color: var(--senal); }
.comparacion__lado strong { color: var(--texto); }

/* ---- Pasos ---- */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.paso { position: relative; padding-top: .4rem; }
.paso__num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--marino); color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: .95rem;
  margin-bottom: .9rem;
}
.paso__titulo { font-size: 1rem; margin-bottom: .4rem; }
.paso__desc { color: var(--texto-2); font-size: .89rem; line-height: 1.6; }

/* ---- Características ---- */
.rejilla-caract {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.5rem 2rem;
}
.caract { padding-left: 1rem; border-left: 2px solid var(--senal); }
.caract__titulo { font-size: .95rem; margin-bottom: .35rem; }
.caract__desc { color: var(--texto-2); font-size: .87rem; line-height: 1.6; }

/* ---- Plan ---- */
.plan-unico { max-width: 520px; margin: 0 auto; }
.plan-unico__cuerpo {
  background: var(--superficie); border: 1px solid var(--borde);
  border-top: 3px solid var(--senal);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: var(--sombra-media); text-align: center;
}
.plan-unico__etiqueta {
  display: inline-block; padding: .28rem .7rem; border-radius: 99px;
  background: var(--senal-suave); color: var(--senal);
  font-size: .76rem; font-weight: 600; margin-bottom: .9rem;
}
.plan-unico__titulo { font-size: 1.35rem; margin-bottom: .5rem; }
.plan-unico__desc {
  color: var(--texto-2); font-size: .92rem; line-height: 1.6; margin-bottom: 1.4rem;
}
.plan-unico__lista { list-style: none; text-align: left; margin-bottom: 1.6rem; }
.plan-unico__lista li {
  padding-left: 1.6rem; margin-bottom: .6rem; position: relative;
  color: var(--texto-2); font-size: .89rem;
}
.plan-unico__lista li::before {
  content: "✓"; position: absolute; left: 0; color: var(--senal); font-weight: 600;
}
.plan-unico__nota {
  margin-top: 1.1rem; font-size: .8rem; color: var(--texto-3); line-height: 1.5;
}

/* ---- Cierre ---- */
.lp__cierre {
  background: var(--marino); color: #fff;
  padding: 3.6rem 2rem; text-align: center;
}
.lp__cierre-titulo {
  font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: .6rem; letter-spacing: -.02em;
}
.lp__cierre-texto {
  color: rgba(255,255,255,.7); font-size: 1rem; max-width: 46ch;
  margin: 0 auto 1.8rem; line-height: 1.6;
}

/* ============================================================
   RESPONSIVE DE LA PORTADA
   ============================================================ */
@media (max-width: 880px) {
  .lp__portada { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 1.2rem 3rem; }
  .lp__bajada { max-width: none; }
  .comparacion { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; gap: 1.8rem; }
  .lp__seccion { padding: 3rem 1.2rem; }

  /* Menú desplegable */
  .lp__barra { padding: .8rem 1.2rem; }
  .lp__menu { display: flex; }
  .lp__nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--superficie); border-bottom: 1px solid var(--borde);
    padding: .5rem 1.2rem 1.1rem;
    box-shadow: 0 10px 24px rgba(15,43,70,.08);
  }
  .lp__nav--abierto { display: flex; }
  .lp__nav a {
    padding: .75rem 0; border-bottom: 1px solid var(--borde); font-size: .95rem;
  }
  .lp__nav .boton { margin-top: .8rem; border: none; justify-content: center; }
  .lp__nav a:last-child { border-bottom: none; }
}

@media (max-width: 520px) {
  .lp__logo { height: 28px; }
  .lp__acciones { flex-direction: column; align-items: stretch; }
  .lp__acciones .boton { width: 100%; }
  .demo__tabla td:nth-child(2) {
    max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .plan-unico__cuerpo { padding: 1.5rem 1.2rem; }
}

/* ---- Logo en distintos contextos ---- */
.glifo-img { width: 32px; height: 32px; display: block; border-radius: 8px; }
.marca__glifo, .acceso__glifo, .pie__glifo { background: none !important; padding: 0; }
.acceso__glifo .glifo-img { width: 34px; height: 34px; }
.pie__glifo .glifo-img { width: 24px; height: 24px; }

/* En la barra lateral oscura el isotipo lleva un halo claro para separarse
   del fondo marino, ya que comparten color. */
.lateral .glifo-img {
  background: rgba(255,255,255,.1);
  padding: 2px; box-sizing: content-box;
}

/* ---- Volver al inicio (pantallas de acceso) ---- */
.volver-inicio {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  margin-top: .9rem; padding-top: .9rem;
  border-top: 1px solid var(--borde);
  color: var(--texto-3); text-decoration: none; font-size: .83rem;
  transition: color .13s;
}
.volver-inicio:hover { color: var(--senal); }
.volver-inicio svg { width: 14px; height: 14px; }

/* El bloque de marca clicable no debe verse como enlace de texto */
a.acceso__marca, a.lateral__marca, a.publico__marca {
  text-decoration: none; color: inherit;
}
a.acceso__marca:hover .acceso__marca-texto,
a.publico__marca:hover { opacity: .85; }
a.lateral__marca { transition: opacity .13s; }
a.lateral__marca:hover { opacity: .85; }

.publico__logo { height: 32px; width: auto; display: block; }

/* Enlaces en la pantalla de mantenimiento */
.obra__enlaces {
  display: flex; gap: 1.2rem; justify-content: center; margin-top: 1.8rem;
  padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
}
.obra__enlaces a {
  color: rgba(255,255,255,.45); text-decoration: none; font-size: .82rem;
}
.obra__enlaces a:hover { color: rgba(255,255,255,.8); }

/* ---- Indicador de cupo mensual ---- */
.cupo {
  background: var(--superficie); border: 1px solid var(--borde);
  border-radius: var(--r-md); padding: .9rem 1.1rem; margin-bottom: 1.2rem;
}
.cupo__enc {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .5rem; gap: .8rem; flex-wrap: wrap;
}
.cupo__plan { font-size: .82rem; font-weight: 600; }
.cupo__cifras { font-size: .8rem; color: var(--texto-2); }
.cupo__barra {
  height: 5px; background: #EAECF0; border-radius: 99px; overflow: hidden;
}
.cupo__relleno {
  height: 100%; background: var(--senal); border-radius: 99px;
  transition: width .4s ease;
}
.cupo__pie { margin-top: .5rem; font-size: .8rem; color: var(--texto-2); }
.cupo__pie strong { color: var(--texto); }

.cupo--alerta { border-color: #F4C77B; }
.cupo--alerta .cupo__relleno { background: var(--ambar); }
.cupo--agotado { border-color: #FDA29B; background: var(--rojo-suave); }
.cupo--agotado .cupo__relleno { background: var(--rojo); }
.cupo--agotado .cupo__pie { color: #912018; }

/* ============================================================
   PANEL DE ADMINISTRACIÓN
   ============================================================ */

/* ---- Semáforo de tráfico al SII ---- */
.semaforo { border-left: 3px solid var(--verde-ok); }
.semaforo--medio { border-left-color: var(--ambar); }
.semaforo--alto { border-left-color: var(--rojo); }

.semaforo__enc {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: .8rem;
}
.semaforo__titulo {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: .98rem;
  margin-bottom: .2rem;
}
.semaforo__aviso { font-size: .85rem; color: var(--texto-2); }
.semaforo__cifra {
  font-family: 'Archivo', sans-serif; font-size: 1.7rem; font-weight: 600;
  line-height: 1; white-space: nowrap;
}
.semaforo__cifra small {
  font-size: .85rem; font-weight: 400; color: var(--texto-3);
}
.semaforo--alto .semaforo__cifra { color: var(--rojo); }
.semaforo--medio .semaforo__cifra { color: var(--ambar); }

.semaforo__barra {
  height: 5px; background: #EAECF0; border-radius: 99px; overflow: hidden;
}
.semaforo__relleno {
  height: 100%; background: var(--verde-ok); border-radius: 99px;
  transition: width .4s ease;
}
.semaforo--medio .semaforo__relleno { background: var(--ambar); }
.semaforo--alto .semaforo__relleno { background: var(--rojo); }
.semaforo__nota {
  margin-top: .7rem; font-size: .79rem; color: var(--texto-3); line-height: 1.5;
}

/* ---- Tendencia de 14 días ---- */
.tendencia {
  display: flex; align-items: flex-end; gap: 4px; height: 90px;
}
.tendencia__col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; gap: .3rem;
}
.tendencia__barra {
  width: 100%; background: var(--senal); border-radius: 3px 3px 0 0;
  min-height: 2px; transition: height .3s ease;
}
.tendencia__col:hover .tendencia__barra { background: var(--marino); }
.tendencia__dia {
  font-family: 'IBM Plex Mono', monospace; font-size: .64rem; color: var(--texto-3);
}

/* ---- Tabla de cuentas ---- */
.tabla--admin td { vertical-align: middle; }
.celda-usuario { display: flex; flex-direction: column; gap: .1rem; }
.celda-usuario__mail { font-size: .76rem; color: var(--texto-3); }
.celda-fecha { font-size: .78rem; color: var(--texto-2); white-space: nowrap; }

.etiqueta-admin {
  display: inline-block; padding: .05rem .3rem; border-radius: 3px;
  background: var(--marino); color: #fff;
  font-size: .6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; margin-left: .3rem;
}

.punto-ok, .punto-no {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.punto-ok { background: var(--verde-ok); }
.punto-no { background: var(--borde-fuerte); }

.form-plan { margin: 0; }
.form-plan select {
  padding: .3rem .45rem; font-size: .8rem; border-radius: var(--r-sm);
  border: 1px solid var(--borde-fuerte); background: var(--superficie);
  font-family: inherit; color: var(--texto); cursor: pointer;
}
.form-plan select:disabled { opacity: .5; cursor: default; }

.mini-cupo { display: flex; align-items: center; gap: .5rem; min-width: 120px; }
.mini-cupo__barra {
  flex: 1; height: 4px; background: #EAECF0; border-radius: 99px; overflow: hidden;
}
.mini-cupo__relleno { height: 100%; background: var(--senal); border-radius: 99px; }
.mini-cupo__relleno--alto { background: var(--rojo); }
.mini-cupo__texto { font-size: .76rem; color: var(--texto-2); white-space: nowrap; }

.fila-inactiva { opacity: .5; }

.nota-admin {
  font-size: .79rem; color: var(--texto-3); line-height: 1.5;
  padding-left: .8rem; border-left: 2px solid var(--borde);
  margin-bottom: 1rem;
}

.celda-usuario__linea { display: flex; align-items: center; gap: .4rem; }
.etiqueta-admin { margin-left: 0; flex: none; }
