/* Calculadora LED: panel de entradas, tarjetas KPI, mapas SVG, tablas */
.app-ancho { max-width: 1700px; }
.calc-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-inputs { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: .25rem 1.1rem 1rem; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
@media (max-width: 1100px) { .calc-inputs { position: static; max-height: none; } }
.calc-inputs .sec { padding: .9rem 0; border-bottom: 1px solid #eef0f3; }
.calc-inputs .sec:last-child { border-bottom: 0; }
.calc-inputs h3 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; font-weight: 700; margin: 0 0 .65rem; }
.calc-inputs .f { margin-bottom: .6rem; }
.calc-inputs label { display: block; font-size: .78rem; font-weight: 500; color: #4b5563; margin-bottom: .2rem; }
.calc-inputs input, .calc-inputs select { width: 100%; border: 1px solid #d7dbe2; border-radius: 10px; padding: .42rem .65rem; font-size: .88rem; background: #fff; }
.calc-inputs input:focus, .calc-inputs select:focus { outline: 0; border-color: var(--sl-azul); box-shadow: 0 0 0 .2rem rgba(4,105,177,.18); }
.calc-inputs .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.calc-inputs .hint { font-size: .74rem; color: #6b7280; margin: .15rem 0 .5rem; }
.calc-inputs .hint:empty { display: none; }
.seg { display: flex; gap: 4px; background: #f1f3f6; padding: 4px; border-radius: 12px; margin-bottom: .6rem; }
.seg button { flex: 1; border: 0; background: transparent; padding: .42rem .5rem; border-radius: 9px; font-size: .82rem; font-weight: 600; color: #4b5563; }
.seg button.on { background: var(--sl-gris); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

.calc-result > * + * { margin-top: 1rem; }
.panel { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1rem 1.2rem; }
.panel h2 { font-size: .95rem; font-weight: 700; margin: 0 0 .6rem; }
.proj-strip { padding: .8rem 1.2rem; }
.proj-rot { color: #6b7280; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-right: .6rem; }
.muted { color: #9aa0a6; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; }
.kpi { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: .85rem 1rem; border-top: 4px solid #cbd5e1; }
.kpi.c1 { border-top-color: var(--sl-azul); } .kpi.c2 { border-top-color: var(--sl-verde); }
.kpi.c3 { border-top-color: var(--sl-rojo); } .kpi.c4 { border-top-color: #6f42c1; }
.kpi .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; font-weight: 600; }
.kpi .v { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi .v small { font-size: .8rem; font-weight: 500; color: #6b7280; margin-left: .3rem; }
.kpi .s { font-size: .76rem; color: #6b7280; margin-top: .15rem; }

.warns .w { border-radius: 12px; padding: .6rem .9rem; font-size: .84rem; margin-bottom: .5rem; border-left: 4px solid; background: #fff; box-shadow: var(--sombra); }
.warns .w.ok { border-color: var(--sl-verde); background: #f6faea; }
.warns .w.warn { border-color: #f5a300; background: #fff8e8; }
.warns .w.err { border-color: var(--sl-rojo); background: #fdecee; }

.pv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.pv-head h2 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: #f1f3f6; padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: transparent; padding: .38rem .8rem; border-radius: 9px; font-size: .8rem; font-weight: 600; color: #4b5563; }
.tabs button.on { background: var(--sl-gris); color: #fff; }
.stage { background: radial-gradient(900px 400px at 50% 0, #14213d 0, #0a0f1e 70%); border-radius: 12px; padding: 1rem; text-align: center; overflow: auto; }
.mapa-svg { width: 100%; max-height: 520px; }
.mapa-svg rect { transition: filter .12s; }
.mapa-svg rect:hover { filter: brightness(1.35); }
.mapa-vacio { color: #9DB0D3; padding: 40px 10px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .76rem; color: #4b5563; margin-top: .7rem; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .w100 { width: 100%; color: #6b7280; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; }
table.t { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.t td { padding: .45rem .3rem; border-bottom: 1px solid #eef0f3; vertical-align: top; }
table.t td:first-child { color: #4b5563; width: 48%; }
table.t td:last-child { font-weight: 600; text-align: right; }
table.t .n { display: block; font-weight: 400; font-size: .72rem; color: #9aa0a6; }
.foot { font-size: .76rem; color: #6b7280; padding: .5rem .2rem 1rem; }

/* Barra para guardar la pantalla desde la calculadora */
.calc-col { min-width: 0; }
.calc-col > * + * { margin-top: 1rem; }
.guardar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; border-left: 4px solid var(--sl-verde); position: sticky; top: 70px; z-index: 5; }
.guardar-bar .gb-txt { flex: 1 1 260px; display: flex; flex-direction: column; font-size: .85rem; }
.guardar-bar .gb-nota { flex: 1 1 220px; border: 1px solid #d7dbe2; border-radius: 10px; padding: .42rem .65rem; font-size: .86rem; }
.guardar-bar .gb-forzar { font-size: .78rem; color: #6b7280; display: flex; align-items: center; gap: .35rem; }
.guardar-bar .gb-aviso { flex: 1 0 100%; }
.guardar-bar .gb-aviso:empty { display: none; }
.calc-inputs textarea { width: 100%; border: 1px solid #d7dbe2; border-radius: 10px; padding: .42rem .65rem; font-size: .88rem; }
