:root {
  --bg: #050a16;
  --bg-2: #081224;
  --navy: #001b48;
  --foreground: #f3f7ff;
  --muted-fg: #8ea3bd;
  --primary: #00e5ff;
  --primary-2: #3b82f6;
  --primary-3: #0057ff;
  --primary-fg: #041018;
  --accent: rgba(0, 229, 255, .12);
  --card: rgba(8, 20, 42, .78);
  --border: rgba(0, 229, 255, .18);
  --danger: #ff4d6d;
  --ok: #00e5b0;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 8, 28, .45);
  --glow: 0 0 24px rgba(0, 229, 255, .28);
  --container: 1140px;
  --header: 72px;
  --font: "Manrope", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Montserrat", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(0, 87, 255, .28), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(0, 229, 255, .16), transparent 30%),
    url("../img/pattern.svg") 0 0 / 420px 140px repeat;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.04em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(5, 10, 22, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 28px;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, .45));
}
.brand-mark img, .brand-mark svg { width: 42px; height: 22px; }
.brand-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.04em;
  color: #fff;
}
.brand-text span { font-weight: 600; color: var(--primary); }

.nav-desktop { display: none; align-items: center; gap: 1.25rem; }
.nav-desktop a { font-size: .86rem; color: var(--muted-fg); font-weight: 600; letter-spacing: .01em; }
.nav-desktop a:hover, .nav-desktop a.active { color: #fff; text-shadow: 0 0 12px rgba(0, 229, 255, .4); }
.header-actions { display: none; align-items: center; gap: .6rem; }
.menu-toggle {
  width: 42px; height: 42px; border: 1px solid var(--border); background: transparent; border-radius: 10px;
  display: grid; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.8px; background: var(--primary); border-radius: 2px; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.mobile-nav {
  display: none; position: absolute; inset: var(--header) 0 auto 0;
  background: #07111f; border-bottom: 1px solid var(--border); padding: 1rem 1.25rem 1.4rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .7rem 0; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav .nav-cta { display: flex; gap: .6rem; margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: 999px; border: 1px solid transparent;
  padding: .72rem 1.15rem; font-weight: 700; font-size: .9rem;
  transition: .18s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(90deg, #00e5ff 0%, #3b82f6 55%, #0057ff 100%);
  color: var(--primary-fg);
  box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border-color: var(--border); color: #fff;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--glow); }
.btn-lg { padding: .9rem 1.3rem; }
.btn-full { width: 100%; }
.btn svg { width: 16px; height: 16px; }

.hero {
  position: relative; overflow: hidden;
  padding: 3.4rem 0 2.2rem;
}
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0, 229, 255, .08);
  color: var(--primary); border: 1px solid var(--border);
  border-radius: 999px; padding: .38rem .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.pill.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.kicker {
  display: inline-flex; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); font-weight: 800; font-size: .72rem; margin-bottom: .9rem;
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); max-width: 14ch; }
.lead { color: var(--muted-fg); font-size: 1.02rem; max-width: 52ch; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.trust { display: flex; align-items: center; gap: .5rem; color: var(--primary); font-size: .88rem; margin-top: 1.15rem; }
.trust svg { width: 16px; height: 16px; flex: none; }

.hero-visual { position: relative; }
.hero-frame {
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow);
  background: #071226;
}
.hero-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center top; }
.float-card {
  position: absolute; background: rgba(6, 14, 30, .88);
  border: 1px solid var(--border);
  border-radius: 16px; padding: .85rem 1rem; box-shadow: var(--glow); min-width: 160px;
  backdrop-filter: blur(12px);
}
.float-card small { display: block; color: var(--muted-fg); font-size: .75rem; }
.float-card strong { color: var(--primary); font-size: 1.05rem; }
.float-in { left: -8px; top: 14%; }
.float-out { right: -4px; bottom: 18%; }

.partners { padding: 1.2rem 0 2.6rem; text-align: center; }
.partners p { color: var(--muted-fg); font-size: .8rem; margin-bottom: 1rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.logo-row span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: #d7e6ff;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-weight: 700; font-size: .86rem; letter-spacing: .02em;
}

.section { padding: 4rem 0; }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head h2, .cta-band h2, .page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.muted { color: var(--muted-fg); }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }

.cards-grid { display: grid; gap: 1rem; }
.service-card, .info-card, .account-card, .channel-card, .step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px; padding: 1.3rem;
  transition: .2s ease;
  backdrop-filter: blur(10px);
}
.service-card:hover, .account-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
  border-color: rgba(0, 229, 255, .45);
}
.icon-box {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 229, 255, .08); color: var(--primary); margin-bottom: .9rem;
  border: 1px solid var(--border);
}
.icon-box svg { width: 20px; height: 20px; }
.service-card h3, .account-card h3, .info-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.more { display: inline-flex; align-items: center; gap: .3rem; color: var(--primary); font-weight: 700; font-size: .9rem; margin-top: .85rem; }

.stats-grid { display: grid; gap: 1.4rem; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
.stat strong {
  display: block; font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 229, 255, .35);
}
.stat span { color: var(--muted-fg); font-size: .9rem; }
.photo-frame {
  border-radius: 24px; overflow: hidden; min-height: 280px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
  background: #071226;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.feature-list li { display: grid; grid-template-columns: 36px 1fr; gap: .8rem; align-items: start; }
.check {
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(0, 229, 255, .1); color: var(--primary);
  display: grid; place-items: center; margin-top: .1rem;
  border: 1px solid var(--border);
}
.check svg { width: 14px; height: 14px; }

.cta-band {
  margin: 1rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(0, 87, 255, .18), rgba(0, 229, 255, .06)),
    rgba(8, 18, 38, .9);
  border: 1px solid var(--border);
  border-radius: 28px; padding: 2.4rem 1.4rem; text-align: center;
  box-shadow: var(--glow);
}
.cta-band p { color: var(--muted-fg); margin: .8rem auto 1.3rem; max-width: 52ch; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; }

.map-panel, .media-split {
  display: grid; gap: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.4rem;
  align-items: center;
}
.media-split img {
  width: 100%; border-radius: 18px; object-fit: cover; min-height: 240px; max-height: 420px;
  border: 1px solid var(--border);
}
.brand-gallery { display: grid; gap: .9rem; }
.brand-gallery img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--border);
}
.dash-visual {
  margin-top: 1rem; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border);
}
.dash-visual img { width: 100%; max-height: 220px; object-fit: cover; object-position: center top; }
.kpi-row {
  display: grid; gap: .75rem; margin: 1rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.kpi-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: .85rem 1rem;
}
.kpi-card small, .kpi-card small.muted {
  display: block; color: var(--muted-fg);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.kpi-card strong {
  display: block; margin-top: .3rem;
  color: #fff; font-family: var(--display); font-size: 1.3rem;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.kpi-card .help, .kpi-card p.muted { font-size: .78rem; }
.admin-grid { display: grid; gap: 1rem; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 32px; gap: .6rem; align-items: center; margin-top: .7rem; font-size: .88rem; }
.bar { height: 8px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #00e5ff, #0057ff); }
@media (min-width: 900px) {
  .admin-grid { grid-template-columns: 1fr 1.1fr; }
}
@media (max-width: 700px) {
  .kpi-row { grid-template-columns: 1fr; }
}
.map-dots { display: flex; flex-wrap: wrap; gap: .55rem; }
.map-dots span {
  border: 1px solid var(--border); border-radius: 999px;
  padding: .35rem .75rem; font-size: .82rem; color: var(--primary); font-weight: 700;
}

.site-footer {
  background: linear-gradient(180deg, #050a16, #02060e);
  color: #c5d4ea; padding: 3.2rem 0 1.4rem;
  border-top: 1px solid var(--border);
}
.site-footer .brand-text { color: #fff; }
.contact-grid { display: grid; gap: 2rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand p { color: #8ea3bd; margin-top: .8rem; max-width: 36ch; font-size: .92rem; }
.footer-col h3 { color: #fff; font-size: .92rem; margin-bottom: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; color: #8ea3bd; padding: .28rem 0; font-size: .92rem; }
.footer-col a:hover { color: var(--primary); }
.latam { color: #8ea3bd; font-size: .9rem; }
.latam strong { display: block; color: #fff; margin-bottom: .4rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1rem;
  color: #6e829b; font-size: .82rem;
}
.footer-bottom nav { display: flex; gap: 1rem; }

.page-hero { padding: 3rem 0 1.5rem; }
.page-hero h1 { max-width: 18ch; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .5rem; align-items: flex-start; color: #d7e6ff; }
.checks svg { color: var(--primary); flex: none; margin-top: .15rem; width: 16px; height: 16px; }
.tag { color: var(--primary); font-size: .82rem; font-weight: 700; margin-bottom: .2rem; }
.account-card .btn { margin-top: 1.1rem; }

.steps { display: grid; gap: 1rem; }
.step-num { font-family: var(--display); color: var(--primary); font-weight: 800; font-size: 1.3rem; }
.corridors { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  background: rgba(0, 229, 255, .06);
  border: 1px solid var(--border);
  border-radius: 999px; padding: .45rem .85rem;
  font-size: .88rem; font-weight: 700; color: #d7e6ff;
}

.form-card, .auth-card, .app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px; padding: 1.3rem;
  backdrop-filter: blur(12px);
}
.form-grid { display: grid; gap: .9rem; }
/* Un .btn hijo de un grid se estiraba a todo el ancho de la tarjeta. */
.form-grid > .btn, .form-grid > button.btn { justify-self: start; }
.form-grid > .btn-full { justify-self: stretch; }
.form-actions {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
/* Filtros en línea: como .form-grid ocupaban todo el ancho de la pantalla. */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: end;
  margin-bottom: 1rem;
}
.filter-bar .field { flex: 0 1 11rem; }
.filter-bar .field label { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-fg); }
.filter-bar input, .filter-bar select { padding: .55rem .7rem; }
.filter-bar .btn { padding: .58rem 1rem; font-size: .85rem; }
/* Tablas que heredan .app-card no deben duplicar padding ni borde. */
.app-card.table-wrap { padding: 0; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .86rem; font-weight: 700; }
/* Los controles sueltos (filtros, selectores de mes) también necesitan el tema
   oscuro: antes solo se estilaban dentro de .field y quedaban blancos. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),
select,
textarea {
  max-width: 100%; border: 1px solid var(--border);
  background: rgba(3, 8, 18, .7);
  color: #fff;
  border-radius: 12px;
  padding: .78rem .9rem; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 229, 255, .15);
}
option { background: #081224; color: #fff; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea, textarea { min-height: 120px; resize: vertical; }
input[type=date], input[type=month] { color-scheme: dark; }
.alert { border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.alert-error { background: rgba(255, 77, 109, .12); color: #ff8fa3; border: 1px solid rgba(255, 77, 109, .3); }
.alert-ok { background: rgba(0, 229, 176, .12); color: #7dffd6; border: 1px solid rgba(0, 229, 176, .28); }
form.is-live-busy, [aria-busy="true"].is-live-busy { opacity: .72; pointer-events: none; }
.live-hint { margin-top: .65rem; }
.help { color: var(--muted-fg); font-size: .82rem; }

.auth-wrap { min-height: calc(100vh - var(--header)); display: grid; place-items: center; padding: 2.5rem 1rem 4rem; }
.auth-card { width: min(100%, 460px); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: .4rem; }
.auth-switch { text-align: center; margin-top: 1rem; color: var(--muted-fg); }
.auth-switch a { color: var(--primary); font-weight: 700; }

/* Auth standalone (sin header/footer público) */
body.auth-body {
  min-height: 100vh;
  margin: 0;
  background: #03070f;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
.auth-brand-panel {
  display: none;
  position: relative;
  padding: 2.5rem 2.8rem;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 87, 255, .35), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 229, 255, .18), transparent 50%),
    linear-gradient(160deg, #071428 0%, #03070f 100%);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.auth-brand-panel .kicker { margin-top: 3.5rem; }
.auth-brand-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: .6rem 0 1rem;
  max-width: 14ch;
}
.auth-brand-lead { color: var(--muted-fg); max-width: 34ch; font-size: 1.02rem; }
.auth-brand-glow {
  position: absolute; inset: auto -20% -30% auto; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(0,229,255,.2), transparent 70%);
  pointer-events: none;
}
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.25rem 1.5rem;
  background: #050a16;
}
.auth-form-inner { width: min(100%, 440px); margin: 0 auto; }
.auth-form-inner h2 { font-family: var(--display); font-size: 1.65rem; margin: .25rem 0 .4rem; }
.auth-brand-mobile { display: inline-flex; margin-bottom: 1.5rem; }
.auth-legal {
  text-align: center;
  margin: 2rem auto 0;
  color: var(--muted-fg);
  font-size: .78rem;
  width: min(100%, 440px);
}
.auth-legal a { color: #9eb6d4; }

/* App frame (dashboard / admin) — sin chrome público */
body.app-body {
  --app-topbar: 60px;
  --app-side: 248px;
  --card: #0b1728;
  --border: rgba(120, 160, 210, .18);
  min-height: 100vh;
  margin: 0;
  background: #060d1a;
}
/* El patrón decorativo del sitio público ensucia el panel y los documentos. */
body.app-body::before { display: none; }
.app-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--app-topbar);
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 13, 26, .92);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}
.app-topbar-lead { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.app-topbar .brand-text { font-size: 1rem; white-space: nowrap; }
.app-topbar-meta { display: flex; align-items: center; gap: .45rem; justify-content: flex-end; min-width: 0; }
.app-topbar-meta .btn { padding: .5rem .95rem; font-size: .82rem; }
/* En móvil los chips de cuenta se solapaban con la marca y los botones. */
@media (max-width: 767px) {
  .app-topbar-meta .app-chip { display: none; }
  .app-topbar-meta .btn { padding: .45rem .8rem; font-size: .78rem; }
}
@media (max-width: 420px) {
  .app-topbar .brand-text { font-size: .92rem; }
  .app-topbar .brand-mark, .app-topbar .brand-mark img { width: 30px; }
}
.app-nav-toggle {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--border); border-radius: 11px;
  background: rgba(255, 255, 255, .04); color: #c5d4ea;
}
.app-nav-toggle:hover { border-color: var(--primary); color: var(--primary); }
.app-nav-toggle svg { width: 18px; height: 18px; }
.app-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 229, 255, .1);
  border: 1px solid rgba(0, 229, 255, .2);
}
.app-chip-mute { color: #b7c8de; background: rgba(255,255,255,.04); border-color: var(--border); }
.app-admin-tag {
  display: inline-block;
  margin-left: .35rem;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  vertical-align: middle;
}

.app-shell { display: grid; flex: 1; min-height: 0; min-width: 0; }
.app-sidebar {
  background: #08111f; color: #c5d4ea;
  border-right: 1px solid var(--border);
  min-width: 0;
}
/* Móvil: cajón lateral. El sidebar antes quedaba en display:none sin alternativa. */
.app-sidebar {
  position: fixed; z-index: 60;
  inset: var(--app-topbar) auto 0 0;
  width: min(84vw, 300px);
  padding: 1rem .8rem 1.6rem;
  display: flex; flex-direction: column; gap: .15rem;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-101%);
  transition: transform .22s ease;
  box-shadow: 24px 0 60px rgba(0, 0, 0, .5);
}
.app-sidebar.is-open { transform: translateX(0); }
.app-scrim {
  position: fixed; inset: var(--app-topbar) 0 0 0; z-index: 50;
  background: rgba(2, 6, 14, .66); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
  border: 0; padding: 0;
}
.app-scrim.is-open { opacity: 1; visibility: visible; }
.app-side-account {
  display: grid; gap: .15rem; min-width: 0;
  margin: 0 .25rem .6rem; padding: .7rem .8rem;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.app-side-account strong {
  font-size: .9rem; color: #eaf3ff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-side-account span {
  font-size: .74rem; color: #7f93ad;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-side-label {
  margin: 1.1rem .75rem .3rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #6e829b;
}
.app-side-label:first-child, .app-side-account + .app-side-label { margin-top: .2rem; }
.app-side-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .58rem .75rem; border-radius: 10px;
  color: #9fb3cc; font-size: .89rem; font-weight: 600;
  border: 1px solid transparent;
}
.app-side-link svg { width: 17px; height: 17px; flex: none; }
.app-side-link:hover { background: rgba(255, 255, 255, .05); color: #eaf3ff; }
.app-side-link.active {
  background: rgba(0, 229, 255, .1); color: var(--primary);
  border-color: rgba(0, 229, 255, .28);
}
.app-sidebar::-webkit-scrollbar { width: 8px; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.app-sidebar::-webkit-scrollbar-track { background: transparent; }

.app-main { min-width: 0; padding: 1.25rem 1rem 5.5rem; }
.app-top {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.app-top h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.app-top > div:first-child { min-width: 0; }
.app-top .muted { font-size: .92rem; margin-top: .3rem; max-width: 68ch; }

/* Dock inferior: antes se renderizaba sin estilos al final del documento. */
.app-dock {
  position: fixed; z-index: 45; inset: auto 0 0 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: .15rem; padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom));
  background: rgba(6, 13, 26, .96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.app-dock a {
  display: grid; justify-items: center; gap: .18rem;
  padding: .4rem .2rem; border-radius: 12px;
  color: #8ea3bd; font-size: .66rem; font-weight: 700;
  text-align: center; line-height: 1.15;
}
.app-dock a svg { width: 19px; height: 19px; }
.app-dock a.active { color: var(--primary); background: rgba(0, 229, 255, .1); }
.app-dock a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.balance-hero {
  background: linear-gradient(160deg, #0057ff 0%, #0a2a6b 48%, #041018 100%);
  color: #fff; border-radius: 24px; padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}
.balance-hero span { opacity: .8; font-size: .85rem; }
.balance-hero strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.6rem); margin: .25rem 0 .8rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { background: rgba(0, 229, 255, .14); border-radius: 999px; padding: .25rem .65rem; font-size: .78rem; color: var(--primary); }
.grid-2, .grid-3 { display: grid; gap: 1rem; margin-top: 1rem; }
.grid-2 > *, .grid-3 > *, .kpi-row > * { min-width: 0; }
.tx {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07);
  min-width: 0;
}
.tx > div:first-child { min-width: 0; }
.tx:last-child { border-bottom: 0; }
.tx .neg { color: #ff8fa3; }
.tx .pos { color: var(--primary); }
.tx strong { display: block; font-size: .95rem; }
.tx .muted, .tx .help { font-size: .82rem; }
.tx > span, .tx > div:last-child { text-align: right; flex: none; white-space: nowrap; }

.table-wrap {
  overflow-x: auto; max-width: 100%;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(3, 9, 19, .5);
}
table.data { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .89rem; }
table.data th, table.data td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, .025); }
table.data th {
  position: sticky; top: 0; z-index: 1;
  background: #0d1b2e;
  color: var(--muted-fg); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
table.data td code, .app-card > p code, .tx code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82em; color: #9fe7ff; white-space: nowrap;
}
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; border-radius: 999px; padding: .15rem .55rem; font-size: .75rem; font-weight: 700; }
.status-active, .status-completed, .status-sent, .status-paid, .status-approved, .status-resolved, .status-available, .status-settled { background: rgba(0, 229, 176, .14); color: #7dffd6; }
.status-pending, .status-new { background: rgba(255, 196, 0, .14); color: #ffd56a; }
.status-suspended, .status-rejected, .status-failed { background: rgba(255, 77, 109, .14); color: #ff8fa3; }
.status-delivered, .status-verified { background: rgba(0, 229, 176, .14); color: #7dffd6; }
.status-created, .status-queued, .status-in_review, .status-in_transit, .status-requires_payment, .status-open, .status-review, .status-processing, .status-submitted, .status-draft { background: rgba(0, 229, 255, .12); color: #9fe7ff; }
.status-frozen, .status-paused, .status-late, .status-returned { background: rgba(255, 196, 0, .14); color: #ffd56a; }
.status-blocked, .status-declined, .status-revoked, .status-cancelled, .status-closed, .status-defaulted, .status-disabled, .status-expired, .status-reversed, .status-refunded, .status-disputed { background: rgba(255, 77, 109, .12); color: #ff8fa3; }
.status-used, .status-deleted { background: rgba(255,255,255,.06); color: #b7c8de; }

.legal { max-width: 760px; padding-bottom: 4rem; }
.legal h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--muted-fg); }

@media (max-width: 640px) {
  .float-in { left: 10px; top: auto; bottom: 18%; }
  .float-out { right: 10px; bottom: 6%; }
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav-desktop, .header-actions { display: flex; }
  .hero { padding: 5rem 0 2.8rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .cards-grid, .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: .9fr 1.1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr .8fr; }
  .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
  .app-shell { grid-template-columns: var(--app-side) minmax(0, 1fr); }
  .app-sidebar {
    position: sticky; inset: auto; z-index: 1;
    top: var(--app-topbar);
    height: calc(100vh - var(--app-topbar));
    width: auto; transform: none; box-shadow: none;
    padding: 1rem .8rem 2rem;
  }
  .app-nav-toggle, .app-scrim, .app-dock { display: none; }
  .app-main { padding: 1.75rem 1.75rem 3rem; }
  .auth-screen { grid-template-columns: minmax(280px, .95fr) minmax(360px, 1.05fr); }
  .auth-brand-panel { display: flex; flex-direction: column; }
  .auth-brand-mobile { display: none; }
  .auth-form-panel { padding: 2.5rem 3rem; }
  .map-panel, .media-split { grid-template-columns: 1.05fr .95fr; }
  .brand-gallery { grid-template-columns: 1fr 1fr 1fr; }
  .brand-gallery img { height: 220px; }
}
@media (min-width: 1024px) {
  .cards-grid.cols-3, .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .accounts-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.nav-drop { position: relative; }
.nav-drop > button {
  background: none; border: 0; color: var(--muted-fg); font-weight: 600; font-size: .86rem; padding: 0;
}
.nav-drop > button.active, .nav-drop:hover > button { color: #fff; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 220px; padding: .55rem; margin-top: .7rem;
  background: #071226; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: grid; gap: .15rem; }
.nav-drop-menu a { display: block; padding: .5rem .7rem; border-radius: 8px; color: #d7e6ff; font-size: .86rem; }
.nav-drop-menu a:hover { background: rgba(0,229,255,.08); color: var(--primary); }

.partner-grid, .logo-row.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .7rem; align-items: stretch;
}
.partner-chip {
  display: grid; place-items: center; gap: .35rem;
  min-height: 78px; padding: .7rem .5rem;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.partner-chip img { height: 28px; width: auto; max-width: 110px; object-fit: contain; }
.partner-chip.is-mono img { filter: brightness(0) invert(1); opacity: .92; }
.partner-chip span { font-size: .72rem; font-weight: 700; color: #c5d4ea; text-align: center; }
.partner-logo { height: 40px; display: flex; align-items: center; margin-bottom: .7rem; }
.partner-logo img { height: 32px; width: auto; max-width: 140px; object-fit: contain; }
.partner-logo.is-mono img { filter: brightness(0) invert(1); }
/* Antes se apilaba en 2-3 filas de pills y ahogaba la cabecera. */
.subnav-accounts {
  display: flex; gap: .45rem;
  padding: .2rem 0 1rem;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.subnav-accounts::-webkit-scrollbar { display: none; }
.subnav-accounts a {
  display: inline-flex; align-items: center; gap: .35rem; flex: none;
  scroll-snap-align: start; white-space: nowrap;
  padding: .42rem .8rem; border-radius: 999px;
  border: 1px solid var(--border); color: #c5d4ea; font-size: .82rem; font-weight: 700;
  background: rgba(8, 20, 42, .6);
}
.subnav-accounts a.active, .subnav-accounts a:hover {
  border-color: var(--primary); color: var(--primary); background: rgba(0, 229, 255, .08);
}
.subnav-accounts svg { width: 14px; height: 14px; }
.bank-compare table.data td { vertical-align: top; font-size: .84rem; max-width: 220px; }
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem;
  background: var(--card);
}
.faq-item h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.type-panels { display: grid; gap: 1rem; }
.type-panel {
  border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem 1.2rem;
  background: var(--card);
}
.type-panel.is-focus { border-color: var(--primary); box-shadow: var(--glow); }
.type-panel header { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .7rem; }
.type-panel .tag { color: var(--primary); font-size: .78rem; font-weight: 700; margin-bottom: .2rem; }
@media (min-width: 900px) {
  .type-panels { grid-template-columns: 1fr 1fr; }
}

.trust-note, .ledger-note {
  border: 1px solid var(--border); border-radius: 16px; padding: .9rem 1rem;
  background: rgba(0,229,255,.05); color: #d7e6ff; font-size: .9rem;
}
/* Cabecera interna de tarjeta: antes se reutilizaba .app-top con estilos inline. */
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem;
}
.card-head h2, .card-head h3 { font-size: 1.05rem; }
.card-head .btn { padding: .48rem .95rem; font-size: .82rem; }
/* Aviso de vencimiento con jerarquía, no una frase corrida con un link. */
.due-note {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: 1rem 0;
  padding: .9rem 1.1rem; border-radius: 14px;
  border: 1px solid rgba(255, 196, 0, .28); background: rgba(255, 196, 0, .07);
}
.due-note small {
  display: block; color: #ffd56a;
  font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.due-note strong { font-family: var(--display); font-size: 1.1rem; letter-spacing: -.02em; }
.due-note .muted { font-size: .84rem; }

.plastic-card {
  position: relative; border-radius: 18px; padding: 1.2rem 1.3rem 1rem;
  min-height: 170px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0a2a6b 0%, #041018 55%, #00e5ff 160%);
  border: 1px solid var(--border); box-shadow: var(--glow);
}
.plastic-card.mc { background: linear-gradient(135deg, #3a0a12 0%, #1a0508 50%, #f79e1b 160%); }
.plastic-card.frozen { filter: grayscale(.7); opacity: .75; }
.plastic-card small { opacity: .75; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.plastic-card strong { display: block; font-size: 1.25rem; margin: 1.1rem 0 .4rem; letter-spacing: .12em; }
.plastic-card .card-meta { display: flex; justify-content: space-between; font-size: .82rem; opacity: .9; }

body.app-body .app-topbar .btn { white-space: nowrap; }
/* Ultrawide: sin esto el hero de saldo y las tablas se estiran sin límite. */
@media (min-width: 1560px) {
  .app-main { padding-inline: clamp(1.75rem, calc((100% - 1280px) / 2), 14rem); }
}

@media (min-width: 768px) {
  .auth-screen { min-height: 100vh; }
}
.code-block {
  background: #03080f; border: 1px solid var(--border); border-radius: 12px;
  padding: .9rem 1rem; overflow-x: auto; font-size: .82rem; color: #9fe7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.docs-endpoint {
  border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem 1.2rem;
  background: var(--card);
}
.docs-endpoint .tag { color: var(--primary); font-size: .78rem; font-weight: 700; margin-bottom: .35rem; }
.docs-endpoint h3 { font-size: 1.08rem; margin-bottom: .65rem; }
.docs-endpoint .code-block + .code-block { margin-top: .7rem; }
.secret-once { background: rgba(0,229,176,.1); border: 1px dashed var(--ok); border-radius: 12px; padding: .8rem 1rem; }

.tx-in { color: #5dffb0; font-weight: 600; }
.tx-out { color: #ff8f9f; font-weight: 600; }

.quick-ops {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 1.1rem;
}
.quick-ops a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--border); color: #d7e6ff; font-size: .82rem; font-weight: 700;
  background: rgba(8, 20, 42, .6);
}
.quick-ops a:hover { border-color: var(--primary); color: var(--primary); }
.quick-ops svg { width: 14px; height: 14px; }

.bar-track {
  height: 6px; border-radius: 99px; background: rgba(255,255,255,.08);
  overflow: hidden; margin-top: .35rem; min-width: 8rem;
}
.bar-track.lg { height: 10px; margin: .8rem 0 0; }
.bar-track span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #5dffb0);
}

/* Documentos (comprobantes y constancias): papel opaco, no una tarjeta traslúcida. */
.voucher {
  max-width: 46rem;
  border: 1px solid rgba(140, 175, 220, .22); border-radius: 16px;
  padding: 1.5rem 1.6rem; background: #0c1a2d;
  box-shadow: 0 20px 50px rgba(0, 6, 20, .45);
}
.voucher-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.2rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(140, 175, 220, .22);
}
.voucher-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; }
.voucher-brand img { width: 26px; height: 26px; }
.voucher-brand span { color: var(--primary); }
.voucher-kind { text-align: right; }
.voucher-kind small { display: block; letter-spacing: .1em; text-transform: uppercase; color: #93a9c6; font-size: .68rem; font-weight: 700; }
.voucher-kind span {
  font-weight: 700; font-size: .86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.voucher-amount {
  font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 800;
  letter-spacing: -.03em; margin: 0; font-variant-numeric: tabular-nums;
}
.voucher-desc { color: #c5d4ea; margin: .3rem 0 1.3rem; }
.voucher-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: .9rem 1.5rem; margin: 0;
  padding-top: 1.2rem; border-top: 1px solid rgba(140, 175, 220, .16);
}
.voucher-grid div { margin: 0; min-width: 0; }
.voucher-grid dt { color: #93a9c6; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.voucher-grid dd { margin: .2rem 0 0; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.voucher-foot {
  margin-top: 1.4rem; padding-top: .9rem;
  border-top: 1px dashed rgba(140, 175, 220, .22);
  font-size: .76rem; color: #93a9c6; line-height: 1.5;
}
/* Vista de documento suelto (comprobante enlazado): sin chrome de marketing. */
.doc-shell { min-height: 100vh; display: flex; flex-direction: column; }
.doc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--app-topbar); padding: 0 1rem;
  border-bottom: 1px solid var(--border);
}
.doc-bar .btn { padding: .5rem .95rem; font-size: .82rem; }
.doc-main {
  flex: 1; width: min(100% - 2rem, 46rem);
  margin-inline: auto; padding: 2rem 0 4rem;
}
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.voucher-seal {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem;
  padding: .3rem .7rem; border-radius: 8px;
  border: 1px solid rgba(0, 229, 176, .3); background: rgba(0, 229, 176, .08);
  color: #7dffd6; font-size: .72rem; font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.statement-doc {
  max-width: 58rem;
  border: 1px solid rgba(140, 175, 220, .22);
  border-radius: 16px;
  padding: 1.4rem 1.5rem 1.2rem;
  background: #0c1a2d;
}
.statement-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid rgba(140, 175, 220, .22);
}
.statement-brand { display: flex; align-items: center; gap: .7rem; }
.statement-brand img { width: 32px; height: 32px; }
.statement-brand strong { display: block; font-size: 1.15rem; }
.statement-brand span { color: var(--primary); }
.statement-brand small, .statement-period small {
  display: block; letter-spacing: .1em; text-transform: uppercase;
  color: #93a9c6; font-size: .68rem; font-weight: 700;
}
.statement-period { text-align: right; }
.statement-period strong { font-size: .95rem; }
.statement-meta {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem;
  margin-bottom: 1.1rem;
}
.statement-kicker {
  letter-spacing: .12em; text-transform: uppercase;
  color: #93a9c6; font-size: .68rem; font-weight: 700; margin: 0 0 .35rem;
}
.statement-meta h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.statement-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem; margin: 0;
}
.statement-facts div { margin: 0; }
.statement-facts dt { color: #93a9c6; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.statement-facts dd { margin: .1rem 0 0; font-weight: 700; font-size: .88rem; overflow-wrap: anywhere; }
.statement-totals {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem;
  margin: 0 0 1.2rem;
}
.statement-totals div {
  border: 1px solid rgba(140, 175, 220, .16);
  border-radius: 12px; padding: .7rem .8rem;
  background: rgba(8, 18, 32, .45);
}
.statement-totals small { display: block; color: #93a9c6; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.statement-totals strong { display: block; margin-top: .25rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.statement-totals .is-close { border-color: rgba(0, 229, 176, .35); }
.statement-ledger table { font-size: .82rem; }
.statement-ledger td, .statement-ledger th { font-variant-numeric: tabular-nums; }
.statement-extra {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 1.2rem;
}
.statement-foot {
  margin-top: 1.4rem; padding-top: .9rem;
  border-top: 1px dashed rgba(140, 175, 220, .22);
  font-size: .74rem; color: #93a9c6; line-height: 1.5;
}
.statement-foot p { margin: 0 0 .4rem; }
@media (max-width: 900px) {
  .statement-meta, .statement-totals, .statement-extra, .statement-facts {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page { size: A4; margin: 12mm; }
  .no-print, .site-header, .site-footer, .app-sidebar, .app-topbar, .app-top,
  .app-dock, .app-scrim, .app-nav-toggle,
  .trust-note, .alert, .btn, .subnav-accounts, .filter-bar { display: none !important; }
  body, .app-frame, .app-shell, .app-main, .page-hero, .container {
    display: block !important;
    padding: 0 !important;
    background: #fff !important; color: #111 !important;
    box-shadow: none !important; max-width: none !important;
  }
  .voucher, .app-card, .kpi-card, .statement-doc {
    border: 1px solid #222 !important; background: #fff !important; color: #111 !important;
    box-shadow: none !important; max-width: none !important;
  }
  .statement-doc { border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
  .statement-totals div { border-color: #222 !important; background: #fff !important; }
  .statement-facts dt, .statement-brand small, .statement-period small, .statement-kicker,
  .statement-foot, .muted { color: #444 !important; }
  .voucher-grid dt, .voucher-foot, .voucher-kind small { color: #444 !important; }
  .voucher-desc, .voucher-grid dd { color: #111 !important; }
  .voucher-seal { border-color: #222 !important; background: #fff !important; color: #111 !important; }
  table.data thead { display: table-header-group; }
  table.data th { background: #eee !important; color: #111 !important; }
  .table-wrap { border-color: #222 !important; background: #fff !important; overflow: visible !important; }
  .statement-ledger tr { break-inside: avoid; }
  .pos { color: #0a7a3e !important; }
  .neg { color: #b42318 !important; }
  a { color: #111 !important; text-decoration: none !important; }
}

/* Chip de copiado y hilo de soporte */
.app-chip[data-copy] { cursor: pointer; transition: .16s ease; }
.app-chip[data-copy]:hover { border-color: var(--primary); color: var(--primary); }
.app-chip.is-copied { border-color: var(--ok); color: #7dffd6; background: rgba(0, 229, 176, .12); }

.thread { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.thread-msg { display: grid; gap: .3rem; max-width: min(100%, 34rem); }
.thread-msg.is-mine { margin-left: auto; justify-items: end; }
.thread-meta {
  display: flex; gap: .5rem; align-items: baseline;
  font-size: .72rem; color: #7f93ad; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.thread-bubble {
  padding: .7rem .95rem; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .04);
  color: #dce8f8; font-size: .92rem; line-height: 1.5;
  overflow-wrap: anywhere;
}
.thread-msg.is-mine .thread-bubble {
  border-color: rgba(0, 229, 255, .28); background: rgba(0, 229, 255, .09);
  border-bottom-right-radius: 4px;
}
.thread-msg.is-staff .thread-bubble { border-bottom-left-radius: 4px; }
.empty-state {
  display: grid; justify-items: center; gap: .5rem;
  padding: 2.2rem 1rem; text-align: center;
  border: 1px dashed var(--border); border-radius: 14px;
  color: var(--muted-fg);
}
.empty-state strong { color: #dce8f8; font-size: 1rem; }
.empty-state p { font-size: .88rem; max-width: 42ch; }

/* Identificadores largos (pk_live_, uuid, CVU) rompían el ancho de la tarjeta. */
.mono-trunc {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem; color: #8ea3bd;
}
.scroll-list { max-height: 24rem; overflow-y: auto; overscroll-behavior: contain; }
.scroll-list::-webkit-scrollbar { width: 8px; }
.scroll-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.key-reveal { display: grid; gap: .7rem; margin: .8rem 0 0; }
.key-reveal div { margin: 0; min-width: 0; }
.key-reveal dt { color: #93a9c6; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.key-reveal dd { margin: .2rem 0 0; }
.key-reveal code { overflow-wrap: anywhere; }
.mb-4 { margin-bottom: 1rem; }

/* —— Shell comando (referencias de producto) —— */
body.hq-body { --app-topbar: 64px; }
body.hq-body .app-topbar {
  background: rgba(6, 14, 28, .92);
  border-bottom: 1px solid rgba(0, 194, 203, .18);
  gap: .8rem;
}
body.hq-body .app-sidebar {
  background: #07101c;
}
body.hq-body .app-side-link.active {
  background: linear-gradient(90deg, rgba(0, 194, 203, .28), rgba(59, 130, 246, .12));
  color: #fff;
  box-shadow: inset 3px 0 0 #00c2cb;
}
.hq-search {
  flex: 1; min-width: 0; max-width: 420px;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(0, 194, 203, .2);
  border-radius: 999px; padding: .35rem .9rem;
}
.hq-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: #e8f4ff; font-size: .88rem;
}
.hq-search-ico { display: grid; opacity: .7; }
.hq-tools { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.hq-icon-btn, .hq-user-btn {
  position: relative; display: flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: inherit; border-radius: 999px;
}
.hq-icon-btn { width: 42px; height: 42px; justify-content: center; }
.hq-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #ff4d6d; color: #fff;
  font-size: .62rem; font-weight: 800; display: grid; place-items: center;
}
.hq-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #00c2cb, #3b82f6);
  color: #041018; font-weight: 800; font-size: .78rem;
}
.hq-user-btn { padding: .25rem .7rem .25rem .3rem; }
.hq-user-meta { display: grid; text-align: left; line-height: 1.15; }
.hq-user-meta strong { font-size: .82rem; }
.hq-user-meta small { font-size: .68rem; color: #8ea3bd; }
.hq-drop { position: relative; }
.hq-drop-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  width: min(92vw, 320px);
  background: #0c1828; border: 1px solid rgba(0, 194, 203, .22);
  border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45);
  overflow: hidden;
}
.hq-drop-panel header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.hq-notice, .hq-user-panel a {
  display: grid; gap: .15rem; padding: .7rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.05); color: #d7e6f7;
}
.hq-notice span { font-size: .78rem; color: #8ea3bd; }
.hq-notice.is-new { background: rgba(0, 194, 203, .08); }
.hq-user-panel { width: 240px; }
.hq-user-panel a { display: flex; align-items: center; gap: .5rem; }
.hq-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.hq-pills a, .hq-pills span {
  padding: .4rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 1px solid rgba(0, 194, 203, .22); color: #c5d4ea;
}
.hq-pills a.is-on, .hq-pills span.is-on { background: #00c2cb; color: #041018; border-color: transparent; }
.hq-ccy { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.hq-ccy article {
  padding: .9rem; border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 194, 203, .12), rgba(8, 20, 42, .6));
  border: 1px solid rgba(0, 194, 203, .18);
}
.hq-ccy small { color: #93a9c6; letter-spacing: .06em; text-transform: uppercase; font-size: .68rem; }
.hq-ccy strong { display: block; font-size: 1.15rem; margin-top: .25rem; }
.hq-confirm {
  display: grid; justify-items: center; gap: .6rem; text-align: center;
  padding: 1.4rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 229, 176, .16), rgba(8, 20, 42, .7));
  border: 1px solid rgba(0, 229, 176, .35);
}
.hq-confirm .hq-check {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: #00e5b0; color: #041018;
}
.hq-corridor {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-weight: 800; letter-spacing: .04em;
}
.hq-flag { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #0c2238; border: 1px solid var(--border); font-size: .75rem; }
.hq-kiosk { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.hq-agro-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; align-items: start;
  padding: 1.4rem; border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 194, 203, .16), rgba(8, 20, 42, .88));
  border: 1px solid rgba(0, 194, 203, .25);
}
.hq-agro-hero h2 { margin: .2rem 0 .5rem; font-size: 1.55rem; }
.hq-kiosk a, .hq-kiosk button {
  display: grid; gap: .35rem; place-items: center; text-align: center;
  min-height: 120px; border-radius: 18px; padding: 1rem;
  background: #08182c; border: 1px solid rgba(0, 194, 203, .25); color: inherit;
}
.hq-kiosk strong { font-size: 1.4rem; }
.hq-latam {
  position: relative; min-height: 280px; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 194, 203, .16), transparent 55%),
    #071422;
  border: 1px solid rgba(0, 194, 203, .2);
}
.hq-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #00e5ff; box-shadow: 0 0 0 6px rgba(0, 229, 255, .18), 0 0 18px #00e5ff;
}
.hq-pin b {
  position: absolute; left: 16px; top: -8px; white-space: nowrap;
  font-size: .72rem; font-weight: 700; color: #d7eefc;
}
.hq-plastic-row { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .4rem; }
.hq-plastic-row .plastic-card { min-width: 240px; flex: 0 0 auto; }
.hq-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hq-table th, .hq-table td { padding: .65rem .4rem; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
.hq-table th { color: #8ea3bd; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.hq-bars, .hq-line { width: 100%; height: 92px; display: block; }
.hq-chat {
  position: fixed; right: 1rem; bottom: 4.6rem; z-index: 40; width: min(92vw, 280px);
  background: #0c1828; border: 1px solid rgba(0, 194, 203, .25); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.hq-chat header { padding: .7rem .9rem; background: #0a2236; font-weight: 700; font-size: .85rem; }
.hq-chat p { padding: .6rem .9rem; font-size: .8rem; color: #b7c9de; }
@media (max-width: 900px) {
  .hq-ccy, .hq-kiosk, .hq-agro-hero { grid-template-columns: 1fr 1fr; }
  .hq-user-meta { display: none; }
  .hq-search { display: none; }
}
@media (max-width: 640px) {
  .hq-ccy, .hq-kiosk, .hq-agro-hero { grid-template-columns: 1fr; }
  .hq-chat { display: none; }
}

/* Campaña de lanzamiento (página pública mientras el sitio está cerrado) */
html:has(.lp-body) { scroll-padding-top: 92px; }
.lp-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  background: var(--primary); color: var(--primary-fg);
  padding: .5rem 1rem; border-radius: 999px; font-weight: 800;
}
.lp-skip:focus { top: 1rem; }
.lp-body { min-height: 100vh; }
.lp-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(5, 10, 22, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.lp-header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lp-nav { display: none; align-items: center; gap: 1.2rem; }
.lp-nav a { font-size: .86rem; color: var(--muted-fg); font-weight: 600; }
.lp-nav a:hover { color: #fff; text-shadow: 0 0 12px rgba(0, 229, 255, .4); }
.lp-header-actions { display: flex; align-items: center; gap: .55rem; }
.lp-header-actions .btn { padding: .58rem 1rem; font-size: .82rem; }
.lp-team { display: none; }

.lp-ticker {
  position: relative; z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0, 87, 255, .16), rgba(0, 229, 255, .06) 40%, rgba(0, 87, 255, .14));
}
.lp-ticker-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: lp-marquee 46s linear infinite;
  padding: .55rem 0;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
}
.lp-ticker-track span { white-space: nowrap; }
.lp-ticker-track span::before { content: "✦ "; color: #7aa8ff; }

.lp-hero { position: relative; z-index: 1; padding: 2.4rem 0 3rem; }
.lp-hero-grid { display: grid; gap: 2rem; align-items: center; }
.lp-hero-copy h1 {
  font-size: clamp(2.3rem, 7vw, 4.35rem);
  max-width: 11ch;
  margin-top: 1rem;
}
.lp-grad {
  background: linear-gradient(90deg, #00e5ff, #9ec5ff 45%, #3b82f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-slider {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow);
  background: #071226;
}
.lp-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .7s ease;
}
.lp-slide.is-on { opacity: 1; pointer-events: auto; z-index: 1; }
.lp-slide img {
  width: 100%; height: 100%; min-height: 420px;
  object-fit: cover; object-position: center;
  transform: scale(1.06);
  animation: lp-ken 12s ease-in-out infinite alternate;
}
.lp-slide figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 22, .55) 12%, rgba(5, 10, 22, .88));
  margin: 0 -1rem -1rem; padding: 3.2rem 1.2rem 1.15rem;
  display: grid; gap: .2rem;
}
.lp-slide small {
  color: var(--primary); font-weight: 800; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.lp-slide strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.03em; }
.lp-slide span { color: var(--muted-fg); font-size: .9rem; }
.lp-dots {
  position: absolute; z-index: 2; right: 1rem; top: 1rem;
  display: flex; gap: .4rem;
}
.lp-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 99px;
  border: 1px solid rgba(0, 229, 255, .45);
  background: rgba(5, 10, 22, .45);
}
.lp-dot.is-on { width: 22px; background: var(--primary); box-shadow: var(--glow); }

.lp-logos { position: relative; z-index: 1; padding: 1.2rem 0 2rem; }
.lp-logos-kicker {
  text-align: center; color: var(--muted-fg);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.lp-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-marquee-track {
  display: flex; align-items: center; gap: 2.4rem; width: max-content;
  animation: lp-marquee 38s linear infinite;
  padding: .4rem 0;
}
.lp-marquee-track img { height: 28px; width: auto; max-width: 110px; object-fit: contain; }
.lp-marquee-track img.is-mono { filter: brightness(0) invert(1); opacity: .88; }
.lp-logos-note { width: min(calc(100% - 2rem), var(--container)); margin: .9rem auto 0; font-size: .78rem; }

.lp-help, .lp-offers { display: grid; gap: 1rem; }
.lp-help-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.lp-help-card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, .4); }
.lp-help-photo { position: relative; height: 190px; }
.lp-help-photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-help-photo .icon-box {
  position: absolute; left: 1rem; bottom: -18px;
  background: #071226; box-shadow: var(--glow);
}
.lp-help-body { padding: 1.7rem 1.15rem 1.2rem; }
.lp-help-body h3 { margin-bottom: .45rem; }
.lp-offer {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.25rem;
  display: grid; gap: .55rem;
}
.lp-offer:hover { border-color: rgba(0, 229, 255, .4); box-shadow: var(--glow); }

.lp-split, .lp-story, .lp-wait {
  display: grid; gap: 1.4rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 28px;
  padding: 1.4rem;
  align-items: center;
}
.lp-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.3rem 0;
}
.lp-stats div {
  border: 1px solid var(--border); border-radius: 16px; padding: .85rem 1rem;
  background: rgba(0, 229, 255, .05);
}
.lp-stats strong { display: block; font-size: 1.6rem; color: var(--primary); letter-spacing: -.04em; }
.lp-stats span { color: var(--muted-fg); font-size: .82rem; font-weight: 700; }
.lp-flags { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-flags span {
  border: 1px solid var(--border); border-radius: 999px;
  padding: .38rem .75rem; font-size: .78rem; font-weight: 700; color: #d7e6ff;
  background: rgba(255,255,255,.03);
}
.lp-split-photo { position: relative; }
.lp-split-photo img, .lp-story img {
  width: 100%; border-radius: 20px; object-fit: cover;
  min-height: 260px; max-height: 420px; border: 1px solid var(--border);
}
.lp-split-photo aside {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(6, 14, 30, .9); border: 1px solid var(--border);
  border-radius: 16px; padding: .85rem 1rem;
}
.lp-split-photo small { color: var(--primary); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.lp-split-photo strong { display: block; margin-top: .2rem; }
.lp-wait-mail { margin-top: 1rem; }
.lp-wait-mail a { color: var(--primary); font-weight: 800; }
.lp-form { display: grid; gap: .85rem; }
.lp-form-row { display: grid; gap: .85rem; }
.lp-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.lp-form .help { margin: 0; }
.lp-footer { position: relative; z-index: 1; padding: 2rem 0 2.6rem; border-top: 1px solid var(--border); }
.lp-footer-inner { display: grid; gap: .85rem; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; }
.lp-footer-links a { color: var(--primary); font-weight: 700; font-size: .9rem; }

@keyframes lp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes lp-ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

@media (min-width: 760px) {
  .lp-team { display: inline-flex; }
  .lp-help { grid-template-columns: 1fr 1fr; }
  .lp-offers { grid-template-columns: 1fr 1fr; }
  .lp-form-row { grid-template-columns: 1fr 1fr; }
  .lp-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 980px) {
  .lp-nav { display: flex; }
  .lp-hero-grid, .lp-split, .lp-story, .lp-wait { grid-template-columns: 1.05fr .95fr; }
  .lp-offers { grid-template-columns: 1fr 1fr 1fr; }
  .lp-slider, .lp-slide img { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-ticker-track, .lp-marquee-track, .lp-slide img { animation: none; }
  .lp-slide { transition: none; }
  .lp-help-card:hover { transform: none; }
}

