/* ZelleControl · tema oscuro bancario */
:root {
  color-scheme: dark;
  --fondo: #070b14;
  --fondo-2: #0b111e;
  --superficie: #0f1726;
  --superficie-2: #141e31;
  --superficie-3: #1a263d;
  --borde: rgba(255, 255, 255, .07);
  --borde-fuerte: rgba(255, 255, 255, .12);
  --texto: #e8ecf3;
  --texto-suave: #9aa5b8;
  --texto-tenue: #66728a;
  --oro: #d4b072;
  --oro-claro: #e6c88f;
  --oro-oscuro: #a8854b;
  --oro-velo: rgba(212, 176, 114, .12);
  --verde: #46c08a;
  --rojo: #f07a68;
  --amarillo: #f5c542;
  --amarillo-fondo: rgba(245, 197, 66, .09);
  --amarillo-fondo-2: rgba(245, 197, 66, .15);
  --amarillo-borde: rgba(245, 197, 66, .35);
  --radio: 14px;
  --sombra: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -18px rgba(0, 0, 0, .8);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--texto);
  background:
    radial-gradient(1100px 520px at 100% -8%, rgba(212, 176, 114, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 0%, rgba(70, 110, 190, .07), transparent 55%),
    var(--fondo);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
::selection { background: rgba(212, 176, 114, .35); }
code {
  font-size: 12.5px; background: rgba(240, 122, 104, .1); color: #ffb3a6;
  padding: 1px 6px; border-radius: 5px; word-break: break-word;
}
.tenue { color: var(--texto-tenue); }

/* ---------- barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 20, .82);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--borde);
  padding-top: env(safe-area-inset-top);
}
.barra::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 176, 114, .45), transparent);
}
.barra-interior {
  max-width: 1200px; margin: 0 auto; padding: 0 28px; height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.marca-sello {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 19px; color: #1a1408;
  background: linear-gradient(140deg, #f0d9a8 0%, var(--oro) 45%, var(--oro-oscuro) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 6px 18px -6px rgba(212, 176, 114, .6);
}
.marca-sello.grande { width: 46px; height: 46px; font-size: 27px; border-radius: 12px; }
.marca-texto { font-family: var(--serif); font-size: 20px; color: var(--texto); letter-spacing: .2px; font-weight: 500; }
.marca-texto b { font-weight: 600; color: var(--oro); }
.marca-texto.oscuro { font-size: 24px; }

.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; padding: 8px 14px; border-radius: 9px; font-weight: 500; color: var(--texto-suave);
  transition: background .15s, color .15s;
}
.nav a svg { width: 17px; height: 17px; opacity: .8; }
.nav a:hover { color: var(--texto); background: rgba(255, 255, 255, .04); }
.nav a.activo { color: var(--oro-claro); background: var(--oro-velo); }
.usuario { display: flex; align-items: center; gap: 14px; font-size: 13.5px; flex: none; }
.usuario-nombre {
  color: var(--texto-suave); padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--borde);
}
.usuario-nombre::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--verde); margin-right: 7px; vertical-align: 1px;
}
.salir {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; padding: 6px 12px; border: 1px solid var(--borde-fuerte); border-radius: 8px; color: var(--texto-suave);
}
.salir svg { width: 16px; height: 16px; }
.salir:hover { border-color: var(--oro); color: var(--oro-claro); }

.contenido { max-width: 1200px; margin: 0 auto; padding: 36px 28px 24px; }
.pie {
  max-width: 1200px; margin: 0 auto; padding: 18px 28px calc(40px + env(safe-area-inset-bottom));
  color: var(--texto-tenue); font-size: 12.5px;
}

/* ---------- encabezado ---------- */
.encabezado { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.sobretitulo {
  margin: 0 0 6px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; color: var(--oro);
}
h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 34px; color: #fff; letter-spacing: -.3px; line-height: 1.1; }
.rango-texto { margin: 7px 0 0; color: var(--texto-suave); }
.rango-texto b { color: var(--texto); font-weight: 600; }
.acciones { display: flex; gap: 10px; }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .06s, filter .15s;
}
.boton svg { width: 18px; height: 18px; flex: none; }
.boton:active { transform: translateY(1px); }
.boton:disabled { opacity: .75; cursor: progress; }
.boton-primario {
  color: #1a1408;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro) 60%, #c39f60);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 8px 22px -10px rgba(212, 176, 114, .7);
}
.boton-primario:hover:not(:disabled) { filter: brightness(1.06); }
.boton-secundario { background: var(--superficie-2); color: var(--texto); border-color: var(--borde-fuerte); }
.boton-secundario:hover { border-color: rgba(212, 176, 114, .5); color: var(--oro-claro); }
.boton-oscuro { background: var(--superficie-3); color: var(--texto); border-color: var(--borde-fuerte); }
.boton-oscuro:hover { border-color: rgba(212, 176, 114, .5); }
.boton.ancho { width: 100%; }
.girando svg { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- línea de estado ---------- */
.estado-linea {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13px; color: var(--texto-suave); margin-bottom: 22px;
}
.estado-linea b { color: var(--texto); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--texto-tenue); flex: none; }
.punto-ok { background: var(--verde); box-shadow: 0 0 0 3px rgba(70, 192, 138, .15); }
.punto-error { background: var(--rojo); box-shadow: 0 0 0 3px rgba(240, 122, 104, .15); }
.punto-activo { background: var(--oro); animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 6px rgba(212, 176, 114, 0); opacity: .45; } }

/* ---------- tarjetas ---------- */
.tarjetas { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr; gap: 14px; margin-bottom: 18px; }
.tarjeta {
  background: linear-gradient(180deg, var(--superficie-2), var(--superficie));
  border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sombra); min-width: 0;
}
.tarjeta-etiqueta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--texto-suave);
}
.tarjeta-monto {
  font-family: var(--serif); font-size: 29px; font-weight: 600; color: #fff; letter-spacing: -.4px; line-height: 1.15;
  overflow-wrap: anywhere;
}
.tarjeta-detalle { font-size: 13px; color: var(--texto-tenue); }
.tarjeta-principal {
  position: relative; overflow: hidden; border-color: rgba(212, 176, 114, .28);
  background:
    radial-gradient(420px 220px at 110% -20%, rgba(212, 176, 114, .22), transparent 60%),
    linear-gradient(155deg, #1a2440 0%, #101829 70%);
}
.tarjeta-principal::after {
  content: ""; position: absolute; right: -46px; bottom: -60px; width: 170px; height: 170px; border-radius: 50%;
  border: 1px solid rgba(212, 176, 114, .22); box-shadow: 0 0 0 22px rgba(212, 176, 114, .035), 0 0 0 44px rgba(212, 176, 114, .02);
  pointer-events: none;
}
.tarjeta-principal .tarjeta-etiqueta { color: var(--oro); }
.tarjeta-principal .tarjeta-monto { font-size: 36px; }
.tarjeta-principal .tarjeta-detalle { color: var(--texto-suave); }
.tarjeta-aviso { border-color: rgba(245, 197, 66, .2); background: linear-gradient(180deg, rgba(245, 197, 66, .07), var(--superficie) 70%); }
.tarjeta-aviso .tarjeta-monto { color: var(--amarillo); }
.muestra { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.muestra-verde { background: var(--verde); box-shadow: 0 0 0 3px rgba(70, 192, 138, .14); }
.muestra-amarilla { background: var(--amarillo); box-shadow: 0 0 0 3px rgba(245, 197, 66, .14); }
.planes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.planes li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 6px;
  padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); border: 1px solid var(--borde);
}
.plan-monto { font-weight: 600; font-size: 13.5px; color: var(--texto); }
.planes li b { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--oro-claro); }
.planes li small { grid-column: 1 / -1; color: var(--texto-tenue); font-size: 11.5px; }

/* ---------- filtros ---------- */
.filtros {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 14px; box-shadow: var(--sombra);
}
.atajos { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  text-decoration: none; font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--borde-fuerte); color: var(--texto-suave); background: rgba(255, 255, 255, .02);
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: rgba(212, 176, 114, .5); color: var(--texto); }
.chip.activo { background: var(--oro-velo); border-color: rgba(212, 176, 114, .55); color: var(--oro-claro); }
.filtros-campos { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filtros-fin { display: flex; align-items: flex-end; gap: 12px; }
.campo { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--texto-suave); letter-spacing: .02em; }
.campo input {
  height: 42px; border: 1px solid var(--borde-fuerte); border-radius: 10px; padding: 0 12px;
  font: 400 15px var(--sans); color: var(--texto); background: var(--fondo-2); outline: none; min-width: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.campo input::placeholder { color: var(--texto-tenue); }
.campo input:focus { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(212, 176, 114, .16); background: #0d1424; }
.campo input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(.4) saturate(2) hue-rotate(5deg); cursor: pointer; }
.campo.compacto input { width: 165px; }
.campo.crece { flex: 1; min-width: 200px; }
.campo.crece input { width: 100%; }
.interruptor { display: flex; align-items: center; gap: 9px; height: 42px; font-size: 13.5px; color: var(--texto-suave); cursor: pointer; user-select: none; }
.interruptor input {
  appearance: none; -webkit-appearance: none; width: 36px; height: 21px; border-radius: 999px; margin: 0; flex: none;
  background: var(--superficie-3); border: 1px solid var(--borde-fuerte); position: relative; cursor: pointer; transition: background .2s;
}
.interruptor input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--texto-suave); transition: transform .2s, background .2s;
}
.interruptor input:checked { background: rgba(245, 197, 66, .3); border-color: var(--amarillo-borde); }
.interruptor input:checked::after { transform: translateX(15px); background: var(--amarillo); }

/* ---------- tabla ---------- */
.tabla-caja { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th {
  text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--texto-tenue); padding: 13px 18px; background: var(--fondo-2); border-bottom: 1px solid var(--borde);
}
.tabla td { padding: 12px 18px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla .der { text-align: right; }
.fila { transition: background .12s; }
.fila:hover td { background: rgba(255, 255, 255, .025); }
.fila-dia td {
  background: rgba(255, 255, 255, .018); padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--borde);
}
.dia-titulo { font-weight: 600; color: var(--texto); font-size: 13px; }
.dia-n { margin-left: 10px; color: var(--texto-tenue); font-size: 12.5px; }
.dia-total { font-weight: 600; color: var(--texto-suave); font-size: 13px; }
.tabla .hora { color: var(--texto-tenue); font-size: 13px; width: 70px; }
.tabla .nombre { font-weight: 500; color: var(--texto); }
.tabla .nota { color: var(--texto-suave); }
.tabla .ref { color: var(--texto-tenue); font-size: 12.5px; letter-spacing: .02em; }
.tabla .monto { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.tabla tfoot td {
  background: var(--fondo-2); border-top: 1px solid rgba(212, 176, 114, .4); border-bottom: 0;
  font-weight: 600; color: var(--texto-suave); padding: 16px 18px;
}
.tabla tfoot .monto { font-size: 20px; color: var(--oro-claro); }

.fila-amarilla td { background: var(--amarillo-fondo); }
.fila-amarilla td:first-child { box-shadow: inset 3px 0 0 var(--amarillo); }
.fila.fila-amarilla:hover td { background: var(--amarillo-fondo-2); }
.fila-amarilla .monto-valor { color: var(--amarillo); }
.etiqueta-revisar {
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amarillo); background: rgba(245, 197, 66, .12); border: 1px solid var(--amarillo-borde);
  padding: 2px 7px; border-radius: 6px; margin-right: 10px; vertical-align: 2px;
}

/* ---------- paginación ---------- */
.paginacion {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--borde); background: var(--fondo-2);
}
.pag-info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pag-conteo { color: var(--texto-suave); font-size: 13.5px; }
.pag-conteo b { color: var(--texto); font-weight: 600; }
.pag-por { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.chip-chico { padding: 4px 11px; font-size: 12.5px; }
.pag-botones { display: flex; align-items: center; gap: 10px; }
.pag-botones .boton { height: 36px; padding: 0 14px; font-size: 13.5px; }
.pag-num { color: var(--texto-suave); font-size: 13px; white-space: nowrap; }
.deshabilitado { opacity: .35; pointer-events: none; }

.pie { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.version { color: var(--texto-tenue); }

.vacio { padding: 60px 24px; text-align: center; color: var(--texto-suave); }
.vacio-titulo { font-family: var(--serif); font-size: 21px; color: #fff; margin: 0 0 6px; }
.vacio b { color: var(--oro-claro); }
.vacio-chico { color: var(--texto-tenue); font-size: 13px; }

/* ---------- precios ---------- */
.precios-grid { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.columna-lateral { display: grid; gap: 16px; }
.formulario { gap: 14px; }
.formulario .campo input { width: 100%; }
.ayuda { margin: -4px 0 0; font-size: 12.5px; color: var(--texto-tenue); line-height: 1.5; }
.enlace-peligro {
  background: none; border: 1px solid transparent; color: var(--rojo); font: 500 13px var(--sans);
  cursor: pointer; padding: 5px 10px; border-radius: 8px;
}
.enlace-peligro:hover { background: rgba(240, 122, 104, .1); border-color: rgba(240, 122, 104, .25); }

/* ---------- alertas ---------- */
.alerta { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.alerta-error { background: rgba(240, 122, 104, .1); color: #ffb3a6; border: 1px solid rgba(240, 122, 104, .3); }

/* ---------- login ---------- */
.login-fondo {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(800px 480px at 80% 0%, rgba(212, 176, 114, .14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(70, 110, 190, .12), transparent 60%),
    var(--fondo);
}
.login-tarjeta {
  width: 100%; max-width: 400px; border-radius: 18px; padding: 34px 30px 26px; display: grid; gap: 18px;
  background: linear-gradient(180deg, var(--superficie-2), var(--superficie));
  border: 1px solid var(--borde-fuerte);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(212, 176, 114, .08);
  position: relative;
}
.login-tarjeta::before {
  content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}
.login-tarjeta .campo input { width: 100%; }
.login-marca { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.login-sub { color: var(--texto-suave); font-size: 13px; margin-top: 2px; }
.login-nota { text-align: center; color: var(--texto-tenue); font-size: 12px; margin: 0; letter-spacing: .03em; }

/* ---------- tablet ---------- */
@media (max-width: 1020px) {
  .tarjetas { grid-template-columns: 1fr 1fr; }
  .precios-grid { grid-template-columns: 1fr; }
}

/* ---------- celular ---------- */
@media (max-width: 680px) {
  body { font-size: 15px; }
  .barra-interior { padding: 0 14px; height: 56px; gap: 10px; }
  .marca-texto, .usuario-nombre, .salir span { display: none; }
  .marca-sello { width: 30px; height: 30px; font-size: 17px; }
  .nav { justify-content: center; gap: 2px; }
  .nav a { padding: 7px 11px; font-size: 14px; }
  .salir { padding: 7px 9px; }

  .contenido { padding: 20px 14px 12px; }
  .pie { padding: 10px 14px calc(28px + env(safe-area-inset-bottom)); text-align: center; }

  h1 { font-size: 28px; }
  .encabezado { gap: 14px; margin-bottom: 12px; }
  .encabezado > div:first-child { width: 100%; }
  .acciones { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr; }
  .boton { height: 46px; padding: 0 12px; }
  .solo-ancho { display: none; }
  .estado-linea { font-size: 12.5px; margin-bottom: 16px; align-items: flex-start; flex-wrap: nowrap; }
  .estado-linea .punto { margin-top: 5px; }

  .tarjetas { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .tarjeta { padding: 14px; border-radius: 13px; }
  .tarjeta-principal, .tarjeta-planes { grid-column: 1 / -1; }
  .tarjeta-principal { padding: 18px 18px 16px; }
  .tarjeta-principal .tarjeta-monto { font-size: 34px; }
  .tarjeta-monto { font-size: 22px; }
  .tarjeta-detalle { font-size: 12px; }
  .tarjeta-etiqueta { font-size: 10.5px; }
  .planes { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; }
  .planes li { grid-template-columns: 1fr; text-align: center; padding: 8px 4px; row-gap: 1px; }
  .planes li .plan-monto { font-size: 12.5px; color: var(--texto-suave); font-weight: 500; }
  .planes li b { font-size: 18px; }
  .planes li small { font-size: 10.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }

  .filtros { padding: 12px; gap: 12px; }
  .atajos {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .atajos::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; padding: 8px 14px; }
  .filtros-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .campo.compacto input { width: 100%; }
  .campo.crece { grid-column: 1 / -1; min-width: 0; }
  .campo input { height: 46px; font-size: 16px; } /* 16px evita el zoom automático de iOS */
  .filtros-fin { grid-column: 1 / -1; justify-content: space-between; }
  .filtros-fin .boton { padding: 0 26px; }

  /* tabla → tarjetas por día */
  .tabla-caja { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tabla, .tabla tbody, .tabla tfoot { display: block; }
  .tabla thead { display: none; }
  .grupo {
    margin-bottom: 12px; background: var(--superficie); border: 1px solid var(--borde);
    border-radius: var(--radio); overflow: hidden;
  }
  .fila-dia {
    display: flex; justify-content: space-between; align-items: baseline;
    background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--borde);
  }
  .fila-dia td { display: block; border: 0; padding: 11px 14px 9px; background: transparent; }
  .fila-dia td:first-child { flex: 1; min-width: 0; }
  .dia-n { display: block; margin: 1px 0 0; font-size: 11.5px; }
  .dia-total { color: var(--oro-claro); }

  .fila {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 3px;
    grid-template-areas: "nombre monto" "nota hora" "ref ref";
    padding: 12px 14px; border-bottom: 1px solid var(--borde);
  }
  .grupo .fila:last-child { border-bottom: 0; }
  .fila td { display: block; padding: 0; border: 0; background: transparent !important; box-shadow: none !important; min-width: 0; }
  .tabla .nombre { grid-area: nombre; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabla .monto { grid-area: monto; font-size: 17px; text-align: right; }
  .tabla .nota { grid-area: nota; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabla .hora { grid-area: hora; width: auto; text-align: right; font-size: 12.5px; }
  .tabla .ref { grid-area: ref; font-size: 11.5px; }
  .fila.fila-amarilla { background: var(--amarillo-fondo); box-shadow: inset 3px 0 0 var(--amarillo); }
  .etiqueta-revisar { display: none; }

  .tabla tfoot tr {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(155deg, #1a2440, #101829); border: 1px solid rgba(212, 176, 114, .28);
    border-radius: var(--radio); padding: 14px 16px;
  }
  .tabla tfoot td { display: block; padding: 0; border: 0; background: transparent; font-size: 13px; }
  .tabla tfoot .monto { font-size: 21px; }

  /* la tabla de precios sigue siendo tabla */
  .paginacion {
    flex-direction: column; align-items: stretch; gap: 12px; margin-top: 4px;
    background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px;
  }
  .pag-info { justify-content: space-between; gap: 10px; }
  .pag-botones { justify-content: space-between; }
  .pag-botones .boton { flex: 1; height: 44px; }
  .pag-num { flex: none; }
  .pie { justify-content: center; text-align: center; }

  .precios-grid .tabla-caja { background: var(--superficie); border: 1px solid var(--borde); overflow: hidden; }
  .precios-grid .tabla { display: table; }
  .precios-grid .tabla thead { display: table-header-group; }
  .precios-grid .tabla tbody { display: table-row-group; }
  .precios-grid .tabla td, .precios-grid .tabla th { padding: 12px 14px; }

  .login-tarjeta { padding: 28px 22px 22px; }
  .login-marca .marca-texto { display: block; }
}

@media (max-width: 370px) {
  .tarjeta-monto { font-size: 19px; }
}
