/* ETHERIA · Demo de la plataforma
   Paleta: obsidiana #0B0F19 · oro #D4AF37 · oro oscuro #8A6D1D · marfil #F5F7FA */
:root {
  --obs: #0B0F19;
  --obs-2: #121826;
  --obs-3: #1B2232;
  --oro: #D4AF37;
  --oro-osc: #8A6D1D;
  --oro-claro: #F3E5AB;
  --marfil: #F5F7FA;
  --papel: #FFFFFF;
  --tinta: #1F2430;
  --gris: #5A6070;
  --gris-2: #767C8A;
  --linea: #E3E6EB;
  --linea-2: #EEF0F3;
  --ok: #1E7A4F;
  --ok-bg: #E7F4EC;
  --warn: #8A5A00;
  --warn-bg: #FDF3DC;
  --err: #A3302A;
  --err-bg: #FBE9E7;
  --info: #24508F;
  --info-bg: #E8EFFA;
  --radio: 14px;
  --radio-s: 9px;
  --sombra: 0 1px 2px rgba(11, 15, 25, .05), 0 6px 24px rgba(11, 15, 25, .06);
  --serif: "Cormorant Garamond", Georgia, serif;
  --titulo: "Cinzel", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--tinta); background: var(--marfil); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--obs); text-decoration-color: var(--oro); text-underline-offset: 3px; }
a:hover { color: var(--oro-osc); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-family: var(--serif); font-size: 32px; line-height: 1.15; letter-spacing: .005em; }
h2 { font-family: var(--serif); font-size: 23px; line-height: 1.2; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Franja DEMO ---------- */
.demo-band { background: #FFF6DB; color: #6B5414; font-size: 12px; padding: 7px 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; border-bottom: 1px solid #F0E2B4; }
.demo-band b { font-weight: 600; letter-spacing: .06em; }
.demo-band button { background: none; border: 0; text-decoration: underline; cursor: pointer; color: inherit; padding: 0; font-size: 12px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login-art { background: radial-gradient(ellipse at 50% 38%, #141B2B 0%, #02040A 72%); color: var(--marfil); display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; position: relative; overflow: hidden; }
.login-art img { width: min(460px, 82%); align-self: center; margin-top: 2vh; -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 70%, transparent 100%); }
.login-art blockquote { margin: 0; font-family: var(--serif); font-size: 27px; line-height: 1.25; max-width: 30ch; }
.login-art small { color: #9AA0AC; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--papel); }
.login-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-card .kick { color: var(--oro-osc); }
.roles { display: grid; gap: 10px; }
.role { display: flex; gap: 14px; align-items: center; border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px 16px; background: var(--papel); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.role:hover, .role[aria-pressed="true"] { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(212, 175, 55, .16); }
.role .av { flex: none; display: inline-grid; }
.role span { display: block; }
.role .t { font-weight: 600; }
.role .d { color: var(--gris); font-size: 12.5px; }
.creds { background: var(--marfil); border: 1px dashed #D8DCE3; border-radius: var(--radio-s); padding: 10px 12px; font-size: 12.5px; color: var(--gris); }
.otp { display: flex; gap: 8px; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; border: 1px solid var(--linea); border-radius: 10px; background: var(--papel); }
.otp input:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, .2); }

/* ---------- Estructura ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 33px); background: linear-gradient(to right, var(--obs) 252px, transparent 252px); }
.side { background: var(--obs); color: #C9CDD6; display: flex; flex-direction: column; padding: 22px 14px; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--marfil); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { font-family: var(--titulo); font-weight: 600; letter-spacing: .3em; font-size: 15px; }
.brand span { display: block; font-size: 9.5px; letter-spacing: .16em; color: var(--oro); text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .grp { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #7D8493; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: #C9CDD6; text-decoration: none; font-size: 13.5px; }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav a:hover { background: var(--obs-3); color: #fff; }
.nav a[aria-current="page"] { background: var(--obs-3); color: #fff; box-shadow: inset 2px 0 0 var(--oro); }
.nav a .badge { margin-left: auto; }
.side-foot { margin-top: auto; border-top: 1px solid #232A3A; padding-top: 14px; display: flex; gap: 10px; align-items: center; }
.side-foot .who { font-size: 12.5px; line-height: 1.3; min-width: 0; }
.side-foot .who b { color: #fff; font-weight: 500; display: block; }
.side-foot .who span { color: #8D94A3; font-size: 11.5px; }
.side-foot button { margin-left: auto; background: none; border: 1px solid #2A3244; color: #C9CDD6; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.side-foot button:hover { border-color: var(--oro); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 16px 32px; border-bottom: 1px solid var(--linea); background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.top .crumbs { font-size: 12.5px; color: var(--gris); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .crumbs b { color: var(--tinta); font-weight: 500; }
.top .sp { flex: 1; }
.menu-btn { display: none; background: none; border: 1px solid var(--linea); border-radius: 9px; padding: 7px; cursor: pointer; }
.page { padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 22px; max-width: 1320px; width: 100%; }
.page-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.page-head p { color: var(--gris); margin-top: 6px; max-width: 70ch; }
.kick { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-osc); font-weight: 600; margin-bottom: 6px; }

/* ---------- Componentes ---------- */
.card { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); padding: 20px; min-width: 0; }
.card.pad0 { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h p { color: var(--gris); font-size: 12.5px; }
.grid { display: grid; gap: 18px; }
.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)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stat .lab { font-size: 12px; color: var(--gris); }
.stat .val { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; margin-top: 4px; color: var(--obs); }
.stat .sub { font-size: 12px; color: var(--gris); margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 9px 15px; border: 1px solid var(--linea); background: var(--papel); cursor: pointer; font-weight: 500; font-size: 13.5px; text-decoration: none; color: var(--tinta); min-height: 40px; white-space: nowrap; }
.btn:hover { border-color: #C9CED7; color: var(--tinta); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--obs); color: #fff; border-color: var(--obs); }
.btn.primary:hover { background: #1B2232; color: #fff; }
.btn.gold { background: var(--oro); color: var(--obs); border-color: var(--oro); }
.btn.gold:hover { background: #C9A42E; color: var(--obs); }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--linea-2); }
.btn.danger { color: var(--err); }
.btn.sm { padding: 6px 10px; min-height: 32px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 7px; min-height: 32px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; border-radius: 999px; padding: 3px 9px; background: var(--linea-2); color: var(--gris); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.gold { background: #FBF3D9; color: var(--oro-osc); }
.badge.dark { background: var(--obs); color: var(--oro-claro); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; font-size: 12.5px; color: var(--obs); background: var(--oro-claro); flex: none; }
.av.dark { background: var(--obs-3); color: var(--oro); }
.hash { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; color: var(--gris); word-break: break-all; }
.muted { color: var(--gris); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.sep { height: 1px; background: var(--linea); margin: 4px 0; }

/* Tablas */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--gris); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--linea); background: #FAFBFC; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--linea-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #FCFCFD; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.file { display: flex; gap: 11px; align-items: center; min-width: 220px; }
.file .ic { width: 34px; height: 40px; border-radius: 6px; background: var(--marfil); border: 1px solid var(--linea); display: grid; place-items: center; font-size: 9.5px; font-weight: 600; color: var(--oro-osc); flex: none; }
.file b { font-weight: 500; display: block; }
.file span { font-size: 12px; color: var(--gris); }

/* Etapas */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.stage { padding: 4px 14px 0 0; position: relative; }
.stage .bar { height: 5px; border-radius: 3px; background: var(--linea); margin-bottom: 12px; overflow: hidden; }
.stage .bar i { display: block; height: 100%; background: var(--oro); border-radius: 3px; }
.stage.done .bar i { background: var(--obs); }
.stage .n { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.stage b { display: block; font-family: var(--serif); font-size: 19px; margin-top: 2px; }
.stage p { font-size: 12.5px; color: var(--gris); margin-top: 4px; }

/* Progreso circular */
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; }

/* Data room */
.drop { border: 1.5px dashed #CDD2DA; border-radius: var(--radio); padding: 22px; text-align: center; background: #FCFCFD; transition: border-color .15s, background .15s; cursor: pointer; }
.drop.over { border-color: var(--oro); background: #FFFBEF; }
.drop b { display: block; font-weight: 500; }
.drop span { font-size: 12.5px; color: var(--gris); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--linea); background: var(--papel); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--obs); color: #fff; border-color: var(--obs); }
.search { border: 1px solid var(--linea); border-radius: 10px; padding: 8px 12px; min-width: 220px; background: var(--papel); }
.req { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--linea-2); font-size: 13px; }
.req:last-child { border-bottom: 0; }
.req .st { flex: none; margin-top: 2px; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.col { background: #F0F2F5; border-radius: var(--radio); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.col h3 { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; }
.task { background: var(--papel); border: 1px solid var(--linea); border-radius: 11px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(11, 15, 25, .04); }
.task b { font-weight: 500; }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--gris); }
.task .acts { display: flex; gap: 4px; justify-content: flex-end; }

/* Gantt */
.gantt { overflow-x: auto; }
.gantt-inner { min-width: 860px; }
.g-row { display: grid; grid-template-columns: 260px 1fr; align-items: center; border-bottom: 1px solid var(--linea-2); min-height: 40px; }
.g-row .lab { padding: 6px 14px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.g-row .lab span { font-size: 11.5px; color: var(--gris); }
.g-track { position: relative; height: 40px; }
.g-bar { position: absolute; top: 11px; height: 18px; border-radius: 6px; background: var(--obs); }
.g-bar.cli { background: var(--oro); }
.g-bar.done { opacity: .45; }
.g-bar.hito { width: 14px !important; height: 14px; top: 13px; transform: rotate(45deg); border-radius: 2px; background: var(--oro-osc); }
.g-head { display: grid; grid-template-columns: 260px 1fr; border-bottom: 1px solid var(--linea); font-size: 11px; color: var(--gris); }
.g-days { position: relative; height: 30px; }
.g-days span { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--err); opacity: .7; }
.g-sec { padding: 8px 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-osc); background: #FBFAF6; border-bottom: 1px solid var(--linea-2); }

/* Motor */
.pipeline { display: grid; gap: 10px; }
.pstep { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 12px; background: var(--papel); }
.pstep .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--linea-2); color: var(--gris); flex: none; }
.pstep.run .ic { background: #FBF3D9; color: var(--oro-osc); }
.pstep.ok .ic { background: var(--obs); color: var(--oro); }
.pstep .tx { flex: 1; min-width: 0; }
.pstep .tx b { font-weight: 500; display: block; }
.pstep .tx span { font-size: 12.5px; color: var(--gris); }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .8s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
.console { background: var(--obs); color: #C9CDD6; border-radius: 12px; padding: 14px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.7; max-height: 260px; overflow: auto; }
.console .g { color: var(--oro); }
.console .k { color: #7FD1A8; }

/* Resultados */
.range { position: relative; height: 34px; margin: 14px 0 6px; }
.range .track { position: absolute; top: 15px; left: 0; right: 0; height: 4px; background: var(--linea); border-radius: 2px; }
.range .band { position: absolute; top: 12px; height: 10px; background: rgba(212, 175, 55, .35); border-radius: 5px; }
.range .mid { position: absolute; top: 6px; width: 3px; height: 22px; background: var(--obs); border-radius: 2px; }
.vals { display: flex; justify-content: space-between; font-size: 12px; color: var(--gris); }
.vals b { color: var(--tinta); font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--linea); overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; color: var(--gris); white-space: nowrap; font-weight: 500; }
.tab[aria-selected="true"] { color: var(--obs); border-bottom-color: var(--oro); }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--gris); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* Formularios */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--tinta); }
.inp, select.inp, textarea.inp { border: 1px solid var(--linea); border-radius: 10px; padding: 9px 12px; background: var(--papel); font-weight: 400; min-height: 40px; width: 100%; }
.inp:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea-2); }
.slider input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--oro); }
.slider .v { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(11, 15, 25, .45); display: grid; place-items: center; padding: 20px; z-index: 50; animation: fade .15s; }
.modal { background: var(--papel); border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal .acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }

/* Toasts */
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--obs); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); display: flex; gap: 10px; align-items: center; max-width: 380px; animation: fade .2s; }
.toast svg { color: var(--oro); flex: none; width: 16px; height: 16px; }

/* Auditoría */
.chain { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.ev::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1px; background: var(--linea); }
.ev:last-child::before { display: none; }
.ev .pt { width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--oro); background: var(--papel); margin-top: 1px; }
.ev.bad .pt { border-color: var(--err); background: var(--err-bg); }
.ev .tx { font-size: 13px; }
.ev .tx .hash { display: block; margin-top: 2px; }

/* Informe */
.doc-prev { background: #fff; border: 1px solid var(--linea); border-radius: 10px; aspect-ratio: 210 / 297; padding: 8%; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.doc-prev.cover { background: radial-gradient(ellipse at 50% 30%, #141B2B, #02040A 75%); color: var(--marfil); align-items: center; justify-content: center; text-align: center; }
.doc-prev .wm { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--titulo); font-size: 48px; letter-spacing: .2em; color: rgba(212, 175, 55, .08); transform: rotate(-30deg); pointer-events: none; }
.doc-prev .l { height: 6px; border-radius: 3px; background: var(--linea-2); }
.steps-h { display: flex; gap: 0; flex-wrap: wrap; }
.steps-h .s { flex: 1; min-width: 120px; padding: 12px 14px; border: 1px solid var(--linea); margin-left: -1px; background: var(--papel); font-size: 12.5px; }
.steps-h .s:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
.steps-h .s:last-child { border-radius: 0 10px 10px 0; }
.steps-h .s.on { background: var(--obs); color: #fff; border-color: var(--obs); }
.steps-h .s.done { background: #F7F5EC; }
.steps-h .s b { display: block; font-weight: 600; }

/* Pipeline comercial */
.case-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--linea-2); text-decoration: none; color: inherit; }
.case-row:hover { background: #FCFCFD; color: inherit; }
.case-row b { font-weight: 500; display: block; }
.mini-bar { height: 6px; background: var(--linea); border-radius: 3px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--oro); }

/* Wizard */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.opt { border: 1px solid var(--linea); border-radius: 12px; padding: 14px; background: var(--papel); cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.opt[aria-pressed="true"] { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(212, 175, 55, .16); background: #FFFDF6; }
.opt b { font-weight: 600; }
.opt span { font-size: 12.5px; color: var(--gris); }

/* Seguridad */
.ctrl { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linea-2); align-items: flex-start; }
.ctrl:last-child { border-bottom: 0; }
.ctrl .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--obs); color: var(--oro); display: grid; place-items: center; flex: none; }
.ctrl .ic svg { width: 18px; height: 18px; }
.ctrl .tx { flex: 1; }
.ctrl .tx b { font-weight: 600; display: block; }
.ctrl .tx span { font-size: 12.5px; color: var(--gris); }

/* Responsivo */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-21 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px; min-height: 0; }
  .login-art img { width: 240px; margin: 0; }
  .login-art blockquote { font-size: 22px; }
  .shell { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(11, 15, 25, .45); }
  .menu-btn { display: inline-flex; }
  .top { padding: 12px 16px; }
  .page { padding: 20px 16px 48px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .case-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .case-row .hide-m { display: none; }
  h1 { font-size: 27px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .search { min-width: 0; width: 100%; }
  .top .crumbs { display: none; }
  .stat .val { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 560px) {
  .demo-band span { display: none; }
}
