/* ==========================================================================
   miwibiID — MiWibiOS4 · sistema visual (2026-09)
   Claro, limpio, tipo SaaS. Paleta tomada del logo: royal #345CD4 · sky #309CFC
   ========================================================================== */

:root {
  --mw-blue: #345CD4;
  --mw-blue-600: #2B4DB8;
  --mw-blue-700: #23409A;
  --mw-blue-50: #EEF2FD;
  --mw-blue-100: #DCE4FA;
  --mw-sky: #309CFC;
  --mw-sky-50: #EAF5FF;
  --mw-sky-100: #D3EAFE;
  --mw-ink: #0F1B3D;
  --mw-text: #1E2A4A;
  --mw-muted: #67728C;
  --mw-soft: #98A2B8;
  --mw-border: #E4E8F1;
  --mw-border-strong: #CFD6E4;
  --mw-bg: #F4F6FB;
  --mw-surface: #FFFFFF;
  --mw-danger: #E5484D;
  --mw-danger-50: #FDECEC;
  --mw-success: #1F9D63;
  --mw-success-50: #E6F6EE;
  --mw-warning: #F5A524;
  --mw-warning-50: #FFF4E0;
  --mw-radius-sm: 10px;
  --mw-radius: 14px;
  --mw-radius-lg: 20px;
  --mw-shadow-sm: 0 1px 2px rgba(15, 27, 61, .05);
  --mw-shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 10px 30px -14px rgba(15, 27, 61, .18);
  --mw-shadow-lg: 0 20px 60px -20px rgba(15, 27, 61, .28);
  --mw-ring: 0 0 0 4px rgba(48, 156, 252, .22);
  --mw-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mw-sidebar-w: 248px;
  --mw-topbar-h: 68px;
  --mw-gradient: linear-gradient(135deg, #345CD4 0%, #309CFC 100%);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--mw-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--mw-text);
  background: var(--mw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mw-blue); text-decoration: none; }
a:hover { color: var(--mw-blue-700); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--mw-ink); letter-spacing: -.01em; }
p { margin: 0; }
table { border-collapse: collapse; }
.mw-hidden { display: none !important; }
.mw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tipografía utilitaria ---------- */
.mw-h1 { font-size: 28px; font-weight: 800; line-height: 1.2; }
.mw-h2 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.mw-h3 { font-size: 16px; font-weight: 700; }
.mw-muted { color: var(--mw-muted); }
.mw-small { font-size: 13px; }
.mw-strong { font-weight: 700; color: var(--mw-ink); }
.mw-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mw-sky); }

/* ---------- Botones ---------- */
.mw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; line-height: 1;
  background: var(--mw-blue); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(52, 92, 212, .7);
  transition: background .15s, transform .05s, box-shadow .15s, color .15s, border-color .15s;
  white-space: nowrap; position: relative; text-decoration: none;
}
.mw-btn:hover { background: var(--mw-blue-600); color: #fff; }
.mw-btn:active { transform: translateY(1px); }
.mw-btn:focus-visible { outline: none; box-shadow: var(--mw-ring); }
.mw-btn:disabled, .mw-btn[disabled] { opacity: .5; pointer-events: none; }
.mw-btn svg { width: 18px; height: 18px; flex: none; }
.mw-btn--sky { background: var(--mw-sky); box-shadow: 0 6px 16px -8px rgba(48, 156, 252, .8); }
.mw-btn--sky:hover { background: #1E8BEB; }
.mw-btn--ghost { background: #fff; color: var(--mw-ink); border-color: var(--mw-border-strong); box-shadow: none; }
.mw-btn--ghost:hover { background: var(--mw-bg); color: var(--mw-ink); border-color: var(--mw-soft); }
.mw-btn--soft { background: var(--mw-blue-50); color: var(--mw-blue); box-shadow: none; }
.mw-btn--soft:hover { background: var(--mw-blue-100); color: var(--mw-blue-700); }
.mw-btn--danger { background: var(--mw-danger-50); color: var(--mw-danger); box-shadow: none; }
.mw-btn--danger:hover { background: #FBD9DB; color: #C63A3F; }
.mw-btn--dark { background: var(--mw-ink); box-shadow: none; }
.mw-btn--dark:hover { background: #1c2a55; }
.mw-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.mw-btn--lg { height: 52px; padding: 0 26px; font-size: 15px; }
.mw-btn--block { width: 100%; }
.mw-btn--icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.mw-btn--icon.mw-btn--sm { width: 34px; height: 34px; }
/* loader (compatible con el JS existente: .button__activeLoader) */
.mw-btn.button__activeLoader, .mw-btn.is-loading { pointer-events: none; color: transparent !important; }
.mw-btn.button__activeLoader::after, .mw-btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: mw-spin .8s linear infinite;
}
.mw-btn--ghost.button__activeLoader::after, .mw-btn--soft.button__activeLoader::after,
.mw-btn--ghost.is-loading::after, .mw-btn--soft.is-loading::after { border-color: rgba(52, 92, 212, .25); border-top-color: var(--mw-blue); }
@keyframes mw-spin { to { transform: rotate(1turn); } }

/* ---------- Campos ---------- */
.mw-field { display: block; width: 100%; position: relative; }
.mw-field + .mw-field { margin-top: 14px; }
.mw-label { display: block; font-size: 13px; font-weight: 700; color: var(--mw-ink); margin: 0 0 6px 2px; }
.mw-input, .mw-select, .mw-textarea {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1.5px solid var(--mw-border); border-radius: var(--mw-radius-sm);
  background: #fff; color: var(--mw-ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.mw-textarea { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; }
.mw-input::placeholder, .mw-textarea::placeholder { color: var(--mw-soft); }
.mw-input:hover, .mw-select:hover, .mw-textarea:hover { border-color: var(--mw-border-strong); }
.mw-input:focus, .mw-select:focus, .mw-textarea:focus { outline: none; border-color: var(--mw-sky); box-shadow: var(--mw-ring); }
.mw-input[readonly] { background: var(--mw-bg); color: var(--mw-muted); }
.mw-select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367728C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.mw-input--prefix { padding-left: 0; }
.mw-inputgroup { display: flex; align-items: stretch; width: 100%; }
.mw-inputgroup .mw-prefix {
  display: flex; align-items: center; padding: 0 12px 0 16px;
  border: 1.5px solid var(--mw-border); border-right: 0; border-radius: var(--mw-radius-sm) 0 0 var(--mw-radius-sm);
  background: var(--mw-bg); color: var(--mw-muted); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.mw-inputgroup .mw-input { border-radius: 0 var(--mw-radius-sm) var(--mw-radius-sm) 0; }
.mw-inputgroup .mw-input:focus { position: relative; z-index: 1; }
.mw-field .input__passwordEye {
  position: absolute; right: 14px; top: 14px; width: 20px; height: 20px;
  color: var(--mw-soft); cursor: pointer; font-size: 16px; line-height: 20px; text-align: center;
}
.mw-field--labeled .input__passwordEye { top: 38px; }
.mw-help { font-size: 12.5px; color: var(--mw-muted); margin: 6px 2px 0; }
.pristine-error, .mw-error { color: var(--mw-danger); font-size: 12.5px; margin: 6px 2px 0; }
.mw-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--mw-text); cursor: pointer; }
.mw-check input[type=checkbox], .mw-checkbox {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  border: 1.5px solid var(--mw-border-strong); border-radius: 6px; background: #fff; cursor: pointer;
  display: inline-grid; place-content: center; transition: background .15s, border-color .15s;
}
.mw-check input[type=checkbox]::before, .mw-checkbox::before {
  content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform .12s;
  background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.mw-check input[type=checkbox]:checked, .mw-checkbox:checked { background: var(--mw-blue); border-color: var(--mw-blue); }
.mw-check input[type=checkbox]:checked::before, .mw-checkbox:checked::before { transform: scale(1); }
.mw-check input:focus-visible, .mw-checkbox:focus-visible { outline: none; box-shadow: var(--mw-ring); }

/* ---------- Tarjetas / superficies ---------- */
.mw-card {
  background: var(--mw-surface); border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius-lg); box-shadow: var(--mw-shadow-sm);
}
.mw-card__body { padding: 22px; }
.mw-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--mw-border); }
@media (max-width: 640px) { .mw-card__body { padding: 16px; } .mw-card__head { padding: 14px 16px; } }

/* ---------- Pills / badges ---------- */
.mw-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--mw-bg); color: var(--mw-muted);
}
.mw-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.mw-pill--ok { background: var(--mw-success-50); color: var(--mw-success); }
.mw-pill--off { background: var(--mw-danger-50); color: var(--mw-danger); }
.mw-pill--warn { background: var(--mw-warning-50); color: #B4741A; }
.mw-pill--info { background: var(--mw-sky-50); color: var(--mw-blue); }
.mw-pill--plain::before { display: none; }

/* ---------- Tablas ---------- */
.mw-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mw-table { width: 100%; font-size: 14px; }
.mw-table th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mw-muted); padding: 12px 14px; border-bottom: 1px solid var(--mw-border); white-space: nowrap;
}
.mw-table td { padding: 14px; border-bottom: 1px solid var(--mw-border); vertical-align: middle; color: var(--mw-text); }
.mw-table tr:last-child td { border-bottom: 0; }
.mw-table tbody tr:hover td { background: #FAFBFE; }
.mw-table .is-center { text-align: center; }
.mw-table .is-right { text-align: right; }
.mw-table .is-num { font-variant-numeric: tabular-nums; }
.mw-table .mw-cell-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--mw-muted); word-break: break-all; }
.mw-empty { padding: 48px 20px; text-align: center; color: var(--mw-muted); }
.mw-empty svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--mw-soft); }

/* ---------- Paginación ---------- */
.paginate, .mw-paginate { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.mw-paginate__info { margin-right: auto; font-size: 13px; color: var(--mw-muted); }
.mw-page {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--mw-border);
  background: #fff; color: var(--mw-text); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.mw-page:hover { border-color: var(--mw-sky); color: var(--mw-blue); }
.mw-page.is-current { background: var(--mw-blue); border-color: var(--mw-blue); color: #fff; }
.mw-page.is-gap { border: 0; background: transparent; pointer-events: none; color: var(--mw-soft); }

/* ---------- Toolbar / filtros ---------- */
.mw-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.mw-toolbar .mw-field { width: auto; flex: 1 1 180px; }
.mw-toolbar .mw-field + .mw-field { margin-top: 0; }
.mw-toolbar__actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 640px) { .mw-toolbar__actions { width: 100%; margin-left: 0; } .mw-toolbar__actions .mw-btn { flex: 1; } }

/* ---------- Avatar ---------- */
.mw-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--mw-blue-50); color: var(--mw-blue); display: grid; place-items: center; font-weight: 800; flex: none; border: 2px solid #fff; box-shadow: var(--mw-shadow-sm); }
.mw-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mw-avatar--lg { width: 72px; height: 72px; font-size: 24px; }

/* ==========================================================================
   Shell del panel (sidebar + topbar + contenido)
   ========================================================================== */
.mw-app { display: flex; min-height: 100vh; }

.mw-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--mw-sidebar-w);
  background: #fff; border-right: 1px solid var(--mw-border);
  display: flex; flex-direction: column; padding: 18px 14px;
  transform: translateX(0); transition: transform .22s ease;
}
.mw-sidebar__logo { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 2px 16px; }
.mw-sidebar__logo a { display: block; width: 100%; max-width: 232px; }
.mw-sidebar__logo img { display: block; width: 100%; height: auto; aspect-ratio: 821 / 120; object-fit: contain; }
.mw-version {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--mw-border);
  background: var(--mw-bg); color: var(--mw-muted); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.mw-version svg { width: 13px; height: 13px; color: var(--mw-blue); }
.mw-version:hover { background: #EEF2FD; color: var(--mw-blue); border-color: rgba(52, 92, 212, .3); }
body.mw-sidebar-collapsed .mw-version span { display: none; }
body.mw-sidebar-collapsed .mw-version { padding: 0 6px; }

/* Novedades (registro de cambios) */
.mw-changelog { position: fixed; inset: 0; z-index: 90; display: none; }
.mw-changelog[open], .mw-changelog.is-open { display: block; }
.mw-changelog__backdrop { position: absolute; inset: 0; background: rgba(15, 27, 61, .45); backdrop-filter: blur(2px); }
.mw-changelog__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; box-shadow: -20px 0 60px -30px rgba(15, 27, 61, .5);
  display: flex; flex-direction: column; animation: mwSlideIn .22s ease;
}
@keyframes mwSlideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.mw-changelog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--mw-border); }
.mw-changelog__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.mw-changelog__head p { margin: 2px 0 0; font-size: 12.5px; color: var(--mw-muted); }
.mw-changelog__close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--mw-border); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--mw-muted); }
.mw-changelog__close:hover { background: var(--mw-bg); color: var(--mw-ink); }
.mw-changelog__body { overflow: auto; padding: 8px 20px 24px; }
.mw-changelog__entry { padding: 16px 0; border-bottom: 1px solid var(--mw-border); }
.mw-changelog__entry:last-child { border-bottom: 0; }
.mw-changelog__ver { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.mw-changelog__ver b { font-size: 14px; }
.mw-changelog__ver time { font-size: 12px; color: var(--mw-muted); }
.mw-changelog__ver .mw-pill { margin-left: auto; }
.mw-changelog__entry ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--mw-ink); line-height: 1.45; }
.mw-changelog__entry li::marker { color: var(--mw-blue); }

/* Cargar más */
.mw-loadmore { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 8px; }
.mw-loadmore__info { font-size: 13px; color: var(--mw-muted); }
.mw-loadmore__btn { min-width: 200px; justify-content: center; }
.mw-loadmore__btn[disabled] { opacity: .6; cursor: default; }


/* ===== Inicio 4.0.6: estadísticas, últimos contactos, salud, herramientas ===== */
.mw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) { .mw-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .mw-kpi { padding: 14px 14px; } .mw-kpi__value { font-size: 24px; } .mw-kpi__icon { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 2px; } .mw-kpi__label { font-size: 12px; } }
.mw-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--mw-ink); position: relative; transition: transform .15s, box-shadow .15s; }
.mw-kpi:hover { transform: translateY(-2px); box-shadow: var(--mw-shadow); }
.mw-kpi__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--mw-blue-50); color: var(--mw-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.mw-kpi__icon svg { width: 18px; height: 18px; }
.mw-kpi__icon--sky { background: #E6F4FF; color: var(--mw-sky); }
.mw-kpi__icon--ink { background: #E9ECF4; color: var(--mw-ink); }
.mw-kpi__icon--ok { background: var(--mw-success-50); color: var(--mw-success); }
.mw-kpi__value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.mw-kpi__label { font-size: 13px; color: var(--mw-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.mw-kpi__label small { font-weight: 600; font-size: 11.5px; color: var(--mw-muted); text-transform: none; letter-spacing: 0; display: block; }
.mw-kpi__label small.is-up { color: var(--mw-success); }
.mw-kpi__label small.is-down { color: #E5484D; }

.mw-home-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 26px; align-items: start; }
@media (min-width: 1024px) { .mw-home-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.mw-home-card { padding: 18px 20px 20px; }
.mw-home-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mw-home-card__head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.mw-home-card__head p { margin: 2px 0 0; font-size: 13px; color: var(--mw-muted); }
.mw-latest { display: flex; flex-direction: column; }
.mw-latest__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--mw-border); }
.mw-latest__item:first-child { border-top: 0; padding-top: 4px; }
.mw-avatar--sm { width: 38px; height: 38px; font-size: 14px; }
.mw-latest__who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mw-latest__who b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-latest__who span { font-size: 12.5px; color: var(--mw-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.mw-latest__who span svg { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.mw-latest__who em { font-style: normal; font-size: 12.5px; color: var(--mw-ink); opacity: .8; }
.mw-btn--wa { background: #25D366; color: #fff; box-shadow: none; height: 36px; padding: 0 12px; font-size: 13px; }
.mw-btn--wa:hover { background: #1EBE5A; color: #fff; }
.mw-btn--wa svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .mw-btn--wa span { display: none; } .mw-btn--wa { width: 38px; padding: 0; justify-content: center; } }
.mw-latest__skeleton { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.mw-latest__skeleton span { height: 44px; border-radius: 12px; background: linear-gradient(90deg, var(--mw-bg) 25%, #E9ECF4 50%, var(--mw-bg) 75%); background-size: 200% 100%; animation: mwShimmer 1.2s infinite; }
@keyframes mwShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mw-empty--compact { padding: 22px 10px; }

.mw-health__score { font-size: 22px; font-weight: 800; color: var(--mw-muted); flex: none; }
.mw-health__score.is-good { color: var(--mw-success); }
.mw-health__score.is-warn { color: #D97706; }
.mw-health__score.is-bad { color: #E5484D; }
.mw-health__list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mw-health__list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--mw-muted); }
.mw-health__list li svg { width: 20px; height: 20px; padding: 3px; border-radius: 999px; background: #E9ECF4; color: #B4BCCD; flex: none; box-sizing: border-box; }
.mw-health__list li.is-ok { color: var(--mw-ink); }
.mw-health__list li.is-ok svg { background: var(--mw-success); color: #fff; }
.mw-health__cta { width: 100%; justify-content: center; }
.mw-quick--tools { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
button.mw-quick__item { font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--mw-border); }


/* ===== Modal genérico + escáner de tarjetas (4.0.8) ===== */
.mw-modal { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 16px; }
.mw-modal.is-open { display: flex; }
.mw-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 27, 61, .5); backdrop-filter: blur(3px); }
.mw-modal__panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -30px rgba(15, 27, 61, .6); animation: mwPop .2s ease; }
@keyframes mwPop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.mw-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--mw-border); }
.mw-modal__head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.mw-modal__head p { margin: 4px 0 0; font-size: 13px; color: var(--mw-muted); line-height: 1.45; }
.mw-modal__close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--mw-border); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--mw-muted); flex: none; }
.mw-modal__close:hover { background: var(--mw-bg); color: var(--mw-ink); }
.mw-modal__body { padding: 18px 22px 22px; }
.mw-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
body.mw-modal-open { overflow: hidden; }
.mw-scan__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--mw-border-strong); border-radius: 16px; background: var(--mw-bg); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.mw-scan__drop:hover { border-color: var(--mw-blue); background: var(--mw-blue-50); }
.mw-scan__drop b { font-size: 15px; }
.mw-scan__drop > span:last-child { font-size: 12.5px; color: var(--mw-muted); }
.mw-scan__dropIcon { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--mw-blue); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--mw-shadow-sm); margin-bottom: 6px; }
.mw-scan__dropIcon svg { width: 24px; height: 24px; }
.mw-scan__preview { position: relative; border-radius: 16px; overflow: hidden; background: #0F1B3D; }
.mw-scan__preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.mw-scan__progress { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: rgba(15, 27, 61, .85); color: #fff; font-size: 13px; }
.mw-scan__progress span { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--mw-blue), var(--mw-sky)); width: 5%; transition: width .3s; margin-bottom: 6px; }
.mw-scan__progress em { font-style: normal; font-weight: 600; }
.mw-scan__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .mw-scan__grid { grid-template-columns: 1fr 1fr; } .mw-scan__grid .mw-field--full { grid-column: 1 / -1; } }
.mw-scan__grid .mw-field + .mw-field { margin-top: 0; }
.mw-scan__raw { margin-top: 14px; font-size: 12.5px; color: var(--mw-muted); }
.mw-scan__raw summary { cursor: pointer; font-weight: 700; color: var(--mw-blue); }
.mw-scan__raw pre { white-space: pre-wrap; background: var(--mw-bg); border-radius: 12px; padding: 10px 12px; margin: 8px 0 0; max-height: 160px; overflow: auto; font-size: 12px; }
@media (max-width: 640px) { .mw-page-head__actions .mw-btn { flex: 1 1 auto; justify-content: center; } }

/* ===== Mini-CRM (4.0.11): etapas, seguimiento, embudo ===== */
.mw-crmbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.mw-crmbar__views { display: inline-flex; background: #fff; border: 1px solid var(--mw-border); border-radius: 999px; padding: 3px; }
.mw-crmbar__view { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--mw-muted); cursor: pointer; }
.mw-crmbar__view.is-active { background: var(--mw-blue); color: #fff; }
.mw-crmbar__stages { display: flex; gap: 6px; flex-wrap: wrap; }
.mw-chip { font: inherit; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--mw-border); background: #fff; color: var(--mw-muted); cursor: pointer; }
.mw-chip i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.mw-chip b { font-size: 11px; background: var(--mw-bg); border-radius: 999px; padding: 1px 6px; }
.mw-chip.is-active { background: var(--mw-blue-50); color: var(--mw-blue); border-color: rgba(52, 92, 212, .3); }
.mw-contact__crm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; padding-top: 10px; margin-top: 10px; border-top: 1px dashed var(--mw-border); }
.mw-stage { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--stage, #345CD4) 12%, #fff); border: 1px solid color-mix(in srgb, var(--stage, #345CD4) 35%, #fff); }
.mw-stage i { width: 9px; height: 9px; border-radius: 999px; background: var(--stage, #345CD4); flex: none; }
.mw-stage select { font: inherit; font-size: 13px; font-weight: 700; color: var(--mw-ink); border: 0; background: transparent; padding-right: 4px; cursor: pointer; outline: none; }
.mw-followup { font: inherit; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mw-border); background: #fff; color: var(--mw-ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.mw-followup:hover { border-color: rgba(52, 92, 212, .4); color: var(--mw-blue); }
.mw-followup svg { width: 16px; height: 16px; color: var(--mw-blue); }
.mw-followup em { font-style: normal; font-weight: 600; color: var(--mw-muted); font-size: 12px; padding-left: 6px; border-left: 1px solid var(--mw-border); }
.mw-followup em.is-overdue, .mw-followup.is-overdue svg { color: #E5484D; }
.mw-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.mw-board.is-loading { position: relative; opacity: .7; }
.mw-board.is-loading::after { content: 'Cargando todos los contactos…'; position: sticky; left: 0; grid-column: 1 / -1; display: block; font-size: 12px; color: var(--mw-muted, #5B6B8C); padding: 6px 2px; }
.mw-board__col { background: var(--mw-bg); border: 1px solid var(--mw-border); border-radius: 16px; padding: 10px; min-height: 240px; }
.mw-board__col header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 13px; }
.mw-board__col header i { width: 9px; height: 9px; border-radius: 999px; background: var(--stage); }
.mw-board__col header span { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--mw-muted); background: #fff; border-radius: 999px; padding: 2px 8px; }
.mw-board__cards { display: flex; flex-direction: column; gap: 8px; }
.mw-board__card { background: #fff; border: 1px solid var(--mw-border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--mw-shadow-sm); }
.mw-board__card b { font-size: 14px; cursor: pointer; }
.mw-board__card b:hover { color: var(--mw-blue); }
.mw-board__card span { font-size: 12px; color: var(--mw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-board__card em { font-style: normal; font-size: 11.5px; color: #B45309; font-weight: 600; }
.mw-board__move { margin-top: 6px; }
.mw-board__move .mw-stage { height: 30px; }
.mw-crm__row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mw-crm__row .mw-label { margin: 0; }
.mw-crm__section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mw-border); }
.mw-crm__sectionHead h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.mw-crm__add { display: flex; gap: 8px; margin-bottom: 10px; }
.mw-crm__add .mw-input { height: 42px; flex: 1; }
.mw-crm__date { flex: 0 0 150px !important; }
.mw-crm__add .mw-btn { height: 42px; white-space: nowrap; }
@media (max-width: 560px) { .mw-crm__add { flex-wrap: wrap; } .mw-crm__date { flex: 1 1 100% !important; } }
.mw-crm__tasks, .mw-crm__notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mw-crm__tasks li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--mw-bg); font-size: 13.5px; }
.mw-crm__tasks li label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.mw-crm__tasks li.is-done span { text-decoration: line-through; color: var(--mw-muted); }
.mw-crm__tasks li time { font-size: 12px; font-weight: 700; color: var(--mw-muted); }
.mw-crm__tasks li.is-overdue time { color: #E5484D; }
.mw-crm__tasks button, .mw-crm__notes button { border: 0; background: transparent; color: var(--mw-muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 0 4px; }
.mw-crm__notes li { padding: 10px 12px; border-radius: 12px; background: var(--mw-bg); font-size: 13.5px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.mw-crm__notes li p { margin: 0; grid-column: 1; }
.mw-crm__notes li time { grid-column: 1; font-size: 11.5px; color: var(--mw-muted); }
.mw-crm__notes li button { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.mw-crm__empty { color: var(--mw-muted); font-size: 13px; padding: 8px 2px; }

/* Aviso de tarjeta en blanco */
.mw-notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px;
  background: #FFF7E6; border: 1px solid rgba(217, 119, 6, .25); color: var(--mw-ink);
}
.mw-notice__icon { width: 38px; height: 38px; border-radius: 11px; background: #FDE9C8; color: #B45309; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mw-notice__icon svg { width: 20px; height: 20px; }
.mw-notice__text { flex: 1; min-width: 200px; }
.mw-notice__text b { display: block; font-size: 14.5px; }
.mw-notice__text span { font-size: 13px; color: var(--mw-muted); }
.mw-notice .mw-btn { white-space: nowrap; }
.mw-nav { display: flex; flex-direction: column; gap: 4px; }
.mw-nav__item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--mw-muted); font-weight: 600; font-size: 14px; transition: background .15s, color .15s;
}
.mw-nav__item svg { width: 20px; height: 20px; flex: none; }
.mw-nav__item:hover { background: var(--mw-bg); color: var(--mw-ink); }
.mw-nav__item.is-active { background: var(--mw-blue-50); color: var(--mw-blue); }
.mw-nav__item.is-active svg { color: var(--mw-blue); }
.mw-nav__group { margin: 14px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mw-soft); }
.mw-nav__ext { margin-left: auto; width: 14px; height: 14px; opacity: .5; }
.mw-sidebar__bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--mw-border); }
.mw-sidebar__user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.mw-sidebar__user-name { font-size: 13px; font-weight: 700; color: var(--mw-ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-sidebar__user-sub { font-size: 12px; color: var(--mw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-sidebar__user-text { min-width: 0; flex: 1; }
.mw-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(15, 27, 61, .45); backdrop-filter: blur(2px); display: none; }

.mw-main { flex: 1; min-width: 0; margin-left: var(--mw-sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.mw-topbar {
  position: sticky; top: 0; z-index: 30; height: var(--mw-topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--mw-border);
}
.mw-topbar__menu { display: none; }
.mw-topbar__title { font-size: 15px; font-weight: 700; color: var(--mw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-topbar__spacer { flex: 1; }
.mw-linkpill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; max-width: 100%;
  border: 1px solid var(--mw-border); border-radius: 999px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.mw-linkpill:hover { border-color: var(--mw-sky); box-shadow: var(--mw-ring); }
.mw-linkpill__url { font-size: 13px; font-weight: 600; color: var(--mw-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.mw-linkpill__url b { color: var(--mw-blue); font-weight: 800; }
.mw-linkpill__btn { width: 30px; height: 30px; border-radius: 999px; border: 0; background: var(--mw-blue-50); color: var(--mw-blue); display: grid; place-items: center; }
.mw-linkpill__btn svg { width: 15px; height: 15px; }
.mw-linkpill__hint { font-size: 11px; color: var(--mw-muted); display: none; }
.mw-topbar__view { display: inline-flex; }

.mw-content { flex: 1; padding: 28px; }
.mw-content--flush { padding: 0; }
.mw-footer { padding: 18px 28px 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--mw-muted); }
.mw-footer a { color: var(--mw-muted); text-decoration: underline; text-underline-offset: 3px; }
.mw-footer a:hover { color: var(--mw-blue); }

/* Encabezado de página */
.mw-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.mw-page-head p { color: var(--mw-muted); margin-top: 4px; max-width: 560px; }
.mw-page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Tab bar móvil */
.mw-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--mw-border);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.mw-tabbar__item { flex: 1; border: 0; background: transparent; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; font-size: 10.5px; font-weight: 700; color: var(--mw-muted); }
.mw-tabbar__item svg { width: 22px; height: 22px; }
.mw-tabbar__item.is-active { color: var(--mw-blue); }

@media (max-width: 1023px) {
  .mw-sidebar { transform: translateX(-100%); box-shadow: var(--mw-shadow-lg); }
  body.mw-menu-open .mw-sidebar { transform: translateX(0); }
  body.mw-menu-open .mw-backdrop { display: block; }
  .mw-main { margin-left: 0; }
  .mw-topbar { padding: 0 16px; }
  .mw-topbar__menu { display: grid; }
  .mw-content { padding: 18px 16px 96px; }
  .mw-footer { padding: 0 16px 100px; }
  .mw-tabbar { display: flex; }
  .mw-linkpill__url { max-width: 160px; }
}
@media (max-width: 480px) {
  .mw-topbar__title { font-size: 15px; color: var(--mw-ink); }
  .mw-linkpill { padding-left: 10px; }
  .mw-linkpill__url { max-width: 120px; font-size: 12px; }
  .mw-h1 { font-size: 24px; }
}

/* ==========================================================================
   Pantallas de autenticación (login / registro / recuperar clave / SSO)
   ========================================================================== */
.mw-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mw-auth__brand {
  position: relative; overflow: hidden; background: var(--mw-gradient); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 44px 48px;
}
.mw-auth__brand::before, .mw-auth__brand::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .10); pointer-events: none;
}
.mw-auth__brand::before { width: 520px; height: 520px; right: -180px; top: -200px; }
.mw-auth__brand::after { width: 380px; height: 380px; left: -140px; bottom: -160px; background: rgba(15, 27, 61, .14); }
.mw-auth__brand > * { position: relative; z-index: 1; }
.mw-auth__logo img { height: auto; width: 100%; max-width: 300px; aspect-ratio: 821 / 120; object-fit: contain; }
.mw-auth__hero h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; max-width: 520px; letter-spacing: -.02em; }
.mw-auth__hero p { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .85); max-width: 440px; }
.mw-auth__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.mw-auth__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; }
.mw-auth__list svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .18); }
.mw-auth__foot { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.mw-auth__foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mw-auth__card-preview { margin-top: 36px; display: flex; gap: 14px; align-items: center; }
.mw-auth__phone {
  width: 190px; border-radius: 26px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  padding: 16px 14px; backdrop-filter: blur(8px);
}
.mw-auth__phone i { display: block; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); margin: 8px 0; }
.mw-auth__phone i.short { width: 60%; margin: 0 auto 8px; }
.mw-auth__phone i.btn { height: 30px; background: #fff; margin-top: 12px; opacity: .95; }
.mw-auth__phone i.btn.soft { background: rgba(255, 255, 255, .55); }
.mw-auth__phone b { display: block; width: 54px; height: 54px; border-radius: 50%; margin: 4px auto 12px; background: #fff; }

.mw-auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--mw-bg); }
.mw-auth__box { width: 100%; max-width: 440px; }
.mw-auth__box .mw-card__body { padding: 30px; }
.mw-auth__title { font-size: 26px; font-weight: 800; color: var(--mw-ink); letter-spacing: -.02em; }
.mw-auth__sub { color: var(--mw-muted); margin: 6px 0 24px; }
.mw-auth__links { margin-top: 18px; text-align: center; font-size: 14px; color: var(--mw-muted); }
.mw-auth__links a { font-weight: 700; }
.mw-auth__mobile-logo { display: none; }
.mw-auth__legal { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--mw-muted); }
.mw-auth__legal a { color: var(--mw-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .mw-auth { grid-template-columns: 1fr; }
  .mw-auth__brand { display: none; }
  .mw-auth__mobile-logo { display: flex; justify-content: center; margin-bottom: 22px; }
  .mw-auth__mobile-logo img { height: 30px; }
  .mw-auth__panel { align-items: flex-start; padding: 40px 16px; }
  .mw-auth__box .mw-card__body { padding: 24px 20px; }
}

/* ==========================================================================
   Módulos
   ========================================================================== */
/* Licencias */
.mw-license-link { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mw-license-link a { min-width: 0; }
.mw-license-link .mw-btn--icon { flex: none; }
.mw-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.mw-stat { padding: 16px 18px; }
.mw-stat__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mw-muted); }
.mw-stat__value { font-size: 26px; font-weight: 800; color: var(--mw-ink); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Contactos */
.mw-contacts { display: grid; gap: 12px; }
.mw-contact { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; }
.mw-contact__name { font-weight: 800; color: var(--mw-ink); font-size: 15px; }
.mw-contact__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13.5px; color: var(--mw-muted); }
.mw-contact__meta a { color: var(--mw-text); font-weight: 600; }
.mw-contact__meta svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--mw-soft); }
.mw-contact__msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--mw-bg); font-size: 13.5px; color: var(--mw-text); max-height: 120px; overflow: auto; white-space: pre-wrap; }
.mw-contact__actions { display: flex; gap: 6px; }
@media (max-width: 640px) {
  .mw-contact { grid-template-columns: 44px minmax(0, 1fr); }
  .mw-contact__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.mw-fab-bar { position: sticky; bottom: 16px; margin-top: 20px; display: flex; justify-content: center; }
@media (max-width: 1023px) { .mw-fab-bar { bottom: 92px; } }

/* QR */
.mw-qr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.mw-qr__canvas { display: flex; align-items: center; justify-content: center; padding: 28px; }
.mw-qr__canvas canvas, .mw-qr__canvas svg { max-width: 100%; height: auto; border-radius: 16px; }
.mw-qr__info { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.mw-qr__who { display: flex; align-items: center; gap: 14px; }
@media (max-width: 800px) { .mw-qr { grid-template-columns: 1fr; } }

/* Noticias / inicio */
.mw-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mw-news__item { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.mw-news__item:hover { transform: translateY(-2px); box-shadow: var(--mw-shadow); }
.mw-news__img { aspect-ratio: 16 / 9; background: var(--mw-blue-50); overflow: hidden; }
.mw-news__img img { width: 100%; height: 100%; object-fit: cover; }
.mw-news__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mw-news__title { font-weight: 800; color: var(--mw-ink); font-size: 15.5px; line-height: 1.3; }
.mw-news__excerpt { font-size: 13.5px; color: var(--mw-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mw-news__excerpt p { margin: 0; }
.mw-news__more { margin-top: auto; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.mw-news__more svg { width: 15px; height: 15px; }
.mw-hero {
  position: relative; overflow: hidden; border-radius: var(--mw-radius-lg); background: var(--mw-gradient); color: #fff;
  padding: 26px 28px; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.mw-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -180px; background: rgba(255, 255, 255, .12); }
.mw-hero > * { position: relative; z-index: 1; }
.mw-hero h2 { color: #fff; font-size: 22px; font-weight: 800; }
.mw-hero p { color: rgba(255, 255, 255, .85); margin-top: 4px; }
.mw-hero .mw-btn { background: #fff; color: var(--mw-blue); box-shadow: none; }
.mw-hero .mw-btn:hover { background: var(--mw-blue-50); }
.mw-hero .mw-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.mw-hero .mw-btn--outline:hover { background: rgba(255, 255, 255, .12); }
.mw-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 26px; }
.mw-quick__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--mw-ink); font-weight: 700; transition: transform .15s, box-shadow .15s; }
.mw-quick__item:hover { transform: translateY(-2px); box-shadow: var(--mw-shadow); color: var(--mw-blue); }
.mw-quick__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mw-blue-50); color: var(--mw-blue); display: grid; place-items: center; flex: none; }
.mw-quick__icon svg { width: 20px; height: 20px; }
.mw-quick__item small { display: block; font-weight: 500; color: var(--mw-muted); font-size: 12.5px; }

/* Widgets (editor React, directorio, perfil) */
.mw-widget-wrap { min-height: 60vh; }

/* 404 */
.mw-404 { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.mw-404 h1 { font-size: 72px; font-weight: 800; background: var(--mw-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.mw-404 p { color: var(--mw-muted); margin: 10px 0 22px; }

/* ==========================================================================
   Plugins de terceros — ajustes de marca
   ========================================================================== */
.swal2-popup { border-radius: 20px !important; font-family: var(--mw-font) !important; padding: 28px 24px !important; }
.swal2-title { font-size: 18px !important; color: var(--mw-ink) !important; font-weight: 800 !important; }
.swal2-html-container { color: var(--mw-muted) !important; font-size: 14.5px !important; }
.swal2-styled { border-radius: 999px !important; font-weight: 700 !important; padding: 12px 22px !important; box-shadow: none !important; }
.swal2-confirm { background: var(--mw-blue) !important; }
.swal2-cancel { background: var(--mw-bg) !important; color: var(--mw-ink) !important; }
.swal2-icon { border-width: 3px !important; }
.toastify {
  font-family: var(--mw-font) !important; background: var(--mw-ink) !important; color: #fff !important;
  border-radius: 999px !important; padding: 12px 18px !important; box-shadow: var(--mw-shadow-lg) !important; font-weight: 600; font-size: 14px;
}
.flatpickr-calendar { font-family: var(--mw-font) !important; border-radius: 16px !important; box-shadow: var(--mw-shadow-lg) !important; border: 1px solid var(--mw-border) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--mw-blue) !important; border-color: var(--mw-blue) !important; }
.flatpickr-day.today { border-color: var(--mw-sky) !important; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month { color: var(--mw-ink) !important; }

/* SSO / activación de licencia */
.mw-sso { min-height: 100vh; display: flex; flex-direction: column; }
.mw-sso__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--mw-border); }
.mw-sso__top img { height: auto; width: 196px; max-width: 60vw; aspect-ratio: 821 / 120; object-fit: contain; }
.mw-sso .ssoTemplate { flex: 1; display: flex; justify-content: center; padding: 28px 16px; }
.mw-sso .ssoTemplate__container { width: 100%; max-width: 760px; }

/* Cuerpo de tarjeta pública (el widget pinta su propio fondo) */
.mw-body--card { background: #fff; }
.mw-auth__links svg, .mw-btn svg.inline { display: inline-block; vertical-align: -2px; }

/* Sidebar colapsada (desktop) para dar más espacio al editor */
@media (min-width: 1024px) {
  body.mw-sidebar-collapsed .mw-sidebar { transform: translateX(-100%); }
  body.mw-sidebar-collapsed .mw-main { margin-left: 0; }
}

/* Compatibilidad con clases viejas que aún usan algunos scripts */
.hiddeBody { display: block !important; }
.disabled { pointer-events: none; opacity: .5; }
.hidden { display: none !important; }

.mw-version { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mw-soft); }

/* ===== 4.0.12 — Herramientas, avisos de nuevos contactos, confeti ===== */
.mw-tools { display: grid; gap: 16px; }
.mw-tool { padding: 0; }
.mw-tool__head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 6px; }
.mw-tool__head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--mw-ink); }
.mw-tool__head p { margin: 0; font-size: 13.5px; color: var(--mw-muted); line-height: 1.5; }
.mw-tool__head > div { flex: 1; min-width: 0; }
.mw-tool__head .mw-pill { margin-top: 2px; white-space: nowrap; }
.mw-tool__icon { width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--mw-blue-50, #E8EEFB); color: var(--mw-blue); flex: 0 0 auto; }
.mw-tool__icon svg { width: 21px; height: 21px; }
.mw-tool__icon--sky { background: var(--mw-sky-50); color: var(--mw-sky); }
.mw-tool__icon--ink { background: var(--mw-bg); color: var(--mw-ink); }
.mw-tool__body { padding: 12px 22px 22px; }
.mw-tool__grid { display: grid; gap: 14px; }
.mw-tool__grid .mw-field + .mw-field { margin-top: 0; }
@media (min-width: 900px) { .mw-tool__grid { grid-template-columns: 1fr 1fr 1fr; } .mw-tool__grid .mw-tool__actions { grid-column: 1 / -1; } }
.mw-tool__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.mw-tool__actions .mw-help { margin: 0; }
.mw-tool--soon { background: linear-gradient(180deg, #fff, #F8FAFF); }
.mw-soon { list-style: none; margin: 0; padding: 6px 22px 20px; display: grid; gap: 8px; }
.mw-soon li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mw-ink); padding: 10px 12px; border: 1px dashed var(--mw-border); border-radius: 12px; }
.mw-soon li svg { width: 18px; height: 18px; color: var(--mw-blue); flex: 0 0 auto; }
.mw-soon li span { flex: 1; }
.mw-soon li em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mw-muted); background: var(--mw-bg); padding: 4px 8px; border-radius: 999px; }

/* Switch */
.mw-switchrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--mw-border); cursor: pointer; }
.mw-switchrow:first-child { border-top: 0; }
.mw-switchrow input { position: absolute; opacity: 0; width: 0; height: 0; }
.mw-switch { width: 44px; height: 26px; border-radius: 999px; background: #D5DBEA; position: relative; flex: 0 0 auto; transition: background .2s; }
.mw-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,27,61,.25); transition: transform .2s; }
.mw-switchrow input:checked + .mw-switch { background: var(--mw-blue); }
.mw-switchrow input:checked + .mw-switch::after { transform: translateX(18px); }
.mw-switchrow input:focus-visible + .mw-switch { box-shadow: var(--mw-ring); }
.mw-switchrow__text { display: flex; flex-direction: column; gap: 2px; }
.mw-switchrow__text b { font-size: 14px; color: var(--mw-ink); }
.mw-switchrow__text small { font-size: 12.5px; color: var(--mw-muted); }

/* Aviso de contacto nuevo */
.mw-leadtoast { position: fixed; right: 18px; bottom: 18px; z-index: 1200; width: min(420px, calc(100vw - 36px)); display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #fff; border: 1px solid var(--mw-border); border-radius: 18px; box-shadow: 0 18px 50px rgba(15,27,61,.22); transform: translateY(20px); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s; }
.mw-leadtoast.is-in { transform: translateY(0); opacity: 1; }
.mw-leadtoast__icon { font-size: 26px; line-height: 1; }
.mw-leadtoast__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mw-leadtoast__text b { font-size: 14px; color: var(--mw-ink); }
.mw-leadtoast__text span { font-size: 12.5px; color: var(--mw-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mw-leadtoast__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.mw-leadtoast__close { border: 0; background: transparent; color: var(--mw-soft); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.mw-leadtoast__close:hover { background: var(--mw-bg); color: var(--mw-ink); }
@media (max-width: 560px) { .mw-leadtoast { flex-wrap: wrap; } .mw-leadtoast__actions { width: 100%; justify-content: flex-end; } }

.mw-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1300; }

/* Contador en el menú */
.mw-nav__item { position: relative; }
.mw-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mw-danger, #DC2626); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }

/* Dominio propio */
@media (min-width: 900px) { .mw-tool__grid--2 { grid-template-columns: 1fr 1.2fr; } }
.mw-domain-steps { background: var(--mw-bg); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--mw-ink); }
.mw-domain-steps b { font-weight: 800; }
.mw-domain-steps ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.45; }
.mw-domain-steps small { display: block; color: var(--mw-muted); }
.mw-domain-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; }
.mw-domain-cell__toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--mw-muted); cursor: pointer; }

/* ===== 4.0.16 — Móvil: CRM y hojas inferiores ===== */
.mw-crm__quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mw-crm__quick:empty { display: none; }
.mw-crm__quick .mw-btn--wa, .mw-leadtoast .mw-btn--wa { width: auto !important; padding: 0 14px !important; }
@media (max-width: 640px) {
  .mw-crmbar { gap: 10px; }
  .mw-crmbar__stages { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mw-crmbar__stages::-webkit-scrollbar { display: none; }
  .mw-crmbar__stages .mw-chip { flex: none; }
  .mw-board { grid-auto-columns: 86%; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 10px; scroll-padding: 0 16px; }
  .mw-board__col { scroll-snap-align: start; }
  /* Modales como hoja que sube desde abajo */
  .mw-modal { align-items: flex-end; padding: 0; }
  .mw-modal__panel { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation: mwSheetUp .28s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
  .mw-modal__panel::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 999px; background: #D5DBEA; margin: 8px auto 0; }
  .mw-modal__head { padding: 12px 18px 12px; }
  .mw-modal__body { padding: 14px 18px 22px; }
}
@keyframes mwSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mw-modal__panel { animation: none !important; } }

/* 4.0.17 — Menú lateral con grupos: el listado hace scroll si no cabe */
.mw-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.mw-nav__group:first-child { margin-top: 0; }
@media (max-height: 820px) { .mw-nav__item { height: 40px; } .mw-nav__group { margin: 10px 12px 4px; } }
@keyframes mwFlash { 0% { box-shadow: 0 0 0 0 rgba(52,92,212,.0); } 30% { box-shadow: 0 0 0 4px rgba(52,92,212,.28); } 100% { box-shadow: 0 0 0 0 rgba(52,92,212,0); } }
.mw-tool.is-flash { animation: mwFlash 1.6s ease; }
.mw-tool[data-anchor] { scroll-margin-top: 84px; }
.mw-nav__item { height: 42px; }

/* ===== 4.0.18 — MiWibiCRM: columnas editables, arrastrar y soltar ===== */
.mw-crmbar__edit { margin-left: auto; }
.mw-crmbar__edit svg { width: 15px; height: 15px; }
.mw-board { align-items: start; }
.mw-board__col { display: flex; flex-direction: column; max-height: calc(100vh - 230px); transition: background .15s, border-color .15s, box-shadow .15s; }
.mw-board__cards { flex: 1 1 auto; overflow-y: auto; min-height: 60px; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: thin; }
.mw-board__card { cursor: grab; transition: transform .12s, box-shadow .12s, opacity .12s; }
.mw-board__card:hover { box-shadow: 0 8px 20px -12px rgba(15,27,61,.35); }
.mw-board__card.is-dragging { opacity: .45; transform: rotate(-1.5deg); }
.mw-board__cardTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mw-board__wa { flex: none; width: 28px; height: 28px; border-radius: 999px; background: #E9FBF0; color: #16A34A; display: inline-flex; align-items: center; justify-content: center; }
.mw-board__wa svg { width: 16px; height: 16px; }
.mw-board__wa:hover { background: #25D366; color: #fff; }
.mw-board.is-dragging .mw-board__col { border-style: dashed; }
.mw-board__col.is-over { background: var(--mw-blue-50); border-color: var(--mw-blue); box-shadow: inset 0 0 0 1px var(--mw-blue); }
.mw-board__empty { margin: 6px 4px; padding: 14px 10px; border: 1.5px dashed var(--mw-border); border-radius: 12px; text-align: center; font-size: 12px; color: var(--mw-soft); }
.mw-board__add { min-height: 120px; border: 1.5px dashed var(--mw-border-strong, #C9D2E6); border-radius: 16px; background: transparent; color: var(--mw-blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mw-board__add span { font-size: 20px; line-height: 1; }
.mw-board__add:hover { background: var(--mw-blue-50); border-color: var(--mw-blue); }
.mw-board__loading { grid-column: 1 / -1; }
@media (hover: none) { .mw-board__card { cursor: default; } }
@media (max-width: 640px) { .mw-board__col { max-height: none; } .mw-board__cards { overflow: visible; } .mw-crmbar__edit { margin-left: 0; } }

/* Editor de columnas */
.mw-stages { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mw-stages__row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 8px 10px; align-items: center; padding: 10px; border: 1px solid var(--mw-border); border-radius: 14px; background: #FAFBFE; }
.mw-stages__color { position: relative; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); overflow: hidden; }
.mw-stages__color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mw-stages__name { height: 42px; }
.mw-stages__count { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: #fff; border: 1px solid var(--mw-border); font-size: 12px; font-weight: 700; color: var(--mw-muted); display: inline-flex; align-items: center; justify-content: center; }
.mw-stages__btns { display: flex; gap: 4px; }
.mw-stages__btns button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--mw-border); background: #fff; color: var(--mw-muted); font-size: 15px; cursor: pointer; }
.mw-stages__btns button:disabled { opacity: .35; cursor: default; }
.mw-stages__btns button.is-danger { color: var(--mw-danger); }
.mw-stages__swatches { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.mw-stages__swatches button { width: 22px; height: 22px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--mw-border); cursor: pointer; }
.mw-stages__swatches button.is-active { box-shadow: 0 0 0 2px var(--mw-ink); }
.mw-stages__add { width: 100%; }
@media (max-width: 480px) { .mw-stages__row { grid-template-columns: 40px 1fr auto; } .mw-stages__btns { grid-column: 1 / -1; justify-content: flex-end; } .mw-stages__swatches { grid-column: 1 / -1; } }
#mwStagesModal .mw-modal__actions { position: sticky; bottom: -22px; background: #fff; padding: 12px 0 4px; margin: 12px 0 0; border-top: 1px solid var(--mw-border); z-index: 2; }

/* ===== 4.0.18 — Login con sello MiWibiOS4 ===== */
.mw-auth__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mw-auth__top .mw-auth__logo img { max-width: 260px; }
.mw-os-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); }
.mw-os-badge svg { width: 14px; height: 14px; }
.mw-os-badge em { font-style: normal; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.mw-os-badge--light { background: var(--mw-blue-50); border-color: rgba(52,92,212,.2); color: var(--mw-blue); }
.mw-auth__mobile-logo { flex-direction: column; align-items: center; gap: 10px; }
.mw-auth__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--mw-blue); font-size: 12.5px; font-weight: 800; box-shadow: 0 10px 24px -12px rgba(10,16,34,.5); }
.mw-auth__eyebrow i { width: 8px; height: 8px; border-radius: 999px; background: #16A34A; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: mwLive 1.8s ease-out infinite; }
@keyframes mwLive { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 100% { box-shadow: 0 0 0 10px rgba(22,163,74,0); } }
.mw-auth__list--new li { align-items: flex-start; font-weight: 500; }
.mw-auth__list--new li b { font-weight: 800; }
.mw-auth__stage { position: relative; margin-top: 30px; height: 260px; max-width: 460px; }
.mw-auth__stage .mw-auth__phone { position: absolute; left: 0; top: 0; animation: mwFloat 6s ease-in-out infinite; }
.mw-auth__float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 16px; background: #fff; color: var(--mw-ink); box-shadow: 0 18px 40px -18px rgba(10,16,34,.6); min-width: 200px; opacity: 0; animation: mwChipIn .6s cubic-bezier(.2,.9,.3,1.2) forwards, mwFloat 7s ease-in-out infinite; }
.mw-auth__float b { display: block; font-size: 13px; font-weight: 800; }
.mw-auth__float small { display: block; font-size: 12px; color: var(--mw-muted); }
.mw-auth__float .dot { width: 30px; height: 30px; border-radius: 10px; flex: none; }
.mw-auth__float .dot--ok { background: linear-gradient(135deg, #22C55E, #16A34A); }
.mw-auth__float .dot--blue { background: linear-gradient(135deg, #309CFC, #345CD4); }
.mw-auth__float .dot--amber { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.mw-auth__float--a { left: 190px; top: 18px; animation-delay: .4s, .4s; }
.mw-auth__float--b { left: 230px; top: 102px; animation-delay: 1s, 1.2s; }
.mw-auth__float--c { left: 175px; top: 186px; animation-delay: 1.6s, 2s; }
@keyframes mwChipIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mwFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-height: 820px) { .mw-auth__stage { height: 210px; transform: scale(.85); transform-origin: left top; } .mw-auth__list { margin-top: 20px; gap: 9px; } }
@media (max-height: 700px) { .mw-auth__stage { display: none; } }
@media (prefers-reduced-motion: reduce) { .mw-auth__float, .mw-auth__stage .mw-auth__phone, .mw-auth__eyebrow i { animation: none !important; opacity: 1; } }

/* ==========================================================================
   4.0.19 — App instalable (PWA) y "Powered by miwibiCRM"
   ========================================================================== */
.mw-topbar__install { height: 40px; padding: 0 14px; gap: 6px; font-size: 13px; white-space: nowrap; flex: none; }
.mw-topbar__install svg { width: 16px; height: 16px; }
.mw-is-app [data-pwa-install] { display: none !important; }
@media (max-width: 640px) {
  .mw-topbar { gap: 8px; }
  .mw-topbar__install { width: 40px; padding: 0; justify-content: center; }
  .mw-topbar__install span { display: none; }
}
@media (max-width: 400px) { .mw-linkpill__url { max-width: 92px; } }

.mw-sidebar__install { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; cursor: pointer; margin: 0 0 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(52, 92, 212, .18); background: linear-gradient(135deg, #EEF2FD, #E6F3FF); color: var(--mw-ink); transition: transform .15s, box-shadow .15s; }
.mw-sidebar__install:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(52, 92, 212, .6); }
.mw-sidebar__install img { border-radius: 10px; flex: none; }
.mw-sidebar__install span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mw-sidebar__install b { font-size: 13px; font-weight: 800; }
.mw-sidebar__install small { font-size: 11px; color: var(--mw-muted); font-weight: 600; }
.mw-sidebar__install svg { width: 16px; height: 16px; color: var(--mw-blue); flex: none; }

.mw-pwa .mw-modal__panel { width: min(440px, 100%); padding: 22px 22px 20px; }
.mw-pwa__x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.mw-pwa__hero { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.mw-pwa__icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 14px 28px -14px rgba(52, 92, 212, .9); }
.mw-pwa__hero h2 { margin: 0 0 4px; font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--mw-ink); }
.mw-pwa__hero p { margin: 0; font-size: 13.5px; color: var(--mw-muted); line-height: 1.45; }
.mw-pwa__badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 999px; background: #ECFDF3; color: #15803D; font-size: 12.5px; font-weight: 800; }
.mw-pwa__badge svg { width: 14px; height: 14px; }
.mw-pwa__hero { align-items: flex-start !important; }
.mw-pwa__perks { list-style: none; margin: 18px 0 0; padding: 14px; border-radius: 16px; background: var(--mw-bg); display: grid; gap: 9px; }
.mw-pwa__perks li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--mw-ink); }
.mw-pwa__perks svg { color: #16A34A; flex: none; }
.mw-pwa__steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.mw-pwa__steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--mw-bg); font-size: 14px; line-height: 1.45; color: var(--mw-ink); }
.mw-pwa__num { width: 26px; height: 26px; border-radius: 999px; background: var(--mw-blue); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mw-pwa__key { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--mw-border); color: var(--mw-blue); vertical-align: middle; margin: 0 2px; font-style: normal; }
.mw-pwa__steps svg { vertical-align: middle; }
.mw-pwa__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.mw-pwa__actions .mw-btn { min-width: 120px; justify-content: center; }
.mw-pwa__actions [hidden], .mw-pwa [hidden] { display: none !important; }
@media (max-width: 640px) {
  .mw-pwa .mw-modal__panel { padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); }
  .mw-pwa__x { top: 18px; }
  .mw-pwa__hero { margin-top: 12px; }
  .mw-pwa__actions .mw-btn { flex: 1; height: 48px; }
}
.mw-pwa__toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 120; background: var(--mw-ink); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(15, 27, 61, .7); transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.mw-pwa__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Powered by miwibiCRM */
.mw-poweredby { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; margin: 26px auto 6px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: #A3ACBF; font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: .75; transition: opacity .2s, background .2s; }
.mw-poweredby img { height: 14px; width: auto; filter: grayscale(1) brightness(1.35) contrast(.8); opacity: .75; transition: filter .2s, opacity .2s; }
.mw-poweredby:hover { opacity: 1; background: rgba(52, 92, 212, .05); }
.mw-poweredby:hover img { filter: none; opacity: 1; }

/* ==========================================================================
   4.0.20 — MiWibiCRM: embudo selectivo
   ========================================================================== */
.mw-crmbar__addc { display: none; gap: 6px; }
.mw-crmbar__addc svg, .mw-crmbar__edit svg { width: 15px; height: 15px; }
.mw-crmbar.is-board .mw-crmbar__addc { display: inline-flex; margin-left: auto; }
.mw-crmbar.is-board .mw-crmbar__edit { margin-left: 0; }
.mw-board__card { position: relative; }
.mw-board__move { display: flex; align-items: center; gap: 6px; }
.mw-board__rm { flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: #A3ACBF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: color .15s, background .15s, border-color .15s; }
.mw-board__rm svg { width: 15px; height: 15px; }
.mw-board__rm:hover, .mw-board__rm:focus-visible { color: #E5484D; background: #FFF5F5; border-color: rgba(229, 72, 77, .3); }
.mw-board__intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; border: 1.5px dashed rgba(52, 92, 212, .35); background: linear-gradient(135deg, #F5F8FF, #EEF6FF); }
.mw-board__intro b { display: block; font-size: 16px; font-weight: 800; color: var(--mw-ink); }
.mw-board__intro p { margin: 4px 0 0; font-size: 13.5px; color: var(--mw-muted); max-width: 560px; }
.mw-crm__addBtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px dashed rgba(52, 92, 212, .45); background: #fff; color: var(--mw-blue); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.mw-crm__addBtn svg { width: 14px; height: 14px; }
.mw-crm__addBtn:hover { background: var(--mw-blue-50); border-style: solid; }
.mw-crm__boardRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mw-crm__out { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--mw-muted); background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.mw-crm__out:hover { color: #E5484D; }
.mw-crm__hint { font-size: 12.5px; color: var(--mw-muted); }
.mw-stages__auto { margin-top: 16px; padding: 14px 0 0 !important; }
.mw-stages__auto span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mw-stages__auto b { font-size: 14px; color: var(--mw-ink); }
.mw-stages__auto small { font-size: 12.5px; color: var(--mw-muted); line-height: 1.4; }
.mw-stages__auto input { position: static !important; opacity: 1 !important; width: 44px !important; height: 26px !important; appearance: none; -webkit-appearance: none; cursor: pointer; }
.mw-stages__auto input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(15, 27, 61, .3); transition: transform .2s; }
.mw-stages__auto input:checked { background: var(--mw-blue); }
.mw-stages__auto input:checked::before { transform: translateX(18px); }

/* Selector de contactos */
#mwCrmPicker .mw-modal__panel { width: min(520px, 100%); display: flex; flex-direction: column; }
#mwCrmPicker .mw-modal__body { display: flex; flex-direction: column; min-height: 0; }
.mw-pick__tools { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.mw-pick__tools .mw-input { flex: 1; }
.mw-pick__all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mw-muted); white-space: nowrap; cursor: pointer; }
.mw-pick__list { list-style: none; margin: 0; padding: 0; max-height: min(52vh, 440px); overflow: auto; border: 1px solid var(--mw-border); border-radius: 14px; }
.mw-pick__list li + li { border-top: 1px solid var(--mw-border); }
.mw-pick__list label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: background .12s; }
.mw-pick__list label:hover { background: var(--mw-bg); }
.mw-pick__list input { width: 18px; height: 18px; accent-color: var(--mw-blue); flex: none; }
.mw-pick__av { width: 34px; height: 34px; border-radius: 999px; background: var(--mw-blue-50); color: var(--mw-blue); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mw-pick__txt { display: flex; flex-direction: column; min-width: 0; }
.mw-pick__txt b { font-size: 14px; color: var(--mw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-pick__txt small { font-size: 12.5px; color: var(--mw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-pick__empty { padding: 26px 16px; text-align: center; color: var(--mw-muted); font-size: 13.5px; }
.mw-pick__actions { justify-content: space-between !important; align-items: center; }
.mw-pick__to { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mw-muted); }
.mw-pick__to .mw-select { height: 38px; min-width: 150px; }
@media (max-width: 640px) { .mw-pick__actions { flex-direction: column; align-items: stretch !important; } .mw-pick__actions .mw-btn { height: 48px; } .mw-pick__to { justify-content: space-between; } }

/* Cinta "Nuevo" en el menú */
.mw-nav__item > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-nav__new { position: absolute; top: -4px; right: 10px; z-index: 1; font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #345CD4, #309CFC); padding: 2px 6px 1px; border-radius: 6px 6px 6px 2px; box-shadow: 0 3px 8px -3px rgba(52, 92, 212, .8); line-height: 1.3; pointer-events: none; }
.mw-nav__new::after { content: ""; position: absolute; left: 0; bottom: -3px; border-left: 4px solid #2A4AB0; border-bottom: 3px solid transparent; }

.mw-poweredby--top { margin: 0 0 8px; padding: 3px 10px 3px 0; justify-content: flex-start; background: transparent !important; }
.mw-poweredby--top img { height: 13px; }

/* 4.0.20 — Menú lateral: scroll propio y visible (crece con las herramientas nuevas) */
.mw-sidebar { overflow: hidden; }
.mw-nav { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #D5DBEA transparent; padding-top: 8px !important; padding-bottom: 14px !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%); }
.mw-nav::-webkit-scrollbar { width: 6px; }
.mw-nav::-webkit-scrollbar-thumb { background: #D5DBEA; border-radius: 999px; }
.mw-nav::-webkit-scrollbar-track { background: transparent; }
.mw-sidebar__install { padding: 8px 10px; margin-bottom: 10px; gap: 9px; }
.mw-sidebar__install img { width: 28px; height: 28px; border-radius: 8px; }
.mw-sidebar__install b { font-size: 12.5px; }
.mw-sidebar__install small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 4.0.21 — Inicio: Vende desde tu tarjeta */
.mw-sell .mw-home-card__head h3{display:flex;align-items:center;gap:8px}
.mw-sell__new{font-style:normal;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#fff;background:linear-gradient(135deg,#345CD4,#6C8CFF);padding:3px 7px;border-radius:999px}
.mw-sell__list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.mw-sell__list a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--mw-surface-2,#F5F7FC);color:inherit;text-decoration:none;transition:transform .15s ease,background .15s ease}
.mw-sell__list a:hover{background:#EEF2FD;transform:translateY(-1px)}
.mw-sell__list b{display:block;font-size:14px}
.mw-sell__list small{display:block;font-size:12px;color:var(--mw-muted,#67728C);line-height:1.35}
.mw-sell__icon{flex:0 0 38px;width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#EEF2FD;color:#345CD4}
.mw-sell__icon svg{width:20px;height:20px}
.mw-sell__icon--green{background:#E7F8EF;color:#169C55}
.mw-sell__icon--sky{background:#E6F4FD;color:#1C88C7}
.mw-home-side{display:flex;flex-direction:column;gap:16px;min-width:0}

/* ==========================================================================
   4.0.22 — Estadísticas de la tarjeta
   ========================================================================== */
.mw-stats { --viz-accent: #345CD4; --viz-wash: rgba(52, 92, 212, .10); --viz-track: #E3E9FA; --viz-grid: #EEF1F7; --viz-muted: #98A2B8; display: flex; flex-direction: column; gap: 16px; }
.mw-stats.is-loading .mw-stats__panel, .mw-stats.is-loading .mw-stats__kpis { opacity: .55; transition: opacity .2s; }
.mw-stats__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mw-stats__filters .mw-chip.is-on { background: var(--mw-ink); color: #fff; border-color: var(--mw-ink); }
.mw-stats__range { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--mw-muted); }
@media (max-width: 640px) { .mw-stats__range { margin-left: 0; width: 100%; } }
.mw-stats__kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .mw-stats__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mw-stats__kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .mw-stats__kpis .mw-stat:first-child { grid-column: 1 / -1; } }
.mw-stats .mw-stat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-width: 0; overflow: hidden; }
.mw-stats .mw-stat__label { font-size: 13px; font-weight: 600; color: var(--mw-muted); text-transform: none; letter-spacing: 0; }
.mw-stats .mw-stat__value { font-variant-numeric: normal; margin-top: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--mw-ink); line-height: 1.05; }
.mw-stats .mw-stat__delta { font-size: 12px; font-weight: 700; }
.mw-stats .mw-stat__delta.is-up { color: var(--mw-success); }
.mw-stats .mw-stat__delta.is-down { color: var(--mw-danger); }
.mw-stats .mw-stat__delta.is-flat { color: var(--mw-muted); font-weight: 600; }
.mw-stats .mw-stat__hint { font-size: 12px; color: var(--mw-muted); line-height: 1.35; }
.mw-stats .mw-stat__spark { width: 100%; height: 30px; margin-top: 6px; overflow: visible; }
.mw-stats__panel { padding: 18px 20px 20px; min-width: 0; }
@media (max-width: 640px) { .mw-stats__panel { padding: 16px 14px; } }
.mw-stats__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mw-stats__head h3 { font-size: 16px; }
.mw-stats__head p { margin: 3px 0 0; font-size: 13px; color: var(--mw-muted); line-height: 1.4; }
.mw-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .mw-stats__grid { grid-template-columns: 1fr; } }
.mw-stats__note { margin: 12px 0 0; font-size: 12px; color: var(--mw-muted); line-height: 1.45; }
.mw-stats__device { margin-top: 14px; }
.mw-stats__deviceLabel { display: block; font-size: 13px; font-weight: 600; color: var(--mw-text); margin-bottom: 6px; }
.mw-meter { height: 8px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.mw-meter i { display: block; height: 100%; background: var(--viz-accent); border-radius: 999px; }
.mw-stats__table summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--mw-ink); }
.mw-stats__table[open] summary { border-bottom: 1px solid var(--mw-border); }
.mw-stats__table .mw-table td, .mw-stats__table .mw-table th { padding: 10px 14px; }
.mw-viz { width: 100%; min-width: 0; }
.mw-viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.mw-viz__grid { stroke: var(--viz-grid); stroke-width: 1; }
.mw-viz__axis { stroke: var(--mw-border-strong); stroke-width: 1; }
.mw-viz__tick { font-size: 11px; fill: var(--mw-muted); font-variant-numeric: tabular-nums; }
.mw-viz__label { font-size: 11.5px; font-weight: 700; fill: var(--mw-ink); }
.mw-viz__line { fill: none; stroke: var(--viz-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mw-viz__area { fill: var(--viz-wash); }
.mw-viz__dot { fill: var(--viz-accent); stroke: #fff; stroke-width: 2; }
.mw-viz__dot--hover { r: 5; }
.mw-viz__cross { stroke: var(--mw-soft); stroke-width: 1; }
.mw-viz__col { fill: #9DB2EC; transition: fill .15s; }
.mw-viz__col--peak { fill: var(--viz-accent); }
.mw-viz rect[tabindex]:focus { outline: none; }
.mw-viz rect[tabindex]:hover + text, .mw-viz rect[tabindex]:focus-visible { stroke: none; }
.mw-viz__none { margin: 8px 0; font-size: 13px; color: var(--mw-muted); }
.mw-viz__tip { position: fixed; z-index: 3000; pointer-events: none; min-width: 150px; max-width: 260px; padding: 10px 12px; border-radius: 12px; background: #0F1B3D; color: #fff; box-shadow: 0 14px 34px -14px rgba(15, 27, 61, .6); font-size: 12.5px; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.mw-viz__tip.is-on { opacity: 1; transform: none; }
.mw-viz__tipTitle { font-size: 11.5px; font-weight: 700; color: #B9C4E4; margin-bottom: 6px; }
.mw-viz__tipRow { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.mw-viz__tipRow b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mw-viz__tipRow span { color: #C9D2EC; }
.mw-viz__tipKey { width: 12px; height: 2px; border-radius: 2px; display: inline-block; flex: none; }
.mw-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mw-hbars__row { outline: none; border-radius: 10px; }
.mw-hbars__row:focus-visible { box-shadow: var(--mw-ring); }
.mw-hbars__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; font-size: 13.5px; }
.mw-hbars__name { min-width: 0; color: var(--mw-text); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mw-hbars__tag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--mw-muted); background: var(--mw-bg); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.mw-hbars__val { flex: none; font-size: 13px; font-weight: 800; color: var(--mw-ink); font-variant-numeric: tabular-nums; }
.mw-hbars__track { height: 10px; border-radius: 999px; background: var(--viz-grid); overflow: hidden; }
.mw-hbars__bar { display: block; height: 100%; background: var(--viz-accent); border-radius: 0 4px 4px 0; transition: width .4s ease; }
.mw-hbars__row:hover .mw-hbars__bar { background: #2B4DB8; }
/* 4.0.22 — aviso de citas en Inicio */
.mw-notice--agenda { background: #EEF2FD; border-color: rgba(52, 92, 212, .22); margin-bottom: 18px; }
.mw-notice--agenda .mw-notice__icon { background: #fff; color: var(--mw-blue); }
.mw-notice--agenda .mw-notice__text b { font-weight: 600; }
.mw-notice--agenda .mw-notice__text b b { font-weight: 800; display: inline; }

/* ==========================================================================
   4.0.22 — Firma de correo
   ========================================================================== */
.mw-sig { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .mw-sig { grid-template-columns: 1fr; } }
.mw-sig__form, .mw-sig__preview { padding: 18px 20px; min-width: 0; }
@media (max-width: 640px) { .mw-sig__form, .mw-sig__preview { padding: 16px 14px; } }
.mw-sig__styles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mw-sig .mw-chip.is-on { background: var(--mw-ink); color: #fff; border-color: var(--mw-ink); }
.mw-sig__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mw-sig__grid .mw-field + .mw-field { margin-top: 0; }
@media (max-width: 480px) { .mw-sig__grid { grid-template-columns: 1fr; } }
.mw-sig__color { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border: 1.5px solid var(--mw-border); border-radius: 12px; background: #fff; }
.mw-sig__color input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.mw-sig__color span { font-size: 13px; font-weight: 700; color: var(--mw-muted); font-variant-numeric: tabular-nums; }
.mw-sig__toggles { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mw-sig__mail { border: 1px solid var(--mw-border); border-radius: 16px; overflow: hidden; background: #fff; }
.mw-sig__mailHead { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F4F6FB; border-bottom: 1px solid var(--mw-border); }
.mw-sig__mailHead span { width: 10px; height: 10px; border-radius: 50%; background: #D5DBEA; }
.mw-sig__mailHead b { margin-left: 8px; font-size: 12.5px; color: var(--mw-muted); }
.mw-sig__mailBody { padding: 18px 20px 22px; overflow-x: auto; }
.mw-sig__fake { margin: 0 0 10px; font-size: 14px; color: var(--mw-text); }
.mw-sig__out { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--mw-border); }
.mw-sig__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
@media (max-width: 640px) { .mw-sig__actions .mw-btn { flex: 1 1 auto; justify-content: center; } }
.mw-sig__help { border-top: 1px solid var(--mw-border); padding-top: 14px; }
.mw-sig__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mw-sig__help ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--mw-text); line-height: 1.6; }
@media (max-width: 1000px) { .mw-sig__preview { order: -1; } }
.mw-notice--won { background: #ECFDF3; border-color: rgba(22, 163, 74, .25); }
.mw-notice--won .mw-notice__icon { background: #fff; color: #16A34A; }

/* ==========================================================================
   4.0.22 — Modo Empresa (Mi equipo)
   ========================================================================== */
.mw-team { display: flex; flex-direction: column; gap: 16px; }
.mw-team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .mw-team__grid { grid-template-columns: 1fr; } }
.mw-team__box { padding: 20px 22px; min-width: 0; }
@media (max-width: 640px) { .mw-team__box { padding: 16px 14px; } }
.mw-team__box h3 { font-size: 17px; margin-bottom: 4px; }
.mw-team__box > p { margin: 0 0 14px; font-size: 13.5px; color: var(--mw-muted); line-height: 1.5; }
.mw-team__box .mw-field { margin-bottom: 12px; }
.mw-team__box .mw-field + .mw-field { margin-top: 0; }
.mw-team__bullets { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.mw-team__bullets li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--mw-text); line-height: 1.45; }
.mw-team__bullets li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--mw-success-50); color: var(--mw-success); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mw-team__brandRow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 16px; }
.mw-team__upload, .mw-team__color { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; border: 1.5px solid var(--mw-border); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--mw-ink); }
.mw-team__upload.is-loading { opacity: .55; pointer-events: none; }
.mw-team__color { padding: 6px 14px 6px 8px; }
.mw-team__color input { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.mw-team__logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--mw-border); flex: none; }
.mw-team__logo--mark { color: #fff; font-weight: 800; font-size: 22px; border: 0; }
.mw-team__hero { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-top: 4px solid var(--team, var(--mw-blue)); }
.mw-team__hero small { display: block; font-size: 12px; font-weight: 700; color: var(--mw-muted); }
.mw-team__hero h3 { font-size: 22px; letter-spacing: -.01em; }
.mw-team__hero a { font-size: 13px; font-weight: 600; }
.mw-team__edit { margin-left: auto; }
@media (max-width: 640px) { .mw-team__hero { flex-wrap: wrap; } .mw-team__edit { margin-left: 0; width: 100%; justify-content: center; } }
.mw-team__formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .mw-team__formGrid { grid-template-columns: 1fr; } }
.mw-team__kpis { margin-bottom: 0; }
.mw-team__kpis .mw-kpi:hover { transform: none; box-shadow: var(--mw-shadow-sm); }
.mw-team__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mw-team__head p { margin: 3px 0 0; font-size: 13px; color: var(--mw-muted); }
.mw-team__table td small { display: block; font-size: 11.5px; font-weight: 700; }
.mw-team__table td small.is-up { color: var(--mw-success); }
.mw-team__table td small.is-down { color: var(--mw-danger); }
.mw-team__who { display: flex; align-items: center; gap: 10px; }
.mw-team__who b { display: block; font-size: 14px; }
.mw-team__who a { font-size: 12.5px; color: var(--mw-muted); }
.mw-team__rank { width: 26px; height: 26px; border-radius: 50%; background: var(--mw-bg); color: var(--mw-muted); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mw-team__table tr:first-child .mw-team__rank { background: #FFF4E0; color: #B4741A; }
.mw-team__link { padding: 12px 14px; border-radius: 12px; background: var(--mw-bg); overflow-x: auto; margin-bottom: 12px; }
.mw-team__link code { font-size: 13px; white-space: nowrap; color: var(--mw-ink); }
.mw-team__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mw-team__tpl { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--mw-bg); }
.mw-team__tpl b { display: block; font-size: 14px; }
.mw-team__tpl p { margin: 4px 0 10px; font-size: 13px; color: var(--mw-muted); }
.mw-team__box .mw-switchrow + .mw-switchrow { margin-top: 10px; }
.mw-team__msg { margin-top: 4px; font-size: 12.5px; color: var(--mw-text); max-width: 420px; }
.mw-team__invite { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; background: #EEF2FD; border-color: rgba(52, 92, 212, .25); }
.mw-team__invite p { margin: 4px 0 0; font-size: 13.5px; color: var(--mw-muted); }
.mw-team__joinRow { display: flex; gap: 8px; }
.mw-team__joinRow .mw-input { width: 150px; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; }
.mw-team__danger { display: flex; justify-content: flex-end; }
.mw-team__danger .mw-btn { color: var(--mw-danger); }
.mw-team__toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 4000; padding: 12px 18px; border-radius: 14px; background: var(--mw-ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--mw-shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.mw-team__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.mw-team__toast.is-error { background: var(--mw-danger); }
.mw-team__logo--empty { background: var(--mw-bg); color: var(--mw-soft); border: 1.5px dashed var(--mw-border-strong); }
/* 4.0.22 — billetera del celular */
.mw-qr__wallet { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mw-border); }
.mw-qr__walletBtns { display: flex; flex-wrap: wrap; gap: 8px; }
.mw-wallet-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.mw-wallet-btn--apple { background: #000; color: #fff; }
.mw-wallet-btn--apple:hover { color: #fff; background: #1c1c1e; }
.mw-wallet-btn--google { background: #fff; color: #1f1f1f; border: 1px solid #DADCE0; }
.mw-wallet-btn--google:hover { color: #1f1f1f; background: #F8F9FA; }

/* 4.0.22 — Superadmin: licencias de Negocio */
.mw-biz-admin { padding: 18px 20px; margin-bottom: 16px; }
.mw-biz-admin__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.mw-biz-admin__head h3 { font-size: 17px; }
.mw-biz-admin__head p { margin: 3px 0 0; font-size: 13px; color: var(--mw-muted); max-width: 640px; }
.mw-biz-admin__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mw-biz-admin__list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--mw-border); border-radius: 14px; }
.mw-biz-admin__dot { width: 38px; height: 38px; border-radius: 11px; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mw-biz-admin__txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.mw-biz-admin__txt b { font-size: 14.5px; }
.mw-biz-admin__txt span { font-size: 12.5px; color: var(--mw-muted); }
.mw-biz-admin__seats { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; min-width: 110px; }
.mw-biz-admin__seats b { font-size: 16px; }
.mw-biz-admin__seats span { font-size: 12px; color: var(--mw-muted); }
.mw-biz-admin__seats i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--mw-blue-50); overflow: hidden; margin-top: 4px; }
.mw-biz-admin__seats u { display: block; height: 100%; background: var(--mw-blue); border-radius: 999px; }
.mw-biz-admin__actions { display: flex; gap: 6px; }
.mw-biz-admin__type { white-space: nowrap; }
.mw-biz-admin__change { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--mw-blue); cursor: pointer; padding: 2px 4px; }
.mw-swal-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.mw-swal-form label { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; color: var(--mw-ink); }
.mw-swal-form .swal2-input, .mw-swal-form .swal2-select { margin: 6px 0 0; width: 100%; max-width: none; font-size: 15px; }
.mw-swal-form small { font-size: 12.5px; color: var(--mw-muted); line-height: 1.45; }

/* ==========================================================================
   4.0.23 — Pedidos (tienda + cobros en línea)
   ========================================================================== */
.mw-orders__filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.mw-orders__filters::-webkit-scrollbar { display: none; }
.mw-orders .mw-chip { flex: none; height: 34px; padding: 0 14px; }
.mw-orders .mw-chip.is-on { background: var(--mw-ink); color: #fff; border-color: var(--mw-ink); }
.mw-orders__gw { margin-bottom: 14px; }
.mw-orders__gw .mw-notice { margin: 0; }
.mw-orders__gwon { background: #ECFDF3; border-color: rgba(22, 163, 74, .25); }
.mw-orders__gwon .mw-notice__icon { background: #fff; }
.mw-orders__gw .mw-notice__text { font-size: 13.5px; color: var(--mw-muted); }
.mw-orders__gw .mw-notice__text b { color: var(--mw-ink); }
.mw-orders .mw-kpi__icon { font-weight: 800; font-size: 16px; }
.mw-orders__list { display: grid; gap: 12px; }
.mw-order { padding: 0; overflow: visible; }
.mw-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 0; }
.mw-order__head b { display: block; font-size: 15.5px; }
.mw-order__head small { display: block; font-size: 12.5px; color: var(--mw-muted); margin-top: 2px; }
.mw-order__head .mw-pill { flex: none; }
.mw-order__body { padding: 8px 16px 2px; }
.mw-order__body p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.mw-order__items { color: var(--mw-ink); font-weight: 600; }
.mw-order__meta { color: var(--mw-muted); }
.mw-order__meta span { display: inline-block; min-width: 64px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--mw-soft); }
.mw-order__warn { padding: 8px 10px; border-radius: 10px; background: var(--mw-warning-50); color: #8A5A12; font-size: 13px; }
.mw-order__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px dashed var(--mw-border); margin-top: 6px; }
.mw-order__total { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.mw-order__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mw-order__more { position: relative; }
.mw-order__more summary { list-style: none; cursor: pointer; height: 36px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--mw-bg); font-weight: 800; color: var(--mw-muted); padding: 0 10px; letter-spacing: .08em; }
.mw-order__more summary::-webkit-details-marker { display: none; }
.mw-order__more > div { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 220px; background: #fff; border: 1px solid var(--mw-border); border-radius: 14px; box-shadow: var(--mw-shadow); padding: 6px; display: grid; }
.mw-order__more a, .mw-order__more button { font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--mw-ink); text-decoration: none; cursor: pointer; }
.mw-order__more a:hover, .mw-order__more button:hover { background: var(--mw-bg); }
.mw-order__more .is-danger { color: var(--mw-danger); }
.mw-order.is-cancelled, .mw-order.is-failed { opacity: .78; }
.mw-order.is-new { box-shadow: inset 3px 0 0 var(--mw-blue), var(--mw-shadow-sm, 0 1px 2px rgba(15, 27, 61, .06)); }
@media (max-width: 560px) {
    .mw-order__foot { flex-direction: column; align-items: stretch; }
    .mw-order__actions .mw-btn { flex: 1; }
}

/* 4.0.23: botones dentro de estados vacíos (el ícono no debe heredar el tamaño del ícono grande) */
.mw-empty .mw-btn { margin-top: 14px; }
.mw-empty .mw-btn svg { width: 18px; height: 18px; margin: 0; color: currentColor; }

/* ==========================================================================
   4.0.28: login, registro y recuperar clave en celular — la marca arriba, la caja encima
   (antes en celular solo salía el logo y la caja; el lado azul quedaba oculto)
   ========================================================================== */
@media (max-width: 900px) {
  .mw-auth { min-height: 100svh; background: var(--mw-bg); grid-template-rows: auto 1fr; align-content: start; }
  .mw-auth__brand { display: flex; min-height: 0; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 84px; gap: 16px; justify-content: flex-start; }
  .mw-auth__top { justify-content: space-between; flex-wrap: nowrap; }
  .mw-auth__top .mw-auth__logo img { max-width: 150px; }
  .mw-auth__top .mw-os-badge { font-size: 11px; padding: 4px 9px; white-space: nowrap; }
  .mw-auth__hero { margin-top: 2px; }
  .mw-auth__eyebrow { margin-bottom: 10px; font-size: 12px; }
  .mw-auth__hero h2 { font-size: 24px; line-height: 1.12; max-width: none; }
  .mw-auth__hero p { font-size: 14.5px; line-height: 1.45; margin-top: 8px; max-width: none; }
  .mw-auth__list { display: none; }
  .mw-auth__foot { display: none; }
  .mw-auth__mobile-logo { display: none; }
  /* los avisos "Nuevo contacto" / "MiWibiCRM" quedan como dos chips fijos, sin el teléfono */
  .mw-auth__stage { position: static; height: auto; max-width: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; transform: none; }
  .mw-auth__float { flex: 1 1 150px; }
  .mw-auth__stage .mw-auth__phone { display: none; }
  .mw-auth__float { position: static; opacity: 1; animation: none; min-width: 0; padding: 8px 12px 8px 9px; border-radius: 14px; box-shadow: 0 10px 24px -14px rgba(10, 16, 34, .55); }
  .mw-auth__float .dot { width: 26px; height: 26px; border-radius: 8px; }
  .mw-auth__float b { font-size: 12.5px; }
  .mw-auth__float small { font-size: 11.5px; }
  .mw-auth__float--c { display: none; }
  .mw-auth__panel { position: relative; z-index: 2; margin-top: -62px; padding: 0 16px 28px; align-items: flex-start; background: transparent; }
  .mw-auth__box .mw-card { border-radius: 22px; box-shadow: 0 24px 50px -28px rgba(15, 27, 61, .5), 0 2px 8px rgba(15, 27, 61, .06); }
  .mw-auth__box .mw-card__body { padding: 24px 20px 22px; }
  .mw-auth__title { font-size: 24px; }
  .mw-auth__sub { margin-bottom: 20px; }
  .mw-auth__legal { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 900px) and (max-height: 700px) {
  .mw-auth__hero p { display: none; }
  .mw-auth__stage { display: none; }
  .mw-auth__brand { padding-bottom: 76px; }
}

/* ==========================================================================
   4.0.29 — Superadmin: "Negocio desde tarjetas existentes"
   ========================================================================== */
.mw-migrate { max-height: 70vh; overflow: auto; padding-right: 2px; }
.mw-migrate__results ul, .mw-migrate__picked ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mw-migrate__results { max-height: 240px; overflow: auto; border: 1px solid var(--mw-border); border-radius: 12px; padding: 8px; }
.mw-migrate__results li label { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 500; }
.mw-migrate__results li label:hover { background: var(--mw-bg); }
.mw-migrate__results li.is-busy label { opacity: .55; cursor: not-allowed; }
.mw-migrate__results img, .mw-migrate__results i { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--mw-blue-50); flex: none; }
.mw-migrate__results span { line-height: 1.3; font-size: 14px; }
.mw-migrate__results em { font-style: normal; color: var(--mw-muted); font-size: 12.5px; }
.mw-migrate__results small { color: var(--mw-muted); font-size: 12px; }
.mw-migrate__results input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mw-blue); flex: none; }
.mw-migrate__title { margin: 4px 0 6px; font-size: 13px; font-weight: 800; color: var(--mw-ink); text-align: left; }
.mw-migrate__picked li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--mw-border); border-radius: 10px; font-size: 13.5px; text-align: left; }
.mw-migrate__picked li span { color: var(--mw-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.mw-swal-form .mw-migrate__owner { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--mw-blue); background: var(--mw-blue-50); border-radius: 999px; padding: 3px 9px; cursor: pointer; flex: none; }
.mw-swal-form .mw-migrate__owner input { accent-color: var(--mw-blue); margin: 0; width: 14px; height: 14px; }
.mw-migrate__x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--mw-muted); cursor: pointer; padding: 2px 6px; }
.mw-migrate__x:hover { color: #C62828; }

/* ==========================================================================
   4.0.29 — Conexión con Google (Reservas + Firma de correo + superadmin)
   ========================================================================== */
.mw-gcal { margin-top: 16px; padding: 18px 20px; }
.mw-gcal__head { display: flex; gap: 14px; align-items: flex-start; }
.mw-gcal__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mw-blue-50); color: var(--mw-blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mw-gcal__head h3 { margin: 0 0 4px; font-size: 17px; }
.mw-gcal__head p { margin: 0; font-size: 13px; color: var(--mw-muted); line-height: 1.45; max-width: 640px; }
.mw-gcal__row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.mw-gcal__status { font-size: 13.5px; color: var(--mw-muted); }
.mw-gcal__status.is-on { color: var(--mw-ink); }
.mw-gcal__status.is-on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; margin-right: 8px; vertical-align: middle; }
.mw-gcal__flag { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.mw-gcal__flag.is-ok { background: #E8F7EE; color: #166534; }
.mw-gcal__flag.is-warn { background: #FFF4E5; color: #92400E; }
.mw-sig__gmail { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--mw-border); border-radius: 14px; background: var(--mw-bg); }
.mw-sig__gmailTxt { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1; }
.mw-sig__gmailTxt b { font-size: 13.5px; }
.mw-sig__gmailTxt span { font-size: 12.5px; color: var(--mw-muted); line-height: 1.4; }
.mw-gconf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 10px; }
.mw-gconf__grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.mw-gconf__grid .mw-input { width: 100%; }
.mw-gconf code { font-size: 12px; background: #fff; border: 1px solid var(--mw-border); border-radius: 6px; padding: 2px 6px; }
@media (max-width: 700px) { .mw-gconf__grid { grid-template-columns: 1fr; } }
.licenses__tableHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px 4px; }
.licenses__tableHead h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.licenses__filter { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.licenses__filter .mw-select { min-width: 220px; }
.mw-gconf__how { margin: 4px 0 12px; font-size: 13px; color: var(--mw-muted); }
.mw-gconf__how summary { cursor: pointer; font-weight: 700; color: var(--mw-blue); }
.mw-gconf__how ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.mw-gconf__how a { color: var(--mw-blue); }
.mw-qrlic { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mw-qrlic__prev { padding: 14px; background: #fff; border: 1px solid var(--mw-border); border-radius: 16px; }
.mw-qrlic__prev canvas, .mw-qrlic__prev svg { display: block; }
.mw-qrlic__who { margin: 0; font-size: 12.5px; color: var(--mw-muted); word-break: break-all; }
.mw-qrlic__btns { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mw-qrlic__btns .mw-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 10px 14px; text-align: left; }
.mw-qrlic__btns .mw-btn small { font-weight: 500; font-size: 11.5px; opacity: .8; }

/* ==========================================================================
   4.0.30 — Superadmin: Tarjetas antiguas → diseño nuevo
   ========================================================================== */
.mw-legacy__progress { margin-bottom: 20px; }
.mw-legacy__progressHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.mw-legacy__progressHead span { font-variant-numeric: tabular-nums; color: var(--mw-muted); }
.mw-legacy__bar { height: 10px; border-radius: 999px; background: var(--mw-bg, #EEF1F8); overflow: hidden; }
.mw-legacy__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--mw-blue), var(--mw-sky)); transition: width .35s ease; }
.mw-legacy__progressNote { margin: 10px 0 0; font-size: 12.5px; color: var(--mw-muted); }
.mw-legacy .licenses__filter .mw-input { min-width: 240px; }
.mw-legacy__log h3 { margin: 0 0 10px; font-size: 15px; }
.mw-legacy__log ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; font-size: 13px; }
.mw-legacy__log li { padding: 8px 10px; border-left: 3px solid var(--mw-border); margin-bottom: 6px; border-radius: 0 8px 8px 0; background: #FAFBFE; }
.mw-legacy__log li.is-ok { border-left-color: var(--mw-success); }
.mw-legacy__log li.is-err { border-left-color: var(--mw-danger); }
.mw-legacy__log li.is-info { border-left-color: var(--mw-blue); }
.mw-legacy__log li a { color: var(--mw-blue); font-weight: 600; }

/* 4.0.30 — Activación de tarjeta de empresa: marca del equipo arriba del wizard */
.mw-sso__team { display: flex; align-items: center; gap: 16px; max-width: 760px; width: 100%; margin: 22px auto 0; padding: 16px 18px; box-sizing: border-box; background: #fff; border: 1px solid var(--mw-border); border-left: 6px solid var(--mw-team, var(--mw-blue)); border-radius: 16px; box-shadow: var(--mw-shadow, 0 1px 2px rgba(15,27,61,.04)); }
.mw-sso__teamLogo { width: 56px; height: 56px; flex: none; border-radius: 14px; background: var(--mw-team, var(--mw-blue)); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mw-sso__teamLogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-sso__teamLogo b { font-size: 24px; font-weight: 800; }
.mw-sso__teamText { min-width: 0; }
.mw-sso__teamKicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mw-muted); }
.mw-sso__teamName { margin: 2px 0 4px; font-size: 20px; line-height: 1.15; font-weight: 800; color: var(--mw-text); }
.mw-sso__teamNote { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--mw-muted); }
.mw-sso--team .ssoTemplate { padding-top: 18px; }
@media (max-width: 640px) { .mw-sso__team { margin: 16px 16px 0; width: auto; } }

/* 4.0.31 — Superadmin › Integraciones › Billeteras */
.mw-wallet-cfg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
@media (max-width: 860px) { .mw-wallet-cfg__grid { grid-template-columns: 1fr; } }
.mw-wallet-cfg__col { border: 1px solid var(--mw-border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFE; }
.mw-wallet-cfg__col > label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--mw-text); }
.mw-wallet-cfg__col .mw-gconf__grid { margin: 0; }
.mw-wallet-cfg__col input[type="file"] { padding: 8px 10px; font-weight: 500; background: #fff; }
.mw-wallet-cfg__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.mw-wallet-cfg__title img, .mw-wallet-cfg__title svg { flex: none; }
.mw-wallet-cfg__title .mw-pill { margin-left: auto; }
.mw-wallet-cfg__meta { margin: -4px 0 0; font-size: 12px; color: var(--mw-muted); min-height: 0; word-break: break-word; }
.mw-wallet-cfg .mw-page-head__actions { margin-top: auto; }

/* 4.0.31 — Contactos: pedido / cita como etiqueta */
.mw-contact__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mw-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.mw-tag span { font-weight: 600; opacity: .8; }
.mw-tag--shop { background: var(--mw-success-50); color: var(--mw-success); border-color: rgba(22,163,74,.25); }
.mw-tag--booking { background: var(--mw-sky-50); color: var(--mw-blue); border-color: rgba(52,92,212,.25); }
.mw-tag:hover { filter: brightness(.96); }
.mw-contact__more { margin-top: 8px; }
.mw-contact__more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--mw-muted); }
.mw-contact__more .mw-contact__msg { margin-top: 6px; }
.mw-order.is-flash { animation: mwFlash 1.6s ease-out 1; }
@keyframes mwFlash { 0% { box-shadow: 0 0 0 4px rgba(52,92,212,.45); } 100% { box-shadow: 0 0 0 0 rgba(52,92,212,0); } }

/* 4.0.32 — Mi tarjeta virtual: vista previa del pase de la billetera */
.mw-qr__passBody { display: flex; flex-direction: column; }
.mw-qr__passCard { align-self: start; }
.mw-pass { --pass-bg: #0F1B3D; background: var(--pass-bg); color: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(15, 27, 61, .6); max-width: 360px; width: 100%; margin: 0 auto; }
.mw-pass__top { display: flex; align-items: center; gap: 12px; padding: 18px 18px 6px; }
.mw-pass__logo { width: 40px; height: 40px; border-radius: 999px; background: #fff; color: #0F1B3D; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex: none; }
.mw-pass__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-pass__company { font-size: 15px; font-weight: 600; opacity: .95; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-pass__sub { padding: 8px 18px 0; font-size: 13.5px; opacity: .85; }
.mw-pass__name { padding: 2px 18px 14px; font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mw-pass__qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 18px 18px; }
.mw-pass__qr > div { background: #fff; padding: 10px; border-radius: 16px; line-height: 0; }
.mw-pass__qr canvas { display: block; width: 150px; height: 150px; border-radius: 6px; }
.mw-pass__qr span { font-size: 13px; opacity: .9; }
.mw-pass__hero { height: 120px; background-size: cover; background-position: center; }
.mw-pass__rows { background: #fff; color: var(--mw-ink); padding: 4px 18px 8px; }
.mw-pass__rows > div { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-top: 1px solid var(--mw-border); }
.mw-pass__rows > div:first-child { border-top: 0; }
.mw-pass__rows b { font-size: 12px; font-weight: 700; color: var(--mw-muted); }
.mw-pass__rows span { font-size: 14px; overflow-wrap: anywhere; }
.mw-qr__canvasWrap { display: flex; justify-content: center; padding: 6px 0 2px; }
.mw-qr__canvasWrap canvas { max-width: 100%; height: auto; border-radius: 16px; }

/* 4.0.32 — Superadmin: Datos e inteligencia */
.mw-ins__loading { color: var(--mw-muted); font-size: 14px; }
.mw-ins__content { display: flex; flex-direction: column; gap: 18px; }
.mw-ins__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 960px) { .mw-ins__grid { grid-template-columns: 1fr; } }
.mw-ins .mw-card__body > .mw-h3 { margin: 0 0 2px; }
.mw-ins .mw-card__body > .mw-h3 + .mw-small { margin: 0 0 14px; }
.mw-ins__sub { margin: 18px 0 8px; font-size: 13px; font-weight: 800; color: var(--mw-ink); text-transform: uppercase; letter-spacing: .04em; }
.mw-ins__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .mw-ins__two { grid-template-columns: 1fr; } }
.mw-ins__mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.mw-ins__miniItem { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--mw-bg); }
.mw-ins__miniItem b { font-size: 20px; font-weight: 800; color: var(--mw-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mw-ins__miniItem span { font-size: 12px; color: var(--mw-muted); font-weight: 600; }
.mw-ins__crosses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 24px; }
.mw-ins__cross .mw-ins__sub { margin-top: 6px; }
.mw-ins__crossRows { display: flex; flex-direction: column; gap: 10px; }
.mw-ins__crossRow { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(80px, 2fr) auto; grid-template-areas: 'name bar val' 'meta meta meta'; gap: 2px 10px; align-items: center; }
.mw-ins__crossName { grid-area: name; font-size: 13.5px; font-weight: 600; color: var(--mw-text); }
.mw-ins__crossRow .mw-hbars__track { grid-area: bar; }
.mw-ins__crossVal { grid-area: val; font-size: 14px; font-weight: 800; color: var(--mw-ink); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.mw-ins__crossMeta { grid-area: meta; font-size: 11.5px; color: var(--mw-muted); }
.mw-ins__insight { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--mw-blue-50); color: var(--mw-blue); font-size: 13px; font-weight: 600; }
.mw-ins__swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.mw-ins__swatch { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border-radius: 999px; border: 1px solid var(--mw-border); background: #fff; font-size: 12px; }
.mw-ins__swatch i { width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(15,27,61,.15); display: inline-block; }
.mw-ins__swatch code { font-size: 11.5px; color: var(--mw-ink); }
.mw-ins__swatch small { color: var(--mw-muted); font-weight: 700; }
.mw-ins__gaps .mw-card__body { display: flex; flex-direction: column; }
.mw-ins__gap { padding: 12px 0; border-top: 1px solid var(--mw-border); display: flex; flex-direction: column; gap: 8px; }
.mw-ins__gap:first-of-type { border-top: 0; }
.mw-ins__gapHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mw-ins__gapHead b { font-size: 14px; color: var(--mw-ink); }
.mw-ins__gap .mw-small { margin: 0; }

/* 4.0.32 — Píxeles: verificación y eventos */
.mw-pxcheck { grid-column: 1 / -1; border: 1px solid var(--mw-border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--mw-bg); }
.mw-pxcheck__row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.mw-pxcheck__row b { min-width: 120px; color: var(--mw-ink); }
.mw-pxcheck__row code { font-size: 12.5px; color: var(--mw-muted); }
.mw-pxcheck__ok { color: var(--mw-success); font-weight: 800; }
.mw-pxcheck__bad { color: #DC2626; font-weight: 800; }
.mw-pxcheck__off { color: var(--mw-muted); font-weight: 700; }
.mw-pxevents { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: var(--mw-blue-50); color: var(--mw-ink); font-size: 13.5px; }
.mw-pxevents ul { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 16px; }
.mw-pxevents li span { display: inline-block; font-weight: 800; color: var(--mw-blue); margin-right: 6px; }
.mw-pxevents small { color: var(--mw-muted); font-size: 12px; line-height: 1.45; display: block; }

/* 4.0.32 — Datos e inteligencia: uso de la plataforma */
.mw-ins__usage .mw-card__body { display: flex; flex-direction: column; gap: 6px; }
.mw-ins__periods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 10px 0 8px; }
@media (max-width: 1100px) { .mw-ins__periods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mw-ins__periods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mw-ins__period { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: 16px; background: var(--mw-bg); border: 1px solid var(--mw-border); min-width: 0; }
.mw-ins__period:first-child { background: var(--mw-blue-50); border-color: rgba(52, 92, 212, .25); }
.mw-ins__periodLabel { font-size: 12px; font-weight: 800; color: var(--mw-muted); text-transform: uppercase; letter-spacing: .05em; }
.mw-ins__periodValue { font-size: 34px; font-weight: 800; color: var(--mw-ink); letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mw-ins__periodSub { font-size: 12.5px; font-weight: 600; color: var(--mw-blue); }
.mw-ins__periodList { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--mw-border); display: flex; flex-direction: column; gap: 4px; }
.mw-ins__periodList li { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--mw-muted); }
.mw-ins__periodList b { min-width: 34px; text-align: right; font-size: 13px; color: var(--mw-ink); font-variant-numeric: tabular-nums; }
.mw-ins__grid--flat { margin-top: 6px; }
.mw-ins__monthly { margin-top: 6px; }
.mw-ins__monthlyHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mw-ins__seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mw-bg); border: 1px solid var(--mw-border); }
.mw-ins__segBtn { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--mw-muted); background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.mw-ins__segBtn.is-active { background: #fff; color: var(--mw-blue); box-shadow: 0 1px 3px rgba(15, 27, 61, .12); }
.mw-ins__insight--flat { background: var(--mw-bg); color: var(--mw-muted); font-weight: 600; }
.mw-ins .mw-card__body > .mw-h3, .mw-ins__head .mw-h3 { font-size: 18px; }

/* 4.0.32 — variables de gráficos también en Datos e inteligencia y Píxeles */
.mw-ins, .mw-tools { --viz-accent: #345CD4; --viz-wash: rgba(52, 92, 212, .10); --viz-track: #E3E9FA; --viz-grid: #EEF1F7; --viz-muted: #98A2B8; }
.mw-ins .mw-hbars__track { background: var(--viz-track); }
/* 4.0.32 — ajustes finos Datos e inteligencia */
.mw-ins__mini { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.mw-ins__crossRow { grid-template-columns: minmax(118px, 1fr) minmax(80px, 2fr) auto; }
.mw-pxcheck[hidden] { display: none; }

/* 4.0.33 — Planes: pantalla gris (Pro), Mi plan, Descargar mis datos y Superadmin › Planes y cobros */
.mw-nav__pro { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--mw-blue); background: var(--mw-surface); border: 1px solid var(--mw-blue-100); border-radius: 999px; padding: 2px 8px; line-height: 1.4; flex: 0 0 auto; }
.mw-nav__pro.is-locked { color: #fff; background: var(--mw-gradient); border-color: transparent; }
.mw-nav__pro svg { width: 11px; height: 11px; }

.mw-paywall { display: grid; position: relative; }
.mw-paywall > * { grid-area: 1 / 1; min-width: 0; }
.mw-paywall__stage { max-height: 780px; overflow: hidden; filter: grayscale(1); opacity: .42; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(#000 45%, transparent 96%); mask-image: linear-gradient(#000 45%, transparent 96%); }
.mw-paywall__veil { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; padding: 28px 0 40px; background: linear-gradient(180deg, rgba(244, 246, 251, .35) 0, rgba(244, 246, 251, .85) 220px); }
.mw-paywall--preview .mw-paywall__veil { background: var(--mw-bg); border-radius: var(--mw-radius); padding: 24px 12px; }
.mw-paywall__card { width: 100%; max-width: 540px; background: var(--mw-surface); border: 1px solid var(--mw-border); border-radius: 22px; box-shadow: var(--mw-shadow-lg); padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.mw-paywall__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--mw-gradient); border-radius: 999px; padding: 5px 11px 5px 9px; }
.mw-paywall__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--mw-ink); letter-spacing: -.01em; text-wrap: balance; }
.mw-paywall__lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mw-text); }
.mw-paywall__note { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--mw-blue); background: var(--mw-blue-50); border-radius: 12px; padding: 10px 12px; }
.mw-paywall__note svg { flex: 0 0 auto; margin-top: 2px; }
.mw-paywall__list { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mw-paywall__list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--mw-border); }
.mw-paywall__list li.is-current { border-color: rgba(52, 92, 212, .35); background: var(--mw-blue-50); }
.mw-paywall__list li > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mw-paywall__list b { font-size: 14.5px; color: var(--mw-ink); }
.mw-paywall__list small { font-size: 13px; color: var(--mw-muted); line-height: 1.45; }
.mw-paywall__ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--mw-bg); color: var(--mw-blue); }
.mw-paywall__list li.is-current .mw-paywall__ico { background: #fff; }
.mw-paywall__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.mw-paywall__price { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 14px 13px; border-radius: 16px; border: 1.5px solid var(--mw-border); text-decoration: none; color: var(--mw-ink); background: var(--mw-surface); transition: border-color .15s, box-shadow .15s; }
.mw-paywall__price:hover { border-color: var(--mw-blue); box-shadow: var(--mw-ring); }
.mw-paywall__price.is-best { border-color: var(--mw-blue); background: linear-gradient(180deg, var(--mw-blue-50), #fff 70%); }
.mw-paywall__priceTag { position: absolute; top: -10px; left: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--mw-success); border-radius: 999px; padding: 2px 8px; }
.mw-paywall__priceName { font-size: 12.5px; font-weight: 800; color: var(--mw-muted); text-transform: uppercase; letter-spacing: .05em; }
.mw-paywall__priceValue { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mw-paywall__priceValue small { font-size: 13px; font-weight: 700; color: var(--mw-muted); margin-left: 2px; letter-spacing: 0; }
.mw-paywall__priceValue s, .mw-plan__price b s { font-size: .55em; font-weight: 700; color: var(--mw-soft); letter-spacing: 0; margin-left: 4px; }
.mw-paywall__price.is-promo .mw-paywall__priceTag { background: var(--mw-danger); }
.mw-paywall__priceSub { font-size: 12.5px; color: var(--mw-muted); }
.mw-paywall__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.mw-paywall__actions .mw-btn { flex: 1 1 200px; justify-content: center; }
.mw-paywall__foot { margin: 0; text-align: center; font-size: 12.5px; color: var(--mw-muted); }
.mw-paywall__foot a { color: var(--mw-blue); font-weight: 700; }
@media (max-width: 520px) {
  .mw-paywall__veil { padding-top: 12px; }
  .mw-paywall__card { padding: 22px 18px 18px; border-radius: 18px; }
  .mw-paywall__title { font-size: 21px; }
  .mw-paywall__prices { grid-template-columns: 1fr; gap: 14px; }
}

/* Mi plan */
.mw-plan [hidden], .mw-pa [hidden], .mw-paywall [hidden] { display: none !important; }
.mw-plan { display: flex; flex-direction: column; gap: 18px; }
.mw-plan .mw-page-head { margin-bottom: 0; }
.mw-plan__now .mw-card__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mw-plan__nowMain { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mw-plan__nowMain > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mw-plan__nowIcon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--mw-gradient); color: #fff; flex: 0 0 auto; }
.mw-plan__eyebrow { font-size: 11.5px; font-weight: 800; color: var(--mw-muted); text-transform: uppercase; letter-spacing: .06em; }
.mw-plan__nowName { font-size: 22px; font-weight: 800; color: var(--mw-ink); letter-spacing: -.01em; }
.mw-plan__nowMain small, .mw-plan__nowPro small { font-size: 13px; color: var(--mw-muted); }
.mw-plan__nowPro { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; max-width: 380px; }
@media (max-width: 640px) { .mw-plan__nowPro { align-items: flex-start; text-align: left; } }
.mw-plan__periodWrap { display: flex; justify-content: center; }
.mw-plan__period { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mw-surface); border: 1px solid var(--mw-border); box-shadow: var(--mw-shadow-sm); }
.mw-plan__periodBtn { font: inherit; font-size: 14px; font-weight: 700; color: var(--mw-muted); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.mw-plan__periodBtn em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--mw-success); background: var(--mw-success-50); border-radius: 999px; padding: 2px 7px; }
.mw-plan__periodBtn.is-active { background: var(--mw-ink); color: #fff; }
.mw-plan__periodBtn.is-active em { background: rgba(255, 255, 255, .16); color: #BFF0D6; }
.mw-plan__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .mw-plan__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; width: 100%; } }
.mw-plan__tier { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--mw-surface); border: 1px solid var(--mw-border); box-shadow: var(--mw-shadow); min-width: 0; }
.mw-plan__tier header { display: flex; flex-direction: column; gap: 6px; }
.mw-plan__tier header p { margin: 0; font-size: 13.5px; color: var(--mw-muted); line-height: 1.5; }
.mw-plan__tier--pro { border: 2px solid var(--mw-blue); box-shadow: 0 24px 60px -28px rgba(52, 92, 212, .55); }
.mw-plan__tier.is-mine:not(.mw-plan__tier--pro) { border-color: rgba(31, 157, 99, .45); }
.mw-plan__tierName { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--mw-muted); text-transform: uppercase; letter-spacing: .06em; }
.mw-plan__tierName em { font-style: normal; font-size: 10.5px; color: #fff; background: var(--mw-gradient); border-radius: 999px; padding: 2px 8px; letter-spacing: .04em; }
.mw-plan__price { display: flex; flex-direction: column; gap: 2px; }
.mw-plan__price b { font-size: 30px; font-weight: 800; color: var(--mw-ink); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mw-plan__price small { font-size: 13px; color: var(--mw-muted); }
.mw-plan__list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--mw-border); display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.mw-plan__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--mw-text); line-height: 1.45; }
.mw-plan__list li svg { flex: 0 0 auto; margin-top: 2px; color: var(--mw-success); }
.mw-plan__list--pro li svg { color: var(--mw-blue); }
.mw-plan__list li.is-from { background: var(--mw-blue-50); border-radius: 10px; padding: 6px 8px; margin: -6px -8px; font-weight: 700; color: var(--mw-ink); }
.mw-plan__cta { display: flex; flex-direction: column; gap: 8px; }
.mw-plan__ctaNote { font-size: 12.5px; color: var(--mw-muted); text-align: center; }
.mw-plan__mine { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--mw-success); background: var(--mw-success-50); border-radius: 12px; padding: 10px; }
.mw-plan__team { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--mw-text); background: var(--mw-bg); border-radius: 12px; padding: 10px 12px; }
.mw-plan__team svg { flex: 0 0 auto; margin-top: 1px; color: var(--mw-blue); }
.mw-plan__data .mw-card__body { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mw-plan__dataIcon { width: 46px; height: 46px; border-radius: 14px; background: var(--mw-success-50); color: var(--mw-success); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mw-plan__dataText { flex: 1 1 320px; min-width: 0; }
.mw-plan__dataText .mw-h3 { margin: 0 0 4px; }
.mw-plan__dataText p { margin: 0; font-size: 14px; color: var(--mw-muted); line-height: 1.55; max-width: 70ch; }
.mw-plan__faq { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.mw-plan__faq .mw-h3 { margin: 6px 0 4px; }
.mw-plan__faq details { background: var(--mw-surface); border: 1px solid var(--mw-border); border-radius: 14px; padding: 0 16px; }
.mw-plan__faq summary { cursor: pointer; font-weight: 700; color: var(--mw-ink); padding: 14px 0; font-size: 14.5px; }
.mw-plan__faq details p { margin: 0 0 14px; font-size: 14px; color: var(--mw-text); line-height: 1.6; }

/* Descargar mis datos (en Descargar contactos) */
.mw-mydata { margin-top: 16px; }
.mw-mydata .mw-card__body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mw-mydata__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mw-success-50); color: var(--mw-success); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mw-mydata__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; min-width: 0; }
.mw-mydata__text b { font-size: 15px; color: var(--mw-ink); }
.mw-mydata__text span { font-size: 13.5px; color: var(--mw-muted); line-height: 1.5; }

/* Superadmin › Planes y cobros */
.mw-pa { display: flex; flex-direction: column; gap: 18px; }
.mw-pa__status { padding: 14px 16px; border-radius: 16px; background: var(--mw-success-50); border: 1px solid rgba(31, 157, 99, .25); }
.mw-pa__status.is-on { background: var(--mw-warning-50); border-color: rgba(245, 165, 36, .4); }
.mw-pa__statusRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--mw-ink); }
.mw-pa__statusRow i { font-style: normal; color: var(--mw-soft); }
.mw-pa__status p { margin: 6px 0 0; font-size: 13px; color: var(--mw-text); }
.mw-pa__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .mw-pa__grid { grid-template-columns: 1fr; } }
.mw-pa .mw-card__body > .mw-h3 { margin: 0 0 2px; }
.mw-pa .mw-card__body > .mw-h3 + .mw-small { margin: 0 0 14px; }
.mw-pa__form { display: flex; flex-direction: column; gap: 12px; }
.mw-pa__form .mw-switchrow { border-top: 0; padding: 4px 0; }
.mw-pa__inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mw-pa__inline .mw-input { flex: 1 1 220px; min-width: 0; }
.mw-pa__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.mw-pa__chips .mw-chip button { font: inherit; border: 0; background: transparent; color: var(--mw-muted); cursor: pointer; padding: 0 0 0 2px; font-size: 15px; line-height: 1; }
.mw-pa__actions { display: flex; justify-content: flex-end; }
.mw-pa__sub { margin: 18px 0 8px; font-size: 13px; font-weight: 800; color: var(--mw-ink); text-transform: uppercase; letter-spacing: .04em; }
.mw-pa__yes { color: var(--mw-success); font-weight: 800; }
.mw-pa__no { color: var(--mw-soft); }
.mw-pa__warn { color: var(--mw-danger); font-weight: 700; }
.mw-pa__user { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--mw-border); display: flex; flex-direction: column; gap: 12px; }
.mw-pa__userHead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mw-pa__userHead p { margin: 4px 0 0; }
.mw-pa__userName { font-size: 17px; color: var(--mw-ink); }
.mw-pa__feats { display: flex; flex-wrap: wrap; gap: 6px; }
.mw-pa__feats .mw-chip.is-yes { color: var(--mw-success); border-color: rgba(31, 157, 99, .3); }
.mw-pa__feats .mw-chip.is-no { color: var(--mw-danger); border-color: rgba(229, 72, 77, .3); }
.mw-pa__grant { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; border-radius: 14px; background: var(--mw-bg); }
.mw-pa__grant .mw-field { margin: 0; min-width: 150px; }
.mw-pa__grow { flex: 1 1 220px; }
.mw-pa__previewHead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mw-pa__previewHead .mw-small { margin: 2px 0 0; }
.mw-pa__teams td { vertical-align: top; }
.mw-pa__promo { margin: 4px 0 0; padding: 12px 14px 14px; border: 1px solid var(--mw-border); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mw-pa__promo legend { padding: 0 6px; font-size: 12.5px; font-weight: 800; color: var(--mw-ink); text-transform: uppercase; letter-spacing: .04em; }
.mw-pa__promoGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mw-pa__promoGrid .mw-field { margin: 0; min-width: 0; }
.mw-pa__promoTag { display: inline-block; margin-top: 4px; color: var(--mw-danger); font-weight: 700; }

/* 4.0.35 — Superadmin › Integraciones › Correos automáticos */
.mw-mailcfg__body { display: flex; flex-direction: column; gap: 12px; }
.mw-mailcfg__body .mw-switchrow { border-top: 0; padding: 4px 0; }
.mw-mailcfg__events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; padding: 12px 14px; border-radius: 14px; background: var(--mw-bg); }
.mw-mailcfg__events .mw-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mw-text); }
.mw-mailcfg__test { display: flex; flex-wrap: wrap; gap: 8px; }
.mw-mailcfg__test .mw-input { flex: 1 1 240px; min-width: 0; }
.mw-mailcfg__log summary { cursor: pointer; font-weight: 700; color: var(--mw-ink); font-size: 14px; padding: 6px 0; }

/* 4.0.35 — Escanear tarjeta: cámara en vivo */
.mw-modal [hidden] { display: none !important; }
.mw-scan__cam { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh; border-radius: 16px; overflow: hidden; background: #0B1220; }
.mw-scan__cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mw-scan__frame { position: absolute; border: 3px solid rgba(255, 255, 255, .92); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(11, 18, 32, .5); pointer-events: none; }
.mw-scan__frame span { position: absolute; left: 0; right: 0; top: -30px; text-align: center; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.mw-scan__shoot { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .95); background: transparent; padding: 4px; cursor: pointer; }
.mw-scan__shoot i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .12s; }
.mw-scan__shoot:active i { transform: scale(.88); }
.mw-scan__shoot:disabled { opacity: .6; }
.mw-scan__upload { position: absolute; right: 12px; bottom: 30px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.mw-scan__cammsg { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--mw-warning-50); color: #8A5A12; font-size: 13px; line-height: 1.5; }
@media (max-width: 520px) { .mw-scan__cam { aspect-ratio: 3 / 4; } .mw-scan__upload { bottom: auto; top: 12px; } }

/* 4.0.36 — Correos: proveedor (Resend o servidor), cupos y uso */
.mw-mailcfg [hidden] { display: none !important; }
.mw-mailcfg__prov { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--mw-border); border-radius: 14px; }
.mw-mailcfg__provhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mw-mailcfg__provhead > b { color: var(--mw-ink); font-size: 14px; }
.mw-mailcfg__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mw-bg); gap: 2px; }
.mw-mailcfg__seg label { position: relative; cursor: pointer; }
.mw-mailcfg__seg input { position: absolute; opacity: 0; pointer-events: none; }
.mw-mailcfg__seg span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--mw-muted); }
.mw-mailcfg__seg input:checked + span { background: var(--mw-surface, #fff); color: var(--mw-blue); box-shadow: var(--mw-shadow-sm); }
.mw-mailcfg__seg input:focus-visible + span { outline: 2px solid var(--mw-blue); outline-offset: 1px; }
.mw-mailcfg__resend { display: flex; flex-direction: column; gap: 10px; }
.mw-mailcfg__resend .mw-field + .mw-field, .mw-mailcfg__caps .mw-field + .mw-field { margin-top: 0; }
.mw-mailcfg__delkey { align-self: flex-start; }
.mw-mailcfg__caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 12px; }
.mw-mailcfg__usage { display: flex; flex-direction: column; gap: 8px; }
.mw-mailcfg__use { display: grid; grid-template-columns: 72px 1fr; gap: 2px 10px; align-items: center; font-size: 13px; color: var(--mw-text); font-variant-numeric: tabular-nums; }
.mw-mailcfg__use b { color: var(--mw-ink); }
.mw-mailcfg__bar { grid-column: 1 / -1; position: relative; display: block; height: 8px; border-radius: 999px; background: var(--mw-bg); overflow: hidden; }
.mw-mailcfg__bar i { position: absolute; inset: 0 auto 0 0; width: var(--used); background: var(--mw-blue); border-radius: 999px; }
.mw-mailcfg__bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--cap); width: 2px; background: var(--mw-danger); opacity: .6; }
.mw-notify-lock { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--mw-bg); font-size: 14px; color: var(--mw-text); }

/* 4.0.38 — Moderación: pantalla de cuenta bloqueada y superadmin */
.mw-blocked { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--mw-bg); box-sizing: border-box; }
.mw-blocked__card { width: 100%; max-width: 560px; background: var(--mw-surface, #fff); border: 1px solid var(--mw-border); border-radius: 22px; padding: 28px 24px; box-shadow: var(--mw-shadow); display: flex; flex-direction: column; gap: 14px; }
.mw-blocked__logo { width: 150px; height: auto; }
.mw-blocked__icon { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #FDECEC; color: var(--mw-danger); }
.mw-blocked__icon svg { width: 24px; height: 24px; }
.mw-blocked h1 { margin: 0; font-size: 22px; line-height: 1.25; color: var(--mw-ink); }
.mw-blocked p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mw-text); }
.mw-blocked__note { background: var(--mw-bg); border-radius: 12px; padding: 10px 12px; }
.mw-blocked__items { background: var(--mw-bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--mw-text); }
.mw-blocked__items span { font-size: 12px; font-weight: 700; color: var(--mw-muted); text-transform: uppercase; letter-spacing: .5px; }
.mw-blocked__items ul { margin: 6px 0 0; padding-left: 18px; }
.mw-blocked__appeal { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--mw-border); padding-top: 14px; }
.mw-blocked__appeal label { font-size: 14px; line-height: 1.5; color: var(--mw-text); }
.mw-blocked__appeal textarea { width: 100%; box-sizing: border-box; min-height: 110px; resize: vertical; font: inherit; }
.mw-blocked__appeal button { align-self: flex-start; }
.mw-blocked__status { display: flex; flex-direction: column; gap: 4px; background: #EEF3FF; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--mw-text); }
.mw-blocked__status b { color: var(--mw-ink); }
.mw-blocked__rules summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--mw-ink); }
.mw-blocked__rules ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--mw-text); }
.mw-blocked__logout { align-self: flex-start; }
.mw-mod { display: flex; flex-direction: column; gap: 16px; }
.mw-mod [hidden] { display: none !important; }
.mw-mod__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mw-mod__stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.mw-mod__stat span { font-size: 12px; font-weight: 700; color: var(--mw-muted); text-transform: uppercase; letter-spacing: .4px; }
.mw-mod__stat b { font-size: 26px; color: var(--mw-ink); font-variant-numeric: tabular-nums; }
.mw-mod__cases { display: flex; flex-direction: column; gap: 12px; }
.mw-mod__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mw-mod__chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mw-mod__chip { border: 1px solid var(--mw-border); background: var(--mw-surface, #fff); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--mw-muted); cursor: pointer; }
.mw-mod__chip.is-active { background: var(--mw-blue-50); color: var(--mw-blue); border-color: transparent; }
.mw-mod__case { border: 1px solid var(--mw-border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mw-mod__case.is-focus { border-color: var(--mw-blue); box-shadow: 0 0 0 3px var(--mw-blue-50); }
.mw-mod__case header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.mw-mod__case header a { color: var(--mw-ink); text-decoration: none; margin-right: 6px; }
.mw-mod__matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mw-mod__matches li { background: var(--mw-bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mw-mod__where { font-size: 13px; font-weight: 700; color: var(--mw-ink); }
.mw-mod__matches p { flex-basis: 100%; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--mw-text); word-break: break-word; }
.mw-mod__matches mark { background: #FDE68A; color: inherit; border-radius: 4px; padding: 0 2px; }
.mw-mod__appeal { margin: 0; border-left: 3px solid var(--mw-blue); background: var(--mw-blue-50); border-radius: 0 12px 12px 0; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: var(--mw-text); white-space: pre-wrap; }
.mw-mod__appeal span { display: block; font-size: 12px; font-weight: 700; color: var(--mw-blue); margin-bottom: 4px; }
.mw-mod__alert { background: #FDECEC; color: #7A1F1F; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; }
.mw-mod__alert a { color: inherit; font-weight: 700; }
.mw-mod__decide { display: flex; flex-direction: column; gap: 8px; }
.mw-mod__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mw-mod__hist summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--mw-muted); }
.mw-mod__hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; color: var(--mw-text); }
.mw-mod__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.mw-mod__config, .mw-mod__protocol { display: flex; flex-direction: column; gap: 12px; }
.mw-mod__config h3, .mw-mod__protocol h3 { margin: 0; font-size: 17px; color: var(--mw-ink); }
.mw-mod__config .mw-field + .mw-field { margin-top: 0; }
.mw-mod__config textarea { width: 100%; box-sizing: border-box; font: inherit; resize: vertical; }
.mw-mod__protocol ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--mw-text); }

/* 4.0.39 — Tu negocio (sector y ciudad) */
.mw-bizp { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; }
.mw-bizp .mw-field + .mw-field { margin-top: 0; }
.mw-bizp .mw-tool__actions { grid-column: 1 / -1; }
.mw-bizask { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 27, 61, .45); }
.mw-bizask[hidden] { display: none !important; }
.mw-bizask__card { width: 100%; max-width: 440px; background: var(--mw-surface, #fff); border-radius: 22px; padding: 24px 22px; box-shadow: var(--mw-shadow-lg, 0 30px 80px -20px rgba(15,27,61,.45)); display: flex; flex-direction: column; gap: 12px; }
.mw-bizask__card h2 { margin: 0; font-size: 20px; color: var(--mw-ink); }
.mw-bizask__card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mw-text); }
.mw-bizask__card .mw-field + .mw-field { margin-top: 0; }
.mw-bizask__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }


/* 4.0.40 — Cinta «Nuevo» en línea, a la derecha del nombre: ya no tapa los nombres largos (si no cabe, el nombre baja a 2 renglones) */
.mw-nav__item { height: auto; min-height: 42px; padding-block: 7px; }
.mw-nav__item > span { flex: 1 1 auto; white-space: normal; line-height: 1.25; overflow: visible; }
.mw-nav__new { position: static; margin-left: auto; flex: 0 0 auto; padding: 2px 6px 1px; border-radius: 999px; box-shadow: none; font-size: 8.5px; }
.mw-nav__new::after { display: none; }
.mw-nav__new + .mw-nav__badge, .mw-nav__new + .mw-nav__pro { margin-left: 0; }


/* 4.0.41 — Continuar con Google (login) */
.mw-gsi-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 14px; border: 1px solid #DADCE0; background: #fff; color: #1F1F1F; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s, box-shadow .15s; }
.mw-gsi-btn:hover { background: #F8FAFF; color: #1F1F1F; box-shadow: 0 2px 8px -4px rgba(15, 27, 61, .25); }
.mw-gsi-btn img { width: 18px; height: 18px; }
.mw-auth__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--mw-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mw-auth__or::before, .mw-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--mw-border); }
.mw-auth__alert { margin: -8px 0 18px; padding: 12px 14px; border-radius: 12px; background: #FFF4E5; border: 1px solid rgba(217, 119, 6, .25); color: #7A4A06; font-size: 14px; line-height: 1.45; }
/* 4.0.41 — Licencias: buscador, filtros, visitas y suspender */
.licenses__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.licenses__tools .mw-input, .licenses__tools .mw-select { width: auto; height: 40px; }
.licenses__search { width: 240px; min-width: 0; }
.lic-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.lic-actions .mw-btn svg { width: 15px; height: 15px; }
.lic-nfc { display: block; font-size: 11px; font-weight: 700; color: var(--mw-blue); }
.licenses__table tr.is-suspended td { background: #FFFBF3; }
@media (max-width: 640px) { .licenses__tools { width: 100%; } .licenses__search { width: auto; flex: 1 1 100%; } }

/* 4.0.44 — miwibiID: encabezado del registro en celulares angostos (el logo nuevo es más alto) */
@media (max-width: 420px) { .mw-sso__top { padding: 14px 16px; } .mw-sso__top img { width: 150px; } .mw-sso__top .mw-pill { font-size: 11px; padding: 4px 8px; } }

/* 4.0.45 — Tienda: invitación a miwibiSAAP (tienda online gratis con pedidos por WhatsApp) */
.mw-saap { --saap: #26A637; --saap-600: #1F8C2E; display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 18px; padding: 0; overflow: hidden; border-color: rgba(38, 166, 55, .22); background: linear-gradient(150deg, #FFFFFF 0%, #F3FBF5 100%); }
.mw-saap__vis { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; padding: 22px 16px 0; background: linear-gradient(160deg, #EAF8ED 0%, #D6F1DC 100%); }
.mw-saap__vis img { display: block; width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 18px 24px rgba(15, 27, 61, .2)); }
.mw-saap__txt { padding: 24px 26px 24px 0; }
.mw-saap__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--mw-blue); }
.mw-saap__brand img { height: 22px; width: auto; }
.mw-saap__brand span { color: var(--saap); }
.mw-saap h3 { margin: 10px 0 8px; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; color: var(--mw-ink); text-wrap: balance; }
.mw-saap p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--mw-muted); max-width: 64ch; }
.mw-saap__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mw-saap__list li { position: relative; padding-left: 28px; font-size: 14px; font-weight: 600; color: var(--mw-ink); line-height: 1.45; }
.mw-saap__list li::before { content: ""; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--saap) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mw-saap__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mw-saap__btn { background: var(--saap); color: #fff; box-shadow: 0 10px 22px -12px rgba(38, 166, 55, .85); }
.mw-saap__btn:hover { background: var(--saap-600); color: #fff; }
.mw-saap__more { color: var(--mw-blue); font-weight: 700; font-size: 14px; }
.mw-saap__more:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .mw-saap { grid-template-columns: 1fr; gap: 0; }
  .mw-saap__vis { order: 2; padding-top: 12px; }
  .mw-saap__vis img { max-width: 250px; }
  .mw-saap__txt { padding: 22px 20px 18px; }
  .mw-saap__btn { flex: 1 1 100%; }
}
.mw-saap__logo { display: block; height: 28px; width: auto; max-width: 100%; }
