/* ============================================================
   ML Suite — Design System v2 (rediseño 2026)
   Tokens y componentes del shell del rediseño v2.
   Lo cargan las vistas portadas (base2.html / base_app2.html).
   Claro por defecto; oscuro via html[data-theme="dark"].
   ============================================================ */

[data-sh]{
  --bg:#FAFAFA; --surface:#FFFFFF; --surface2:#F4F4F5;
  --border:#E4E4E7; --binput:#D4D4D8;
  --text:#18181B; --text2:#52525B; --text3:#71717A; --muted:#A1A1AA;
  --brand:#4F46E5; --brandHover:#4338CA; --brandSoft:#EEF2FF; --brandSoftB:#C7D2FE;
  --profit:#059669; --profitBg:#ECFDF5; --profitB:#A7F3D0;
  --loss:#DC2626;  --lossBg:#FEF2F2;  --lossB:#FECACA;
  --warn:#B45309;  --warnBg:#FFFBEB;  --warnB:#FDE68A;
  --info:#0369A1;  --infoBg:#F0F9FF;  --infoB:#BAE6FD;
  --logoInk:#18181B;
  --f-ui:Inter,system-ui,sans-serif;
  --f-display:'Space Grotesk',Inter,sans-serif;
  --f-mono:'JetBrains Mono',ui-monospace,monospace;
  background:var(--bg); color:var(--text);
}
html[data-theme="dark"] [data-sh]{
  --bg:#09090B; --surface:#18181B; --surface2:#1F1F23;
  --border:#27272A; --binput:#3F3F46;
  --text:#FAFAFA; --text2:#A1A1AA; --text3:#71717A; --muted:#52525B;
  --brand:#6366F1; --brandHover:#818CF8; --brandSoft:#1E1B4B; --brandSoftB:#3730A3;
  --profit:#34D399; --profitBg:#0B2A20; --profitB:#14532D;
  --loss:#F87171;  --lossBg:#2C1315;  --lossB:#7F1D1D;
  --warn:#FBBF24;  --warnBg:#2A1F0C;  --warnB:#78350F;
  --info:#38BDF8;  --infoBg:#0B2536;  --infoB:#0C4A6E;
  --logoInk:#FAFAFA;
}

*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:var(--f-ui);-webkit-font-smoothing:antialiased}
/* regla débil a propósito (0,0,1): cualquier componente con clase la pisa */
a{color:var(--brand);text-decoration:none}
a:hover{color:var(--brandHover)}
[data-sh] ::selection{background:var(--brandSoft)}
[data-sh] :focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}

/* ---------- Shell / layout ---------- */
.sh-shell{min-height:100vh;background:var(--bg);color:var(--text)}
.sh-row{display:flex;align-items:stretch;min-height:100vh}
.sh-main{flex:1;min-width:0;display:flex;flex-direction:column}
.sh-content{flex:1;padding:24px 20px}
.sh-content-inner{max-width:1280px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.sh-content-inner.wide{max-width:none}

/* ---------- Sidebar (desktop) ---------- */
.sh-side{width:230px;flex:none;position:sticky;top:0;height:100vh;background:var(--surface);
  border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 10px 12px}
.sh-logo{display:flex;align-items:center;gap:9px;padding:0 8px;margin-bottom:16px;color:inherit}
.sh-logo:hover{color:inherit}
.sh-logo .iso{width:24px;height:24px;position:relative;display:inline-block}
.sh-logo .iso i{position:absolute;width:14px;height:14px;border-radius:4.5px}
.sh-logo .iso .a{top:1px;left:1px;border:2px solid var(--logoInk)}
.sh-logo .iso .b{bottom:1px;right:1px;background:var(--brand)}
.sh-logo .wm{font:600 15px var(--f-display);letter-spacing:-.02em;color:var(--text)}
.sh-logo .wm em{font-style:normal;font-weight:500;color:var(--text2)}
.sh-nav{display:flex;flex-direction:column;gap:2px}
.sh-item{display:flex;align-items:center;gap:9px;height:34px;padding:0 10px;border-radius:10px;
  cursor:pointer;color:var(--text2);font:500 13px var(--f-ui)}
.sh-item:hover{background:var(--surface2);color:var(--text)}
.sh-item.on{background:var(--brandSoft);color:var(--brand);font-weight:600}
.sh-item.on:hover{background:var(--brandSoft);color:var(--brand)}
.sh-item svg{flex:none}
.sh-item .lbl{flex:1}
.sh-ibadge{font:600 9.5px var(--f-mono);letter-spacing:.05em;background:var(--brandSoft);
  color:var(--brand);border:1px solid var(--brandSoftB);border-radius:5px;padding:2px 6px}
.sh-sep{height:1px;background:var(--border);margin:12px 8px}
.sh-foot{margin-top:auto;border-top:1px solid var(--border);padding:12px 8px 0;display:flex;flex-direction:column;gap:8px}
.sh-chip{font:600 9.5px var(--f-mono);letter-spacing:.06em;background:var(--brandSoft);color:var(--brand);
  border:1px solid var(--brandSoftB);border-radius:5px;padding:2px 7px}
.sh-role{font:500 9.5px var(--f-mono);letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.sh-trial{display:flex;align-items:center;gap:7px;font:400 11.5px var(--f-ui);color:var(--text2)}
.sh-trial i{width:8px;height:8px;border-radius:99px;background:#F59E0B;flex:none}
.sh-exit{display:inline-flex;align-items:center;gap:6px;font:500 12px var(--f-ui);color:var(--text3);cursor:pointer}
.sh-exit:hover{color:var(--text)}

/* ---------- Topbar + drawer + barra inferior (mobile) ---------- */
.sh-topbar{display:none;position:sticky;top:0;z-index:60;height:54px;background:var(--surface);
  border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:0 14px}
.sh-burger{margin-left:auto;width:36px;height:36px;border-radius:10px;border:1px solid var(--border);
  display:grid;place-items:center;cursor:pointer;color:var(--text2);background:transparent}
.sh-overlay{display:none;position:fixed;inset:0;z-index:70;background:rgba(9,9,11,.5)}
.sh-drawer{display:none;position:fixed;top:0;right:0;bottom:0;z-index:80;width:250px;background:var(--surface);
  border-left:1px solid var(--border);padding:16px 10px;flex-direction:column;gap:2px;overflow:auto}
.sh-drawer .sh-item{height:38px;font-size:13.5px}
.sh-drawer-foot{margin-top:auto;border-top:1px solid var(--border);padding:12px 10px 0;
  display:flex;align-items:center;justify-content:space-between}
[data-sh].drawer-open .sh-overlay{display:block}
[data-sh].drawer-open .sh-drawer{display:flex}
.sh-bottom{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;height:58px;background:var(--surface);
  border-top:1px solid var(--border);align-items:stretch}
.sh-bitem{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  cursor:pointer;color:var(--text3);font:500 9.5px var(--f-ui)}
.sh-bitem.on{color:var(--brand);font-weight:600}

@media (max-width:760px){
  .sh-side{display:none}
  .sh-topbar{display:flex}
  .sh-bottom{display:flex}
  .sh-content{padding:16px 12px 80px}
}

/* Contención anti-desborde (mobile): nada empuja el ancho de la página;
   las tablas scrollean dentro de su marco. */
.sh-content-inner>*, .sh-content-inner .card2, .sh-content-inner .sec2,
.sh-content-inner details.dt2, .adm-wrap>*{min-width:0;max-width:100%}
.sh-content-inner form, .dt2-body>*, .sec2-body>*{min-width:0}
[data-sh] img{max-width:100%;height:auto}
[data-sh] select{max-width:100%}

/* ---------- Banners de sistema ---------- */
.sh-banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 20px;
  font:400 13px var(--f-ui);color:var(--text2);border-bottom:1px solid var(--border)}
.sh-banner strong{font-weight:600}
.sh-banner.warn{background:var(--warnBg);border-color:var(--warnB)}
.sh-banner.warn strong{color:var(--warn)}
.sh-banner.crit{background:var(--lossBg);border-color:var(--lossB)}
.sh-banner.crit strong{color:var(--loss)}
.sh-banner .btn2{margin-left:auto}

/* ---------- Avisos inline (dentro del contenido) ---------- */
.avz{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-radius:10px;padding:10px 14px;
  font:400 13px var(--f-ui);color:var(--text2);border:1px solid var(--border);background:var(--surface)}
.avz strong{font-weight:600}
.avz.info{background:var(--infoBg);border-color:var(--infoB)}   .avz.info strong{color:var(--info)}
.avz.ok{background:var(--profitBg);border-color:var(--profitB)} .avz.ok strong{color:var(--profit)}
.avz.warn{background:var(--warnBg);border-color:var(--warnB)}   .avz.warn strong{color:var(--warn)}
.avz.loss{background:var(--lossBg);border-color:var(--lossB)}   .avz.loss strong{color:var(--loss)}
.avz .btn2{margin-left:auto}

/* ---------- Botones ---------- */
.btn2{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 18px;
  border-radius:10px;border:1px solid transparent;background:var(--brand);color:#fff;
  font:600 13px var(--f-ui);cursor:pointer;text-decoration:none;white-space:nowrap}
.btn2:hover{background:var(--brandHover);color:#fff}
.btn2.sm{height:30px;padding:0 13px;font-size:12px}
.btn2.outline{background:transparent;color:var(--text);border-color:var(--binput)}
.btn2.outline:hover{background:var(--surface2);color:var(--text)}
.btn2.ghost{background:transparent;color:var(--text2)}
.btn2.ghost:hover{background:var(--surface2);color:var(--text)}
.btn2.danger{background:transparent;color:var(--loss);border-color:var(--lossB)}
.btn2.danger:hover{background:var(--lossBg);color:var(--loss)}
.btn2[disabled]{opacity:.55;cursor:not-allowed}

/* ---------- Cards y KPIs ---------- */
.card2{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 20px;
  box-shadow:0 1px 2px rgba(24,24,27,.05)}
.card2 .card2-head{display:flex;align-items:baseline;gap:10px;margin-bottom:16px}
.card2 .card2-title{font:600 15px var(--f-display);letter-spacing:-.01em;color:var(--text)}
.card2 .card2-note{margin-left:auto;font:500 10px var(--f-mono);letter-spacing:.06em;color:var(--muted)}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px}
.kpi .k-label{font:500 12px var(--f-ui);color:var(--text2)}
.kpi .k-value{font:600 24px var(--f-display);font-variant-numeric:tabular-nums;letter-spacing:-.01em;margin-top:4px;color:var(--text)}
.kpi .k-value.up{color:var(--profit)} .kpi .k-value.down{color:var(--loss)}
.kpi .k-sub{font:400 11px var(--f-ui);color:var(--muted);margin-top:3px}
.kpi .k-sub.alerta{color:var(--loss)}

/* chip de estado (reputación, etc.) */
.chip-estado{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:6px;
  font:600 12px var(--f-ui);background:var(--surface2);border:1px solid var(--border);color:var(--text2)}
.chip-estado i{width:8px;height:8px;border-radius:99px;background:var(--muted)}
.chip-estado.ok{background:var(--profitBg);border-color:var(--profitB);color:var(--profit)}   .chip-estado.ok i{background:var(--profit)}
.chip-estado.warn{background:var(--warnBg);border-color:var(--warnB);color:var(--warn)}       .chip-estado.warn i{background:var(--warn)}
.chip-estado.loss{background:var(--lossBg);border-color:var(--lossB);color:var(--loss)}       .chip-estado.loss i{background:var(--loss)}

/* ---------- Cards de módulo (Panel) ---------- */
.mod-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.mod-grid>.card2{min-width:0}
.promo-card .p-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.promo-card .p-head .badge2{margin-left:auto}
.mod-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;
  display:flex;flex-direction:column;gap:10px;cursor:pointer;box-shadow:0 1px 2px rgba(24,24,27,.05);color:inherit}
.mod-card:hover{border-color:var(--brandSoftB);color:inherit}
.mod-card .m-top{display:flex;align-items:center;justify-content:space-between}
.mod-card .m-ico{width:34px;height:34px;border-radius:10px;background:var(--brandSoft);
  display:grid;place-items:center;color:var(--brand)}
.mod-card .m-arrow{color:var(--muted)}
.mod-card .m-nombre{display:flex;align-items:center;gap:7px;font:600 14px var(--f-ui);color:var(--text)}
.mod-card .m-beta{font:600 9px var(--f-mono);letter-spacing:.06em;background:var(--brandSoft);color:var(--brand);
  border:1px solid var(--brandSoftB);border-radius:5px;padding:1.5px 5px}
.mod-card .m-estado{display:flex;align-items:center;gap:6px;margin-top:5px;font:400 12px var(--f-ui);color:var(--text2)}
.mod-card .m-estado i{width:7px;height:7px;border-radius:99px;background:var(--muted);flex:none}
.mod-card .m-estado.ok i{background:var(--profit)}   .mod-card .m-estado.ok{color:var(--profit)}
.mod-card .m-estado.warn i{background:var(--warn)}   .mod-card .m-estado.warn{color:var(--warn)}
.mod-card .m-estado.loss i{background:var(--loss)}   .mod-card .m-estado.loss{color:var(--loss)}

/* ---------- Tipografía de página ---------- */
.h-page{font:600 clamp(21px,2.4vw,25px) var(--f-display);letter-spacing:-.02em;margin:0;color:var(--text)}
.h-sub{font:400 13px var(--f-ui);color:var(--text3);margin-top:4px}
.mono2{font-family:var(--f-mono);font-variant-numeric:tabular-nums}

/* ---------- Estado vacío ---------- */
.empty2{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:40px 24px;
  display:flex;flex-direction:column;align-items:center;text-align:center}
.empty2 .e-ico{width:46px;height:46px;border-radius:99px;background:var(--surface2);display:grid;place-items:center;color:var(--muted)}
.empty2 .e-title{font:600 15px var(--f-ui);margin-top:12px;color:var(--text)}
.empty2 .e-text{font:400 13px/1.6 var(--f-ui);color:var(--text2);margin-top:6px;max-width:360px}
.empty2 .btn2{margin-top:16px}

/* ============================================================
   Componentes de trabajo (tablas, formularios, tabs, chips…)
   ============================================================ */
[data-sh]{--zebra:rgba(24,24,27,.03)}
html[data-theme="dark"] [data-sh]{--zebra:rgba(250,250,250,.03)}

/* ---------- Tabla estándar ---------- */
.tbl-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px;background:var(--surface);
  width:100%;max-width:100%;min-width:0}
table.tbl{width:100%;border-collapse:separate;border-spacing:0;font:400 12.5px var(--f-ui);color:var(--text)}
.tbl th{position:sticky;top:0;z-index:2;background:var(--surface2);font:600 10.5px var(--f-mono);
  letter-spacing:.06em;text-transform:uppercase;color:var(--text3);text-align:left;
  padding:9px 12px;border-bottom:1px solid var(--border);white-space:nowrap}
.tbl td{padding:8px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.tbl tbody tr:nth-child(even){background:var(--zebra)}
.tbl tbody tr:hover{background:var(--surface2)}
.tbl tbody tr:last-child td{border-bottom:none}
.tbl th.num,.tbl td.num{text-align:right;font-variant-numeric:tabular-nums}
.tbl .pos{color:var(--profit);font-weight:600}
.tbl .neg{color:var(--loss);font-weight:600}
.tbl th.sortable{cursor:pointer;user-select:none}
.tbl th.sortable:hover{color:var(--text)}
.tbl th.s-asc::after{content:" ↑";color:var(--brand)}
.tbl th.s-desc::after{content:" ↓";color:var(--brand)}
.tbl2-grip{position:absolute;top:0;right:0;width:7px;height:100%;cursor:col-resize;user-select:none}
.tbl2-grip:hover{background:var(--brandSoft)}
.tbl th.tbl2-over{background:var(--brandSoft);color:var(--brand)}
.tbl-foot{position:sticky;bottom:0;background:var(--surface2);font-weight:600}
.tbl-foot td{border-top:1px solid var(--border)}

/* ---------- Formularios ---------- */
.f-label{display:block;font:500 12px var(--f-ui);color:var(--text2);margin-bottom:5px}
.f-help{font:400 11px var(--f-ui);color:var(--muted);margin-top:4px}
.input2{height:36px;width:100%;max-width:100%;padding:0 11px;border-radius:10px;border:1px solid var(--binput);
  background:var(--surface);color:var(--text);font:400 13px var(--f-ui)}
.input2:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--brandSoft)}
textarea.input2{height:auto;min-height:90px;padding:9px 11px;resize:vertical;line-height:1.5}
select.input2{cursor:pointer}
.input2[type="file"]{padding:6px 11px;height:auto}
.f-row{display:flex;gap:10px;flex-wrap:wrap;align-items:end}
.f-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.check2{display:flex;align-items:center;gap:8px;font:400 13px var(--f-ui);color:var(--text2);cursor:pointer}
.check2 input{accent-color:var(--brand);width:15px;height:15px}

/* switch */
input[type="checkbox"].switch2{appearance:none;-webkit-appearance:none;width:36px;height:20px;border-radius:99px;
  background:var(--binput);position:relative;cursor:pointer;transition:background .15s;flex:none}
input[type="checkbox"].switch2::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;
  border-radius:99px;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
input[type="checkbox"].switch2:checked{background:var(--brand)}
input[type="checkbox"].switch2:checked::after{left:18px}

/* ---------- Secciones (formulario por secciones, con su Guardar) ---------- */
.sec2{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 20px;
  box-shadow:0 1px 2px rgba(24,24,27,.05)}
.sec2-title{font:600 14px var(--f-display);letter-spacing:-.01em;color:var(--text);margin:0}
.sec2-desc{font:400 12.5px var(--f-ui);color:var(--text3);margin:4px 0 0}
.sec2-body{margin-top:14px;display:flex;flex-direction:column;gap:12px}

/* <details> como card plegable */
details.dt2{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 1px 2px rgba(24,24,27,.05)}
details.dt2>summary{list-style:none;cursor:pointer;padding:13px 18px;display:flex;align-items:center;gap:9px;
  font:600 13.5px var(--f-ui);color:var(--text)}
details.dt2>summary::-webkit-details-marker{display:none}
details.dt2>summary::after{content:"";width:8px;height:8px;border-right:1.5px solid var(--text3);
  border-bottom:1.5px solid var(--text3);transform:rotate(45deg);margin-left:auto;transition:transform .15s}
details.dt2[open]>summary::after{transform:rotate(-135deg)}
details.dt2>.dt2-body{padding:2px 18px 16px;display:flex;flex-direction:column;gap:12px}

/* ---------- Tabs / chips / progreso ---------- */
.tabs2{display:flex;gap:2px;border-bottom:1px solid var(--border);overflow-x:auto}
.tab2{height:38px;padding:0 14px;display:inline-flex;align-items:center;gap:7px;font:500 13px var(--f-ui);
  color:var(--text2);border:none;background:none;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.tab2:hover{color:var(--text)}
.tab2.on{color:var(--brand);border-bottom-color:var(--brand);font-weight:600}
.chips2{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip2{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:99px;
  border:1px solid var(--border);background:var(--surface);font:500 12px var(--f-ui);color:var(--text2);
  cursor:pointer;text-decoration:none;white-space:nowrap}
.chip2:hover{border-color:var(--binput);color:var(--text)}
.chip2.on{background:var(--brandSoft);border-color:var(--brandSoftB);color:var(--brand);font-weight:600}
.chip2 .n{font:600 10.5px var(--f-mono);background:var(--surface2);border-radius:99px;padding:1px 7px;color:var(--text3)}
.chip2.on .n{background:transparent;color:var(--brand)}
.progress2{height:8px;border-radius:99px;background:var(--surface2);overflow:hidden;flex:1;min-width:120px}
.progress2 i{display:block;height:100%;background:var(--brand);border-radius:99px;transition:width .3s}

/* ---------- Badges de estado ---------- */
.badge2{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:6px;
  font:600 11px var(--f-ui);background:var(--surface2);color:var(--text2);border:1px solid var(--border);white-space:nowrap}
.badge2 i{width:7px;height:7px;border-radius:99px;background:var(--muted);flex:none}
.badge2.ok{background:var(--profitBg);border-color:var(--profitB);color:var(--profit)}     .badge2.ok i{background:var(--profit)}
.badge2.warn{background:var(--warnBg);border-color:var(--warnB);color:var(--warn)}         .badge2.warn i{background:var(--warn)}
.badge2.loss{background:var(--lossBg);border-color:var(--lossB);color:var(--loss)}         .badge2.loss i{background:var(--loss)}
.badge2.info{background:var(--infoBg);border-color:var(--infoB);color:var(--info)}         .badge2.info i{background:var(--info)}
.badge2.brand{background:var(--brandSoft);border-color:var(--brandSoftB);color:var(--brand)} .badge2.brand i{background:var(--brand)}

/* semáforo suelto */
.dot2{display:inline-block;width:9px;height:9px;border-radius:99px;background:var(--muted);vertical-align:middle}
.dot2.ok{background:var(--profit)} .dot2.warn{background:var(--warn)} .dot2.loss{background:var(--loss)}

/* ---------- Chat / conversación ---------- */
.chat2{display:flex;flex-direction:column;gap:8px}
.msg2{max-width:78%;border-radius:12px;padding:9px 12px;font:400 13px/1.5 var(--f-ui);
  background:var(--surface2);color:var(--text);border:1px solid var(--border)}
.msg2 .quien{font:600 10.5px var(--f-mono);letter-spacing:.05em;color:var(--text3);display:block;margin-bottom:3px}
.msg2.mio{align-self:flex-end;background:var(--brandSoft);border-color:var(--brandSoftB)}
.msg2 .cuando{font:400 10.5px var(--f-ui);color:var(--muted);display:block;margin-top:4px}

/* ---------- Zona de subida ---------- */
.drop2{border:1.5px dashed var(--binput);border-radius:12px;padding:18px;text-align:center;
  font:400 12.5px var(--f-ui);color:var(--text3);background:var(--surface)}

/* ---------- Toolbar de vista ---------- */
.tb2{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tb2 .sep{flex:1}

/* ---------- Layout auth (split) ---------- */
.auth2{min-height:100vh;display:flex;background:var(--bg);color:var(--text)}
.auth2-brand{flex:0 0 44%;background:#0E0E15;color:#F4F4F8;display:flex;flex-direction:column;
  justify-content:space-between;padding:38px 40px}
.auth2-brand .frase{font:600 clamp(22px,2.6vw,30px)/1.25 var(--f-display);letter-spacing:-.02em;max-width:380px}
.auth2-chips{display:flex;flex-direction:column;gap:9px}
.auth2-chip{display:inline-flex;align-items:center;gap:8px;font:500 12.5px var(--f-ui);color:#A9A7BD}
.auth2-chip svg{color:#A3E635;flex:none}
.auth2-panel{flex:1;display:flex;align-items:center;justify-content:center;padding:32px 20px}
.auth2-card{width:100%;max-width:400px}
.auth2-card h1{font:600 22px var(--f-display);letter-spacing:-.02em;margin:0 0 6px}
.auth2-card .sub{font:400 13px var(--f-ui);color:var(--text3);margin:0 0 20px}
@media (max-width:860px){
  /* En el celular el split pasa a una sola columna: marca arriba (compacta) y el
     formulario justo debajo. min-height:auto evita que el form quede "flotando"
     centrado en una pantalla vacía (se veía muy separado y a veces fuera de vista). */
  .auth2{flex-direction:column;min-height:auto}
  .auth2-brand{flex:none;justify-content:flex-start;gap:12px;padding:24px 22px 12px}
  .auth2-brand .frase{max-width:none}
  .auth2-panel{flex:none;align-items:stretch;justify-content:flex-start;padding:16px 20px 40px}
  .auth2-card{margin:0 auto}
}

/* ---------- Variante admin (sobria) ---------- */
.adm-top{background:#18181B;color:#FAFAFA;border-bottom:1px solid #27272A}
.adm-top-in{max-width:1560px;margin:0 auto;padding:0 clamp(16px,3vw,36px);height:56px;display:flex;align-items:center;gap:14px}
.adm-top .t{font:600 14px var(--f-display);letter-spacing:-.01em}
.adm-top a{color:#A1A1AA} .adm-top a:hover{color:#FAFAFA}
.adm-wrap{max-width:1560px;margin:0 auto;padding:22px clamp(16px,3vw,36px);display:flex;flex-direction:column;gap:14px}

/* ---------- Nav pública (precios / legales) ---------- */
.pub-nav{position:sticky;top:0;z-index:50;background:color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.pub-nav-in{max-width:1080px;margin:0 auto;padding:0 20px;height:60px;display:flex;align-items:center;gap:20px}
.pub-nav .links{display:flex;gap:18px;margin-left:6px}
.pub-nav .links a{font:500 13px var(--f-ui);color:var(--text2)}
.pub-nav .links a:hover{color:var(--text)}
.pub-nav .cta{margin-left:auto;display:flex;gap:8px;align-items:center}
@media (max-width:640px){.pub-nav .links{display:none}}

/* alias de compatibilidad (textos secundarios en vistas portadas) */
[data-sh] .muted{color:var(--text3)}
[data-sh] .small{font-size:12px}

/* ---------- Skeleton / carga ---------- */
@keyframes shSkel{0%{opacity:.55}50%{opacity:.9}100%{opacity:.55}}
.skel{background:var(--surface2);border-radius:8px;animation:shSkel 1.2s ease-in-out infinite}

@media (prefers-reduced-motion:reduce){
  [data-sh] *{animation:none!important;transition:none!important}
}
