/* Panel y portal del agente de voz IA (NO es BRISA el sistema; el ESTILO sigue la web de BRISA, pedido de Rodri 12/11):
   fondo crema con manchas pastel que se mueven, tarjetas blancas de vidrio, letra Geist + Geist Mono, varios colores,
   gráficos que crecen y se pueden tocar. */
:root {
  --fondo: #fbf8f5; --papel: rgba(255, 255, 255, .84); --papel-solido: #fff; --tinta: #16131f; --suave: #6e6880; --tenue: #a7a1b8;
  --linea: rgba(22, 19, 31, .08); --linea2: rgba(22, 19, 31, .045);
  --violeta: #5a33d6; --lavanda: #b49bff; --lavanda-claro: #eeeaf6; --azul: #2f49e0; --azul-claro: #e7ebff;
  --menta: #3ee6a8; --verde: #0e9f6e; --verde-claro: #e3f8ef; --durazno: #ff9a6b; --naranja: #ea6a1f; --naranja-claro: #fff0e6;
  --amarillo: #f5b83d; --amarillo-claro: #fff6df; --rosa: #ec4899; --rosa-claro: #fde7f3; --rojo: #d6334a; --rojo-claro: #fde8ec;
  --acento: linear-gradient(110deg, #2f49e0 0%, #5a33d6 50%, #b04ad8 100%);
  --sombra: 0 1px 2px rgba(22, 19, 31, .04), 0 10px 30px rgba(90, 51, 214, .07);
  --sombra-alta: 0 2px 4px rgba(22, 19, 31, .05), 0 18px 44px rgba(90, 51, 214, .14);
  --radio: 20px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--fondo); }
body { margin: 0; color: var(--tinta); background: transparent; min-height: 100vh;
  font: 14px/1.5 Geist, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--violeta); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; font-weight: 600; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.suave { color: var(--suave); }
.chico { font-size: 12px; }
.mono, .tabla .num, .kpi .valor { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.oculto { display: none !important; }
.rotulo-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }

/* ---------- fondo con manchas pastel que se mueven (como la web de BRISA) ---------- */
.fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--fondo); }
.fondo span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: brisa 22s ease-in-out infinite alternate; }
.fondo span:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: #c9d2ff; }
.fondo span:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: -10vw; background: #ffd5c2; animation-duration: 26s; }
.fondo span:nth-child(3) { width: 40vw; height: 40vw; right: 10vw; bottom: -18vw; background: #e4d8ff; animation-duration: 30s; }
.fondo span:nth-child(4) { width: 30vw; height: 30vw; left: 20vw; bottom: -12vw; background: #c6f5e2; animation-duration: 24s; }
@keyframes brisa { 0% { transform: translate3d(0, 0, 0) rotate(0) scale(1); } 50% { transform: translate3d(-3%, 2%, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) rotate(-4deg) scale(1.02); } }

/* ---------- estructura del panel ---------- */
.marco { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.lateral { background: var(--papel); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--sombra); padding: 18px 12px;
  position: sticky; top: 14px; margin: 14px 0 14px 14px; height: calc(100vh - 28px); border-radius: 22px; display: flex; flex-direction: column; gap: 3px;
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.lateral .logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.lateral .logo .marca { width: 34px; height: 34px; border-radius: 10px; background: var(--tinta); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.lateral .logo b { display: block; font-size: 15px; letter-spacing: .14em; }
.lateral .logo small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }
.lateral a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; color: var(--tinta); transition: background .2s, transform .2s; }
.lateral a:hover { background: var(--lavanda-claro); text-decoration: none; transform: translateX(2px); }
.lateral a.activo { background: var(--tinta); color: #fff; box-shadow: 0 8px 20px rgba(22, 19, 31, .18); }
.lateral a .ico { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.lateral .pie { margin-top: auto; padding: 10px; font-size: 12px; color: var(--suave); border-top: 1px solid var(--linea); }
.contenido { padding: 26px 30px 70px; max-width: 1300px; width: 100%; }
.cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cabecera p { margin: 0; color: var(--suave); max-width: 720px; }
.cabecera .etiqueta-seccion { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--suave); background: var(--papel); border: 1px solid var(--linea); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- en vivo ---------- */
.vivo { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--verde); }
.vivo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: vivo 1.8s infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(14, 159, 110, .55); } 70% { box-shadow: 0 0 0 9px rgba(14, 159, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); } }

/* ---------- piezas ---------- */
.tarjeta, .lead, .kpi { background: var(--papel); border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--radio); box-shadow: var(--sombra);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.tarjeta { padding: 18px 20px; }
.tarjeta, .lead, .kpi { animation: entra .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tarjeta + .tarjeta, .bloque + .bloque { margin-top: 16px; }
.grilla { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { position: relative; overflow: hidden; padding: 16px 18px; transition: transform .25s, box-shadow .25s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c, var(--acento)); opacity: .9; }
.kpi::after { content: ''; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-suave, rgba(180, 155, 255, .35)), transparent 70%); }
.kpi .titulo { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.kpi .valor { font-size: 28px; font-weight: 500; margin-top: 6px; letter-spacing: -.02em; color: var(--tinta); }
.kpi .sub { color: var(--suave); font-size: 12px; margin-top: 3px; }
.c-azul { --c: #2f49e0; --c-suave: rgba(47, 73, 224, .16); } .c-violeta { --c: #5a33d6; --c-suave: rgba(90, 51, 214, .16); }
.c-verde { --c: #0e9f6e; --c-suave: rgba(62, 230, 168, .25); } .c-naranja { --c: #ea6a1f; --c-suave: rgba(255, 154, 107, .25); }
.c-amarillo { --c: #f5b83d; --c-suave: rgba(245, 184, 61, .25); } .c-rosa { --c: #ec4899; --c-suave: rgba(236, 72, 153, .18); }
.c-rojo { --c: #d6334a; --c-suave: rgba(214, 51, 74, .15); } .c-tinta { --c: #16131f; --c-suave: rgba(22, 19, 31, .08); }
.boton { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linea); background: var(--papel-solido); color: var(--tinta);
  padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s; }
.boton:hover { background: #fff; box-shadow: 0 6px 16px rgba(22, 19, 31, .08); text-decoration: none; transform: translateY(-1px); }
.boton:active { transform: translateY(0) scale(.98); }
.boton.primario { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.boton.primario:hover { background: #2a2536; }
.boton.azul { background: var(--acento); color: #fff; border-color: transparent; }
.boton.verde { color: var(--verde); border-color: #bfeedd; background: var(--verde-claro); }
.boton.peligro { color: var(--rojo); border-color: #f5c6cf; }
.boton.peligro:hover { background: var(--rojo-claro); }
.boton:disabled { opacity: .5; cursor: default; transform: none; }
.boton.chico { padding: 4px 10px; font-size: 12px; }
.pastillas { display: inline-flex; background: var(--papel); border: 1px solid var(--linea); border-radius: 999px; padding: 3px; gap: 2px; }
.pastillas button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font: inherit; cursor: pointer; color: var(--suave); transition: background .2s, color .2s; }
.pastillas button.activo { background: var(--tinta); color: #fff; }
.etiqueta { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.e-caliente { background: var(--rojo-claro); color: var(--rojo); } .e-capturado { background: var(--naranja-claro); color: var(--naranja); }
.e-seguimiento { background: var(--azul-claro); color: var(--azul); } .e-ok { background: var(--verde-claro); color: var(--verde); }
.e-gris { background: var(--lavanda-claro); color: var(--suave); } .e-prueba { background: var(--amarillo-claro); color: #8a6200; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--lavanda-claro); color: #4a4558; border-radius: 999px; padding: 3px 10px; font-size: 12px;
  cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.chip:hover, .chip.activo { background: #fff; border-color: var(--lavanda); }
.chip .punto { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--violeta)); }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--linea); border-radius: 12px; padding: 9px 11px; background: rgba(255, 255, 255, .9); width: 100%;
  transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lavanda); box-shadow: 0 0 0 4px rgba(180, 155, 255, .25); }
label.campo { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
.ayuda { color: var(--suave); font-size: 12px; margin-top: 3px; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fila > .crece { flex: 1; }
.separa { height: 1px; background: var(--linea); margin: 18px 0; }

/* ---------- tablas ---------- */
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); font-weight: 500;
  padding: 9px 10px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.tabla td { padding: 9px 10px; border-bottom: 1px solid var(--linea2); vertical-align: top; }
.tabla tr.clic { cursor: pointer; }
.tabla tr.clic:hover td { background: rgba(180, 155, 255, .1); }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla tfoot td { font-weight: 600; border-top: 1px solid var(--linea); }
.desborde { overflow-x: auto; }

/* ---------- gráficos (crecen al cargar, cartel al pasar el mouse, se pueden tocar) ---------- */
.grafico { width: 100%; height: 190px; overflow: visible; }
.grafico text { font-family: var(--mono); font-size: 9.5px; fill: var(--tenue); }
.grafico .barra { transform-box: fill-box; transform-origin: bottom; animation: alza .8s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 16ms); transition: opacity .2s, filter .2s; }
.grafico .barra:hover { filter: brightness(1.12) saturate(1.2); }
.grafico.clicable .barra { cursor: pointer; }
.grafico:hover .barra:not(:hover) { opacity: .75; }
@keyframes alza { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.grafico .linea-trazo { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: traza 1.6s ease forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }

/* barras verticales en HTML (el texto no se estira nunca) */
.barras-v { position: relative; height: var(--alto, 200px); padding: 0 0 22px 34px; }
.barras-v .eje-y, .linea-g .eje-y { position: absolute; left: 0; top: 0; bottom: 22px; width: 30px; }
.barras-v .eje-y span, .linea-g .eje-y span { position: absolute; right: 4px; transform: translateY(50%); font-family: var(--mono); font-size: 10px; color: var(--tenue); }
.barras-v .reja { position: absolute; left: 34px; right: 0; top: 0; bottom: 22px; pointer-events: none; border-bottom: 1px solid var(--linea); }
.barras-v .reja i { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(22, 19, 31, .08); }
.barras-v .cols { position: relative; display: grid; height: 100%; }
.barras-v .col { display: flex; flex-direction: column; min-width: 0; border-radius: 10px; transition: background .2s; }
.barras-v .col:hover { background: rgba(22, 19, 31, .035); }
.barras-v.clicable .col { cursor: pointer; }
.barras-v .pila { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.barras-v .b { width: min(46px, 62%); min-height: 3px; border-radius: 9px 9px 3px 3px; transform-origin: bottom; animation: alza .9s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 28ms); transition: filter .2s, opacity .2s; box-shadow: 0 6px 14px rgba(22, 19, 31, .08); }
.barras-v.doble .b { width: min(22px, 34%); }
.barras-v .b.cero { min-height: 0; box-shadow: none; }
.barras-v .col:hover .b { filter: brightness(1.08) saturate(1.25); }
.barras-v:hover .col:not(:hover) .b { opacity: .55; }
.barras-v .v { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--tinta);
  animation: asoma .4s both; animation-delay: calc(.6s + var(--i, 0) * 28ms); }
.barras-v .et { height: 22px; line-height: 22px; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--tenue); white-space: nowrap; }

/* curva (línea) con textos y puntos en HTML */
.linea-g { position: relative; height: var(--alto, 230px); padding: 0 0 22px 34px; }
.linea-g .lienzo { position: relative; height: 100%; border-bottom: 1px solid var(--linea); }
.linea-g svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.linea-g .reja { stroke: rgba(22, 19, 31, .08); stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.linea-g .promedio { stroke: #2b2a2f; stroke-width: 1.5; stroke-dasharray: 7 6; opacity: .6; vector-effect: non-scaling-stroke; }
.linea-g .trazo { stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.linea-g .dibujo { animation: destapa 1.5s cubic-bezier(.4, .1, .2, 1) both; }
@keyframes destapa { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.linea-g .punto { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; border: 2.4px solid var(--c);
  pointer-events: none; animation: asoma .3s both; animation-delay: calc(.9s + var(--i, 0) * 22ms); z-index: 2; }
.linea-g .zona { position: absolute; top: 0; bottom: 0; z-index: 3; }
.linea-g .zona i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--c); opacity: 0; transition: opacity .15s; }
.linea-g .zona:hover i { opacity: .7; }
.linea-g.clicable .zona { cursor: pointer; }
.linea-g .tag-prom { position: absolute; right: 0; transform: translateY(-4px); font-family: var(--mono); font-size: 10px; background: #2b2a2f; color: #fff;
  padding: 1px 7px; border-radius: 999px; z-index: 2; animation: asoma .4s 1.2s both; pointer-events: none; }
.linea-g .eje-x { position: absolute; left: 34px; right: 0; bottom: 0; height: 22px; }
.linea-g .eje-x span { position: absolute; top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--tenue); white-space: nowrap; }
@keyframes asoma { from { opacity: 0; transform: scale(.6); } to { opacity: 1; } }
@media (max-width: 700px) { .linea-g .eje-x span.alt, .linea-g .tag-prom { display: none; } .linea-g .punto { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-width: 2px; } }
.barras-h .item { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; border-radius: 10px; padding: 2px 4px; }
.barras-h.clicable .item { cursor: pointer; transition: background .2s; }
.barras-h.clicable .item:hover { background: rgba(180, 155, 255, .14); }
.barras-h .barra { height: 10px; border-radius: 6px; background: var(--c, var(--acento)); min-width: 3px; transform-origin: left;
  animation: crece .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.barras-h .pista { background: var(--lavanda-claro); border-radius: 6px; }
@keyframes crece { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.progreso { height: 9px; background: var(--lavanda-claro); border-radius: 6px; overflow: hidden; }
.progreso > div { height: 100%; background: var(--acento); transform-origin: left; animation: crece 1s ease both; }
.anillo { display: flex; align-items: center; gap: 14px; }
.anillo svg { flex: none; }
.anillo .arco { animation: gira 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes gira { from { stroke-dasharray: 0 999; } }
.dona { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dona svg { flex: none; }
.dona .porcion { transition: transform .2s; transform-origin: 70px 70px; cursor: pointer; }
.dona .porcion:hover { transform: scale(1.05); }
.dona .leyenda { flex: 1; min-width: 180px; }
.dona .leyenda div { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; cursor: pointer; border-radius: 8px; padding: 2px 4px; }
.dona .leyenda div:hover { background: rgba(180, 155, 255, .14); }
.dona .leyenda i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dona .leyenda b { margin-left: auto; font-family: var(--mono); font-weight: 500; }
#tip { position: fixed; z-index: 80; pointer-events: none; background: var(--tinta); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(22, 19, 31, .25); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; opacity: 0; transition: opacity .12s; }
#tip.visible { opacity: 1; }
#tip b { font-family: var(--mono); font-weight: 500; }

/* ---------- leads ---------- */
.lead { padding: 15px 17px; transition: transform .2s, box-shadow .2s; }
.lead:hover { box-shadow: var(--sombra-alta); }
.lead + .lead { margin-top: 10px; }
.lead .arriba { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lead .nombre { font-weight: 600; font-size: 15px; }
.lead .datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px 16px; margin: 11px 0; }
.lead .datos .rotulo { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.lead .obs { background: rgba(238, 234, 246, .55); border-radius: 12px; padding: 10px 12px; margin: 8px 0; border-left: 3px solid var(--lavanda); }
.lead .abajo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lead audio { height: 34px; flex: 1; min-width: 220px; }
.lead.gestionado { opacity: .72; }
.lead[data-temp="Lead caliente"] { border-left: 4px solid var(--rojo); }
.lead[data-temp="Lead capturado"] { border-left: 4px solid var(--durazno); }
.lead[data-temp="En seguimiento"] { border-left: 4px solid var(--azul); }

/* ---------- modal, avisos, bandas ---------- */
.velo { position: fixed; inset: 0; background: rgba(22, 19, 31, .3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.modal { background: #fff; border-radius: 22px; padding: 22px; width: min(560px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 24px 60px rgba(22, 19, 31, .25);
  animation: sube .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes sube { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal.ancho { width: min(880px, 100%); }
.aviso { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 11px 18px; border-radius: 999px;
  z-index: 60; box-shadow: 0 10px 30px rgba(22, 19, 31, .3); max-width: 90vw; animation: sube .25s ease; }
.aviso.error { background: var(--rojo); }
.charla .linea { margin: 7px 0; display: flex; gap: 10px; }
.charla .quien { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; min-width: 70px; color: var(--suave); padding-top: 2px; }
.charla .agente .quien { color: var(--violeta); }
.cargando { color: var(--suave); padding: 24px 0; }
.vacio { color: var(--suave); text-align: center; padding: 36px 12px; }
.banda { padding: 11px 15px; border-radius: 16px; margin-bottom: 14px; border: 1px solid var(--linea); }
.banda.ok { background: var(--verde-claro); color: var(--verde); border-color: #c6eedc; }
.banda.apagado { background: var(--papel); color: var(--suave); }
.banda.alerta { background: var(--amarillo-claro); color: #7a5600; border-color: #f6e2ac; }

/* ---------- ingreso ---------- */
.ingreso { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ingreso .caja { width: min(390px, 100%); padding: 26px; }
.ingreso h1 { font-size: 30px; }
.degradado { background: var(--acento); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- portal ---------- */
.portal { max-width: 980px; margin: 0 auto; padding: 18px 16px 70px; }
.portal .cabeza { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 10px 10px; margin-bottom: 18px;
  background: var(--papel); border: 1px solid rgba(255, 255, 255, .95); border-radius: 999px; box-shadow: var(--sombra);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); position: sticky; top: 10px; z-index: 20; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .marco { grid-template-columns: 1fr; }
  .lateral { position: static; height: auto; flex-direction: row; flex-wrap: wrap; margin: 10px; padding: 10px; border-radius: 18px; }
  .lateral .logo { width: 100%; padding-bottom: 6px; }
  .lateral .pie { display: none; }
  .contenido { padding: 14px; }
  .g3, .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2 { grid-template-columns: 1fr; }
  .barras-h .item { grid-template-columns: 100px 1fr 38px; }
  .portal .cabeza { border-radius: 20px; }
}
