/* Identidad WattClaro. El recibo CFE y las escalas de datos conservan su propia paleta. */
:root {
  --marca-marino: #0e2236;
  --marca-cian: #17b3c8;
  --marca-cian-texto: #087f93;
  --marca-ambar: #f5a623;
  --marca-ahorro: #9b6200;
  --boton-fondo: #0e2236; --boton-hover: #173a54; --boton-borde: #0e2236;
  --sobre-acento: #fff;
  --fondo: #f3f6f8;
  --panel: #ffffff;
  --texto: #172d42;
  --suave: #536575;
  --borde: #dce4eb;
  --primario: #0e2236;
  --primario-2: #087f93;
  --acento: #eaf7fa;
  --ok: #1f8a50;
  --parcial: #d99100;
  --falta: #c4322a;
  --nopub: #cfd8d4;
  --ok-t: #1f7a4a; --ok-f: #e4f4ea;
  --av-t: #9a6200; --av-f: #fbf0d9;
  --er-t: #b3261e; --er-f: #fbe5e3;
  --pe-t: #6b4fbb; --pe-f: #eee9fb;
  --id-t: #6f7b76; --id-f: #eef1f0;
  --lateral: #0e2236; --lateral-t: #e8f0f7; --lateral-s: #a4b7c7;
  --sombra: 0 1px 2px rgba(14, 34, 54, .04), 0 6px 20px rgba(14, 34, 54, .05);
  --radio: 12px;
  --f-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-datos: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-family: var(--f-ui);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0b1928; --panel: #12283b; --texto: #e8f0f7; --suave: #a4b7c7; --borde: #34485b;
    --primario: #8ddde8; --primario-2: #55d2e2; --acento: #163e4d; --nopub: #34485b;
    --sobre-acento: #0e2236; --boton-borde: #55d2e2; --marca-ahorro: #ffcd78;
    --ok-t: #5fd393; --ok-f: #173326; --av-t: #f0b955; --av-f: #3a2d12; --er-t: #f2867d; --er-f: #3d1c1a;
    --pe-t: #b9a6f5; --pe-f: #2a2342; --id-t: #8a9893; --id-f: #1d2622;
    --lateral: #0b1b2b; --sombra: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-size: 14px; line-height: 1.45; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15.5px; font-weight: 650; }
h3 { font-size: 14px; margin-top: 18px; }
small, .sub { color: var(--suave); }
.sub { margin: 6px 0 12px; line-height: 1.45; }
code { font-family: var(--f-datos); font-size: 12px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 5px; padding: 0 4px; }
:focus-visible { outline: 2px solid var(--primario-2); outline-offset: 2px; }

/* ---------- estructura: riel de iconos (56 px) que se despliega encima del lienzo */
.app { display: grid; grid-template-columns: 56px minmax(0, 1fr); min-height: 100%; }
.lateral { background: var(--lateral); color: var(--lateral-t); padding: 12px 8px; display: flex; flex-direction: column; gap: 14px; position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 56px; overflow: hidden auto; scrollbar-width: none; transition: width .18s ease, box-shadow .18s ease; }
.lateral:hover, .lateral:focus-within { width: 236px; box-shadow: 12px 0 32px rgba(0, 0, 0, .28); }
.lateral .lbl { white-space: nowrap; opacity: 0; transition: opacity .12s; min-width: 0; }
.lateral:hover .lbl, .lateral:focus-within .lbl { opacity: 1; transition-delay: .06s; }
.marca { display: flex; gap: 10px; align-items: center; padding: 0 0 0 4px; }
.marca b { font-size: 15px; }
.marca small { display: block; color: var(--lateral-s); font-size: 11.5px; font-family: var(--f-datos); }
.logo { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--primario-2); display: grid; place-items: center; color: var(--sobre-acento); font-weight: 700; font-size: 11.5px; letter-spacing: .02em; }
/* Los SVG son los originales de marca/, con texto en curvas y área libre propia del contenedor. */
.wc-identidad { display: inline-flex; align-items: center; flex: none; padding: 10px; line-height: 0; }
.wc-identidad img { display: block; width: 180px; height: auto; max-width: 100%; object-fit: contain; }
.wc-identidad .wc-logo-oscuro { display: none; }
.wc-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.marca.wc-riel { gap: 0; padding-left: 4px; min-height: 55px; }
.wc-riel-simbolo { flex: none; width: 32px; height: 32px; object-fit: contain; }
.wc-riel .wc-riel-marca { display: none; padding: 6px 0; }
.wc-riel-marca img { width: 180px; height: auto; display: block; }
.wc-riel-marca small { margin-top: 10px; font-family: var(--f-ui); }
.lateral:hover .wc-riel-simbolo, .lateral:focus-within .wc-riel-simbolo { display: none; }
.lateral:hover .wc-riel-marca, .lateral:focus-within .wc-riel-marca { display: block; }
.wc-bienvenida { margin-bottom: 10px; padding-left: 0; }
@media screen and (prefers-color-scheme: dark) {
  .wc-identidad .wc-logo-claro { display: none; }
  .wc-identidad .wc-logo-oscuro { display: block; }
}
@media screen and (max-width: 760px) { .wc-identidad { padding: 8px; } .wc-identidad img { width: 132px; } }
@media print {
  .wc-identidad .wc-logo-claro { display: block !important; }
  .wc-identidad .wc-logo-oscuro { display: none !important; }
}
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu .grupo { color: var(--lateral-s); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; padding: 10px 6px 4px; border-top: 1px solid #ffffff14; margin-top: 4px; height: 26px; }
.menu .grupo .lbl { display: flex; justify-content: space-between; gap: 6px; }
.menu .grupo span span { text-transform: none; letter-spacing: 0; font-family: var(--f-datos); }
.menu a { color: var(--lateral-t); text-decoration: none; padding: 8px 10px; border-radius: 8px; display: flex; gap: 12px; align-items: center; font-weight: 500; min-height: 38px; }
.menu a svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu a .lbl { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.menu a:hover { background: #ffffff12; }
.menu a.activa { background: #ffffff1f; color: #fff; box-shadow: inset 3px 0 0 var(--primario-2); }
.menu a .n { font-family: var(--f-datos); font-size: 11px; color: var(--lateral-s); }
/* vista del simulador (solo app local): mismos renglones que el menú, como interruptor de dos opciones */
.menu-vista button { color: var(--lateral-t); background: none; border: 0; font: inherit; font-weight: 500; text-align: left; padding: 8px 10px; border-radius: 8px; display: flex; gap: 12px; align-items: center; min-height: 38px; cursor: pointer; }
.menu-vista button svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-vista button:hover { background: #ffffff12; }
.menu-vista button[aria-pressed="true"] { background: #ffffff1f; color: #fff; box-shadow: inset 3px 0 0 var(--solar, #F5A623); }
.menu-vista button:focus-visible { outline: 2px solid var(--primario-2); outline-offset: 1px; }
.menu .nuevo { font-style: normal; font-size: 10px; background: var(--primario-2); color: var(--sobre-acento); border-radius: 4px; padding: 1px 5px; }
/* Solo el pie del riel lateral: la clase .pie también la usan diálogos (catálogo de Paquetes) y no deben quedar invisibles */
.lateral .pie { margin-top: auto; color: var(--lateral-s); font-size: 11.5px; padding: 0 6px; white-space: normal; opacity: 0; }
.lateral:hover .pie, .lateral:focus-within .pie { opacity: 1; }

.lienzo { min-width: 0; display: flex; flex-direction: column; grid-column: 2; }
.cabecera { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px clamp(16px, 2.4vw, 32px) 0; min-height: 44px; }
.cabecera > div:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex-wrap: wrap; }
.cabecera h1 { font-size: 18px; font-weight: 700; }
.cabecera p { margin: 0; color: var(--suave); max-width: 80ch; font-size: 12.5px; }
body.tab-simulador .cabecera p { display: none; }
body.tab-simulador .cabecera-der { display: none; }
.cabecera-der { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body:not(.mensual) .solo-mensual { display: none; }
.selector-anios { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--suave); }
.chips.compacto .chip { padding: 4px 9px; font-family: var(--f-datos); font-size: 12px; }
.chips.compacto .chip input { display: none; }

main { padding: 14px clamp(16px, 2.4vw, 32px) 60px; max-width: 1560px; width: 100%; }
body.tab-simulador main { max-width: none; padding-top: 10px; padding-bottom: 24px; }
.tab { display: none; }
.tab.activa { display: block; }

.pildora { padding: 5px 11px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.pildora.gris { background: var(--id-f); color: var(--id-t); }
.pildora.verde { background: var(--ok-f); color: var(--ok-t); }
.pildora.ambar { background: var(--av-f); color: var(--av-t); }

/* ---------- piezas comunes */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tarjeta { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 18px; box-shadow: var(--sombra); }
.tarjeta .num { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tarjeta .eti, .eti { color: var(--suave); font-size: 12.5px; }
.tarjeta.ok .num { color: var(--ok); }
.tarjeta.falta .num { color: var(--falta); }

.panel { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 20px; box-shadow: var(--sombra); margin-bottom: 18px; }
.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1000px) { .dos-col { grid-template-columns: 1fr; } }
.fila-titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.acceso { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
.acceso:hover { border-color: var(--primario-2); }
.acceso .grande { font-size: 30px; font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pasos-lista { margin: 10px 0 0; padding-left: 20px; line-height: 1.7; }

.leyenda { display: flex; gap: 14px; color: var(--suave); font-size: 12px; flex-wrap: wrap; margin-top: 10px; }
.leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.c-ok { background: var(--ok); } .c-parcial { background: var(--parcial); } .c-falta { background: var(--falta); } .c-nopub { background: var(--nopub); }

.matriz { margin-bottom: 18px; }
.matriz h3 { margin: 0 0 10px; display: flex; justify-content: space-between; }
.rejilla { display: grid; gap: 4px; overflow-x: auto; }
.rejilla .cab { font-size: 11px; color: var(--suave); text-align: center; padding-bottom: 2px; }
.rejilla .tar { font-weight: 600; font-size: 12px; display: flex; align-items: center; padding-right: 6px; white-space: nowrap; }
.celda { height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 650; color: #fff; cursor: pointer; transition: transform .08s; font-variant-numeric: tabular-nums; }
.celda:hover { transform: scale(1.06); }
.celda.vacia { background: var(--nopub); color: var(--suave); cursor: default; }

.campo { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--borde); align-items: start; }
.campo > span { font-weight: 600; padding-top: 6px; }
@media (max-width: 640px) { .campo { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--borde); border-radius: 999px; padding: 6px 11px; cursor: pointer; user-select: none; font-size: 12.5px; background: var(--panel); }
.chip input { accent-color: var(--primario-2); margin: 0; }
.chip.on { border-color: var(--primario-2); background: var(--acento); }

.resumen-plan { margin: 16px 0; padding: 14px 16px; border-radius: 10px; background: var(--acento); line-height: 1.5; }
.botones, .fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.botones.vertical { flex-direction: column; align-items: stretch; }
.btn { border: 1px solid var(--borde); background: var(--panel); color: var(--texto); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--primario-2); }
.btn.primario { background: var(--boton-fondo); border-color: var(--boton-borde); color: #fff; }
.btn.primario:hover { background: var(--boton-hover); }
.btn.peligro { color: var(--falta); }
.btn.chico { padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.progreso { height: 12px; background: var(--borde); border-radius: 999px; overflow: hidden; margin: 12px 0; }
#barra { height: 100%; width: 0; background: linear-gradient(90deg, var(--marca-marino), var(--marca-cian)); transition: width .4s; }
.metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.metricas div { background: var(--fondo); border-radius: 10px; padding: 10px; }
.metricas b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.metricas span { color: var(--suave); font-size: 11.5px; }
.bitacora { height: 380px; overflow: auto; background: #0b1210; color: #cbd5e1; border-radius: 10px; padding: 10px 12px; font: 12px/1.55 var(--f-datos); }
.bitacora .ok { color: #4ade80; } .bitacora .mal { color: #f87171; } .bitacora .info { color: #93c5fd; } .bitacora .av { color: #fbbf24; }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.filtros select, .filtros input, .fila-url select, .fila-url input { border: 1px solid var(--borde); border-radius: 8px; padding: 7px 10px; font: inherit; background: var(--panel); color: var(--texto); }
.filtros input { min-width: 240px; }
.tabla-wrap { overflow: auto; max-height: 62vh; border: 1px solid var(--borde); border-radius: 10px; }
.tabla-wrap.sin-borde { border: 0; }
.tabla { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tabla th { position: sticky; top: 0; background: var(--fondo); text-align: left; padding: 9px 10px; font-weight: 650; border-bottom: 1px solid var(--borde); }
.tabla td { padding: 8px 10px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla tr:hover td { background: var(--acento); }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.tag.pendiente, .tag.no_publicado { background: var(--id-f); color: var(--id-t); }
.tag.vacio, .tag.error { background: var(--er-f); color: var(--er-t); }
.tag.rechazado { background: var(--av-f); color: var(--av-t); }
.tag.ok { background: var(--ok-f); color: var(--ok-t); }
.link { color: var(--primario-2); cursor: pointer; text-decoration: underline; }
.acceso .link { text-decoration: none; font-weight: 600; }

.lista { padding-left: 18px; line-height: 1.7; }
pre.texto { white-space: pre-wrap; background: var(--fondo); padding: 12px; border-radius: 10px; max-height: 360px; overflow: auto; font-size: 12px; }

/* ---------- documentos anuales */
.anios-doc { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.anio-doc { flex: 0 0 auto; min-width: 92px; border: 1px solid var(--borde); background: var(--panel); border-radius: 10px; padding: 9px 11px; cursor: pointer; text-align: left; color: var(--texto); font: inherit; transition: border-color .15s, box-shadow .15s; }
.anio-doc b { font-family: var(--f-datos); font-size: 15px; display: block; }
.anio-doc small { display: block; color: var(--suave); font-size: 11px; margin-top: 4px; white-space: nowrap; }
.anio-doc .puntos { display: flex; gap: 5px; margin-top: 6px; }
.anio-doc .puntos span { width: 9px; height: 9px; border-radius: 50%; }
.anio-doc.sel { border-color: var(--primario-2); box-shadow: 0 0 0 2px var(--acento); }
.anio-doc.futuro { border-style: dashed; }

.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1250px) { .pasos { grid-template-columns: 1fr 1fr; } .pasos .paso:last-child { grid-column: 1 / -1; } }
@media (max-width: 800px) { .pasos { grid-template-columns: 1fr; } }
.paso { background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--sombra); }
.paso h2 { display: flex; gap: 10px; align-items: center; }
.paso h2 i { font-style: normal; font-family: var(--f-datos); font-size: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--primario-2); flex: 0 0 auto; }
.nota { margin: 0; color: var(--suave); font-size: 12.5px; }
.soltar { border: 1.5px dashed var(--borde); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s; }
.soltar.lleno { border-style: solid; border-color: transparent; background: var(--acento); }
.soltar.encima { border-color: var(--primario-2); background: var(--acento); }
.soltar-cab, .soltar-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.soltar .ruta, .soltar .meta { font-family: var(--f-datos); font-size: 11.5px; color: var(--suave); }
.soltar .meta { font-family: var(--f-ui); font-size: 12.5px; color: var(--texto); }
.soltar .meta .av { color: var(--av-t); }
.fila-url { display: flex; gap: 6px; }
.fila-url input { flex: 1; min-width: 0; }
.prompt { margin: 0; background: var(--fondo); border: 1px solid var(--borde); border-radius: 9px; padding: 12px; font: 11.5px/1.55 var(--f-datos); white-space: pre-wrap; max-height: 260px; overflow: auto; }

.etiqueta { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; width: fit-content; }
.e-ok { color: var(--ok-t); background: var(--ok-f); }
.e-aviso { color: var(--av-t); background: var(--av-f); }
.e-error, .e-falta_fuente { color: var(--er-t); background: var(--er-f); }
.e-pendientes { color: var(--pe-t); background: var(--pe-f); }
.e-sin_extraer, .e-idle { color: var(--id-t); background: var(--id-f); }
.e-fuera_de_alcance { color: var(--id-t); background: transparent; border: 1px dashed var(--borde); }
.p-ok { background: var(--ok-t); } .p-aviso { background: var(--av-t); } .p-error, .p-falta_fuente { background: var(--er-t); }
.p-pendientes { background: var(--pe-t); } .p-sin_extraer { background: transparent; border: 1.5px solid var(--id-t); }
.p-fuera_de_alcance { background: transparent; border: 1.5px dashed var(--borde); }

.checks { display: flex; flex-direction: column; }
.chk { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--borde); cursor: pointer; }
.chk:first-child { border-top: 0; }
.chk .ic { font-weight: 700; font-family: var(--f-datos); text-align: center; }
.chk .t { font-weight: 600; }
.chk .d { color: var(--suave); font-size: 12.5px; overflow-wrap: anywhere; }
.chk .c { font-family: var(--f-datos); font-size: 12px; color: var(--suave); white-space: nowrap; }
.ic.ok { color: var(--ok-t); } .ic.aviso { color: var(--av-t); } .ic.error, .ic.falta_fuente { color: var(--er-t); }
.ic.pendientes { color: var(--pe-t); } .ic.sin_extraer, .ic.fuera_de_alcance { color: var(--id-t); }
.det-lista { list-style: none; padding: 0; margin: 8px 0 0; }
.det-lista li { padding: 6px 0; border-top: 1px solid var(--borde); display: grid; grid-template-columns: 20px 1fr; gap: 8px; overflow-wrap: anywhere; }

.matriz-doc { border-collapse: separate; border-spacing: 4px; font-variant-numeric: tabular-nums; }
.matriz-doc th { font-size: 11.5px; color: var(--suave); font-weight: 600; text-align: left; padding: 2px 6px; white-space: nowrap; }
.matriz-doc th.a { font-family: var(--f-datos); text-align: center; }
.matriz-doc td { width: 48px; height: 30px; border-radius: 6px; text-align: center; font-family: var(--f-datos); font-size: 12px; font-weight: 600; cursor: pointer; }
.leyenda i.e-ok, .leyenda i.e-aviso, .leyenda i.e-error, .leyenda i.e-pendientes, .leyenda i.e-sin_extraer, .leyenda i.e-falta_fuente, .leyenda i.e-fuera_de_alcance { padding: 0; }
.aprobar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.aprobar .sub { margin-bottom: 0; max-width: 80ch; }

#toast { position: fixed; right: 20px; bottom: 20px; background: var(--texto); color: var(--fondo); padding: 11px 15px; border-radius: 10px; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 440px; box-shadow: var(--sombra); font-weight: 600; z-index: 20; }
#toast.ver { opacity: 1; }

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .lienzo { grid-column: 1; }
  .lateral, .lateral:hover, .lateral:focus-within { position: sticky; top: 0; bottom: auto; width: auto; height: auto; flex-direction: row; align-items: center; padding: 6px 10px; gap: 8px; box-shadow: none; overflow: visible; min-width: 0; z-index: 40; }
  .lateral .lbl { opacity: 1; }
  .marca .lbl { display: none; }
  .marca.wc-riel { min-height: 32px; padding-left: 0; }
  .lateral .wc-riel-simbolo, .lateral:hover .wc-riel-simbolo, .lateral:focus-within .wc-riel-simbolo { display: block; }
  .lateral .wc-riel-marca, .lateral:hover .wc-riel-marca, .lateral:focus-within .wc-riel-marca { display: none; }
  .menu { flex-direction: row; overflow-x: auto; gap: 2px; flex: 1; min-width: 0; scrollbar-width: none; }
  .menu .grupo, .lateral .pie { display: none; }
  .menu a { white-space: nowrap; padding: 6px 8px; gap: 6px; min-height: 34px; font-size: 12.5px; }
  .menu a .nuevo, .menu a .n { display: none; }
  .menu a.activa { box-shadow: inset 0 -2px 0 var(--primario-2); }
  .menu-vista { flex: none; }
  .menu-vista button { white-space: nowrap; padding: 6px 8px; gap: 6px; min-height: 34px; font-size: 12.5px; }
  .menu-vista button[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--solar, #F5A623); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- paleta de series y verde CFE (compartida por pronostico, simulador y equipos) */
:root {
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --cfe: #00845a; --cfe-2: #0c9a6a; --cfe-f: #eef6f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --cfe: #2fae7f; --cfe-2: #3cc08f; --cfe-f: #16261f;
  }
}
[hidden] { display: none !important; }

/* INPC en Documentos anuales */
.inpc-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.inpc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
@media (max-width: 800px) { .inpc-grid { grid-template-columns: 1fr; } }
.inpc .soltar .meta { line-height: 1.5; margin: 0; }
.inpc .soltar-pie a { font-size: 12.5px; font-weight: 600; color: var(--primario-2); text-decoration: none; }
.inpc .soltar-pie a:hover { text-decoration: underline; }
.inpc-serie { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--suave); }
.inpc-serie b { display: block; font-family: var(--f-datos); font-size: 15px; color: var(--texto); font-weight: 600; }

/* ---------- Configuracion FV (configuracion.js; los campos reusan .eq-campos y .fv-* de fv.css) */
.cf .panel h2 + .sub { margin-top: 4px; }
.cf .botones { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cf-pend { color: var(--av-t); font-weight: 600; }
.cf-fix { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--fondo); }
.cf-fix b { font-size: 17px; font-variant-numeric: tabular-nums; }
.cf-fix span { font-size: 12px; color: var(--suave); }
.cf-fix.viejo { background: var(--av-f); }
.cf-fix.viejo span { color: var(--av-t); }
.cf-fix-manual { margin-top: 12px; }
.cf-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0 0 8px; font-size: 13px; }
.cf-dl dt { color: var(--suave); }
.cf-dl dd { margin: 0; font-variant-numeric: tabular-nums; }
.cf-corr-lista { max-height: 280px; overflow: auto; margin-top: 8px; }

/* «Explorar datos» (app local): conmutador entre Tarifas y mercado y Atlas solar, visible solo en esas dos secciones */
.explorar-seg { display: none; align-items: center; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--borde); width: max-content; max-width: 100%; }
body.tab-pronostico .explorar-seg, body.tab-solar .explorar-seg { display: inline-flex; }
.explorar-seg span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); padding: 0 8px 0 6px; }
.explorar-seg a { text-decoration: none; color: var(--suave); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px; }
body.tab-pronostico .explorar-seg .ex-tarifas, body.tab-solar .explorar-seg .ex-atlas { background: var(--marca-marino, #0e2236); color: #fff; }
.explorar-seg a:focus-visible { outline: 2px solid var(--marca-cian, #17b3c8); outline-offset: 2px; }

/* ---- 12-11-2026: «Simulador de recibos» = WattClaro local a pantalla completa dentro de la app */
body.tab-wattclaro .cabecera, body.tab-wattclaro .explorar-seg { display: none; }
body.tab-wattclaro main { padding: 0; max-width: none; }
.wcl { position: relative; height: 100dvh; background: var(--fondo); }
.wcl iframe { display: block; width: 100%; height: 100%; border: 0; }
.wcl-aviso { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--texto); }
.wcl-aviso img { background: #0e2236; border-radius: 14px; padding: 8px; }
.wcl-aviso p { max-width: 520px; color: var(--suave); }
.wcl-acc { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wcl-aviso[hidden], .wcl iframe[hidden] { display: none; }
/* Tarifas de la administración: el simulador local ahora es WattClaro local; «Usar en el simulador» solo en la web */
body:not(.comercial) #pr-ptar-usar { display: none; }
