/* ============================================================
   Sompopo Payment Center — componentes de interfaz (v2)
   Drawers, login de doble panel, vistas previas de correo y
   WhatsApp, gráficos livianos (HTML/CSS), bandejas y timeline.
   ============================================================ */

/* ---------- Ajustes generales ---------- */
img { max-width: 100%; }
.content { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.ml-auto { margin-left: auto; }
.mt-0 { margin-top: 0; }
.p-0 { padding: 0 !important; }
.hide { display: none !important; }
.stack > * + * { margin-top: .6rem; }
.row-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.btn .ico, .btn svg { flex-shrink: 0; }
.btn--lg { padding: 9px 16px; font-size: .86rem; }
.btn--warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn--warning:hover { filter: brightness(.95); }
.table-wrap { -webkit-overflow-scrolling: touch; }
table.tbl td.wrap { white-space: normal; min-width: 180px; }
table.tbl tbody tr.is-selected { background: var(--primary-soft); }
table.tbl tbody tr.row-muted td { color: var(--muted); }
.cell-sub { display: block; font-size: .7rem; color: var(--muted); font-weight: 400; }
.chk { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }

/* ---------- Badges adicionales ---------- */
.badge--cancelled  { background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); text-decoration: line-through; }
.badge--draft      { background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); }
.badge--processing { background: var(--warning-soft); color: var(--warning); }
.badge--failed     { background: var(--danger-soft); color: var(--danger); }
.badge--simulated  { background: var(--info-soft); color: var(--info); }
.badge--sent, .badge--delivered { background: var(--positive-soft); color: var(--positive); }
.badge--read       { background: #E3F2FD; color: #1565C0; }
.badge--queued     { background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); }
.badge--received   { background: var(--secondary-soft); color: var(--secondary); }
.badge--blocked    { background: var(--danger-soft); color: var(--danger); }
.badge--inactive   { background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); }
.badge--active     { background: var(--positive-soft); color: var(--positive); }
.badge--role       { background: var(--secondary-soft); color: var(--secondary); }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: .7rem; color: var(--muted); background: #fff; white-space: nowrap; }
.chip img { height: 13px; }
.chip--ok { border-color: #BBD9BC; color: var(--positive); background: var(--positive-soft); }
.chip--warn { border-color: #EAC59E; color: var(--warning); background: var(--warning-soft); }
.chip--bad { border-color: #E5B6B3; color: var(--danger); background: var(--danger-soft); }

/* ---------- Sidebar: scroll y foco ---------- */
.sidebar { overflow-y: auto; }
.sidebar nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.nav a .count { margin-left: auto; background: var(--primary); color: #fff; border-radius: 999px; font-size: .62rem; font-weight: 700; padding: 1px 7px; }
.topbar__env { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius); background: var(--warning-soft); color: var(--warning); border: 1px solid #EAC59E; }
.topbar__menu { display: none; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .main { margin-left: 0; }
  .topbar__menu { display: inline-flex; }
  .grid--2 { grid-template-columns: 1fr; }
  .content { padding: 14px 12px 60px; }
  .page-head { flex-direction: column; }
  .page-head__actions { flex-wrap: wrap; }
}

/* ---------- Pestañas ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs a, .tabs button { padding: 8px 14px; font-size: .8rem; font-weight: 600; color: var(--muted); border: none; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-family: var(--font); display: inline-flex; gap: .4rem; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .active { color: var(--secondary); border-bottom-color: var(--primary); }
.tabs .n { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: .68rem; color: var(--muted); }
.tabs .active .n { background: var(--primary); color: #fff; }

/* ---------- KPI (tarjetas compactas) ---------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; position: relative; display: block; color: inherit; }
a.kpi:hover { border-color: var(--primary); text-decoration: none; }
.kpi__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.kpi__value { font-size: 1.45rem; font-weight: 800; color: var(--text); margin-top: 3px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi__sub { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.kpi--accent { border-top: 3px solid var(--primary); }
.kpi--brown { border-top: 3px solid var(--secondary); }
.kpi--ok { border-top: 3px solid var(--positive); }
.kpi--warn { border-top: 3px solid var(--warning); }

/* Bandeja de trabajo por rol */
.worklist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.work { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); background: #fff; color: inherit; }
.work:hover { text-decoration: none; background: var(--primary-soft); }
.work__n { font-size: 1.6rem; font-weight: 800; color: var(--secondary); min-width: 42px; text-align: center; }
.work__t { font-weight: 700; font-size: .84rem; }
.work__s { font-size: .72rem; color: var(--muted); }
.work--brown { border-left-color: var(--secondary); }
.work--ok { border-left-color: var(--positive); }
.work--warn { border-left-color: var(--warning); }

/* ---------- Gráficos livianos (HTML/CSS) ---------- */
.colchart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 8px 4px 0; border-bottom: 1px solid var(--border-strong); position: relative; }
.colchart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.colchart__bar { width: 100%; max-width: 46px; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; transition: filter .12s; }
.colchart__col:hover .colchart__bar { filter: brightness(.9); }
.colchart__val { font-size: .66rem; color: var(--muted); margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.colchart__labels { display: flex; gap: 10px; padding: 6px 4px 0; }
.colchart__labels span { flex: 1; text-align: center; font-size: .7rem; color: var(--muted); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .78rem; }
.hbar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__track { height: 10px; background: var(--surface-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar__fill { height: 100%; background: var(--secondary); border-radius: 0 4px 4px 0; }
.hbar__fill--orange { background: var(--primary); }
.hbar__val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: .7rem; padding: 4px 8px; border-radius: 3px; white-space: nowrap; z-index: 30; pointer-events: none; }

/* ---------- Drawer lateral ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(43,38,34,.42); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 160; display: flex; flex-direction: column; box-shadow: -14px 0 40px rgba(0,0,0,.18); transform: translateX(102%); transition: transform .22s ease; border-left: 4px solid var(--primary); }
.drawer--wide { width: min(820px, 100vw); }
.drawer.open { transform: none; }
.drawer.open + .drawer-backdrop, .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer__head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer__head h3 { margin: 0; font-size: 1rem; color: var(--secondary); }
.drawer__head p { margin: 2px 0 0; font-size: .76rem; color: var(--muted); }
.drawer__x { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.drawer__body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: .5rem; justify-content: flex-end; background: var(--surface); }
body.drawer-open { overflow: hidden; }

/* ---------- Barra de acciones masivas ---------- */
.bulkbar { position: sticky; bottom: 12px; z-index: 40; display: none; align-items: center; gap: .6rem; background: var(--secondary); color: #fff; padding: 9px 14px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin-top: 10px; }
.bulkbar.show { display: flex; }
.bulkbar .btn { background: #fff; }

/* ---------- Timeline (trazabilidad) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 22px; font-size: .78rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 16px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.ai::before { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.timeline li.sys::before { background: var(--muted); box-shadow: 0 0 0 3px var(--surface-2); }
.timeline li.bad::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.timeline li.ok::before { background: var(--positive); box-shadow: 0 0 0 3px var(--positive-soft); }
.timeline b { color: var(--text); }
.timeline .when { color: var(--muted); font-size: .7rem; display: block; }

/* ---------- Reglas de validación ---------- */
.rules { display: grid; gap: 6px; }
.rule { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; padding: 6px 9px; border: 1px solid var(--border); border-radius: var(--radius); }
.rule .ic { font-weight: 800; width: 16px; text-align: center; }
.rule--ok { border-color: #BBD9BC; background: var(--positive-soft); }
.rule--ok .ic { color: var(--positive); }
.rule--bad { border-color: #E5B6B3; background: var(--danger-soft); }
.rule--bad .ic { color: var(--danger); }

/* ---------- Login de doble panel ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.auth__brand { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, #6E4528 0%, #3E2213 55%, #2A160B 100%); color: #fff; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__brand svg.trail { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.auth__brand > * { position: relative; }
.auth__logo { display: flex; align-items: center; gap: 14px; animation: rise .7s ease both; }
.auth__logo img { height: 58px; filter: drop-shadow(0 6px 18px rgba(241,90,44,.45)); }
.auth__logo b { font-size: 1.5rem; letter-spacing: .3px; display: block; }
.auth__logo span { font-size: .78rem; color: rgba(255,255,255,.65); letter-spacing: .12em; text-transform: uppercase; }
.auth__claim h2 { color: #fff; font-size: 2rem; line-height: 1.15; font-weight: 800; margin: 0 0 10px; max-width: 520px; animation: rise .8s .25s ease both; }
.auth__claim p { color: rgba(255,255,255,.78); font-size: .95rem; max-width: 470px; margin: 0; animation: rise .8s .45s ease both; }
.auth__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; animation: rise .8s .6s ease both; }
.auth__badges span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); font-size: .74rem; color: rgba(255,255,255,.92); }
.auth__badges img { height: 14px; filter: brightness(0) invert(1); opacity: .9; }
.auth__foot { font-size: .72rem; color: rgba(255,255,255,.5); }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 36px 20px; background: var(--surface); }
.auth__card { width: 100%; max-width: 410px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 28px 28px 24px; box-shadow: 0 18px 50px -20px rgba(43,38,34,.28); animation: rise .6s .1s ease both; }
.auth__card h1 { font-size: 1.45rem; font-weight: 800; margin: 0; }
.auth__card .lead { color: var(--muted); font-size: .84rem; margin: 4px 0 18px; }
.auth__card input[type=email], .auth__card input[type=password], .auth__card input[type=text] { padding: 10px 12px; font-size: .9rem; border-radius: 6px; }
.auth__card .btn--primary { padding: 11px 14px; font-size: .9rem; border-radius: 6px; }
.auth__mobile-logo { display: none; text-align: center; margin-bottom: 18px; }
.auth__mobile-logo img { height: 46px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 7px; padding: 3px; margin-bottom: 18px; }
.seg a, .seg button { text-align: center; padding: 7px 8px; font-size: .8rem; font-weight: 700; color: var(--muted); border-radius: 5px; border: none; background: none; cursor: pointer; font-family: var(--font); }
.seg .on { background: #fff; color: var(--secondary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg a:hover { text-decoration: none; color: var(--text); }
.pwd { position: relative; }
.pwd button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 700; padding: 4px 6px; }
.quick { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.quick p { text-align: center; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 8px; }
.quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quick__grid button { border: 1px solid var(--border-strong); background: #fff; border-radius: 6px; padding: 7px 4px; font-size: .7rem; font-weight: 700; color: var(--secondary); cursor: pointer; font-family: var(--font); line-height: 1.2; }
.quick__grid button small { display: block; font-weight: 500; color: var(--muted); font-size: .62rem; }
.quick__grid button:hover { border-color: var(--primary); background: var(--primary-soft); }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 1.3rem !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.qr { display: grid; place-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.qr svg { width: 200px; height: 200px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 28px; margin-bottom: 8px; font-size: .82rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.codes code { background: var(--surface); border: 1px solid var(--border); padding: 6px; text-align: center; border-radius: 4px; font-weight: 700; letter-spacing: .05em; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes march { to { stroke-dashoffset: -400; } }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__mobile-logo { display: block; }
}

/* ---------- Vista previa: cliente de correo ---------- */
.mailview { border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.mailview__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #F3F2F1; border-bottom: 1px solid var(--border); }
.mailview__bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #E0605A; }
.mailview__bar i:nth-child(2) { background: #E8B54A; }
.mailview__bar i:nth-child(3) { background: #5DBB63; }
.mailview__bar span { margin-left: 8px; font-size: .74rem; color: #605E5C; font-weight: 600; }
.mailview__head { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mailview__subject { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.mailview__meta { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; font-size: .78rem; }
.mailview__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.mailview__meta b { display: block; color: var(--text); }
.mailview__meta span { color: var(--muted); }
.mailview__attach { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: .76rem; background: var(--surface); }
.mailview__attach .pdf { background: #D93025; color: #fff; font-size: .6rem; font-weight: 800; padding: 3px 5px; border-radius: 3px; }
.mailview iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }

/* ---------- Vista previa: teléfono WhatsApp ---------- */
.phone { width: 330px; max-width: 100%; margin: 0 auto; border-radius: 34px; background: #111; padding: 10px; box-shadow: 0 18px 44px -14px rgba(0,0,0,.5); }
.phone__screen { border-radius: 26px; overflow: hidden; background: #EFE7DD; display: flex; flex-direction: column; height: 600px; }
.phone__status { background: #075E54; color: #fff; font-size: .68rem; display: flex; justify-content: space-between; padding: 6px 16px 2px; }
.phone__head { background: #075E54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; }
.phone__head .av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.phone__head .av img { width: 26px; height: 26px; }
.phone__head b { display: flex; align-items: center; gap: 4px; font-size: .84rem; }
.phone__head b .verified { width: 14px; height: 14px; border-radius: 50%; background: #25D366; color: #fff; font-size: .55rem; display: grid; place-items: center; }
.phone__head span { font-size: .66rem; opacity: .85; }
.phone__chat { flex: 1; overflow-y: auto; padding: 12px 10px; background-color: #EFE7DD; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.phone__day { text-align: center; margin: 4px 0 10px; }
.phone__day span { background: #E1F2FB; color: #54656F; font-size: .64rem; padding: 3px 9px; border-radius: 6px; }
.phone__note { background: #FFF5C4; color: #54656F; font-size: .64rem; padding: 6px 9px; border-radius: 6px; text-align: center; margin: 0 14px 10px; }
.bubble { max-width: 84%; padding: 6px 8px 4px; border-radius: 8px; font-size: .78rem; line-height: 1.38; margin-bottom: 8px; position: relative; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.08); color: #111B21; }
.bubble--out { background: #D9FDD3; margin-left: auto; border-top-right-radius: 2px; }
.bubble--in { background: #fff; margin-right: auto; border-top-left-radius: 2px; }
.bubble__meta { display: flex; justify-content: flex-end; gap: 3px; align-items: center; font-size: .6rem; color: #667781; margin-top: 2px; }
.bubble__ticks { color: #8696A0; font-weight: 700; letter-spacing: -2px; }
.bubble__ticks.read { color: #53BDEB; }
.bubble__doc { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.05); border-radius: 6px; padding: 8px; margin-bottom: 4px; }
.bubble__doc .pdf { background: #D93025; color: #fff; font-size: .58rem; font-weight: 800; padding: 6px 5px; border-radius: 3px; }
.bubble__doc b { font-size: .74rem; display: block; }
.bubble__doc span { font-size: .62rem; color: #667781; }
.bubble__tpl { font-size: .6rem; color: #667781; border-top: 1px solid rgba(0,0,0,.06); margin-top: 4px; padding-top: 3px; }
.phone__input { background: #F0F2F5; padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.phone__input span { flex: 1; background: #fff; border-radius: 18px; padding: 7px 12px; font-size: .72rem; color: #8696A0; }
.phone__input i { width: 32px; height: 32px; border-radius: 50%; background: #00A884; display: inline-block; }

/* ---------- Envíos (maestro / detalle) ---------- */
.sends { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.sends__list { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; max-height: 780px; overflow-y: auto; }
.sends__item { display: block; width: 100%; text-align: left; border: none; border-bottom: 1px solid var(--border); background: #fff; padding: 10px 12px; cursor: pointer; font-family: var(--font); }
.sends__item:hover { background: var(--surface); }
.sends__item.on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.sends__item b { font-size: .8rem; display: block; color: var(--text); }
.sends__item span { font-size: .7rem; color: var(--muted); }
.sends__item .st { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.sends__detail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
@media (max-width: 1280px) { .sends__detail { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .sends { grid-template-columns: 1fr; } .sends__list { max-height: 260px; } }
.sendcap { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; display: flex; gap: .5rem; align-items: center; }

/* ---------- Varios ---------- */
.callout { border: 1px solid var(--border); border-left: 4px solid var(--info); background: var(--info-soft); padding: 10px 12px; border-radius: var(--radius); font-size: .8rem; margin-bottom: 14px; }
.callout--warn { border-left-color: var(--warning); background: var(--warning-soft); }
.callout--bad { border-left-color: var(--danger); background: var(--danger-soft); }
.callout--ok { border-left-color: var(--positive); background: var(--positive-soft); }
.secret-state { font-size: .7rem; font-weight: 700; color: var(--positive); }
.secret-state.no { color: var(--warning); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); }
.filters > div { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.filters label { font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filters input, .filters select { padding: 5px 8px; font-size: .78rem; }
.filters .grow { flex: 1; min-width: 200px; }
.logo-cell { width: 92px; height: 34px; display: flex; align-items: center; }
.logo-cell img { max-height: 30px; max-width: 90px; object-fit: contain; }
.bank-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bank-chip img { height: 16px; max-width: 64px; object-fit: contain; }
.pagination-wrap { padding: 10px 12px; border-top: 1px solid var(--border); }
.bubble__text { white-space: pre-wrap; display: block; }
.drawer:not(.open) { box-shadow: none; visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.drawer.open { visibility: visible; transition: transform .22s ease; }

/* Login: logo grande centrado + sompopitos caminando */
.auth__brand { justify-content: center; align-items: center; text-align: center; gap: 28px; }
.auth__brand svg.trail { opacity: 1; }
.auth__center { display: flex; flex-direction: column; align-items: center; animation: rise .7s ease both; }
.auth__biglogo { width: min(280px, 55%); height: auto; filter: drop-shadow(0 12px 32px rgba(241,90,44,.40)); }
.auth__product { margin-top: 8px; font-size: .92rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.auth__claim { display: flex; flex-direction: column; align-items: center; }
.auth__claim h2 { font-size: 1.7rem; }
.auth__claim p { margin: 0 auto; }
.auth__badges { justify-content: center; }
.auth__foot { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; }

/* ---------- Asistente "Pregúntale al Sompopo" ---------- */
.sompo { position: fixed; right: 18px; bottom: 18px; z-index: 140; font-family: var(--font); }
.sompo__fab { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 0; }
.sompo__fab img { width: 62px; height: 62px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 8px 24px rgba(43,38,34,.28); border: 2px solid var(--primary); transition: transform .2s; animation: sompoWalk 2.6s ease-in-out infinite; }
.sompo__fab:hover img { transform: scale(1.08) rotate(-6deg); }
.sompo__bubble { background: var(--secondary); color: #fff; font-size: .74rem; font-weight: 700; padding: 6px 11px; border-radius: 14px 14px 2px 14px; box-shadow: 0 6px 16px rgba(0,0,0,.18); white-space: nowrap; }
.sompo[data-open="1"] .sompo__bubble { display: none; }
@keyframes sompoWalk { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-3px); } }
.sompo__panel { position: absolute; right: 0; bottom: 76px; width: min(370px, calc(100vw - 28px)); height: min(520px, calc(100vh - 120px)); background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(43,38,34,.3); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; transition: opacity .18s, transform .18s; }
.sompo[data-open="1"] .sompo__panel { opacity: 1; transform: none; pointer-events: auto; }
.sompo__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(120deg, var(--secondary), #3E2213); color: #fff; }
.sompo__head img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.sompo__head b { display: block; font-size: .9rem; }
.sompo__head span { font-size: .7rem; opacity: .8; }
.sompo__x { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.sompo__body { flex: 1; overflow-y: auto; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.sompo__msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: .8rem; line-height: 1.45; }
.sompo__msg--bot { background: #fff; border: 1px solid var(--border); border-top-left-radius: 3px; align-self: flex-start; }
.sompo__msg--me { background: var(--primary); color: #fff; border-top-right-radius: 3px; align-self: flex-end; }
.sompo__msg a { font-weight: 700; }
.sompo__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sompo__chipt { width: 100%; font-size: .68rem; color: var(--muted); font-weight: 700; }
.sompo__chips button { border: 1px solid var(--primary); color: var(--primary-hover); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 600; cursor: pointer; font-family: var(--font); text-align: left; }
.sompo__chips button:hover { background: var(--primary-soft); }
.sompo__form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--border); background: #fff; }
.sompo__form input { flex: 1; border-radius: 999px !important; padding: 8px 14px !important; }
.sompo__form button { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--primary); color: #fff; cursor: pointer; font-size: .95rem; }
@media (max-width: 600px) { .sompo__bubble { display: none; } .sompo__fab img { width: 54px; height: 54px; } }
.auth__mobile-trail { display: none; }
@media (max-width: 960px) {
  .auth__panel { padding-bottom: 90px; }
  .auth__mobile-trail { display: block; position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 72px; pointer-events: none; z-index: 1; }
  .auth ~ .sompo { bottom: 74px; }
}
html:has(body.portal-page), body.portal-page { background: var(--surface); min-height: 100vh; }
