/* Viko Edificios — estilos */
:root {
  --primary: #0f766e;
  --primary-600: #0d6660;
  --primary-50: #ecfdf8;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --track: #e2e8f0;
  --ok: #16a34a;
  --info: #2563eb;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --sidebar: 236px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1, .h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { margin-left: auto; text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
.txt-alta { color: var(--bad); }
.txt-media { color: var(--warn); }
.txt-ok { color: var(--ok); font-weight: 700; }
.empty { color: var(--muted); font-style: italic; margin: .5rem 0; }

/* ---------- Estructura ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); background: #0b1f1e; color: #cbd5e1; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease;
}
.brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.1rem 1rem; color: #fff; font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.sidebar nav { display: flex; flex-direction: column; padding: .5rem; gap: 2px; }
.sidebar nav a { color: #cbd5e1; padding: .6rem .8rem; border-radius: 8px; display: flex; gap: .6rem; align-items: center; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: var(--primary); color: #fff; }
.sidebar .ico { width: 1.2rem; text-align: center; opacity: .85; }
.sidebar-foot { margin-top: auto; padding: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: .5rem; }
.sidebar-foot .user strong { display: block; color: #fff; font-size: .9rem; }
.sidebar-foot .user small { color: #94a3b8; }
.sidebar-foot .btn-ghost { color: #cbd5e1; border-color: rgba(255, 255, 255, .15); background: transparent; width: 100%; }
.sidebar-foot .version { color: #64748b; font-size: .75rem; }
.main { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topbar { display: none; }
.content { padding: 1.5rem 2rem 4rem; max-width: 1280px; }
.backdrop { display: none; }

/* ---------- Tarjetas y grillas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.card.narrow, .narrow { max-width: 520px; }
.card.center { text-align: center; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head p { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.crumb { font-size: .85rem; display: inline-block; margin-bottom: .25rem; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.cols-2.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.cols-2 > * { min-width: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.grid-4 .card { margin: 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.grid-cards .card { margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.kpi-lbl { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.kpi-val { font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.kpi-sub { font-size: .85rem; color: var(--muted); }

/* ---------- Edificio ---------- */
.ed-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: .5rem; }
.ed-head h1 { margin: 0; }
.ed-head p { margin: 0; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: thin; }
.tabs a { padding: .6rem .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }
.ed-card { color: inherit; display: flex; flex-direction: column; gap: .75rem; transition: box-shadow .15s, border-color .15s; }
.ed-card:hover { text-decoration: none; border-color: #99d5cc; box-shadow: 0 4px 14px rgba(15, 118, 110, .12); }
.ed-card-top { display: flex; gap: 1rem; align-items: center; }
.ed-card-top h3 { margin: 0; }
.ed-card-top p { margin: 0 0 .3rem; }
.ed-card-foot { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: .6rem; }
.mod-mini { display: grid; gap: .35rem; }
.mod-mini-row { display: grid; grid-template-columns: 78px 1fr 28px; gap: .5rem; align-items: center; font-size: .82rem; }
.mod-mini-row b { text-align: right; }

.hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-score { display: flex; gap: 1.25rem; align-items: center; }
.hero-score h2 { font-size: 1.5rem; margin: .1rem 0 .3rem; }
.hero-score p { margin: 0 0 .3rem; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-actions form { margin: 0; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.mod-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.mod-card-head h3 { margin: 0; }
.mod-score { font-size: 1.6rem; font-weight: 800; }
.mod-card p { margin: .4rem 0 0; }
.mod-links { display: flex; flex-direction: column; gap: .15rem; margin-top: .6rem; font-size: .88rem; }
.link-card { color: inherit; display: flex; flex-direction: column; }
.link-card:hover { text-decoration: none; border-color: #99d5cc; }
.link-card .btn { margin-top: .75rem; align-self: flex-start; }
.link-sm { font-size: .85rem; font-weight: 500; }

/* ---------- Donut / barras ---------- */
.donut { flex-shrink: 0; }
.donut-num { font-size: 26px; font-weight: 800; fill: var(--text); }
.donut-lbl { font-size: 10px; fill: var(--muted); }
.bar { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; margin: .35rem 0; }
.bar.thin { height: 6px; }
.bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.spark { width: 100%; height: auto; margin-bottom: .5rem; }
.progress-line { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.1rem; }
.progress-line .bar { flex: 1; margin: 0; }
.progress-line span:first-child { font-size: .85rem; color: var(--muted); white-space: nowrap; }

/* ---------- Insignias ---------- */
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.badge-alta { background: #fee2e2; color: #b91c1c; }
.badge-media { background: #fef3c7; color: #b45309; }
.badge-baja { background: #dbeafe; color: #1d4ed8; }
.badge-ok { background: #dcfce7; color: #15803d; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-neutral { background: #f1f5f9; color: #475569; }
.tag { display: inline-block; font-size: .72rem; padding: .05rem .45rem; border-radius: 6px; background: #f1f5f9; color: #475569; font-weight: 600; vertical-align: middle; }
.chip { display: inline-block; padding: .35rem .8rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .85rem; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mod-switch { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.mod-switch .sep { width: 1px; height: 1.4rem; background: var(--border); margin: 0 .25rem; }

/* ---------- Alertas ---------- */
.alert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.alert-list li { border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: 8px; padding: .55rem .75rem; background: #fff; }
.alert-list li.pri-alta { border-left-color: var(--bad); }
.alert-list li.pri-media { border-left-color: var(--warn); }
.alert-list li.pri-baja { border-left-color: var(--info); }
.al-head { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.al-head strong { font-weight: 600; font-size: .92rem; }
.al-det { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.al-rec { font-size: .85rem; margin-top: .2rem; color: #115e59; }
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; }
.flash-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; }
.card.table-wrap .table th:first-child, .card.table-wrap .table td:first-child { padding-left: 1.1rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: .65rem .6rem; border-bottom: 1px solid var(--border); background: #f8fafc; }
.table td { padding: .65rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td, .table.compact th { padding: .45rem .5rem; }
.table tr.inactive td { opacity: .55; }
.table td .bar { max-width: 110px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 .75rem; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.plain-list li:last-child { border-bottom: 0; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.doc-item { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; }

/* ---------- Formularios ---------- */
.form label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 500; margin-bottom: .75rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .span-2 { grid-column: span 2; }
.form h2 { margin-top: .5rem; }
input, select, textarea {
  font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: .55rem .7rem; width: 100%; min-height: 40px;
}
textarea { resize: vertical; min-height: 40px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 118, 110, .25); border-color: var(--primary); }
input[disabled], select[disabled], textarea[disabled] { background: #f8fafc; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--primary); }
input[type="file"] { padding: .45rem; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-bottom: .75rem; }
.checks.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.checks label.check { margin: 0; }
.form-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.inline-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-top: .75rem; }
.inline-form label { margin: 0; }
form.inline { display: inline; margin: 0; }
.danger-zone { border-color: #fecaca; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--primary); color: #fff;
  border: 1px solid var(--primary); border-radius: 8px; padding: .55rem 1rem; font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; white-space: nowrap; min-height: 40px; text-decoration: none;
}
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-danger { background: #fff; color: var(--bad); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; min-height: 34px; }
.btn-xs { padding: .15rem .5rem; font-size: .8rem; min-height: 28px; }
.btn-block { width: 100%; }

/* ---------- Lista de verificación ---------- */
.q { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--border); }
.q:first-of-type { border-top: 0; }
.q-text p { margin: 0; font-weight: 500; }
.q-code { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.q-help { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.q-help summary { cursor: pointer; color: var(--primary); font-size: .8rem; }
.q-help p { font-weight: 400; margin-top: .25rem; }
.q-answer { display: flex; flex-direction: column; gap: .4rem; }
.q-obs { min-height: 36px; font-size: .88rem; }
.q-rec { color: #115e59; margin: 0; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #cbd5e1; border-radius: 9px; overflow: hidden; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.seg span { display: block; text-align: center; padding: .5rem .25rem; font-size: .88rem; font-weight: 600; border-left: 1px solid #e2e8f0; color: #475569; user-select: none; }
.seg label:first-child span { border-left: 0; }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -3px; }
.seg input:disabled { cursor: default; }
.seg-si input:checked + span { background: #16a34a; color: #fff; }
.seg-parcial input:checked + span { background: #d97706; color: #fff; }
.seg-no input:checked + span { background: #dc2626; color: #fff; }
.seg-na input:checked + span { background: #64748b; color: #fff; }
.save-bar {
  position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(4px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem; display: flex; gap: .5rem; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); z-index: 10;
}
.indicadores { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; margin-bottom: .5rem; }
.ind { border: 1px solid var(--border); border-radius: 10px; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .1rem; border-top: 3px solid var(--muted); }
.ind span { font-size: .78rem; color: var(--muted); }
.ind b { font-size: 1rem; }
.ind small { color: var(--muted); font-size: .75rem; }
.ind-ok { border-top-color: var(--ok); }
.ind-warn { border-top-color: var(--warn); }
.ind-bad { border-top-color: var(--bad); }
.ind-bad b { color: var(--bad); }

/* ---------- Informe ---------- */
.report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 2.25rem; box-shadow: var(--shadow); }
.report section { margin-bottom: 1.75rem; }
.report h2 { color: var(--primary); border-bottom: 2px solid var(--primary-50); padding-bottom: .3rem; margin-bottom: .8rem; }
.report-head { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.report-head h1 { font-size: 1.8rem; margin: .2rem 0; }
.report-score { display: flex; gap: 1.5rem; align-items: center; background: #f8fafc; border-radius: var(--radius); padding: 1rem 1.25rem; }
.report-score h2 { border: 0; font-size: 1.6rem; margin: .1rem 0 .4rem; }
.risk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.risk { border: 1px solid var(--border); border-radius: 10px; padding: .75rem .9rem; border-top: 4px solid var(--info); }
.risk-alta { border-top-color: var(--bad); }
.risk-media { border-top-color: var(--warn); }
.risk-head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.risk p { margin: .3rem 0; }
.risk ul { margin: 0; padding-left: 1.1rem; }
.rec-list { padding-left: 0; list-style: none; display: grid; gap: .35rem; }
.rec-list li { padding-left: 1rem; position: relative; }
.rec-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--info); }
.rec-list li.pri-alta::before { background: var(--bad); }
.rec-list li.pri-media::before { background: var(--warn); }
.report-foot { border-top: 1px solid var(--border); padding-top: 1rem; }

/* ---------- Acceso ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 16px; background: linear-gradient(160deg, #0b1f1e 0%, #0f766e 100%); }
.auth-wrap .flash { max-width: 400px; width: 100%; }
.auth-card { background: #fff; border-radius: 16px; padding: 2rem; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.auth-brand { text-align: center; margin-bottom: 1.25rem; }
.auth-brand h1 { margin: .5rem 0 .25rem; }
.auth-brand p { font-size: .9rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 30; }
  .main { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); padding: .5rem 16px; }
  .menu-btn { font-size: 1.3rem; background: none; border: 0; padding: .35rem .5rem; cursor: pointer; color: var(--text); }
  .topbar-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 1rem 16px 4rem; }
  .cols-2, .cols-2.wide-left { grid-template-columns: minmax(0, 1fr); }
  .q { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .report { padding: 1.25rem 1rem; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .kpi-val { font-size: 1.5rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .hide-sm { display: none; }
  .hero-score { flex-direction: column; align-items: flex-start; }
  .report-score { flex-direction: column; align-items: flex-start; }
  .grid-cards { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: stretch; }
  .ed-head h1 { font-size: 1.3rem; }
  .table { font-size: .85rem; }
  .save-bar { padding: .5rem; gap: .4rem; flex-wrap: nowrap; }
  .save-bar .btn { flex: 1 1 auto; font-size: .82rem; padding: .45rem .6rem; white-space: normal; }
}

/* ---------- Impresión ---------- */
@media print {
  .sidebar, .topbar, .tabs, .ed-head, .no-print, .flash, .save-bar { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 11pt; }
  .report { border: 0; box-shadow: none; padding: 0; }
  .report section { break-inside: auto; }
  .alert-list li, .risk, tr { break-inside: avoid; }
  a { color: inherit; }
}

/* ---------- Inteligencia artificial ---------- */
.grid-ia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-ia .card { margin: 0; }
.ia-test { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.ia-result h3 { margin-top: 1rem; }
.ia-top { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: .5rem; }
.ia-anexo { border-radius: 10px; padding: .75rem .9rem; border: 1px solid var(--border); border-left: 4px solid var(--ok); background: #f0fdf4; }
.ia-anexo.si { border-left-color: var(--bad); background: #fef2f2; }
.ia-anexo strong { display: block; margin: .15rem 0 .3rem; }
.ia-anexo ul { margin: 0; padding-left: 1.1rem; }
.ia-box { border: 1px solid var(--border); border-radius: 10px; padding: .6rem .8rem; margin-top: 1rem; background: #f8fafc; }
.ia-box summary { cursor: pointer; }
.pre { white-space: normal; }
tr.ia-trabajando td { background: #f0fdfa; }
@media (max-width: 1100px) { .grid-ia { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .ia-top { grid-template-columns: minmax(0, 1fr); } }
