/* =========================================================
   Cartoncito · Panel de gestión
   Identidad: marca.html (Nunito + paleta papel/cartón/tinta/sello)
   ========================================================= */
:root {
  --papel: #FBF6EE;
  --papel-2: #F4EBDD;
  --carton: #D9A066;
  --pliegue: #B37A3E;
  --pliegue-txt: #8F5E2C;   /* del manual: el pliegue para texto chico (5,1:1 sobre papel) */
  --tinta: #2A1E16;
  --tinta-suave: #6E5C4D;
  --linea: #E8DCC9;
  --sello: #E4572E;
  --blanco: #FFFFFF;

  /* Estados (derivados de la paleta, solo para etiquetas) */
  --ok: #3F6B45;      --ok-bg: #E4EDDF;
  --riesgo: #B2401F;  --riesgo-bg: #FBE1D7;
  --nuevo: #8A5A26;   --nuevo-bg: #F6E4CC;

  --radius: 24px;
  --radius-sm: 14px;
  --sombra: 0 1px 0 rgba(42,30,22,.04), 0 10px 30px -18px rgba(42,30,22,.25);
  --ease-pop: cubic-bezier(.3,1.5,.5,1);
  --ease-out: cubic-bezier(.2,.9,.3,1);
  --nav-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--papel); color: var(--tinta);
  line-height: 1.45; -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  /* App en el inicio del celu (viewport-fit=cover): nada abajo del notch ni de los bordes redondeados. Abajo lo resuelve cada barra fija. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--carton); }
:focus-visible { outline: 2.5px solid var(--sello); outline-offset: 2px; border-radius: 8px; }
/* Tras un clic o un toque (html[data-puntero], lo pone app.js) no hay aro aunque el foco se mueva por código. Con teclado se ve siempre.
   Los campos de texto conservan el suyo: es donde se escribe. */
html[data-puntero] :focus-visible:not(input, textarea, select) { outline: none; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Isotipo y logotipo ---------- */
.iso { display: inline-block; line-height: 0; }
.iso svg { width: 100%; height: auto; display: block; overflow: visible; }
.iso .card { fill: var(--carton); }
.iso .fold { fill: var(--pliegue); }
.iso .on { fill: var(--tinta); }
.iso .off { fill: transparent; stroke: var(--tinta); stroke-width: 1.5; stroke-dasharray: 2 1.6; }
.iso .prize { fill: var(--sello); }
.wm { font-weight: 900; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.wm .i { position: relative; display: inline-block; }
.wm .i::after { content: ""; position: absolute; left: 50%; top: .07em; width: .185em; height: .185em; margin-left: -.0925em; border-radius: 50%; background: var(--sello); }
.lockup { display: inline-flex; align-items: center; gap: .32em; }
.lockup .iso { width: 1.28em; }

/* =========================================================
   Estructura: barra inferior (mobile) / lateral (desktop)
   ========================================================= */
.app { min-height: 100dvh; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: color-mix(in srgb, var(--papel) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--linea);
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.nav-brand, .nav-local, .nav-foot { display: none; }
.nav-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; height: var(--nav-h); list-style: none; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 800; color: var(--tinta-suave); text-decoration: none; position: relative;
  transition: color .2s;
}
.nav-item .ic { width: 24px; height: 24px; transition: transform .35s var(--ease-pop); }
.nav-item.active { color: var(--tinta); }
.nav-item.active .ic { transform: translateY(-1px) scale(1.08); }
.nav-item.active::before {
  content: ""; position: absolute; top: 7px; left: 50%; width: 46px; height: 32px; margin-left: -23px;
  background: var(--papel-2); border-radius: 999px; z-index: -1;
}
.nav-item .badge {
  position: absolute; top: 6px; left: 50%; margin-left: 8px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--sello); color: #fff; font-size: 11px; font-weight: 900;
  display: grid; place-items: center; border: 2px solid var(--papel);
}

main#view { padding: 0 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }

/* Cabecera mobile */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.topbar .lockup { font-size: 20px; }
.local-chip {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px;
  padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; border: 1.5px solid var(--linea);
}
.local-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--papel-2); }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 252px 1fr; }
  .nav {
    position: sticky; top: 0; height: 100dvh; bottom: auto; border-top: 0; border-right: 1px solid var(--linea);
    background: var(--papel); backdrop-filter: none; -webkit-backdrop-filter: none;
    display: flex; flex-direction: column; padding: 26px 18px 22px;
  }
  .nav-brand { display: block; font-size: 25px; padding: 0 10px; text-decoration: none; }
  .nav-local { display: flex; margin: 22px 0 18px; }
  .nav-local .local-chip { width: 100%; padding: 8px 12px 8px 8px; border-radius: 18px; font-size: 14.5px; }
  .nav-local .local-chip img { width: 34px; height: 34px; }
  .nav-local .local-chip small { display: block; font-weight: 700; font-size: 12px; color: var(--tinta-suave); }
  .nav-items { display: flex; flex-direction: column; gap: 4px; height: auto; }
  .nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15.5px; padding: 11px 14px; border-radius: 16px; }
  .nav-item:hover { background: var(--papel-2); color: var(--tinta); }
  .nav-item.active { background: var(--tinta); color: var(--papel); }
  .nav-item.active::before { display: none; }
  .nav-item .badge { position: static; margin-left: auto; border: 0; }
  .nav-foot { display: block; margin-top: auto; font-size: 13px; color: var(--tinta-suave); padding: 16px 10px 0; border-top: 1px solid var(--linea); }
  .nav-foot b { color: var(--tinta); display: block; }
  main#view { padding: 36px 40px 64px; width: 100%; }
  .topbar { display: none; }
}

/* =========================================================
   Tipografía y bloques
   ========================================================= */
.page-head { margin: 14px 0 20px; }
.page-head h1 { font-size: clamp(30px, 7vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.page-head p { color: var(--tinta-suave); font-size: 16px; margin-top: 6px; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--pliegue); display: inline-flex; align-items: center; gap: 7px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sello); }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.sec-title h2 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.sec-title span { font-size: 13.5px; color: var(--tinta-suave); font-weight: 700; }
.muted { color: var(--tinta-suave); }
.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radius); box-shadow: var(--sombra); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none;
  background: var(--tinta); color: var(--papel); transition: transform .25s var(--ease-pop), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn .ic { width: 19px; height: 19px; }
.btn-accion { background: var(--sello); color: #fff; box-shadow: 0 10px 22px -12px rgba(228,87,46,.7); }
.btn-suave { background: var(--papel-2); color: var(--tinta); }
.btn-borde { background: #fff; color: var(--tinta); border: 1.5px solid var(--linea); }
.btn-borde:hover { border-color: var(--carton); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { background: var(--papel-2); color: #A9998A; box-shadow: none; cursor: not-allowed; transform: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--tinta); transition: background .2s; }
.icon-btn:hover { background: var(--papel-2); }

/* ---------- Estados ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.habitual { color: var(--ok); background: var(--ok-bg); }
.pill.nuevo { color: var(--nuevo); background: var(--nuevo-bg); }
.pill.riesgo { color: var(--riesgo); background: var(--riesgo-bg); }   /* "Dejó de venir": riesgo y perdido */
.pill.plain::before { display: none; }

/* =========================================================
   HOY
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 14px 12px 13px; border-radius: 20px; background: #fff; border: 1px solid var(--linea); min-width: 0; }
.stat .lbl { font-size: 12.5px; font-weight: 800; color: var(--tinta-suave); line-height: 1.2; min-height: 2.4em; display: block; }
.stat .lbl-sub { display: block; font-weight: 700; font-size: 11.5px; opacity: .85; }
.stat .num { font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 6px 0 7px; display: block; }
.stat .num small { font-size: 18px; letter-spacing: -.02em; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 7px 2px 4px; }
.delta .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.delta.up { color: var(--ok); background: var(--ok-bg); }
.delta.down { color: var(--riesgo); background: var(--riesgo-bg); }
.delta.eq { color: var(--tinta-suave); background: var(--papel-2); padding-left: 7px; }
.stat .vs { display: block; font-size: 11.5px; color: var(--tinta-suave); margin-top: 5px; font-weight: 600; }
@media (min-width: 900px) {
  .stats { gap: 16px; }
  .stat { padding: 20px 22px; border-radius: var(--radius); }
  .stat .lbl { font-size: 14.5px; min-height: 0; }
  .stat .num { font-size: 46px; margin: 10px 0 12px; }
  .stat .num small { font-size: 24px; }
  .delta { font-size: 13px; }
}

.vacio { text-align: center; padding: 36px 24px; border: 2px dashed var(--linea); border-radius: var(--radius); }
.vacio .iso { width: 84px; margin-bottom: 14px; }
.vacio h3, .vacio h2 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.vacio p { color: var(--tinta-suave); margin-top: 6px; max-width: 36ch; margin-inline: auto; }

.nota-permiso { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; color: var(--tinta-suave); }
.nota-permiso .ic { width: 18px; height: 18px; margin-top: 1px; }

/* =========================================================
   CLIENTES
   ========================================================= */

.search { position: relative; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tinta-suave); width: 20px; height: 20px; }
.search input {
  width: 100%; height: 50px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff;
  padding: 0 18px 0 46px; font-size: 16px; font-weight: 600; outline: none;
}
.search input:focus { border-color: var(--carton); box-shadow: 0 0 0 4px rgba(217,160,102,.2); }
.cli-controles { display: grid; gap: 10px; margin-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco); font-weight: 800; font-size: 14px;
}
.fchip:hover { border-color: var(--carton); }
.fchip b { font-weight: 900; font-size: 12.5px; color: var(--tinta-suave); }
.fchip .dot { width: 8px; height: 8px; border-radius: 50%; }
.fchip .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.fchip[aria-checked="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.fchip[aria-checked="true"] b { color: var(--carton); }
.estado-desc { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--papel-2); font-size: 14.5px; }
.estado-desc b { font-weight: 900; }
.estado-desc a { color: var(--tinta); font-weight: 800; text-underline-offset: 3px; }

/* Arriba de la tabla: "Mostrando N de M" a la izquierda; "Escribirles a los N" y "Exportar" a la derecha (en el celu, a todo el ancho) */
.cli-acciones { display: grid; gap: 8px; margin: 14px 0 10px; }
.cli-resumen-txt { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.contador { font-size: 14px; color: var(--tinta-suave); font-weight: 700; }
.cli-resumen-txt .link-btn { min-height: 44px; font-size: 14px; text-underline-offset: 3px; }
.cli-btns { display: grid; gap: 8px; }
.cli-principal { display: grid; gap: 4px; }
.cli-btns .btn { width: 100%; }
.cli-nota { font-size: 12px; font-weight: 700; color: var(--tinta-suave); }
.cli-afuera { font-size: 12px; color: var(--tinta-suave); }
.cli-afuera[hidden] { display: none; }
.cli-afuera summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cli-afuera ul { display: grid; gap: 4px; max-width: 40ch; padding-left: 16px; }
@media (min-width: 900px) {
  .cli-acciones { grid-template-columns: 1fr auto; align-items: start; gap: 8px 16px; }
  .cli-resumen-txt { min-height: 46px; }
  .cli-btns { grid-template-columns: auto auto; align-items: start; }
  .cli-btns .btn { width: auto; }
  .cli-principal { justify-items: end; text-align: right; max-width: 300px; }
  .cli-afuera ul { text-align: left; }
}
.link-btn { min-height: 44px; padding: 0 6px; font-weight: 800; font-size: 14px; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.link-btn[hidden] { display: none; }

.exp { position: relative; }
.exp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; min-width: 250px; padding: 6px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radius-sm); box-shadow: var(--sombra); }
.exp-menu[hidden] { display: none; }
.exp-item { min-height: 44px; padding: 0 14px; border-radius: 10px; text-align: left; font-weight: 800; font-size: 14.5px; }
.exp-item:hover { background: var(--papel-2); }
.exp-item[aria-disabled="true"] { color: var(--tinta-suave); cursor: not-allowed; }
.exp-item[aria-disabled="true"]:hover { background: none; }

.tabla-wrap { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden; }
.tabla-clientes { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tabla-clientes th { background: var(--papel); border-bottom: 1px solid var(--linea); text-align: left; vertical-align: middle; padding: 0 2px; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--tinta-suave); }
.tabla-clientes th.tc-cli, .tabla-clientes th.tc-est { padding: 14px 10px; }
.th-orden { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 44px; padding: 0 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; }
.th-orden.on { color: var(--tinta); }
th.tc-ult .th-orden { justify-content: flex-start; }
.th-orden .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.th-orden:not(.on) .ic { opacity: .45; }
.tabla-clientes td { padding: 6px 2px; border-bottom: 1px solid var(--linea); vertical-align: middle; font-size: 14px; font-weight: 700; }
.tabla-clientes tbody tr:last-child td { border-bottom: 0; }
.tabla-clientes tbody tr { cursor: pointer; }
.tabla-clientes tbody tr:hover { background: var(--papel); }
.tc-cli { width: auto; }
.tc-num { width: 66px; text-align: center; font-variant-numeric: tabular-nums; }
.tc-ult { width: 84px; color: var(--tinta-suave); }
.tc-est { display: none; }
.tc-nombre { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 2px 8px; text-align: left; }
.tc-nombre .av { display: none; }
.tc-txt { min-width: 0; display: grid; gap: 4px; }
.tc-nombre .nom { font-weight: 800; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.tc-pill-m { justify-self: start; white-space: normal; text-align: left; border-radius: 12px; }
.tc-premio { display: inline-flex; vertical-align: middle; margin-left: 4px; color: var(--ok); }
.tc-premio .ic { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .tabla-clientes th { font-size: 12px; letter-spacing: .1em; }
  .tabla-clientes td { padding: 8px 10px; font-size: 14.5px; }
  .tc-est { display: table-cell; width: 230px; }
  .tc-num { width: 110px; }
  .tc-ult { width: 160px; }
  .tc-pill-m { display: none; }
  .tc-nombre .av { display: grid; }
  .th-orden { padding: 0 8px; }
}

.av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px;
  background: var(--papel-2); color: var(--tinta); flex: none; letter-spacing: -.02em;
}
.av.c1 { background: #F6E4CC; } .av.c2 { background: #E4EDDF; } .av.c3 { background: #EFE0F0; } .av.c4 { background: #DDE9F2; } .av.c5 { background: #FBE1D7; }
.sin-resultados { padding: 40px 20px; text-align: center; color: var(--tinta-suave); display: grid; justify-items: center; gap: 14px; }
.ver-mas { margin-top: 14px; }


/* ---------- Sellos (puntitos) ---------- */
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px dashed var(--carton); }
.dots i.on { background: var(--tinta); border: 2px solid var(--tinta); }
.dots i.premio { border-color: var(--sello); border-style: solid; }
.dots i.premio.on { background: var(--sello); }
.dots i.tier { border: 2px solid var(--pliegue); }
.dots i.tier.on { background: var(--pliegue); }
.dots.sm i { width: 10px; height: 10px; border-width: 1.5px; }

/* =========================================================
   HOJA (bottom sheet en mobile, cajón lateral en desktop)
   ========================================================= */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(42,30,22,.38); opacity: 0; transition: opacity .3s; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--papel); border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .38s var(--ease-out);
  box-shadow: 0 -20px 50px -20px rgba(42,30,22,.4);
}
.sheet.open { transform: none; }
.sheet-bg.open { opacity: 1; }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: var(--linea); margin: 9px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 20px; flex: none; }
.sheet-head h2 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; flex: 1; line-height: 1.2; }
.sheet-body { overflow-y: auto; padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; width: 480px; max-height: none; border-radius: 26px 0 0 26px; transform: translateX(100%); }
  .sheet-grip { display: none; }
  .sheet-head { padding: 22px 20px 10px 28px; }
  .sheet-body { padding: 4px 28px 32px; }
}

/* Ficha del cliente */
.ficha-top { display: flex; gap: 14px; align-items: center; }
.ficha-top .av { width: 60px; height: 60px; font-size: 20px; }
.ficha-top h3 { font-size: 24px; font-weight: 900; letter-spacing: -.025em; line-height: 1.1; }
.ficha-top .tel { font-size: 14.5px; color: var(--tinta-suave); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.ficha-top .tel .ic { width: 16px; height: 16px; }
.permiso { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 16px; margin-top: 16px; font-size: 13.5px; }
.permiso .ic { width: 20px; height: 20px; }
.permiso b { display: block; font-size: 14px; }
.permiso.si { background: var(--ok-bg); color: var(--ok); }
.permiso.no { background: var(--papel-2); color: var(--tinta-suave); }
.permiso.no b { color: var(--tinta); }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.dato { background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: 12px 14px; }
.dato span { display: block; font-size: 12px; font-weight: 800; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: .06em; }
.dato b { display: block; font-size: 18px; font-weight: 900; margin-top: 3px; letter-spacing: -.01em; line-height: 1.2; }
.dato small { display: block; font-size: 12.5px; color: var(--tinta-suave); font-weight: 600; margin-top: 2px; }
.dato.wide { grid-column: 1 / -1; }
.dato .dots { margin-top: 8px; }
.aviso-regla { font-size: 12.5px; color: var(--pliegue); font-weight: 700; margin-top: 8px; }
.msg-box { margin-top: 18px; background: #fff; border: 1px solid var(--linea); border-radius: 20px; padding: 14px; }
.msg-box label { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); display: block; margin-bottom: 8px; }
.msg-box textarea {
  width: 100%; min-height: 92px; border: 0; resize: vertical; outline: none; font-size: 15.5px; line-height: 1.45;
  background: #E7F6DD; border-radius: 14px 14px 14px 4px; padding: 11px 13px; color: #1b2a14;
}
.msg-box textarea:disabled { background: var(--papel-2); color: var(--tinta-suave); resize: none; min-height: 0; }
.msg-box .btn { margin-top: 12px; }
.historial { list-style: none; margin-top: 8px; position: relative; }
.historial li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; font-size: 14.5px; border-bottom: 1px dashed var(--linea); }
.historial li:last-child { border-bottom: 0; }
.historial .h-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tinta); margin-top: 4px; }
.historial .h-dot.canje { background: var(--sello); }
.historial .h-dot.alta { background: var(--carton); }
.historial b { font-weight: 800; }
.historial small { color: var(--tinta-suave); font-size: 13px; display: block; }
.historial .h-when { font-size: 13px; color: var(--tinta-suave); font-weight: 700; white-space: nowrap; }

/* Lista de contacto (acciones) */
.contacto-lista { list-style: none; display: grid; gap: 8px; }
.contacto { background: #fff; border: 1px solid var(--linea); border-radius: 20px; padding: 12px; }
.contacto-top { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.contacto .av { width: 40px; height: 40px; font-size: 14px; }
.contacto .nom { font-weight: 800; display: block; line-height: 1.2; }
.contacto .sub { font-size: 13px; color: var(--tinta-suave); }
.contacto .preview { font-size: 13.5px; color: var(--tinta-suave); margin: 10px 0 0; padding: 9px 11px; background: var(--papel); border-radius: 12px; }
.contacto.hecho { opacity: .65; }
.hecho-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13.5px; color: var(--ok); padding: 0 8px; }
.hecho-tag .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.link-ficha { font-size: 13px; font-weight: 800; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; display: inline-block; }

/* ---------- Modal de confirmación ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(42,30,22,.45); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.modal-bg.open { opacity: 1; }
.modal { background: var(--papel); border-radius: var(--radius); padding: 24px; max-width: 440px; width: 100%; transform: scale(.94); transition: transform .3s var(--ease-pop); }
.modal-bg.open .modal { transform: none; }
.modal .m-ic { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--nuevo-bg); color: var(--pliegue); margin-bottom: 14px; }
.modal h3 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.modal p { color: var(--tinta-suave); margin-top: 8px; }
.modal ul { margin: 12px 0 0 0; list-style: none; display: grid; gap: 6px; }
.modal li { font-size: 14.5px; padding: 8px 12px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; }
.modal .m-acts { display: flex; gap: 8px; margin-top: 20px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--tinta); color: var(--papel); font-weight: 800; font-size: 14.5px; padding: 12px 18px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 14px 30px -12px rgba(42,30,22,.6); transition: all .35s var(--ease-pop);
  max-width: calc(100vw - 32px);
}
.toast .ic { width: 18px; height: 18px; color: var(--carton); stroke-width: 2.6; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; left: calc(50% + 126px); } }

/* =========================================================
   FORMULARIOS
   ========================================================= */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 800; }
.field .hint { font-size: 13px; color: var(--tinta-suave); }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--linea); background: #fff;
  padding: 10px 14px; font-size: 16px; font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus { border-color: var(--carton); box-shadow: 0 0 0 4px rgba(217,160,102,.2); }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.switch-row + .switch-row { border-top: 1px solid var(--linea); }
.switch-row .txt b { display: block; font-size: 15px; }
.switch-row .txt span { font-size: 13px; color: var(--tinta-suave); }
/* Tarjeta → Reglas: pedir el cumpleaños (cuándo) y el aviso suave del regalo sin pedir */
.cumple-cuando { margin: 0 0 10px; padding: 0; border: 0; }
.cumple-cuando legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 800; color: var(--tinta-suave); }
.radio-op { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--linea); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.radio-op + .radio-op { margin-top: 8px; }
.radio-op input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--tinta); }
.radio-op:has(input:checked) { border-color: var(--tinta); }
.radio-op:has(input:focus-visible) { outline: 2.5px solid var(--sello); outline-offset: 2px; }
.cumple-sello { margin: 10px 0 0; }
.aviso-suave { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--papel-2); color: var(--tinta-suave); font-size: 13.5px; line-height: 1.4; }
.aviso-suave .ic { width: 18px; height: 18px; flex: none; color: var(--pliegue-txt); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--linea); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(42,30,22,.25); transition: transform .3s var(--ease-pop); }
.switch input:checked + i { background: var(--tinta); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2.5px solid var(--sello); outline-offset: 2px; }

.stepper { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--linea); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--papel-2); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper button .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper output { min-width: 44px; text-align: center; font-weight: 900; font-size: 18px; }

.seg { display: inline-flex; background: var(--papel-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: var(--tinta-suave); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--tinta); box-shadow: 0 2px 8px -3px rgba(42,30,22,.3); }

/* =========================================================
   TARJETA (configurador)
   ========================================================= */
.cfg { display: grid; gap: 16px; }
@media (min-width: 900px) { .cfg { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; } }
.cfg > * { min-width: 0; }
.cfg-preview { order: -1; }
@media (min-width: 900px) { .cfg-preview { order: 2; position: sticky; top: 24px; } }
.preview-box { background: var(--papel-2); border-radius: var(--radius); padding: 14px 14px 16px; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.preview-stage { display: grid; place-items: center; min-height: 200px; }
.preview-nota { font-size: 12.5px; color: var(--tinta-suave); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.preview-nota .ic { width: 16px; height: 16px; margin-top: 1px; }

.cfg-tabs { position: sticky; top: 0; z-index: 6; background: var(--papel); margin: 0 -16px; padding: 8px 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cfg-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .cfg-tabs { margin: 0; padding: 0 0 6px; position: static; } }
.cfg-tab { height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 14.5px; white-space: nowrap; border: 1.5px solid var(--linea); background: #fff; }
.cfg-ver { display: grid; place-items: center; padding: 0 11px; background: var(--papel-2); border-color: var(--papel-2); }
.cfg-ver .ic { width: 20px; height: 20px; }
@media (min-width: 900px) { .cfg-ver { display: none; } }
body.con-cambios main#view { padding-bottom: calc(var(--nav-h) + 110px + env(safe-area-inset-bottom)); }
.cfg-tab.on { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.cfg-panel { padding: 20px; }
.cfg-panel h3 { font-size: 18px; font-weight: 900; letter-spacing: -.015em; }
.cfg-panel h3 + p { color: var(--tinta-suave); font-size: 14px; margin: 2px 0 16px; }
.cfg-sub { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); margin: 24px 0 10px; }

.rubros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .rubros { grid-template-columns: repeat(5, 1fr); } }
.rubro {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 18px;
  border: 1.5px solid var(--linea); background: #fff; font-weight: 800; font-size: 13.5px; transition: all .2s;
  text-align: center; line-height: 1.2;
}
.rubro .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.rubro:hover { border-color: var(--carton); }
.rubro.on { border-color: var(--tinta); background: var(--tinta); color: var(--papel); }
.plantilla { margin-top: 16px; padding: 14px 16px; background: var(--papel); border-radius: 16px; font-size: 14px; border: 1px dashed var(--carton); }
.plantilla b { font-weight: 900; }

.iconos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 8px; }
@media (min-width: 560px) { .iconos { grid-template-columns: repeat(7, 1fr); gap: 6px; } }
.icono-op { aspect-ratio: 1; border-radius: 16px; border: 1.5px solid var(--linea); background: #fff; display: grid; place-items: center; position: relative; }
.icono-op .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.icono-op img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.icono-op.on { border-color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); background: var(--papel-2); }
.icono-op span { position: absolute; bottom: -18px; font-size: 11px; font-weight: 700; color: var(--tinta-suave); white-space: nowrap; }
.iconos + * { margin-top: 26px !important; }

.upload { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px dashed var(--carton); border-radius: 18px; background: var(--papel); }
.upload .thumb { width: 54px; height: 54px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--linea); }
.upload .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload .thumb.wide { width: 96px; }
.upload .u-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--tinta-suave); }
.upload .u-txt b { display: block; color: var(--tinta); font-size: 14.5px; }
.upload input[type=file] { display: none; }
.colores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-in { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--linea); border-radius: 16px; padding: 8px 10px; }
.color-in input[type=color] { width: 38px; height: 38px; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; flex: none; }
.color-in input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-in input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.12); border-radius: 10px; }
.color-in b { display: block; font-size: 13.5px; }
.color-in code { font-size: 12.5px; color: var(--tinta-suave); font-family: inherit; font-weight: 700; }
.combos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.combo { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--linea); position: relative; overflow: hidden; }
.combo::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 55%; height: 55%; border-radius: 50%; background: var(--c2); border: 2px solid #fff; }
.combo { background: var(--c1); }
.contraste { font-size: 13px; font-weight: 700; margin-top: 8px; color: var(--riesgo); display: none; }
.contraste.show { display: block; }

.premio-principal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.escalon { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 8px 8px 8px 12px; }
.escalon + .escalon { margin-top: 8px; }
.escalon .input { min-height: 40px; }
.escalon select { min-height: 40px; border-radius: 12px; border: 1.5px solid var(--linea); padding: 0 8px; background: var(--papel); font-weight: 800; }
.btn-add { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; color: var(--pliegue); margin-top: 10px; padding: 6px 2px; }
.btn-add .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-add:disabled { color: #BCAC9B; cursor: not-allowed; }

.guardar-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--tinta); color: var(--papel); border-radius: 22px; padding: 10px 10px 10px 18px;
  box-shadow: 0 18px 40px -14px rgba(42,30,22,.6); transform: translateY(160%); transition: transform .4s var(--ease-pop);
}
.guardar-bar.show { transform: none; }
.guardar-bar span { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.guardar-bar .btn-descartar { color: #C9B8A6; font-weight: 800; font-size: 14px; padding: 0 10px; }
.guardar-bar .btn { background: var(--sello); min-height: 42px; }
@media (min-width: 900px) { .guardar-bar { left: calc(252px + 40px); right: 40px; max-width: 700px; bottom: 24px; } }

/* ---------- Wallet: vista previa ---------- */
.pass { width: 100%; max-width: 330px; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", "Nunito", sans-serif; }
.apple {
  --bg: #1F3D2B; --fg: #fff; --lab: #F2E6D0;
  background: var(--bg); color: var(--fg); border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: 0 24px 40px -22px rgba(0,0,0,.55), 0 0 0 .5px rgba(0,0,0,.15);
}
.apple .a-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; min-height: 58px; }
.apple .a-logo { height: 34px; max-width: 110px; display: flex; align-items: center; }
.apple .a-logo img { height: 34px; width: auto; max-width: 110px; border-radius: 4px; object-fit: contain; }
.apple .a-logotext { font-weight: 600; font-size: 16px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.apple .a-hf { text-align: right; flex: none; }
.f-lab { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lab); line-height: 1.3; }
.f-val { display: block; font-size: 16px; font-weight: 400; line-height: 1.2; }
.apple .a-hf .f-val { font-size: 19px; }
.strip { position: relative; aspect-ratio: 375 / 144; background: var(--bg); background-size: cover; background-position: center; display: grid; place-items: center; overflow: hidden; }
.strip.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.34)); }
.strip.lienzo { background-color: color-mix(in srgb, var(--bg) 82%, var(--lab)); }
.stamps { position: relative; display: grid; gap: 7px 9px; justify-content: center; padding: 8px 14px; }
.stamp { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.7px dashed color-mix(in srgb, var(--lab) 75%, transparent); position: relative; color: var(--lab); }
.stamp.on { background: var(--lab); border: 1.7px solid var(--lab); color: var(--bg); }
.stamp .ic { width: 58%; height: 58%; stroke-width: 2.2; }
.stamp img { width: 72%; height: 72%; border-radius: 50%; object-fit: cover; }
.stamp.meta { border-style: solid; border-color: var(--lab); }
.stamp.tier::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #E4572E; border: 1.5px solid var(--bg); }
.stamp .num { font-size: 11px; font-weight: 700; opacity: .75; }
.apple .a-fields { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px 4px; }
.apple .a-fields > div { min-width: 0; }
.apple .a-fields > div:last-child { text-align: right; }
.apple .a-fields .f-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
/* Fila auxiliar: una sola celda, a la izquierda. Sin código es lo último de la tarjeta: el padding de abajo es todo el aire */
.apple .a-aux { justify-content: flex-start; padding: 6px 14px 16px; }
.apple .a-aux > div:last-child { text-align: left; }
.apple .a-code { display: grid; place-items: center; padding: 16px 14px 18px; }
.qr-box { background: #fff; border-radius: 8px; padding: 9px 9px 6px; display: grid; justify-items: center; gap: 4px; }
.qr-box .qr-img { width: 118px; height: 118px; display: block; }
.qr-box small { font-size: 10px; color: #333; font-weight: 500; max-width: 130px; text-align: center; line-height: 1.25; }
.apple .a-more { position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--fg); }

.google {
  --bg: #1F3D2B; --fg: #fff; --lab: #F2E6D0;
  background: var(--bg); color: var(--fg); border-radius: 22px; overflow: hidden; font-family: "Roboto", "Nunito", system-ui, sans-serif;
  box-shadow: 0 24px 40px -22px rgba(0,0,0,.55);
}
.google .g-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.google .g-logo { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; display: grid; place-items: center; }
.google .g-logo img { width: 100%; height: 100%; object-fit: cover; }
.google .g-issuer { font-size: 14px; font-weight: 500; opacity: .95; }
.google .g-title { font-size: 22px; font-weight: 400; padding: 10px 18px 2px; line-height: 1.2; }
.google .g-fields { display: flex; gap: 18px; padding: 12px 18px 4px; }
.google .g-fields > div { min-width: 0; }
.google .g-fields .g-lab { font-size: 11px; opacity: .78; display: block; }
.google .g-fields .g-val { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.google .g-code { display: grid; place-items: center; padding: 16px 18px 18px; }
.google .qr-box { border-radius: 14px; padding: 12px 12px 8px; }
.google .strip { aspect-ratio: 1032 / 336; }
/* Módulo de texto "Cómo sumar sellos": en Google va debajo de la tarjeta, sobre papel */
.google .g-mod { display: grid; gap: 2px; padding: 14px 18px 16px; background: var(--papel); color: var(--tinta); }
.google .g-mod-t { font-size: 12px; font-weight: 700; color: var(--tinta-suave); }
.google .g-mod-v { font-size: 15px; line-height: 1.3; }

.pass-back { background: #F2F2F7; color: #1c1c1e; border-radius: 14px; padding: 6px 0; box-shadow: 0 24px 40px -22px rgba(0,0,0,.4); font-family: -apple-system, "Nunito", sans-serif; }
.pass-back .b-row { padding: 10px 16px; border-bottom: .5px solid #d1d1d6; }
.pass-back .b-row:last-child { border-bottom: 0; }
.pass-back .b-lab { font-size: 12px; color: #6c6c70; display: block; }
.pass-back .b-val { font-size: 14.5px; display: block; margin-top: 1px; }
.pass-back .b-firma { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6c6c70; padding: 12px 16px 8px; }
.pass-back .b-firma .iso { width: 18px; }

/* =========================================================
   CUENTA
   ========================================================= */
.cuenta-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .cuenta-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.bloque { padding: 20px; }
.bloque h3 { font-size: 18px; font-weight: 900; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.bloque h3 .ic { color: var(--pliegue); }
.bloque > p { color: var(--tinta-suave); font-size: 14px; margin: 3px 0 16px; }
.mozos { list-style: none; }
.mozo { display: grid; grid-template-columns: 40px 1fr auto auto auto; gap: 6px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.mozo:last-child { border-bottom: 0; }
.mozo .av { width: 40px; height: 40px; font-size: 14px; }
.mozo b { display: block; line-height: 1.2; }
.mozo small { color: var(--tinta-suave); font-size: 13px; overflow-wrap: anywhere; }
.mozo .quitar { color: var(--tinta-suave); }
.mozo .quitar:hover { color: var(--riesgo); background: var(--riesgo-bg); }
.add-mozo { display: grid; gap: 8px; margin-top: 14px; padding: 14px; background: var(--papel); border-radius: 18px; }
.add-mozo .field + .field { margin-top: 0; }
@media (min-width: 560px) { .add-mozo { grid-template-columns: 1fr 1fr; align-items: end; } .add-mozo .btn { grid-column: 1 / -1; justify-self: start; } }
@media (min-width: 1300px) { .add-mozo { grid-template-columns: 1fr 1fr 1.3fr auto; } .add-mozo .btn { grid-column: auto; } }
.plan-card { background: var(--tinta); color: var(--papel); border: 0; }
.plan-card h3 .ic { color: var(--carton); }
.plan-card > p { color: #C9B8A6; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan-name { font-size: 30px; font-weight: 900; letter-spacing: -.03em; }
.plan-badge { background: var(--carton); color: var(--tinta); font-weight: 900; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.plan-list { list-style: none; margin: 14px 0; display: grid; gap: 7px; }
.plan-list li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.plan-list .ic { width: 18px; height: 18px; color: var(--carton); stroke-width: 2.6; }
.pago { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.07); border-radius: 16px; margin-top: 6px; }
.pago .ic { color: var(--carton); }
.pago div { flex: 1; font-size: 14px; }
.pago b { display: block; }
.pago small { color: #C9B8A6; }
.plan-card .btn-borde { background: transparent; color: var(--papel); border-color: #4B3A2D; }

/* =========================================================
   NÚMEROS
   Colores de datos validados con el script de dataviz:
   vuelven #9C5F28 / nuevos #D9A066 (pasan CVD y separación).
   Rampa secuencial de cartón (claro → oscuro) para el mapa de calor.
   ========================================================= */
:root { --d-vuelven: #9C5F28; --d-nuevos: #D9A066; --h0: #F4EBDD; --h1: #EFD6B3; --h2: #D9A066; --h3: #B37A3E; --h4: #7A4E24; }
.num-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats-4 { grid-template-columns: repeat(4, 1fr); } }
.stats-4 .stat .lbl { min-height: 0; }
.charts { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .charts { grid-template-columns: 1fr 1fr; gap: 16px; } .span-2 { grid-column: 1 / -1; } }
.chart { padding: 18px 18px 16px; min-width: 0; }
.ch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ch-head h3, .ch-head h2 { font-size: 18px; font-weight: 900; letter-spacing: -.015em; }
.insight { font-size: 14.5px; color: var(--tinta-suave); margin-top: 3px; max-width: 62ch; }
.insight a { color: var(--tinta); font-weight: 800; }
.btn-tabla { font-size: 13px; font-weight: 800; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; padding: 4px 0; }
.ch-foot { font-size: 12.5px; color: var(--tinta-suave); margin-top: 10px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--tinta-suave); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .k { width: 10px; height: 10px; border-radius: 3px; }
.s-vuelven { background: var(--d-vuelven); }
.s-nuevos { background: var(--d-nuevos); }

/* Columnas en HTML (sin SVG) para que escalen sin deformar el texto */
.plot { position: relative; height: 190px; margin: 14px 0 0 28px; }
.plot[hidden], .legend[hidden] { display: none; }
.plot .grid { position: absolute; inset: 0 0 22px 0; pointer-events: none; }
.plot .grid span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--linea); }
.plot .grid b { position: absolute; right: calc(100% + 6px); top: -8px; font-size: 11px; font-weight: 700; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.col { display: flex; flex-direction: column; align-items: center; min-width: 0; outline: none; cursor: default; }
.col-area { position: relative; flex: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; border-radius: 8px 8px 0 0; }
.col:hover .col-area, .col:focus-visible .col-area { background: color-mix(in srgb, var(--papel-2) 70%, transparent); }
.stack { width: min(24px, 70%); display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.stack .bseg { display: block; min-height: 2px; }
.stack .bseg:first-child { border-radius: 4px 4px 0 0; }
.cap { position: absolute; left: 0; right: 0; text-align: center; transform: translateY(-3px); font-size: 12px; font-weight: 800; color: var(--tinta); z-index: 1; line-height: 1; padding-bottom: 2px; }
.col .x { height: 22px; line-height: 22px; font-size: 11px; font-weight: 700; color: var(--tinta-suave); white-space: nowrap; }

/* Mapa de calor */
.heat { display: grid; grid-template-columns: auto repeat(7, 1fr); gap: 3px; margin-top: 14px; align-items: center; }
.heat .hx { font-size: 11.5px; font-weight: 800; color: var(--tinta-suave); text-align: center; padding-bottom: 2px; }
.heat .hy { font-size: 11.5px; font-weight: 700; color: var(--tinta-suave); padding-right: 6px; white-space: nowrap; }
.heat .cell { height: 28px; border-radius: 6px; outline: none; }
.heat .cell:hover, .heat .cell:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--tinta); }
.h0 { background: var(--h0); } .h1 { background: var(--h1); } .h2 { background: var(--h2); } .h3 { background: var(--h3); } .h4 { background: var(--h4); }
.heat-leg { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 10px; font-size: 12px; color: var(--tinta-suave); font-weight: 700; }
.heat-leg i { width: 16px; height: 12px; border-radius: 3px; }
.heat-leg span { margin: 0 4px; }

/* Barras horizontales de estados */
.hbars { display: grid; gap: 6px; margin-top: 14px; }
.hbar { display: grid; grid-template-columns: 124px 1fr; gap: 10px; align-items: center; text-align: left; padding: 6px 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s; }
.hbar:hover { background: var(--papel); }
.hb-lbl { font-size: 14px; font-weight: 800; }
.hb-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-track b { font-size: 14px; font-weight: 900; }
.hb-fill { display: block; height: 22px; min-width: 4px; border-radius: 0 4px 4px 0; }
.e-habitual { background: var(--ok); } .e-nuevo { background: var(--d-nuevos); } .e-riesgo { background: var(--sello); }

/* Hábitos */
.habitos { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.habitos li { background: var(--papel); border-radius: 16px; padding: 12px 14px; }
.habitos b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.habitos span { display: block; font-size: 13px; color: var(--tinta-suave); margin-top: 3px; }

/* Tabla alternativa */
.tabla { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabla th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-suave); padding: 6px 8px; border-bottom: 1px solid var(--linea); }
.tabla td { padding: 7px 8px; border-bottom: 1px solid var(--linea); }

/* Tooltip */
.tip { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; background: var(--tinta); color: var(--papel); border-radius: 12px; padding: 8px 11px; font-size: 13px; line-height: 1.35; opacity: 0; transition: opacity .12s; box-shadow: 0 10px 24px -10px rgba(42,30,22,.6); max-width: 240px; }
.tip.show { opacity: 1; }
.tip b { display: block; font-weight: 800; margin-bottom: 2px; }
.tip span { display: block; color: #E8DCC9; }

/* =========================================================
   LOGIN y pantallas sin panel
   ========================================================= */
body.sin-nav .nav { display: none; }
body.sin-nav .app { display: block; }
body.sin-nav main#view { padding: 0 16px; max-width: none; }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 32px 0; }
.auth::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--linea) 1.6px, transparent 1.8px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
}
.auth-card { width: 100%; max-width: 420px; padding: 28px 24px 24px; }
.auth-logo { font-size: 26px; margin-bottom: 22px; }
.auth-card h1 { font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.auth-card > p { margin-top: 8px; }
.auth-form { display: grid; gap: 10px; margin-top: 20px; }
.auth-nota { font-size: 13px; color: var(--tinta-suave); margin-top: 12px; }
.auth-aviso { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--riesgo-bg); color: var(--riesgo); font-size: 14px; font-weight: 700; }
.auth-aviso .ic { width: 18px; height: 18px; margin-top: 1px; }
.auth-alta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linea); text-align: center; }
.auth-alta p { color: var(--tinta-suave); font-size: 15px; margin: 0 0 10px; }
.auth-alta .btn .ic { width: 20px; height: 20px; }
.auth-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.toast.error .ic { color: #FFB39B; }
.demo-tag { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; background: var(--carton); color: var(--tinta); padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.nav-foot .demo-tag { display: table; }
.nav-email { display: block; margin-top: 8px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   NÚMEROS → pestañas y VENTAS (Mercado Pago)
   ========================================================= */
.num-tabs { display: flex; gap: 6px; margin: -4px 0 14px; border-bottom: 1px solid var(--linea); }
.num-tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px 11px; font-weight: 800; font-size: 15px;
  color: var(--tinta-suave); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.num-tabs button .ic { width: 19px; height: 19px; }
.num-tabs button.on { color: var(--tinta); border-bottom-color: var(--sello); }
.plot.ancho { margin-left: 50px; }
.plot .grid b { white-space: nowrap; }
.heat[hidden], .heat-leg[hidden], .hbars[hidden], .legend[hidden], .plot[hidden] { display: none; }

.nota-mp { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--tinta-suave); margin: 0 0 14px; }
.nota-mp .ic { width: 16px; height: 16px; margin-top: 1px; flex: none; }
.aviso-mp { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 16px; margin-bottom: 12px; font-size: 14px; background: var(--nuevo-bg); color: var(--tinta); }
.aviso-mp .ic { width: 20px; height: 20px; flex: none; color: var(--pliegue); }
.aviso-mp a { font-weight: 800; color: var(--tinta); }
.aviso-mp.error { background: var(--riesgo-bg); }
.aviso-mp.error .ic { color: var(--riesgo); }
.aviso-mp.demo { background: var(--papel-2); }
.cargando-mp { display: flex; align-items: center; gap: 10px; padding: 40px 0; justify-content: center; color: var(--tinta-suave); font-weight: 700; }
.cargando-mp .ic { animation: girar 1.4s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.vacio-mp .vacio-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--papel-2); display: grid; place-items: center; margin: 0 auto 14px; }
.vacio-mp .vacio-ic .ic { width: 30px; height: 30px; }
.vacio-mp .btn { margin-top: 16px; }
.vacio-chico { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 12px; margin-top: 12px; border: 2px dashed var(--linea); border-radius: 18px; color: var(--tinta-suave); font-size: 14px; }
.vacio-chico .ic { width: 28px; height: 28px; }

/* Cómo te pagan */
.e-qr { background: var(--d-vuelven); } .e-transfer { background: var(--d-nuevos); } .e-otros { background: #BCAC9B; }
.bseg.e-riesgo { background: var(--sello); }

/* Dejaron de venir */
.sefueron { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.sf-num { font-size: 52px; font-weight: 900; letter-spacing: -.04em; line-height: .9; color: var(--tinta); }
.sf-txt { font-size: 14px; font-weight: 800; color: var(--tinta-suave); line-height: 1.15; }

/* Tarjeta de Mercado Pago en Cuenta */
.mp-card p { margin: 3px 0 14px; }
.mp-ok { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.mp-ok b { display: block; font-size: 16px; }
.mp-ok span { font-size: 14px; color: var(--tinta-suave); }
.mp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); flex: none; }
.mp-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
.mp-datos div { background: var(--papel); border-radius: 14px; padding: 9px 12px; }
.mp-datos dt { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-suave); }
.mp-datos dd { font-size: 14.5px; font-weight: 800; margin-top: 2px; }
.mp-nota { font-size: 13px; }
.mp-acts { flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-link { font-weight: 800; font-size: 14px; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
.btn-link:hover { color: var(--riesgo); }
.mp-progreso { display: flex; gap: 12px; align-items: center; margin: 14px 0 6px; }
.mp-progreso b { display: block; }
.mp-progreso span { font-size: 14px; color: var(--tinta-suave); }
.mp-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--tinta); animation: girar .9s linear infinite; flex: none; }
.m-casilla { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.m-casilla input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--sello); flex: none; }
@media (prefers-reduced-motion: reduce) { .mp-spin, .cargando-mp .ic { animation: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Link dentro de un texto (p. ej. "Creá tu cuenta" en el login) */
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--tinta); text-decoration: underline; cursor: pointer; }

/* Tarjeta → Google Wallet: estado de la clase del local y "Probar en mi celular" */
.wallet-card { padding: 16px; margin-top: 14px; }
.wallet-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 6px; }
.wallet-card .estado { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--papel-2); }
.wallet-card .estado.ok { background: #E3F0E6; color: #2F6B3E; }
.wallet-card .estado.mal { background: #FBE3DC; color: #B23A1A; }
.wallet-card p { font-size: 13.5px; color: var(--tinta-suave); margin: 8px 0 0; }
.wallet-card .acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gw-hero-prev { line-height: 0; }
.gw-hero-prev svg { width: 100%; height: auto; display: block; }

/* =========================================================
   HOY (v2 y v3): para hacer hoy, cumpleaños, pasó hoy, semana
   Solo tokens de :root. Movimiento: solo transform y opacity, máx. 300 ms.
   ========================================================= */
/* #view recibe el foco por código (es un destino, no un control): sin contorno. Lo interactivo conserva :focus-visible. */
main#view:focus, main#view:focus-visible { outline: none; }
/* El contenedor de un <dialog> toma el foco al tocar su fondo o su texto: tampoco es un control. */
dialog.dlg-msg:focus, dialog.dlg-msg:focus-visible { outline: none; }

.hoy .demo-tag { margin-left: 8px; vertical-align: 2px; }
.link-texto { font-weight: 800; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.link-fila { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 800; font-size: 14.5px; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }


.hoy-card { padding: 18px; }
.hoy-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hoy-card-head h2 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.hoy-nota { font-size: 13.5px; font-weight: 700; color: var(--tinta-suave); }
.pie-chico { font-size: 12.5px; font-weight: 700; color: var(--tinta-suave); margin-top: 10px; }

/* Control segmentado */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--papel-2); border: 1px solid var(--linea); }
.seg-b { min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--tinta-suave); transition: background .2s, color .2s; }
.seg-b[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }

/* Cumpleaños */
.dia-h { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--pliegue-txt); margin: 10px 0 0; }
.cumple-lista { list-style: none; }
.cumple-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0 4px 12px; border-left: 4px solid transparent; border-bottom: 1px dashed var(--linea); }
.cumple-lista li:last-child { border-bottom: 0; }
.cumple-item.es-hoy { border-left-color: var(--carton); }
.cumple-item .av { width: 40px; height: 40px; font-size: 14px; }
.cumple-txt { flex: 1 1 120px; min-width: 0; display: block; }
.cumple-txt .nom { display: block; font-weight: 800; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.cumple-txt .sub { display: block; font-size: 13.5px; color: var(--tinta-suave); margin-top: 2px; }
.cumple-acc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.btn-saludar { min-height: 44px; padding: 0 18px; }
.cumple-item.sin-permiso .nom { color: var(--tinta-suave); }
.cumple-item.sin-permiso .av { background: var(--papel-2); color: var(--tinta-suave); }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.chip-ok { color: var(--ok); background: var(--ok-bg); }
.chip-no { color: var(--tinta-suave); background: var(--papel-2); }
.aviso-regalo { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 14px; border-radius: 16px; background: var(--papel-2); font-size: 14px; }
.aviso-regalo .ic { width: 20px; height: 20px; color: var(--pliegue); margin-top: 1px; }

/* Estados: vacío, error y esqueleto (sin animación) */
.est-vacio { padding: 18px 4px 8px; color: var(--tinta-suave); font-weight: 600; }
.est-error { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-radius: 16px; background: var(--riesgo-bg); color: var(--tinta); font-size: 14px; font-weight: 700; margin: 6px 0; }
.est-error .ic { width: 20px; height: 20px; color: var(--riesgo); }
.est-error .btn { margin-left: auto; min-height: 44px; }
.esq-fila { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.esq-av { width: 44px; height: 44px; border-radius: 50%; background: var(--papel-2); flex: none; }
.esq-txt { flex: 1; display: grid; gap: 8px; }
.esq-txt i { display: block; height: 12px; border-radius: 6px; background: var(--papel-2); width: 60%; }
.esq-txt i + i { width: 36%; }

/* Pasó hoy */
.paso-conteo { font-weight: 800; font-size: 15px; margin: 2px 0 8px; }
.paso-lista { list-style: none; }
.paso-lista li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--linea); font-size: 15px; }
.paso-lista li:last-child { border-bottom: 0; }
.paso-lista .hora { font-weight: 800; font-size: 13.5px; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }

/* Tu semana en una línea */

/* Mensaje en un <dialog> */
dialog.dlg-msg { border: 0; border-radius: var(--radius); padding: 20px; background: var(--papel); color: var(--tinta); width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--sombra); margin: auto; }
dialog.dlg-msg::backdrop { background: color-mix(in srgb, var(--tinta) 45%, transparent); }
dialog.dlg-msg[open] { animation: dlg-entra .2s var(--ease-out); }
@keyframes dlg-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-head h2 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.dlg-head .icon-btn { width: 44px; height: 44px; }
.dlg-demo { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--nuevo-bg); font-weight: 800; font-size: 14px; }
.dlg-demo .ic { width: 20px; height: 20px; color: var(--pliegue); }
.dlg-label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.dlg-texto { width: 100%; min-height: 132px; resize: vertical; border: 1.5px solid var(--linea); border-radius: 14px; background: var(--blanco); padding: 12px 14px; font-size: 16px; line-height: 1.45; }
.dlg-estado { min-height: 22px; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--ok); }
.dlg-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dlg-acts .btn { flex: 1 1 160px; min-height: 48px; }

/* ---------- Selección de clientes (casillas) ---------- */
.tabla-clientes th.tc-sel, .tabla-clientes td.tc-sel { width: 44px; padding: 0; text-align: center; }
.tc-check { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.tc-check input { width: 22px; height: 22px; accent-color: var(--tinta); cursor: pointer; }
.tabla-clientes tbody tr.sel { background: var(--papel-2); }
.tabla-clientes tbody tr.sel:hover { background: var(--papel-2); }
.th-orden { flex-wrap: wrap; }
.sel-aviso { padding-inline: 4px; font-size: 13.5px; color: var(--tinta-suave); }
.sel-aviso:empty { display: none; }
.btn[aria-disabled="true"] { background: var(--papel-2); color: var(--tinta-suave); border: 1.5px dashed var(--linea); box-shadow: none; cursor: not-allowed; transform: none; }
@media (max-width: 899px) {
  .tabla-clientes .tc-num { width: 58px; }
  .tabla-clientes .tc-ult { width: 78px; }
  .tabla-clientes th.tc-cli { padding: 14px 6px; }
}

/* ---------- Escribir a varios (usa dialog.dlg-msg) ---------- */
dialog.dlg-lote { width: min(580px, calc(100vw - 32px)); }
.lz-canal { margin-top: 12px; }
.lz-resumen { margin-top: 12px; font-weight: 800; }
.lz-aviso-wa { margin-top: 10px; font-size: 13.5px; color: var(--tinta-suave); }
dialog.dlg-lote .m-casilla { margin-top: 12px; }
.lz-tope { display: grid; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--papel-2); }
.lz-vacio { margin-top: 14px; padding: 14px; border: 2px dashed var(--linea); border-radius: var(--radius-sm); color: var(--tinta-suave); text-align: center; }
.lz-ayuda { margin-top: 6px; font-size: 13px; color: var(--tinta-suave); }
.lz-prev-t { margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--tinta-suave); }
.lz-motivo { min-height: 20px; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--riesgo); }
.lz-prog-fila { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.lz-prog { flex: 1; height: 10px; border-radius: 999px; background: var(--papel-2); border: 1px solid var(--linea); overflow: hidden; }
.lz-prog span { display: block; height: 100%; background: var(--tinta); transform-origin: left; transform: scaleX(0); }
.lz-prog-txt { font-weight: 900; font-size: 14px; white-space: nowrap; }
.lz-dest { list-style: none; margin-top: 12px; border-top: 1px solid var(--linea); }
.lz-dest-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.lz-nom { font-weight: 800; overflow-wrap: anywhere; }
.lz-dest-li.escrito .lz-nom, .lz-dest-li.saltado .lz-nom { color: var(--tinta-suave); }
.lz-chip { padding: 3px 10px; border-radius: 999px; background: var(--papel-2); color: var(--tinta); font-size: 12.5px; font-weight: 800; }
.lz-chip.ok { background: var(--ok-bg); color: var(--ok); }
.lz-btns { grid-column: 1 / -1; display: flex; gap: 8px; }
.lz-btns .btn { flex: 1; min-height: 44px; }
dialog.dlg-lote .w-etiqueta { margin-top: 12px; }
dialog.dlg-wa-real { width: min(420px, calc(100vw - 32px)); }
dialog.dlg-wa-real .w-dlg-txt { margin-top: 0; }
.lz-hecho { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); font-weight: 900; text-align: center; }

/* Exportar clientes (usa dialog.dlg-msg) */
dialog.dlg-export .dlg-resumen { margin-top: 10px; font-weight: 800; }
dialog.dlg-export .m-casilla { margin-top: 16px; }
dialog.dlg-export .dlg-nota { margin-top: 6px; padding-left: 30px; font-size: 13.5px; color: var(--tinta-suave); }
dialog.dlg-export .field { margin-top: 14px; }
/* Texto que todavía tiene que revisar un abogado: buscarlos con grep ".tbd". Al aprobarse el texto, se saca la clase */
.tbd { padding: 10px 14px; border: 1.5px dashed var(--pliegue); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; color: var(--pliegue-txt); }
dialog.dlg-export .tbd { margin-top: 14px; }

/* ---------- HOY (v3): orden de la vista ----------
   DOM = orden de lectura: semana, para hacer hoy, cumpleaños, pasó hoy (sin usar order).
   Desde 1100 px: la semana a todo el ancho y debajo dos columnas (1,2fr / 1fr). */
.hoy-sem { margin-bottom: 16px; }
.hoy-cols, .hoy-der { display: grid; gap: 16px; min-width: 0; }
.hoy-acc { min-width: 0; }
@media (min-width: 1100px) {
  .hoy-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .hoy-der { gap: 24px; }
}

/* Para hacer hoy: una tarjeta, una fila por tarea */
.tareas-card { container-type: inline-size; container-name: tareas; }
.tareas { list-style: none; }
.tarea { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 20px 0; border-bottom: 1px dashed var(--linea); }
.tarea:last-child { border-bottom: 0; }
.tarea .a-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--papel-2); color: var(--tinta); }
.tarea .a-ic .ic { width: 22px; height: 22px; }
.tarea.riesgo .a-ic { background: var(--riesgo-bg); color: var(--riesgo); }
.tarea.primera .a-ic { background: var(--nuevo-bg); color: var(--pliegue-txt); }
.tarea.cerca .a-ic, .tarea.premio .a-ic, .tarea.listo .a-ic { background: var(--ok-bg); color: var(--ok); }
.tarea h3 { font-size: 16.5px; font-weight: 900; letter-spacing: -.015em; line-height: 1.25; }
.tarea p { font-size: 14px; color: var(--tinta-suave); margin-top: 2px; line-height: 1.4; }
.tarea .avatars { display: flex; align-items: center; margin-top: 8px; }
.tarea .avatars .av { width: 24px; height: 24px; font-size: 9.5px; border: 2px solid var(--blanco); margin-left: -6px; }
.tarea .avatars .av:first-child { margin-left: 0; }
.tarea .avatars .more { font-size: 12.5px; font-weight: 800; color: var(--tinta-suave); margin-left: 8px; }
.tarea .progreso { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--tinta-suave); margin-top: 6px; }
.tarea .progreso .ic { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.6; }
.tarea.listo h3 { text-decoration: line-through; text-decoration-color: var(--carton); text-decoration-thickness: 2px; color: var(--tinta-suave); }
.tarea > .btn { grid-column: 1 / -1; width: 100%; min-height: 44px; }
.btn-sec { background: transparent; color: var(--tinta); border: 1.5px solid var(--tinta); }
.btn-sec:hover { background: var(--papel-2); }
/* El botón va a la derecha solo si la tarjeta tiene lugar; si no, queda debajo del texto */
@media (min-width: 1100px) {
  @container tareas (min-width: 480px) {
    .tarea { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
    .tarea > .btn { grid-column: 3; width: auto; }
    .esq-tarea { grid-template-columns: 40px minmax(0, 1fr) 150px; align-items: center; }
    .esq-tarea .esq-btn { grid-column: 3; }
  }
}

/* Tu semana en una línea: una barra */
/* La barra se acomoda al ancho que tiene (container query), no al de la pantalla: con el menú lateral,
   1100 px de pantalla dejan poco lugar. Angosta: título, indicadores y link en columna. Media: título y link
   arriba, indicadores abajo. Ancha: todo en una línea (no más de 120 px de alto). */
.hoy-sem { container-type: inline-size; container-name: semana; }
.sem-bar { padding: 14px 18px; display: grid; gap: 10px 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tit" "fila" "link"; }
.sem-tit { grid-area: tit; } .sem-fila { grid-area: fila; } .sem-link { grid-area: link; justify-self: start; }
.sem-tit h2 { font-size: 19px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.sem-tit p { font-size: 13.5px; font-weight: 700; color: var(--tinta-suave); margin-top: 2px; }
.sem-fila { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sem-ind { min-width: 0; padding: 2px 8px; }
.sem-ind:first-child { padding-left: 0; }
.sem-ind + .sem-ind { border-left: 1px solid var(--linea); }
.sem-ind .lbl { display: block; font-size: 12.5px; font-weight: 800; color: var(--tinta-suave); line-height: 1.2; }
.sem-val { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.sem-val .num { font-size: 26px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.sem-bar .delta { position: relative; border-radius: 12px; padding: 3px 8px 3px 5px; line-height: 1.25; text-align: left; }
.sem-bar .delta .ic { flex: none; }
.sem-bar .delta.eq { padding-left: 5px; }
.sem-link { margin-top: 0; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container semana (min-width: 560px) {
  .sem-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tit link" "fila fila"; align-items: center; padding: 14px 24px; }
  .sem-link { justify-self: end; }
  .sem-ind { padding: 2px 20px; }
  .sem-ind:first-child { padding-left: 0; }
}
@container semana (min-width: 900px) {
  .sem-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tit fila link"; gap: 24px; padding-block: 12px; }
}

/* Pasó hoy: lo de ayer, si hoy todavía no hay nada */
.paso-ayer { font-size: 14px; font-weight: 700; color: var(--tinta-suave); margin-top: 2px; }

/* Esqueleto de "Para hacer hoy" (sin animación) */
.esq-tarea { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; padding: 14px 0; border-bottom: 1px dashed var(--linea); }
.esq-tarea:last-child { border-bottom: 0; }
.esq-ic { width: 40px; height: 40px; border-radius: 14px; background: var(--papel-2); }
.esq-btn { grid-column: 1 / -1; height: 44px; border-radius: 999px; background: var(--papel-2); }
.sem-ind .esq-txt { padding: 6px 0; }

/* =========================================================
   FICHA: "Escribile al cliente" y canal "Aviso en la Wallet" (PROTOTIPO)
   Solo tokens de :root. Movimiento: solo opacity y transform, 180 ms; sin movimiento con prefers-reduced-motion.
   ========================================================= */
.msg-tit { font-size: 18px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }

/* Selector segmentado (radiogroup) */
.canal { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--papel-2); border: 1px solid var(--linea); }
.canal-b { flex: 1 1 0; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 14px; line-height: 1.15; color: var(--tinta-suave); }
.canal-b[aria-checked="true"] { background: var(--tinta); color: var(--papel); }
.canal-chico { display: inline-flex; }
.canal-chico .canal-b { flex: 0 0 auto; padding: 0 16px; font-size: 13.5px; }
.canal-panel { margin-top: 12px; }
.canal-panel.entra { animation: canal-entra .18s var(--ease-out); }
@keyframes canal-entra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Etiqueta de vista previa */
.w-etiqueta { display: block; padding: 8px 12px; border: 1.5px dashed var(--tinta-suave); border-radius: 12px; background: var(--papel-2); color: var(--tinta); font-size: 13px; font-weight: 800; }

/* Campo y contador */
.w-campo { margin-top: 12px; }
.msg-box .w-campo textarea { min-height: 84px; background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--linea); border-radius: 14px; padding: 11px 13px; font-size: 16px; }
.msg-box .w-campo textarea:focus-visible { outline: 2.5px solid var(--sello); outline-offset: 2px; }
.w-cont { margin-top: 6px; text-align: right; font-size: 13px; font-weight: 700; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.w-cont.alto { color: var(--riesgo); }

/* Otras ideas */
.w-sug { margin-top: 10px; }
.w-sug-t { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); margin-bottom: 6px; }
.w-sug-l { display: flex; flex-wrap: wrap; gap: 8px; }
.w-sug-b { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--tinta); font-size: 14px; font-weight: 800; }
.w-sug-b:hover { border-color: var(--carton); }

/* Vista previa de la pantalla de bloqueo */
.w-prev { margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.w-prev .lock, .w-leyenda { justify-self: stretch; }
.lock { padding: 14px; border-radius: 20px; background: var(--tinta); }
.w-leyenda { font-size: 13px; font-weight: 700; color: var(--tinta-suave); }
.notif { background: var(--papel); color: var(--tinta); }
.notif b { font-weight: 900; }
.notif .n-ic { display: grid; place-items: center; flex: none; overflow: hidden; background: var(--carton); color: var(--tinta); font-weight: 900; }
.notif .n-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notif .n-cuerpo { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.notif .n-cuerpo.n-vacio { color: var(--tinta-suave); }
.notif .n-top span { font-size: 12.5px; font-weight: 700; color: var(--tinta-suave); }
.notif.ios { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 22px; }
.notif.ios .n-ic { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
.notif.ios .n-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.notif.ios .n-top b { font-size: 14.5px; }
.notif.android { padding: 12px 16px 14px; border-radius: 26px; }
.notif.android .n-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.notif.android .n-ic { width: 20px; height: 20px; border-radius: 50%; font-size: 12px; }
.notif.android .n-tit { display: block; font-size: 15px; }

/* Enviar y motivo */
#wEnviar { margin-top: 16px; }
.w-motivo { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--tinta-suave); }
.w-motivo:empty { display: none; }
.w-motivo:focus { outline: none; }
.w-como { margin-top: 10px; border-top: 1px dashed var(--linea); }
.w-como summary { display: flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.w-como p { font-size: 14px; color: var(--tinta-suave); padding-bottom: 6px; }
.w-dlg-txt { margin: 10px 0 14px; font-size: 15px; }
dialog.dlg-msg .lock { margin-bottom: 14px; }

/* Avisos enviados */
.w-lista { list-style: none; }
.w-lista li { padding: 10px 0; border-bottom: 1px dashed var(--linea); }
.w-lista li:last-child { border-bottom: 0; }
.w-lista-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.w-fecha { margin-right: auto; font-size: 13px; font-weight: 700; color: var(--tinta-suave); }
.w-lista-txt { margin-top: 4px; font-size: 14.5px; overflow-wrap: anywhere; }
.chip-sim { color: var(--nuevo); background: var(--nuevo-bg); border: 1px dashed currentColor; }

/* =========================================================
   NÚMEROS: período, comparación, tramo en curso y estados
   Solo tokens de :root (los colores de datos son los de la sección NÚMEROS).
   Movimiento: solo opacity y transform, menos de 300 ms; sin movimiento con prefers-reduced-motion.
   ========================================================= */
.num-head > div:first-child { min-width: 0; }
.num-rango { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--tinta-suave); }
.num-rango b { color: var(--tinta); font-weight: 800; }

/* Selector de período: botón + popover (desktop) o hoja (mobile) */
.per-wrap { position: relative; margin-left: auto; }
.per-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--blanco); border: 1.5px solid var(--pliegue); color: var(--tinta); text-align: left; }
.per-btn:hover { border-color: var(--tinta); }
.per-btn[aria-expanded="true"] { border-color: var(--tinta); }
.per-btn .ic { width: 22px; height: 22px; }
.per-txt { display: flex; flex-direction: column; line-height: 1.15; }
.per-rango { font-size: 15px; font-weight: 800; }
.per-btn small { font-size: 12px; font-weight: 700; color: var(--tinta-suave); }
.per-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; }
.per-pop .per-panel { width: min(340px, calc(100vw - 32px)); padding: 8px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; box-shadow: var(--sombra); }
.per-pop .per-panel.entra { animation: per-entra .16s var(--ease-out); }
@keyframes per-entra { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.per-op { list-style: none; }
.per-o { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 800; font-size: 15px; text-align: left; color: var(--tinta); }
.per-o:hover { background: var(--papel-2); }
.per-o[aria-current="true"] { background: var(--tinta); color: var(--papel); }
.per-o .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.per-custom { padding: 8px 12px 12px; margin-top: 4px; border-top: 1px dashed var(--linea); }
.per-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.per-campo label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.per-campo .input { width: 100%; min-height: 44px; }
.per-error { min-height: 20px; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--riesgo); }
.per-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.per-acts .btn { flex: 1 1 110px; min-height: 46px; }
.sheet-body .per-panel { padding: 0; }

/* Lo que no cambia con el período lo avisa */
.chip-fijo { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--papel-2); color: var(--tinta-suave); font-size: 12px; font-weight: 800; }
.ch-head h2 + .chip-fijo, .ch-head h3 + .chip-fijo { margin-left: 0; }

/* Tramo incompleto o en curso: relleno más claro y borde punteado */
.stack.inc { border: 2px dashed var(--tinta); border-bottom: 0; border-radius: 4px 4px 0 0; }
.stack.inc[style*="height:0%"] { border: 0; }
.stack.inc .bseg { opacity: .4; }
.legend .k.inc { background: color-mix(in srgb, var(--d-vuelven) 40%, var(--blanco)); border: 1.5px dashed var(--tinta); }

/* Las tarjetas de una fila no se estiran para igualar el alto */
.charts { align-items: start; }

/* Dejaron de venir: sin franja de resalte detrás de las columnas (el foco de teclado se ve en la columna) */
.sin-resalte .col:hover .col-area, .sin-resalte .col:focus-visible .col-area { background: none; }
.sin-resalte .col:focus-visible .stack { outline: 2.5px solid var(--sello); outline-offset: 2px; }
.sefueron { align-items: center; }
.sf-num { line-height: 1; }
.sf-txt { line-height: 1.2; }

/* Estados: cargando (esqueletos del mismo layout, sin animación), error y vacío */
.esq-tile i, .esq-card i, .esq-card b { display: block; background: var(--papel-2); border-radius: 8px; }
.esq-tile i:nth-child(1) { height: 12px; width: 70%; }
.esq-tile i:nth-child(2) { height: 32px; width: 45%; margin: 14px 0 12px; }
.esq-tile i:nth-child(3) { height: 12px; width: 85%; }
.esq-card { min-height: 260px; }
.esq-card i:nth-child(1) { height: 18px; width: 40%; }
.esq-card i:nth-child(2) { height: 12px; width: 70%; margin-top: 10px; }
.esq-card b { height: 130px; margin-top: 22px; border-radius: 12px; }
.vacio-periodo { grid-column: 1 / -1; padding: 28px 24px; }
.vacio-periodo p { margin: 0 auto; font-weight: 700; }
.vacio-error { margin-top: 8px; }
.vacio-error .btn { margin-top: 14px; }

/* Objetivos de 44 px en Números ("Ver tabla" y las barras de estado) */
.btn-tabla { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.hbar { min-height: 44px; }
.stats-4 .stat .lbl-sub { opacity: 1; font-size: 12px; }

/* =========================================================
   NÚMEROS: más gráficos y métricas
   Solo tokens de :root (rampa de cartón --h1…--h4 y colores de datos de la sección NÚMEROS).
   Movimiento: solo opacity y transform, menos de 300 ms; sin movimiento con prefers-reduced-motion.
   ========================================================= */

/* Selector segmentado (botones de radio nativos) */
.seg { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin-top: 12px; padding: 4px; background: var(--papel-2); border-radius: 26px; }
.seg-o { position: relative; display: flex; }
.seg-o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.seg-o span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 22px; font-size: 14px; font-weight: 800; color: var(--tinta-suave); }
.seg-o:hover span { color: var(--tinta); }
.seg-o input:checked + span { background: var(--tinta); color: var(--papel); }
.seg-o input:focus-visible + span { outline: 2.5px solid var(--sello); outline-offset: 2px; }
@media (max-width: 520px) {   /* en el celular, una fila de tres botones iguales (el texto largo baja a dos líneas) */
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .seg-o span { padding: 0 6px; text-align: center; font-size: 13.5px; line-height: 1.15; }
}

/* Interruptor con texto (usa el .switch de la app; apagado lleva borde para verse sin depender del color) */
.ch-ctl { margin-top: 8px; }
.sw-fila { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.sw-fila .switch i { box-shadow: inset 0 0 0 2px var(--tinta-suave); background: var(--blanco); }
.sw-fila .switch i::after { background: var(--tinta-suave); box-shadow: none; }
.sw-fila .switch input:checked + i { background: var(--tinta); box-shadow: none; }
.sw-fila .switch input:checked + i::after { background: var(--papel); }
.sw-fila .switch input { top: -7px; bottom: -7px; height: auto; }   /* zona táctil de 44 px de alto */
.sw-fila .switch input:disabled { cursor: not-allowed; }
.sw-txt { font-size: 14px; font-weight: 700; color: var(--tinta); }
.sw-txt small { display: block; font-size: 12px; font-weight: 600; color: var(--tinta-suave); }

/* Datos cortos bajo el título de una tarjeta */
.ch-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 6px; font-size: 14px; color: var(--tinta-suave); }
.ch-meta b { color: var(--tinta); font-weight: 800; }

/* Línea punteada del período anterior (SVG sobre las columnas): un halo blanco y encima los puntos */
.linea-ant { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 22px); pointer-events: none; z-index: 2; overflow: visible; }
.linea-ant polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.linea-ant .lh polyline { stroke: var(--blanco); stroke-width: 5; }
.linea-ant .lp polyline { stroke: var(--tinta); stroke-width: 2.6; stroke-dasharray: 0.1 6; }
.legend .k.ln { width: 22px; height: 0; border-radius: 0; background: none; border-top: 3px dotted var(--tinta); }
.legend .k.e-habitual, .legend .k.e-riesgo { border-radius: 3px; }

/* Segunda línea en la etiqueta de una columna (porcentaje) */
.plot.dos { margin-top: 36px; }
.cap small { display: block; font-size: 12px; font-weight: 700; color: var(--tinta-suave); margin-top: 3px; }
/* La etiqueta se centra sobre la columna y no se parte aunque la columna sea angosta (30 columnas en el celular) */
.cap { left: 50%; right: auto; transform: translate(-50%, -3px); white-space: nowrap; z-index: 3; text-shadow: 0 0 4px var(--blanco), 0 0 4px var(--blanco), 0 0 4px var(--blanco); }   /* por encima de la línea punteada */

/* ¿Cuántos clientes nuevos vuelven? Un círculo por cliente: lleno = volvió, vacío con borde punteado = todavía no volvió.
   Mismo lenguaje que los sellos de la tarjeta. Lo que distingue es el relleno, nunca solo el color. */
.rt-filas { margin-top: 12px; }
.rt-fila { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px dashed var(--linea); }
.rt-et { grid-column: 1; grid-row: 1; font-weight: 800; font-size: 15px; }
.rt-n { grid-column: 2; grid-row: 1; font-size: 14px; color: var(--tinta-suave); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-n b { color: var(--tinta); font-weight: 900; font-size: 15px; }
.rt-vis { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.rt-nada { grid-column: 1 / -1; grid-row: 2; font-size: 14px; color: var(--tinta-suave); }
.rt-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-dots i, .rt-dots-mini { display: inline-block; flex: none; border-radius: 50%; border: 2px dashed var(--pliegue); background: transparent; }
.rt-dots i { width: 20px; height: 20px; animation: rt-pop .26s var(--ease-out) both; }
.rt-dots i.on, .rt-dots-mini.on { background: var(--tinta); border: 2px solid var(--tinta); }
.rt-dots-mini { width: 14px; height: 14px; }
.rt-barra { display: block; height: 20px; border: 2px dashed var(--pliegue); border-radius: 10px; overflow: hidden; }
.rt-barra i { display: block; height: 100%; background: var(--tinta); transform-origin: left; animation: rt-barra .26s var(--ease-out) both; }
.rt-leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--linea); font-size: 13px; font-weight: 700; color: var(--tinta-suave); }
.rt-leyenda span { display: inline-flex; align-items: center; gap: 8px; }
.rt-aparte { margin-top: 8px; font-size: 14px; color: var(--tinta-suave); }
@media (min-width: 640px) {
  .rt-fila { grid-template-columns: 96px 1fr auto; gap: 8px 18px; }
  .rt-vis, .rt-nada { grid-column: 2; grid-row: 1; }
  .rt-nada { grid-column: 2 / -1; }
  .rt-n { grid-column: 3; }
}
/* Detalle plegado */
.rt-det { margin-top: 10px; border-top: 1px dashed var(--linea); }
.rt-det > summary { display: flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.rt-det > p { font-size: 14px; color: var(--tinta-suave); padding-bottom: 8px; max-width: 62ch; }
.rt-cap { margin-top: 10px; font-size: 14px; font-weight: 700; }
.rt-tabla { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rt-tabla th, .rt-tabla td { padding: 9px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--linea); }
.rt-tabla thead th { font-size: 12px; font-weight: 800; color: var(--tinta-suave); line-height: 1.2; }
.rt-tabla tbody th { font-weight: 800; }
.rt-tabla small { display: block; font-size: 12px; font-weight: 600; color: var(--tinta-suave); }
.rt-no { color: var(--tinta-suave); }
@keyframes rt-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes rt-barra { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }

/* Tus mejores clientes */
.top { width: 100%; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.top th, .top td { padding: 4px 6px; text-align: left; vertical-align: middle; font-size: 14px; border-bottom: 1px solid var(--linea); }
.top thead th { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); padding-bottom: 6px; }
.top tbody th { font-weight: 800; }
.top td { white-space: nowrap; }
.top-nom { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-nom .av { flex: none; }
.link-nom { min-height: 44px; padding: 0 2px; font: inherit; font-weight: 800; text-align: left; color: var(--tinta); text-decoration: underline; text-decoration-color: var(--linea); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-nom:hover { text-decoration-color: var(--tinta); }
.ver-todos { margin-top: 6px; }
.ver-todos a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 800; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }

/* Cuánto tardan en completar la tarjeta */
.tardanza { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.tr-num { font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.tr-txt { font-size: 14px; line-height: 1.3; color: var(--tinta-suave); }
.tr-extra { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tr-extra li { background: var(--papel); border-radius: 16px; padding: 10px 14px; }
.tr-extra b { display: block; font-size: 18px; font-weight: 900; line-height: 1.2; }
.tr-extra span { font-size: 13px; color: var(--tinta-suave); }

/* Sellos por mozo: nombres más largos que los de los grupos */
.hbars.anchas .hbar { grid-template-columns: 130px 1fr; }
.hbars.anchas .hb-lbl { overflow-wrap: anywhere; line-height: 1.2; }
.e-caja { background: var(--tinta-suave); }
.hbars.anchas .hb-track b { white-space: nowrap; }
.hbars.anchas .hb-fill { max-width: calc(100% - 96px); }   /* deja lugar para "136 · 34 %" al lado de la barra */

/* Avisos y estados de una tarjeta */
.muestra-chica { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: var(--nuevo-bg); color: var(--tinta); font-size: 13px; font-weight: 700; }
.muestra-chica .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--pliegue-txt); }
.vacio-err .btn { margin-top: 4px; }
.t-sub { display: block; font-size: 12px; color: var(--tinta-suave); }
.prox { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 12px 16px; border: 1.5px dashed var(--linea); border-radius: 16px; font-size: 14px; color: var(--tinta-suave); }
.prox .ic { width: 20px; height: 20px; flex: none; }

/* Entrada de las columnas y de la línea: 260 ms, solo transform y opacity (con prefers-reduced-motion no hay animación, regla global) */
@keyframes num-crece { from { transform: scaleY(0); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes num-aparece { from { opacity: 0; } to { opacity: 1; } }
.cols .stack { transform-origin: bottom; animation: num-crece .26s var(--ease-out) both; }
.linea-ant { animation: num-aparece .26s var(--ease-out) .1s both; }

/* =========================================================
   SELLOS A MANO (#sellos, js/sellos.js)
   Desde 1100 px: dos columnas (1,3fr / 1fr): "Buscar y sellar" a la izquierda; "Agregar un cliente" y "Últimos movimientos"
   a la derecha. En el celu, apilado en ese orden. Movimiento: solo transform y opacity, 200 ms (con
   prefers-reduced-motion, la regla global lo apaga).
   ========================================================= */
.nav-item span { text-align: center; line-height: 1.1; }   /* "Sellos a mano" entra en dos renglones en la barra del celu */
.sm-permisos { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--papel-2); font-size: 14.5px; }
.sm-permisos .ic { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.sm-permisos-tit { font-weight: 900; }
.sm-permisos ul { margin: 4px 0 0 18px; display: grid; gap: 2px; font-weight: 700; }
.sm-permisos-ya { margin-top: 6px; color: var(--tinta-suave); font-weight: 700; }
.sm-grid, .sm-der { display: grid; gap: 16px; min-width: 0; align-content: start; }
@media (min-width: 1100px) { .sm-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
.sm-col { padding: 20px; min-width: 0; }
.sm-tit { font-size: 21px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.sm-campo { margin-top: 14px; }
.sm-campo > label { font-size: 15px; }
.sm-search input { height: 58px; font-size: 18px; }
.sm-lista-tit { margin-top: 16px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--pliegue-txt); }
.sm-lista { list-style: none; margin-top: 8px; border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; background: var(--blanco); }
.sm-lista[hidden], .sm-lista-tit[hidden] { display: none; }
.sm-op { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; cursor: pointer; border-top: 1px solid var(--linea); }
.sm-op:first-child { border-top: 0; }
.sm-op:hover { background: var(--papel); }
.sm-op.activo { background: var(--papel-2); box-shadow: inset 4px 0 0 var(--tinta); }   /* la marcada con las flechas: no solo por color */
.sm-op .av { width: 40px; height: 40px; font-size: 14px; }
.sm-op-txt { display: grid; min-width: 0; }
.sm-op-txt b { font-weight: 800; overflow-wrap: anywhere; }
.sm-op-txt small { font-size: 13.5px; color: var(--tinta-suave); font-weight: 700; }
.sm-ayuda { margin-top: 12px; font-size: 14.5px; color: var(--tinta-suave); }
.sm-sin { display: grid; gap: 10px; justify-items: start; margin-top: 14px; padding: 14px; border: 2px dashed var(--linea); border-radius: var(--radius-sm); }
.sm-sin p { font-weight: 800; overflow-wrap: anywhere; }
.sm-nota { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--tinta-suave); }

/* Tarjeta del cliente elegido */
.sm-cli { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--linea); }
.sm-cli-top { display: flex; gap: 14px; align-items: flex-start; }
.sm-cli-top .av { width: 56px; height: 56px; font-size: 19px; }
.sm-cli-id { min-width: 0; flex: 1 1 auto; }
.sm-cerrar { flex: none; width: 44px; height: 44px; margin-top: -6px; }   /* "Elegir a otro", arriba a la derecha */
.sm-cli-err:empty { display: none; }
.sm-cli-err { display: grid; gap: 10px; justify-items: start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--riesgo); background: var(--blanco); font-weight: 800; }
.sm-cli h3 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.sm-cli .tel { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--tinta-suave); }
.sm-cli .tel .ic { width: 16px; height: 16px; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--papel-2); color: var(--tinta); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.sm-chip .ic { width: 14px; height: 14px; }
.sm-sellos { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); background: var(--papel); }
.dots.sm-dots { gap: 7px; }
.dots.sm-dots i { width: 22px; height: 22px; }
.sm-sellos-txt { margin-top: 10px; font-weight: 800; }
.sm-canje { margin-top: 14px; min-height: 56px; }
.sm-aviso-conexion { margin-top: 14px; font-size: 13.5px; }   /* "Falta configurar la conexión…": discreto, arriba de Sumar */
.sm-acts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; align-items: start; }
.sm-acc { min-width: 0; }
.sm-acc .btn { width: 100%; }
.sm-sumar { min-height: 56px; font-size: 16.5px; background: var(--tinta); color: var(--papel); }
.sm-restar { min-height: 56px; border: 1.5px solid var(--tinta); }
.sm-restar[disabled] { border-color: var(--linea); }
.sm-cantidad { margin-top: 12px; }
.sm-cantidad > summary, .sm-agregar > summary { cursor: pointer; list-style: none; }
.sm-cantidad > summary::-webkit-details-marker, .sm-agregar > summary::-webkit-details-marker { display: none; }
.sm-cantidad > summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sm-cantidad .field { margin-top: 6px; max-width: 220px; }

/* Aviso del último movimiento (con "Deshacer" donde se puede): fijo abajo, pero en el DOM queda justo después de la
   tarjeta (Tab llega desde el buscador sin buscarlo) */
.sm-toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 80;
  width: max-content; max-width: min(560px, calc(100vw - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--tinta); color: var(--papel); box-shadow: 0 14px 30px -12px rgba(42,30,22,.6);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.sm-toast[hidden] { display: none; }
.sm-toast.ver { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .sm-toast { bottom: 28px; left: calc(50% + 126px); } }
.sm-toast-txt { font-weight: 800; font-size: 14.5px; flex: 1 1 200px; padding: 8px 0; }
.sm-toast-wallet { flex-basis: 100%; font-size: 13.5px; font-weight: 700; }
.sm-toast-des { min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 900; color: var(--carton); text-decoration: underline; text-underline-offset: 3px; }
.sm-toast-mot { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.sm-toast-mot button { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(251,246,238,.45); color: var(--papel); font-size: 13px; font-weight: 800; }
.sm-toast-mot button[aria-pressed="true"] { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.sm-toast :focus-visible { outline-color: var(--carton); }

/* Agregar un cliente */
.sm-agregar > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.sm-chev { transition: transform .2s var(--ease-out); }
.sm-agregar[open] .sm-chev { transform: rotate(90deg); }
.sm-agregar form { margin-top: 14px; }
.sm-tel { display: flex; align-items: stretch; }
.sm-pref { display: inline-flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--linea); border-right: 0; border-radius: 14px 0 0 14px; background: var(--papel-2); font-weight: 800; white-space: nowrap; }
.sm-tel .input { border-radius: 0 14px 14px 0; min-width: 0; }
.sm-err { font-size: 13.5px; font-weight: 800; color: var(--riesgo); }
.sm-err:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--riesgo); }
fieldset.sm-cumple { border: 0; margin-top: 14px; min-width: 0; }
.sm-cumple legend { font-size: 14px; font-weight: 800; margin-bottom: 6px; padding: 0; }
.sm-opc { font-weight: 600; color: var(--tinta-suave); }
.sm-cumple-sel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px; }
.sm-casilla-ayuda { margin: 4px 0 0 30px; font-size: 13.5px; color: var(--tinta-suave); }
.sm-legal { margin-top: 14px; }
.sm-dup { display: grid; gap: 8px; justify-items: start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--nuevo-bg); }
.sm-dup > p:first-child { font-weight: 800; }
.sm-dup-cli { overflow-wrap: anywhere; }
.sm-agregar-btn { margin-top: 16px; }
.sm-ok { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 900; color: var(--ok); }
.sm-ok .ic { width: 20px; height: 20px; }
.sm-ok ~ .sm-casilla-ayuda { margin-left: 28px; }

/* Diálogos con motivo (otro sello hoy, restar) */
dialog.dlg-manual { width: min(460px, calc(100vw - 32px)); }
.sm-motivos { border: 0; min-width: 0; }
.sm-motivos legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.sm-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-mot { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border: 1.5px solid var(--linea); border-radius: 999px; background: var(--blanco); font-weight: 800; font-size: 14.5px; cursor: pointer; }
.sm-mot input { width: 18px; height: 18px; accent-color: var(--tinta); flex: none; }
.sm-mot:has(input:checked) { border-color: var(--tinta); background: var(--papel-2); }
.sm-nota-campo { margin-top: 12px; }
dialog.dlg-manual .sm-err { display: block; min-height: 20px; margin-top: 8px; }

/* Últimos movimientos a mano */
.sm-movs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sm-movs-head .demo-tag { margin: 0; }
.sm-movs { list-style: none; margin-top: 10px; }
.sm-movs li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--linea); font-size: 14.5px; }
.sm-movs li:first-child { border-top: 0; }
.sm-mov-cuando { font-weight: 800; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.sm-mov-txt { overflow-wrap: anywhere; }
.sm-movs li.deshecho .sm-mov-txt { color: var(--tinta-suave); }
.sm-cargando { margin-top: 10px; }

/* Cuenta > Quién puede sellar */
.mozo-pantalla { margin-top: 12px; }

/* =========================================================
   Novedades (#novedades, js/novedades.js) y avisos en Tarjeta → Reglas
   ========================================================= */
.nov-card { padding: 20px; margin-bottom: 16px; }
.nov-tit { font-size: 20px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 10px; }
.nov-tit:focus { outline: none; }
.nov-tit:focus-visible { outline: 2.5px solid var(--sello); outline-offset: 4px; border-radius: 6px; }
.nov-texto { font-size: 18px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.nov-meta { margin: 6px 0 14px; color: var(--tinta-suave); font-size: 14.5px; font-weight: 700; }
.nov-ta { min-height: 72px; resize: vertical; font: inherit; line-height: 1.4; }
.nov-fecha { max-width: 220px; }
.nov-card .field { margin-bottom: 14px; }
.nov-card .btn-block { margin-top: 16px; }
.nov-ic svg { width: 30px; height: auto; display: block; }
.notif .nov-ic { background: var(--papel-2); }
.nov-dorso { display: grid; gap: 4px; justify-self: stretch; padding: 12px 14px; border-radius: 16px; background: var(--local-fondo, #1F3D2B); color: #F2E6D0; }
.nov-dorso-l { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.nov-dorso-v { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.nov-lista { list-style: none; }
.nov-lista li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--linea); }
.nov-lista li:last-child { border-bottom: 0; }
.nov-l-txt { font-weight: 800; overflow-wrap: anywhere; }
.nov-l-meta { font-size: 13.5px; color: var(--tinta-suave); font-weight: 700; }
.avisos-intro, .nov-reemplaza { display: block; margin: 0 0 6px; font-size: 13.5px; color: var(--tinta-suave); }
/* En la compu: lo publicado y las anteriores a la izquierda, el formulario a la derecha (el orden del DOM no cambia) */
@media (min-width: 1100px) {
  #novCuerpo { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto 1fr; gap: 0 16px; align-items: start; }
  #novCuerpo .nov-act { grid-column: 1; grid-row: 1; }
  #novCuerpo .nov-form { grid-column: 2; grid-row: 1 / span 2; }
  #novCuerpo .nov-ant { grid-column: 1; grid-row: 2; }
}
