/* =====================================================================
   Acronic: sistema de diseño
   Una sola fuente de verdad para colores, tipografía, espacios y
   componentes. Antes de crear un estilo nuevo, usa un token de aquí.
   Guía completa: docs/DISENO.md
   ===================================================================== */

:root {
  /* Color */
  /* Colores medidos en la consola de referencia (uptodown.dev, 9/10/2026) */
  --bg: #FAFAFA;          /* fondo de páginas */
  --surface: #FFFFFF;     /* tarjetas, filas, menú lateral */
  --ink: #1F4E5A;         /* títulos y texto */
  --text: #1F4E5A;        /* texto normal */
  --muted: #7F949A;       /* texto secundario, menú inactivo */
  --line: #E6ECEE;        /* divisores */
  --field-line: rgba(0, 0, 0, .23); /* borde de los campos */

  --primary: #00AAD5;     /* acción principal, enlaces, selección */
  --primary-hover: #0095BC;
  --primary-soft: #E0F5FB;
  --accent: #FFC94F;      /* acción secundaria destacada (ámbar) */
  --accent-hover: #F5B935;
  --accent-ink: #3B2C00;
  --earn: #17996B;        /* dinero que entra / ganancias */
  --earn-soft: #E2F5EC;
  --danger: #E5484D;      /* cancelar, rechazar, borrar: siempre lleno */
  --danger-hover: #CF3237;
  --danger-soft: #FDECEC;

  /* Tonos de estado: franja lateral de las filas y píldoras */
  --tone-ok: #C5D800;  --tone-ok-soft: #F5F9D6;  --tone-ok-ink: #5C6600;
  --tone-wait: #FFB300; --tone-wait-soft: #FFF3D6; --tone-wait-ink: #8A5A00;
  --tone-bad: #E5484D; --tone-bad-soft: #FDECEC;  --tone-bad-ink: #B3262B;
  --tone-off: #A4C0C7; --tone-off-soft: #EEF3F4;  --tone-off-ink: #5D7780;
  --tone-info: #00AAD5; --tone-info-soft: #E0F5FB; --tone-info-ink: #00708D;

  /* Tipografía: Outfit (la libre más parecida a Geomanist, la de la referencia); cifras tabulares.
     Pesos: 400 normal, 500 títulos y botones. Nada en negrita gruesa.
     Medidas en px reales del navegador. Ojo: las capturas del dueño están a escala 150 %. */
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-display: 30px;
  --fs-h1: 18px;       /* título de página ("Your Apps") */
  --fs-h2: 18px;       /* título de bloque */
  --fs-h3: 15px;
  --fs-body: 14px;
  --fs-small: 12px;
  --fs-tiny: 10px;

  /* Espacios (escala de 4) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* Formas */
  --r-ctl: 10px;     /* botones, campos */
  --r-card: 10px;    /* filas, paneles, tarjetas */
  --r-pill: 10px;    /* las píldoras también tienen radio 10 en la referencia */
  --shadow: 6px 6px 15px -3px rgba(0, 0, 0, .1);
  --shadow-btn: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);

  /* Notificaciones flotantes (fondo lleno, texto blanco salvo en advertencia) */
  --toast-ok: #12A150;
  --toast-error: #E5484D;
  --toast-info: #0B8DC2;
  --toast-warn: #FFC53D;
  --toast-warn-ink: #3B2C00;

  --side-w: 200px;
  --ease-out: cubic-bezier(.32, .72, 0, 1);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 87.5%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/20px var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img, svg { display: block; }
.ico { flex: none; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
/* "hidden" siempre oculta, aunque el componente tenga su propio display (p. ej. .field es flex) */
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-ctl); }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- Tipografía */
.display, .h1, .h2, .h3 { color: var(--ink); margin: 0; font-weight: 500; }
.display { font-size: var(--fs-display); line-height: 1.4; }
.h1 { font-size: var(--fs-h1); line-height: 26px; }
.h2 { font-size: var(--fs-h2); line-height: 26px; }
.h3 { font-size: var(--fs-h3); line-height: 1.4; }
.lead { font-size: var(--fs-small); line-height: 17px; color: var(--muted); margin: 0; max-width: 72ch; }
.muted { color: var(--muted); }
.small, small { font-size: var(--fs-small); line-height: 17px; }
.pre { white-space: pre-line; }
.count {
  display: inline-block; padding: 1px 6px; border-radius: 10px; margin-left: 2px;
  background: var(--primary); color: #fff; font: inherit; line-height: 23px; font-variant-numeric: tabular-nums;
}

/* Montos */
.amt { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt small { font-size: .78em; font-weight: 400; color: var(--muted); }
.amt-earn { color: var(--earn); }
.amt-neg { color: var(--text); }
.amt-lg { font-size: 16px; }

/* ---------------------------------------------------------------- Botones */
/* Como la referencia: 43 px de alto, 10/20 de relleno, 12 px en mayúsculas, peso medio, radio 10. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 43px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-ctl);
  font: 500 12px/1 var(--font); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background-color .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-btn); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--field-line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #CDEFF8; color: var(--primary-hover); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-btn); }
.btn-danger:hover { background: var(--danger-hover); color: #fff; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 10px; }
.btn-lg { height: 43px; padding: 0 20px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border: 0; border-radius: var(--r-ctl); background: var(--primary); color: #fff; cursor: pointer;
}
.icon-btn .ico { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--primary-hover); color: #fff; }
.icon-btn-sm { width: 26px; height: 26px; }
/* Botón gris de las filas (borrar), como en la referencia; se pone rojo al pasar el ratón */
.icon-btn-muted { background: var(--tone-off); }
.icon-btn-muted:hover { background: var(--danger); }
.row-actions form { display: inline-flex; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2); }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.row-actions.center { justify-content: center; }
.row-actions form { margin: 0; }

/* ---------------------------------------------------------------- Estructura del panel */
/* Menú lateral como la referencia: 200 px, relleno 20, ítems de 24 px separados 20 px, texto de 12 px. */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--surface);
  padding: 20px; display: flex; flex-direction: column;
  overflow-y: auto; scrollbar-width: none; z-index: 30;
}
.side::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: var(--s2); color: var(--ink); margin: 0 0 31px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brand small { font-size: 8px; font-weight: 500; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 20px; }
.nav-title { margin: 32px 0 16px; line-height: 14px; font-size: var(--fs-tiny); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 24px;
  color: var(--muted); font-weight: 500; font-size: 12px; line-height: 17px;
}
.nav-link .ico { width: 24px; height: 24px; color: var(--muted); stroke-width: 1.4; }
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active .ico { color: var(--primary); }
.nav-link.is-active::after {
  content: ""; position: absolute; right: -20px; top: -3px; height: 30px;
  width: 5px; border-radius: 10px 0 0 10px; background: var(--primary);
}
.nav-badge { margin-left: auto; font-style: normal; font-size: var(--fs-tiny); font-weight: 500; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-pill); padding: 0 6px; line-height: 16px; }
.side-foot { margin-top: auto; padding-top: var(--s6); display: flex; flex-direction: column; gap: 20px; font-size: var(--fs-tiny); line-height: 14px; }
.side-foot a, .side-foot .linklike { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.side-foot a:hover, .side-foot .linklike:hover { color: var(--ink); text-decoration: none; }
.side-foot .ico { width: 12px; height: 12px; }
.side-foot form { margin: 0; }

.shell { margin-left: var(--side-w); min-height: 100vh; min-height: 100dvh; }
.top {
  display: flex; align-items: flex-start; gap: 20px; justify-content: flex-end;
  padding: 20px 20px 0;
}
.menu-btn { display: none; margin-right: auto; }
.mbar { display: none; } /* barra con logo y menú: solo en móvil y tablet */
/* Franja superior: lo que ponga la página (el inicio, sus dos tarjetas) a la izquierda del usuario. */
.top-slot { flex: 1; min-width: 0; }
.top .who { flex: none; }
.who { display: flex; align-items: center; gap: var(--s2); color: var(--ink); text-align: right; }
.who:hover { text-decoration: none; color: var(--ink); }
.who span { display: flex; flex-direction: column; }
.who b { font-weight: 500; font-size: 12px; line-height: 17px; }
.who small { color: var(--muted); font-size: 9px; line-height: 13px; }
.who .ico { color: var(--primary); }
.main { padding: 20px 20px 48px; }
.scrim { display: none; }

/* ---------------------------------------------------------------- Encabezados de página */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 20px; }
.page-head-sm { margin: 40px 0 20px; align-items: center; }
.page-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.page-actions form { margin: 0; }
.back { display: inline-flex; font-weight: 500; font-size: var(--fs-small); margin-top: var(--s2); }
.back::before { content: "‹"; margin-right: 6px; font-size: 1.2em; line-height: .9; }

/* ---------------------------------------------------------------- Filas (componente principal) */
/* Cada fila lleva una franja a la izquierda con el color de su estado. */
/* Como la tabla de la referencia: filas de 80 px, ícono de 40, franja de 5×40, encabezados de 12 px. */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-head, .row { display: flex; align-items: center; gap: 30px; padding: 0 20px 0 30px; }
.list-head { color: var(--ink); font-size: var(--fs-small); line-height: 17px; padding-bottom: 20px; padding-left: calc(30px + 40px + 30px); }
.list-head span:first-child { flex: 1; }
.list-head span:not(:first-child), .row > .row-meta, .row > .amt { width: 140px; text-align: center; flex: none; }
.list-head span:last-child, .row > .row-end { width: 140px; text-align: right; flex: none; }
.row {
  position: relative; min-height: 80px; padding-top: 20px; padding-bottom: 20px; font-size: var(--fs-small);
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); color: var(--text);
}
.row::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -20px; height: 40px; width: 5px; border-radius: 0 10px 10px 0; background: var(--tone-off); }
.row-ok::before { background: var(--tone-ok); }
.row-wait::before { background: var(--tone-wait); }
.row-bad::before { background: var(--tone-bad); }
.row-info::before { background: var(--tone-info); }
.row-link:hover { text-decoration: none; color: var(--text); box-shadow: 0 0 0 1.5px var(--primary), var(--shadow); }
.row-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--ink); color: #fff; }
.row-ico .ico { width: 20px; height: 20px; }
a.row-ico:hover { color: #fff; text-decoration: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.row-main b { color: var(--ink); font-weight: 500; font-size: var(--fs-body); line-height: 20px; }
.row-main b a { color: inherit; }
.row-main small { color: var(--muted); overflow-wrap: anywhere; }
.row-meta { font-size: var(--fs-small); line-height: 17px; }
.row-meta b { color: var(--ink); font-size: var(--fs-body); font-weight: 500; }
.row .amt { font-size: var(--fs-body); }
.row-meta .ico { display: inline-block; vertical-align: -2px; }
.row-end { display: flex; justify-content: flex-end; }
.row-end.row-actions { gap: var(--s2); width: auto; min-width: 140px; }
.row-wrap { flex-wrap: wrap; }
.row-wrap .row-main { flex-basis: 280px; }

/* Movimientos con detalles (admin): tipo junto al título y una línea por dato */
.move-type { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--tone-info-ink); font-size: var(--fs-tiny); line-height: 18px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .03em; }
.move-row .row-main { gap: 2px; }
.move-line { color: var(--text) !important; }
.move-line code { font-size: 11px; overflow-wrap: anywhere; }

/* Píldoras de estado */
/* Como "DRAFT" en la referencia: fondo lleno, texto blanco de 10 px en mayúsculas y un punto blanco. */
.pill { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 10px 0 22px; border-radius: var(--r-pill); font-size: var(--fs-tiny); font-weight: 500; line-height: 14px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; color: #fff; background: var(--tone-off); }
.pill::before { content: ""; position: absolute; left: 7px; top: 50%; margin-top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.pill-ok { background: var(--tone-ok); color: #fff; }
.pill-wait { background: var(--tone-wait); color: #fff; }
.pill-bad { background: var(--tone-bad); color: #fff; }
.pill-off { background: var(--tone-off); color: #fff; }
.pill-info { background: var(--tone-info); color: #fff; }

/* ---------------------------------------------------------------- Paneles, cifras, pestañas */
.panel { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px; border: 0; margin: 0; min-width: 0; }
.panel > .h3, .panel > legend { margin-bottom: 20px; font-size: var(--fs-h2); line-height: 26px; color: var(--muted); font-weight: 500; }
.panel legend { float: left; width: 100%; padding: 0; }
.panel legend + * { clear: both; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel .grid-2, .form .grid-2 { gap: 25px 15px; }
.gap-top { margin-top: 20px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); color: var(--text); }
a.tile:hover { text-decoration: none; color: var(--text); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.tile-label { font-weight: 400; font-size: var(--fs-small); line-height: 17px; color: var(--muted); }
.tile-num { color: var(--ink); font-size: 24px; font-weight: 500; line-height: 32px; font-variant-numeric: tabular-nums; }
.tile-earn .tile-num { color: var(--earn); }
.tile-foot { font-size: var(--fs-small); color: var(--muted); }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: var(--s2) 0 10px; color: var(--muted); font-weight: 500; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.is-on { color: var(--primary); border-bottom-color: var(--primary); }

.empty { text-align: center; padding: 32px 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.empty .h3 { font-size: var(--fs-h2); }
.empty p { max-width: 46ch; margin: var(--s2) auto 20px; font-size: var(--fs-small); }

/* ---------------------------------------------------------------- Formularios */
/* Campos con la etiqueta sobre el borde (estilo de referencia del dueño, 9/10/2026):
   <label class="field"><span>Etiqueta</span><input …><small>Ayuda</small></label> */
/* Como los campos de la referencia (Material): 53 px de alto, borde fino, etiqueta de 10,5 px sobre el
   borde, 25 px entre filas y 15 px entre columnas. */
.form { display: flex; flex-direction: column; gap: 25px; }
/* Formularios de página completa: ocupan todo el ancho del contenido, como los paneles de la referencia. */
.form-wide { gap: 25px; }
.field { position: relative; display: flex; flex-direction: column; gap: 4px; }
/* Panel con campos: columna con la misma separación de 25 px que un .form (los ocultos no cuentan). */
/* :where() deja la regla sin peso, para que un panel con su propio orden (p. ej. .fund-row) mande. */
.panel:where(:has(> .field, > .grid-2 > .field)) { display: flex; flex-direction: column; gap: 25px; }
.panel:where(:has(> .field, > .grid-2 > .field)) > legend.h3 { margin-bottom: -5px; }
.panel:where(:has(> .field, > .grid-2 > .field)) > .calc { margin-top: 0; }
.field > span:first-child {
  position: absolute; top: 0; left: 9px; z-index: 1; transform: translateY(-50%);
  max-width: calc(100% - 18px); padding: 0 5px;
  /* Solo tapa la línea del borde (mitad de abajo); arriba queda transparente sobre cualquier fondo. */
  background: linear-gradient(to bottom, transparent calc(50% - 1px), var(--surface) calc(50% - 1px));
  color: var(--ink); font-size: 10.5px; font-weight: 400; line-height: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; transition: color .15s;
}
.field:has(:required) > span:first-child::after { content: " *"; }
.field:focus-within > span:first-child { color: var(--primary); }
.field small { color: var(--muted); padding: 0 14px; }
.field .err { color: var(--tone-bad-ink); font-weight: 500; }
.captcha > span:first-child { position: static; transform: none; padding: 0; background: none; color: var(--ink); font-size: var(--fs-body); line-height: 20px; }
input, select, textarea {
  width: 100%; min-height: 53px; padding: 15.5px 14px; border: 1px solid var(--field-line); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); font: 400 14px/20px var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 104px; }
input::placeholder, textarea::placeholder { color: #9AABB0; font-weight: 400; }
input:hover:not(:disabled):not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
input:disabled { background: var(--bg); color: var(--muted); }
/* Autocompletado del navegador: sin el fondo celeste ni la letra Arial que pone Chrome, para que el
   campo siga blanco como su etiqueta. */
input:-webkit-autofill, input:-webkit-autofill:hover, select:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0 1000px var(--surface); box-shadow: inset 0 0 0 1000px var(--surface);
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 600000s 0s;
}
input:-webkit-autofill:focus { -webkit-box-shadow: inset 0 0 0 1px var(--primary), inset 0 0 0 1000px var(--surface); box-shadow: inset 0 0 0 1px var(--primary), inset 0 0 0 1000px var(--surface); }
input:-webkit-autofill::first-line { font-family: var(--font); font-size: 14px; }
input:autofill { background: var(--surface); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--primary); flex: none; margin: 1px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); cursor: pointer; font-size: var(--fs-small); line-height: 18px; }
.input-sm { min-height: 30px; height: 30px; padding: 4px 10px; width: 120px; font-size: var(--fs-small); }
.inline-form { display: flex; gap: var(--s2); align-items: center; }
.inline-form .input-sm[name="txid"] { width: 170px; }
.inline-form .input-email { width: 240px; }

.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.choice-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .choice-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-types { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
/* Imagen de la promoción: etiqueta encima (no sobre el borde) y vista previa de la actual */
.promo-image > span:first-child { position: static; transform: none; padding: 0; background: none; color: var(--ink); font-size: var(--fs-body); line-height: 20px; }
.promo-image input[type="file"] { min-height: 0; padding: 10px; }
.review-img { display: block; max-width: 220px; max-height: 160px; margin-top: 8px; border-radius: var(--r-ctl); object-fit: cover; }
.promo-image-now { max-width: 240px; height: auto; border-radius: var(--r-ctl); box-shadow: var(--shadow); }

/* Encuesta: constructor de preguntas (anunciante) */
.form-help { margin: 0 0 8px; max-width: 90ch; }
.q-list { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.q-slot { display: flex; flex-direction: column; gap: 25px; padding: 16px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-card); }
.q-slot .grid-2 { gap: 25px 15px; }
.q-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.q-head b { font-weight: 500; }

/* Enlace de promoción (r.php): imagen del anunciante y botón para ir a su sitio */
.rgo-body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; background: var(--bg); }
.rgo { width: 100%; max-width: 440px; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .25); }
.rgo-img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; background: #F0F3F4; }
.rgo-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.rgo-title { margin: 0; color: var(--ink); font-size: 20px; line-height: 28px; font-weight: 500; }
.rgo-text { margin: 0; color: var(--text); white-space: pre-line; }
.rgo-foot { margin: 0; text-align: center; color: var(--muted); font-size: var(--fs-small); }

/* Promocionar: tarjetas de campañas y kit para compartir */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.promo-card { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
a.promo-card:hover { text-decoration: none; color: var(--text); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.promo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #F0F3F4; }
.promo-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.promo-card-body b { color: var(--ink); font-weight: 500; font-size: 15px; line-height: 21px; }
.promo-card-body small { color: var(--muted); }
.promo-card-pay { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.kit { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.kit-img { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--shadow); background: #F0F3F4; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wa { background: #25D366; color: #fff; box-shadow: var(--shadow-btn); }
.btn-wa:hover { background: #1EBE5A; color: #fff; }
.btn-fb { background: #1877F2; color: #fff; box-shadow: var(--shadow-btn); }
.btn-fb:hover { background: #0F65D9; color: #fff; }
.btn-tg { background: #229ED9; color: #fff; box-shadow: var(--shadow-btn); }
.btn-tg:hover { background: #1A8BC2; color: #fff; }
.share-text { width: 100%; min-height: 96px; }
@media (max-width: 900px) { .kit { grid-template-columns: minmax(0, 1fr); } }

/* Juego Gusanos: pantalla completa con controles encima */
.game-body { margin: 0; overflow: hidden; background: #0B1220; color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; display: block; cursor: crosshair; }
.g-hud { position: fixed; inset: 0; pointer-events: none; }
.g-top { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.g-value { display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--r-ctl); background: rgba(11, 18, 32, .72); border: 1px solid rgba(255,255,255,.12); }
.g-value small { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.g-value b { font-size: 22px; font-weight: 600; color: #FFC94F; font-variant-numeric: tabular-nums; }
.g-value span { font-size: 11px; opacity: .7; }
.g-board { margin: 0; padding: 10px 14px 10px 30px; border-radius: var(--r-ctl); background: rgba(11, 18, 32, .72); border: 1px solid rgba(255,255,255,.12); font-size: 12px; line-height: 18px; min-width: 150px; font-variant-numeric: tabular-nums; }
.g-board:empty { display: none; }
.g-bottom { position: absolute; left: 14px; bottom: 16px; display: flex; gap: 12px; pointer-events: auto; }
.g-btn { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 0; color: #fff; font: 600 13px/1.1 var(--font); cursor: pointer; touch-action: none; }
.g-btn span { display: block; }
.g-boost { background: rgba(0, 170, 213, .85); font-size: 22px; }
.g-boost span { font-size: 11px; }
.g-cash { background: rgba(23, 153, 107, .9); }
.g-cash small { font-size: 10px; opacity: .85; font-weight: 400; }
.g-cash svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.g-ring-bg { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 3; }
.g-ring { fill: none; stroke: #FFC94F; stroke-width: 4; stroke-dasharray: 126; stroke-dashoffset: 126; stroke-linecap: round; transition: stroke-dashoffset .05s linear; }
.g-help { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 420px; margin: 0; text-align: center; font-size: 11px; opacity: .55; }
.g-modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 23, .6); pointer-events: auto; }
.g-card { width: 100%; max-width: 380px; padding: 24px; border-radius: var(--r-card); background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.g-card h2 { margin: 0 0 8px; color: var(--ink); font-size: 22px; font-weight: 500; }
.g-card p { margin: 0 0 18px; }
.g-card .row-actions { justify-content: center; }
@media (max-width: 640px) { .g-help { display: none; } .g-board { display: none; } .g-btn { width: 76px; height: 76px; } }

/* Aviso del admin en el panel */
.announce { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding: 16px 16px 16px 20px; border-radius: var(--r-card);
            background: linear-gradient(120deg, #E0F5FB, #F1ECFF); box-shadow: var(--shadow); }
.announce-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--primary); color: #fff; }
.announce-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.announce-text b { color: var(--ink); font-weight: 500; font-size: 16px; line-height: 22px; }
.announce-text p { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.announce-text .btn { margin-top: 4px; }

/* Racha y nivel (inicio y tareas) */
.rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.reward { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.reward-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--tone-off-soft); color: var(--tone-off-ink); }
.reward-streak.is-hot .reward-ico { background: #FFF1DC; color: #E8710A; }
.reward-silver .reward-ico { background: #EEF2F6; color: #64748B; }
.reward-gold .reward-ico { background: #FFF6D6; color: #B7860F; }
.reward-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reward-text small { color: var(--muted); font-size: var(--fs-small); line-height: 17px; }
.reward-text b { color: var(--ink); font-weight: 500; font-size: 18px; line-height: 24px; }
.reward-text em { font-style: normal; color: var(--earn); font-size: 14px; margin-left: 4px; }
.reward-bar { width: 100%; height: 6px; margin-top: 4px; border: 0; border-radius: 6px; overflow: hidden; background: var(--line); appearance: none; }
.reward-bar::-webkit-progress-bar { background: var(--line); border-radius: 6px; }
.reward-bar::-webkit-progress-value { background: var(--primary); border-radius: 6px; }
.reward-bar::-moz-progress-bar { background: var(--primary); border-radius: 6px; }
@media (max-width: 640px) { .rewards { grid-template-columns: minmax(0, 1fr); } }

/* Verificador en la red: resultado bajo cada depósito */
/* Incentivos para anunciantes (billetera y nueva campaña) */
.incentive { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding: 16px 20px; border-radius: var(--r-card);
             background: linear-gradient(120deg, #E0F5FB, #F1ECFF); box-shadow: var(--shadow); }
.incentive > .ico { flex: none; box-sizing: content-box; padding: 9px; border-radius: var(--r-ctl); background: var(--primary); color: #fff; }
.incentive p { margin: 0 0 4px; }
.incentive small { color: var(--muted); }
.chain-check { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 4px; font-weight: 500; }
.chain-check .ico { flex: none; margin-top: 1px; }
.chain-ok { color: var(--earn); }
.chain-pending, .chain-error { color: var(--tone-wait-ink); }
.chain-not_found, .chain-failed, .chain-wrong_dest { color: var(--tone-bad-ink); }

/* Tareas: columna "Repetir" y encabezado de listas sin ícono */
.repeat-cell { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.repeat-cell .ico { color: var(--muted); }
.list-head-plain { padding-left: 30px; }

/* Tareas: cuenta regresiva para poder repetir */
.cooldown { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.cooldown small { color: var(--muted); font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: .03em; }
.cooldown b { color: var(--ink); font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }

/* Encuesta: respuestas en la página de la campaña */
.answers { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 6px 16px; margin: 10px 0 0; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--bg); font-size: var(--fs-small); line-height: 17px; }
.answers dt { color: var(--muted); }
.answers dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 640px) { .answers { grid-template-columns: minmax(0, 1fr); } .answers dd { margin-bottom: 6px; } }

/* Encuesta: preguntas al hacer la tarea */
.survey-q { display: flex; flex-direction: column; gap: 10px; }
.survey-q > b { color: var(--ink); font-weight: 500; line-height: 20px; }
.survey-q textarea { min-height: 80px; }

/* Nota informativa dentro de un formulario */
.note { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4) var(--s5); border-radius: var(--r-card); background: var(--earn-soft); color: #0E6B4A; }
.note .ico { margin-top: 2px; }
.note p { margin: 0; }
.note b { font-weight: 500; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card > span { display: flex; flex-direction: column; gap: var(--s1); height: 100%; padding: var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-card); }
.choice-card .ico { color: var(--primary); margin-bottom: var(--s2); }
.choice-card b { color: var(--ink); font-weight: 500; }
.choice-card small { color: var(--muted); }
.choice-card input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice-card:has(input:disabled) { cursor: not-allowed; }
.choice-card input:disabled + span { opacity: .45; }
.choice-card input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); padding: var(--s4); margin-top: var(--s4); background: var(--bg); border-radius: var(--r-ctl); }
.calc div { display: flex; flex-direction: column; }
.calc span { font-size: 12px; font-weight: 400; color: var(--muted); }
.calc b { color: var(--ink); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc small { color: var(--muted); }

/* Avisos */
.flash { padding: var(--s3) var(--s4); border-radius: var(--r-ctl); margin-bottom: var(--s4); font-weight: 500; border-left: 5px solid; }
.flash-ok { background: var(--earn-soft); color: #0E6B4A; border-color: var(--earn); }
.flash-error { background: var(--danger-soft); color: var(--tone-bad-ink); border-color: var(--danger); }
.flash-info { background: var(--primary-soft); color: var(--tone-info-ink); border-color: var(--primary); }
.verify-band { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; font-weight: 400; }
.verify-band .btn { flex: none; }

/* Interruptor (encender/apagar una opción) y fila de ajuste */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s5); }
.setting-text { display: flex; flex-direction: column; gap: 2px; }
.setting-text b { color: var(--ink); font-weight: 500; font-size: var(--fs-body); }
.setting-text small { color: var(--muted); }
.setting-text .check { margin-top: var(--s2); }
.switch {
  position: relative; flex: none; width: 44px; height: 24px; padding: 0; border: 0; cursor: pointer;
  border-radius: 12px; background: var(--tone-off); transition: background-color .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s var(--ease-out);
}
.switch.is-on { background: var(--toast-ok); }
.switch.is-on::after { transform: translateX(20px); }

/* Agregar fondos a una campaña: texto, monto y botón en una línea */
.panel.fund-row { display: flex; flex-direction: row; align-items: center; gap: 15px 20px; flex-wrap: wrap; }
.fund-row .setting-text { flex: 1 1 320px; }
.fund-row .field { flex: 0 1 220px; }

/* Tabla de datos (alertas, registro, dispositivos) */
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 17px; }
.table th { text-align: left; color: var(--ink); font-weight: 400; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

/* Riesgo */
.risk-panel { margin-bottom: var(--s5); }
.risk-panel .setting-row { align-items: flex-start; margin-bottom: 0; flex-wrap: wrap; }
.risk-panel .setting-text b { display: flex; align-items: center; gap: var(--s2); }
.reasons { margin: var(--s2) 0 0; padding-left: 1.2em; color: var(--text); }
.risk-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
details summary { cursor: pointer; list-style-position: inside; }
details[open] summary { margin-bottom: var(--s3); }

/* Notificaciones flotantes: arriba a la derecha, entran desde la derecha y salen hacia ella */
.toasts {
  position: fixed; top: var(--s4); right: var(--s4); z-index: 60;
  display: flex; flex-direction: column; gap: var(--s3);
  width: min(380px, calc(100vw - 2 * var(--s4))); pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 56px; padding: 14px 44px 14px 16px;
  border-radius: var(--r-ctl); color: #fff;
  box-shadow: 0 10px 30px rgba(23, 59, 87, .22);
  animation: toast-in .42s var(--ease-out) both;
}
.toast.is-out { animation: toast-out .28s cubic-bezier(.5, 0, .75, 0) both; }
.toast-ok { background: var(--toast-ok); }
.toast-error { background: var(--toast-error); }
.toast-info { background: var(--toast-info); }
.toast-warn { background: var(--toast-warn); color: var(--toast-warn-ink); }
.toast-ico { flex: none; display: grid; place-items: center; }
.toast-ico .ico { width: 22px; height: 22px; }
.toast-msg { margin: 0; font-size: var(--fs-body); font-weight: 400; line-height: 20px; }
.toast-x {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center;
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; opacity: .85;
}
.toast-x:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.toast-x:focus-visible { outline-color: #fff; }
.toast-bar {
  position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: rgba(255, 255, 255, .45); transform-origin: left;
  animation: toast-bar var(--toast-time, 5s) linear forwards;
}
.toast-warn .toast-bar { background: rgba(59, 44, 0, .3); }
.toast:hover .toast-bar { animation-play-state: paused; }
@keyframes toast-in { from { transform: translateX(calc(100% + 32px)); } to { transform: none; } }
@keyframes toast-out { from { transform: none; opacity: 1; } to { transform: translateX(calc(100% + 32px)); opacity: .6; } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) {
  .toasts { top: var(--s3); right: var(--s3); width: calc(100vw - 2 * var(--s3)); }
}

/* Buscador (como en la consola de referencia: 288×53) */
.search { display: flex; align-items: center; gap: 0; width: 288px; max-width: 100%; height: 53px; padding: 0 6px 0 0; margin-bottom: 30px; background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-ctl); }
.search input { border: 0; min-height: 51px; box-shadow: none; }
.search input:focus { box-shadow: none; }
.search:focus-within { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.search .icon-btn { background: transparent; color: rgba(0, 0, 0, .54); width: 36px; height: 36px; border-radius: 50%; }
.search .icon-btn:hover { background: rgba(0, 0, 0, .04); }
.search .icon-btn .ico { width: 21px; height: 21px; }

/* Depósito con monto exacto */
.deposit-auto { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s5); }
.deposit-auto p { margin: 0; }
.exact-amount { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-radius: var(--r-card); background: var(--primary-soft); }
.exact-amount code { font: 500 24px/1.2 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.exact-amount span { font-weight: 500; color: var(--muted); margin-right: auto; }

.claim { border-top: 1.5px solid var(--line); padding-top: var(--s4); margin-top: var(--s2); }
.claim summary { color: var(--primary); font-weight: 500; cursor: pointer; }
.claim summary:hover { color: var(--primary-hover); }
.claim[open] summary { margin-bottom: var(--s3); }
.claim .form { max-width: 560px; }

/* Direcciones */
.addr { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border: 1.5px dashed var(--line); border-radius: var(--r-ctl); margin-bottom: var(--s3); }
.addr-net { font-weight: 500; color: var(--ink); font-size: 12px; width: 92px; flex: none; }
.addr code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.addr-inline { display: inline-flex; align-items: center; gap: 6px; }
.addr-inline code { color: var(--ink); overflow-wrap: anywhere; }
.mono-wrap { font-family: ui-monospace, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Hacer una tarea */
.task-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.task-grid .panel:last-child { display: flex; flex-direction: column; gap: var(--s4); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--s4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: var(--s3); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.steps b { color: var(--ink); }
.steps span { color: var(--text); }
.steps-tight { margin: var(--s4) 0 var(--s5); }
.keyword { display: flex; align-items: center; gap: var(--s2); margin-top: 6px; }
.keyword code { flex: 1; padding: 10px 14px; background: var(--bg); border-radius: var(--r-ctl); color: var(--ink); font: 500 15px var(--font); }
.visit-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.visit-list a { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-ctl); color: var(--ink); font-weight: 500; }
.visit-list a span { overflow-wrap: anywhere; }
.visit-list a:hover { border-color: var(--primary); text-decoration: none; }
.visit-list a.is-visited { border-color: var(--tone-ok); background: var(--tone-ok-soft); }
/* Tareas de video de YouTube */
.yt-card { display: flex; gap: var(--s4); align-items: center; margin: var(--s4) 0; }
.yt-card img { border-radius: var(--r-ctl); flex: none; background: var(--line); }
.yt-card b { display: block; color: var(--ink); font-weight: 500; line-height: 1.3; }
.yt-card small { color: var(--muted); }
.rules { margin: 0 0 var(--s5); padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s2); }
.rules b { color: var(--ink); }

.watch-page { background: var(--bg); }
.watch-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); max-width: 1000px; margin: 0 auto; padding: var(--s4) var(--s5) 0; }
.watch-top .brand { margin: 0; }
.watch-main { max-width: 1000px; margin: 0 auto; padding: var(--s4) var(--s5) var(--s7); display: flex; flex-direction: column; gap: var(--s4); }
.watch-title { overflow-wrap: anywhere; }
.player-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player-box iframe, #yt-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-check { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s4); background: rgba(23, 59, 87, .82); z-index: 2; }
.watch-check-card { background: var(--surface); border-radius: var(--r-card); padding: var(--s6); text-align: center; max-width: 360px; display: flex; flex-direction: column; gap: var(--s3); animation: sheet-up .32s var(--ease-out); }
.watch-status { display: flex; flex-direction: column; gap: var(--s4); }
.watch-note { margin: 0; font-weight: 500; color: var(--ink); }
@media (max-width: 640px) {
  .watch-top, .watch-main { padding-left: var(--s3); padding-right: var(--s3); }
  .player-box { border-radius: var(--r-ctl); }
  .watch-check-card { padding: var(--s5); }
}

/* Tarjetas promocionales del panel (como los banners de la consola de referencia) */
.promos { display: grid; grid-template-columns: repeat(2, minmax(0, 364px)); gap: 20px; }
.promo {
  position: relative; display: flex; align-items: center; height: 100px; padding: 10px 14px;
  border-radius: var(--r-card); overflow: hidden; color: #fff; isolation: isolate;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.promo:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 59, 87, .18); }
.promo-ads { background: linear-gradient(120deg, #0E9AD0 0%, #12A5D9 45%, #4CCBF0 100%); }
.promo-earn { background: linear-gradient(120deg, #128A60 0%, #17996B 45%, #3FC08F 100%); }
.promo-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 66%; }
.promo-text b { font-size: 21px; font-weight: 600; line-height: 1.1; white-space: nowrap; text-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.promo-text small { font-size: 10px; opacity: .95; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.promo-btn {
  margin-top: 8px; display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 5px; background: #fff; color: var(--primary); font-weight: 500; font-size: 9px;
  text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.promo-btn-dark { background: var(--ink); color: #fff; }
.promo-art { position: absolute; right: -4px; bottom: 0; height: 100%; width: auto; max-width: 44%; z-index: 0; }
@media (max-width: 1250px) { .promo-text b { font-size: 18px; } }
@media (max-width: 900px) { .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .promos { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .promo { height: 100px; }
  .promo-art { opacity: .9; }
}

/* Preguntas de verificación: opciones como fichas que se marcan */
.quiz { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz legend { color: var(--ink); font-weight: 500; margin-bottom: var(--s3); padding: 0; }
.quiz legend b { font-weight: 500; overflow-wrap: anywhere; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.quiz-opt { position: relative; cursor: pointer; }
.quiz-opt input { position: absolute; opacity: 0; }
.quiz-opt span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--field-line); border-radius: var(--r-ctl); color: var(--ink); font-weight: 400;
}
.quiz-opt:hover span { border-color: var(--primary); }
.quiz-opt input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.quiz-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.timer { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--s3); padding: var(--s4); background: var(--bg); border-radius: var(--r-ctl); }
.timer-num { font-size: 28px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; min-width: 2ch; }
.timer-label { font-weight: 400; font-size: 12px; }
.timer-bar { grid-column: 1 / -1; height: 6px; margin-top: var(--s3); background: var(--line); border-radius: 6px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 6px; transition: width .9s linear; }
.timer.is-done .timer-num { color: var(--earn); }
.timer.is-done .timer-bar i { background: var(--earn); }

/* ---------------------------------------------------------------- Ventana emergente (popup)
   Centrada, título arriba a la izquierda y botones abajo a la derecha: Cancelar suave + acción. */
.sheet {
  position: fixed; inset: 0; margin: auto; width: min(600px, calc(100vw - 2 * var(--s4))); height: fit-content;
  max-height: calc(100dvh - 2 * var(--s4)); overflow: auto; padding: 0;
  border: 0; border-radius: var(--r-card); background: var(--surface); color: var(--text);
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12);
}
.sheet[open] { animation: dialog-in .2s var(--ease-out); }
.sheet::backdrop { background: rgba(0, 0, 0, .5); }
.sheet-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.sheet-body .h3 { font-size: 20px; line-height: 28px; font-weight: 500; }
.sheet-body p { margin: 0; }
.sheet .row-actions { justify-content: flex-end; margin-top: 8px; gap: 10px; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 640px) {
  .sheet-body { padding: var(--s5); }
  .sheet .row-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------------- Páginas públicas y portada
   Mismo sistema que el panel: Outfit, tinta #1F4E5A, cian #00AAD5, radio 10 y sombras suaves.
   La portada (body.landing) reutiliza el degradado y las ondas de la pantalla de entrar. */
html:has(body.landing) { scroll-behavior: smooth; }
.landing [id] { scroll-margin-top: 84px; }
.pub-top {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line);
}
.pub-bar { display: flex; align-items: center; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 14px 20px; }
.pub-top .brand { margin: 0; }
.pub-links { display: flex; gap: 28px; margin-left: auto; }
.pub-links a { color: var(--muted); font-size: 13px; font-weight: 500; }
.pub-links a:hover { color: var(--ink); text-decoration: none; }
.pub-nav { display: flex; gap: var(--s2); margin-left: 8px; }
.pub-main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 72px; }

.pub-foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }
.pub-foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 32px 20px 24px; }
.pub-foot-brand .brand { margin: 0 0 10px; }
.pub-foot-brand p { margin: 0; max-width: 34ch; }
.pub-foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 8px; }
.pub-foot-links a { color: var(--ink); }
.pub-copy { max-width: 1180px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--line); font-size: 11px; }

/* Portada: bloque principal con el degradado de la marca */
.lp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center;
  padding: 64px 56px 96px; border-radius: 10px; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #12A5D9 0%, #2C9FD6 38%, #5E8FD3 70%, #9A9BD3 100%);
}
.lp-hero .auth-waves { z-index: -1; height: 38%; }
.lp-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: 12px; font-weight: 500; letter-spacing: .02em;
}
.lp-title { margin: 0; font-size: 40px; line-height: 50px; font-weight: 500; letter-spacing: -.01em; }
.lp-lead { margin: 0; font-size: 16px; line-height: 24px; opacity: .95; max-width: 52ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-btn); }
.lp-btn-white:hover { background: #fff; color: var(--primary-hover); }
.lp-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.lp-checks li { display: inline-flex; align-items: center; gap: 6px; }

/* Tarjeta de ejemplo: la lista de tareas, con las mismas filas del panel */
.lp-demo { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 24px 48px -12px rgba(23, 40, 80, .35); }
.lp-demo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--ink); font-size: 16px; }
.lp-demo-head b { font-weight: 500; }
.lp-demo-head .count { font-size: 13px; line-height: 20px; }
.lp-demo-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-demo-row::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -16px; height: 32px; width: 4px; border-radius: 0 10px 10px 0; background: var(--tone-ok); }
.lp-demo-row .row-ico { width: 36px; height: 36px; }
.lp-demo-row .row-main b { font-size: 13px; line-height: 18px; }
.lp-demo-row .row-main small { font-size: 11px; line-height: 15px; }
.lp-demo-foot { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: 11px; }

/* Cifras de la plataforma, montadas sobre el borde del bloque principal */
.lp-facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -40px 40px 0; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); }
.lp-facts div { display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; }
.lp-facts div + div { border-left: 1px solid var(--line); }
.lp-facts b { color: var(--ink); font-size: 22px; line-height: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lp-facts span { color: var(--muted); font-size: 12px; line-height: 17px; }
.lp-proof { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

/* Secciones */
.lp-section { padding-top: 80px; }
.lp-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.lp-kicker { margin: 0 0 8px; color: var(--primary); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.lp-kicker-earn { color: var(--earn); }
.lp-h2 { margin: 0; color: var(--ink); font-size: 30px; line-height: 38px; font-weight: 500; }
.lp-sub { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 22px; }

.lp-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px 22px;
  background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); transition: transform .2s var(--ease-out), box-shadow .2s;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .18); }
.lp-ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.lp-card h3 { margin: 0; color: var(--ink); font-size: 18px; line-height: 26px; font-weight: 500; }
.lp-card p { margin: 0; flex: 1; line-height: 21px; }
.lp-price { width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--earn); font-size: 12px; font-weight: 500; }

/* Los dos lados: anunciantes y quienes hacen tareas */
.lp-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lp-side { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); }
.lp-side::before { content: ""; position: absolute; left: 0; top: 30px; width: 5px; height: 40px; border-radius: 0 10px 10px 0; background: var(--primary); }
.lp-side-earn::before { background: var(--earn); }
.lp-side .lp-kicker { margin: 0; }
.lp-h3 { margin: -8px 0 4px; color: var(--ink); font-size: 22px; line-height: 30px; font-weight: 500; }
.lp-side .steps { margin-bottom: 8px; }
.lp-side .steps b { font-weight: 500; }
.lp-side .steps span { color: var(--muted); }
.steps-earn li::before { background: var(--earn-soft); color: var(--earn); }
.lp-side .btn { margin-top: auto; }

/* Antifraude, sobre fondo tinta */
.lp-trust { margin-top: 80px; padding: 56px 48px; border-radius: 10px; background: var(--ink); color: rgba(255, 255, 255, .78); }
.lp-trust .lp-kicker { color: #6FD8F2; }
.lp-trust .lp-h2 { color: #fff; }
.lp-trust .lp-sub { color: rgba(255, 255, 255, .7); }
.lp-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lp-trust-grid > div { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.lp-trust-grid i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 10px; background: rgba(0, 170, 213, .2); color: #6FD8F2; }
.lp-trust-grid b { color: #fff; font-size: 15px; font-weight: 500; }
.lp-trust-grid p { margin: 0; font-size: 13px; line-height: 19px; }

/* Preguntas frecuentes */
.lp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.lp-faq details { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 500; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .ico { flex: none; color: var(--primary); transition: transform .2s var(--ease-out); }
.lp-faq details[open] summary { margin-bottom: 0; }
.lp-faq details[open] summary .ico { transform: rotate(180deg); }
.lp-faq details p { margin: 0; padding: 0 22px 20px; line-height: 22px; }

/* Cierre */
.lp-final {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 80px; padding: 40px 48px; border-radius: 10px; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(120deg, #0E9AD0 0%, #12A5D9 45%, #4CCBF0 100%);
}
.lp-final h2 { margin: 0; font-size: 26px; line-height: 34px; font-weight: 500; }
.lp-final p { margin: 6px 0 0; opacity: .95; }

@media (max-width: 1000px) {
  .pub-links { display: none; }
  .pub-nav { margin-left: auto; }
  .lp-hero { grid-template-columns: minmax(0, 1fr); padding: 48px 32px 88px; }
  .lp-demo { max-width: 540px; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -40px 20px 0; }
  .lp-facts div:nth-child(3) { border-left: 0; }
  .lp-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lp-types, .lp-sides { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pub-bar { gap: 12px; padding: 12px 16px; }
  .pub-main { padding: 16px 16px 48px; }
  .lp-hero { gap: 32px; padding: 36px 20px 72px; }
  .lp-title { font-size: 30px; line-height: 38px; }
  .lp-lead { font-size: 15px; line-height: 22px; }
  .lp-cta .btn { flex: 1 1 auto; }
  .lp-facts { margin: -32px 10px 0; }
  .lp-facts div { padding: 16px; }
  .lp-facts b { font-size: 18px; line-height: 26px; }
  .lp-section { padding-top: 56px; }
  .lp-h2 { font-size: 24px; line-height: 32px; }
  .lp-side { padding: 24px 20px; }
  .lp-trust { margin-top: 56px; padding: 40px 20px; }
  .lp-trust-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-final { margin-top: 56px; padding: 32px 20px; }
  .lp-final .lp-cta { width: 100%; }
}

.auth-page .pub-main { display: grid; place-items: center; min-height: 70vh; }

/* Entrar / Crear cuenta: pantalla dividida (referencia del dueño, consola de Uptodown) */
.auth-body { background: var(--surface); }
/* Medidas tomadas de uptodown.dev: panel con radio 10 y márgenes 20, títulos de 26 px finos, textos de 14,
   íconos de 60, logo de ~360 px de ancho, tarjeta de 360 px con 40 px de relleno y título de 24 px. */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); min-height: 100vh; min-height: 100dvh; padding: 20px; }
.auth-hero {
  position: sticky; top: 20px; height: calc(100dvh - 40px); overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end; padding: 30px 40px 100px 20px;
  border-radius: 10px; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #12A5D9 0%, #2C9FD6 38%, #5E8FD3 70%, #9A9BD3 100%);
}
.auth-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; position: relative; z-index: 1; max-width: 440px; }
.auth-features li { display: flex; align-items: center; justify-content: flex-end; gap: 20px; text-align: right; }
.auth-features span { display: flex; flex-direction: column; gap: 2px; }
.auth-features b { font-size: 26px; font-weight: 400; letter-spacing: .02em; line-height: 1.3; }
.auth-features small { font-size: 14px; line-height: 1.3; opacity: .95; }
.auth-features i { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 8px; }
.auth-features i .ico { width: 28px; height: 28px; stroke-width: 1.4; }
.auth-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; }
.auth-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 20px 0; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.auth-brand:hover { text-decoration: none; color: var(--ink); }
.auth-brand svg { width: 64px; height: 64px; }
.auth-brand span { display: flex; flex-direction: column; line-height: 1; }
.auth-brand b { font-size: 46px; font-weight: 600; letter-spacing: -.02em; }
.auth-brand small { font-size: 17px; font-weight: 500; color: var(--text); text-align: right; margin-top: 4px; }
.auth-side .auth-card { max-width: 360px; padding: 40px; gap: var(--s3); border-radius: 8px; border: 0; box-shadow: 0 3px 3px -2px rgba(0, 0, 0, .2), 0 3px 4px rgba(0, 0, 0, .14), 0 1px 8px rgba(0, 0, 0, .12); }
.auth-side .auth-card .form { gap: 25px; }
.auth-title { margin: 0 0 var(--s2); text-align: center; color: var(--ink); font-size: 24px; line-height: 32px; font-weight: 500; }
.auth-sub { font-size: var(--fs-small); line-height: 17px; }
.auth-switch, .auth-foot { font-size: var(--fs-small); }
.auth-sub { text-align: center; margin: 0; }
.auth-forgot { margin: -15px 0 0; text-align: right; font-size: var(--fs-small); }
.auth-card .note { margin: 0; }
.auth-switch { text-align: center; margin: var(--s3) 0 0; color: var(--text); }
.auth-switch a { font-weight: 500; text-decoration: underline; }
.auth-foot { display: flex; gap: var(--s5); margin: 0; }
.auth-foot a { color: var(--muted); }
.auth-side .toasts { z-index: 60; }
@media (max-width: 1100px) {
  .auth-features b { font-size: 22px; }
  .auth-brand b { font-size: 38px; }
}
@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); padding: var(--s4); gap: 0; }
  .auth-hero { display: none; }
  .auth-brand svg { width: 52px; height: 52px; }
  .auth-brand b { font-size: 34px; }
  .auth-brand small { font-size: 14px; }
  .auth-side .auth-card { padding: var(--s5) var(--s3); box-shadow: none; }
}
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3); }
.auth-card .form { margin-top: var(--s3); }

.captcha-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.captcha-row img { border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--bg); }
.captcha input { text-transform: uppercase; letter-spacing: .2em; font-weight: 500; max-width: 220px; }

.btn-google { margin-top: var(--s3); gap: var(--s3); }
.or { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0 0; color: var(--muted); font-size: var(--fs-small); }
.or::before, .or::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }

.prose { max-width: 70ch; }
.prose .h1 { margin-bottom: var(--s5); }
.prose .h2 { margin: var(--s6) 0 var(--s2); }
.prose p { margin: 0 0 var(--s3); }

/* ---------------------------------------------------------------- Pantallas medianas y móviles */
@media (max-width: 1100px) {
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-head span:not(:first-child), .row > .row-meta, .row > .amt { width: 120px; }
}

@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .3s var(--ease-out); box-shadow: none; }
  .side.is-open { transform: none; box-shadow: 0 0 40px rgba(23, 59, 87, .25); }
  .nav-link.is-active::after { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(23, 59, 87, .38); z-index: 25; }
  .side.is-open + .scrim { display: block; }
  .shell { margin-left: 0; }
  .top { padding: var(--s3) var(--s4) 0; gap: var(--s3); }
  .menu-btn { display: inline-grid; margin-right: 0; }
  /* Móvil y tablet: barra fija arriba con el logo al centro y el menú (hamburguesa) a la derecha. */
  .mbar {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center;
    position: sticky; top: 0; z-index: 20; padding: 10px var(--s4);
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
    box-shadow: 0 1px 0 var(--line);
  }
  .top-brand { display: flex; grid-column: 2; justify-self: center; }
  .top-brand .brand { margin: 0; }
  .mbar .menu-btn { grid-column: 3; justify-self: end; }
  .top-slot:empty { display: none; }
  .top-slot { order: 3; flex-basis: 100%; }
  .who { display: none; }
  .main { padding: var(--s3) var(--s4) var(--s7); }
  .grid-2, .task-grid, .choice-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; } /* menos de 16 px hace que el iPhone haga zoom al escribir */
  .list-head { display: none; }
  .row { flex-wrap: wrap; gap: var(--s2) var(--s3); padding: var(--s4) var(--s4) var(--s4) var(--s5); }
  .row-ico { width: 40px; height: 40px; border-radius: 10px; }
  .row-main { flex-basis: calc(100% - 56px); }
  .row > .row-meta, .row > .amt { width: auto; text-align: left; }
  .row > .row-end, .row-end.row-actions { width: auto; min-width: 0; margin-left: auto; }
  .row-wrap .row-main { flex-basis: calc(100% - 56px); }
  .tiles, .tiles-4, .choice, .calc { grid-template-columns: minmax(0, 1fr); }
  .tile-num { font-size: 22px; }
  .brand small { display: none; }
  .inline-form { flex-wrap: wrap; }
  .page-actions, .page-actions .btn { width: 100%; }
  .page-actions form { flex: 1; }
}

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