/* Herramientas Devcode73 — mismos colores y tipografías que el sitio y la tarjeta */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/plus-jakarta-sans.woff2) format('woff2'); }

:root {
  --dc-orange:  #e8692a;
  --dc-orange2: #c9561e;
  --dc-navy:    #1a2744;
  --dc-dark:    #070b14;
  --dc-dark2:   #0d1220;
  --dc-dark3:   #111827;
  --dc-text:    #ffffff;
  --dc-muted:   #94a3b8;
  --dc-border:  rgba(255,255,255,0.08);
  --dc-card:    rgba(26,39,68,0.55);   /* navy de los posts, translúcido */
  --dc-card2:   rgba(26,39,68,0.9);
  --verde:      #22c55e;
  --rojo:       #f05252;
  --radio:      14px;
  --nav-alto:   64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  /* Igual que los posts: fondo #0d1220 con degradado naranja sutil en la esquina superior derecha */
  background:
    radial-gradient(circle at 100% 0, rgba(232,105,42,.10), rgba(232,105,42,0) 42rem) no-repeat,
    var(--dc-dark2);
  color: var(--dc-text);
  line-height: 1.5;
  min-height: 100vh;
}
h1 span, h2 span.naranja { color: var(--dc-orange); }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
a { color: var(--dc-orange); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--dc-muted); }
.chico { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.verde { color: var(--verde); }
.rojo { color: var(--rojo); }
.naranja { color: var(--dc-orange); }

/* ───────── Estructura ───────── */
.barra-sup {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: rgba(7,11,20,.55);
  border-bottom: 1px solid var(--dc-border);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dc-text); }
.marca img { height: 34px; width: auto; }
.marca span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .95rem; line-height: 1.1; }
.marca small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: .72rem; color: var(--dc-muted); }
.comercio-nombre { margin-left: auto; font-weight: 600; color: var(--dc-muted); font-size: .9rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.btn-config {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--dc-border); background: var(--dc-card);
  color: var(--dc-text); text-decoration: none;
}
.btn-config.activa { border-color: var(--dc-orange); color: var(--dc-orange); }
.comercio-nombre:empty + .btn-config { margin-left: auto; }
.btn-config svg, .pestanas svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pestanas {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 1100px; margin: 18px auto 0; padding: 0 20px;
}
.pestanas a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px;
  border: 1px solid var(--dc-border); border-radius: var(--radio);
  background: var(--dc-card); color: var(--dc-muted);
  text-decoration: none; font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.pestanas a:hover { color: var(--dc-text); }
.pestanas a.activa { border-color: var(--dc-orange); color: var(--dc-text); background: linear-gradient(180deg, rgba(232,105,42,.16), rgba(232,105,42,.04)); }
.pestanas a.activa svg { color: var(--dc-orange); }

main { max-width: 1100px; margin: 18px auto 0; padding: 0 20px 40px; }
.pie {
  max-width: 1100px; margin: 0 auto; padding: 18px 20px 30px;
  color: var(--dc-muted); font-size: .8rem; text-align: center;
}
.pie a { color: var(--dc-muted); }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 10px; }

/* Páginas legales */
.legal { max-width: 820px; line-height: 1.6; }
.legal h2 { margin: 26px 0 8px; font-size: 1.05rem; }
.legal h2:first-of-type { margin-top: 18px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--dc-orange); }
.legal-destacado { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(232,105,42,.35); background: rgba(232,105,42,.08); }
.legal-ley { font-size: .82rem; color: var(--dc-muted); }
.pro-acepto { margin: 10px 0 0; text-align: center; }
.pro-acepto a { color: var(--dc-text); }

/* Franja de confianza debajo de las pestañas */
.confianza {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  max-width: 1100px; margin: 14px auto 0; padding: 0 20px;
  color: var(--dc-muted); font-size: .85rem; font-weight: 500;
}
.confianza li { display: inline-flex; align-items: center; gap: 6px; }
.confianza .tilde {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(232,105,42,.16); color: var(--dc-orange); font-size: .7rem; font-weight: 800;
}

/* Modo sin pestañas (kiosco y vista del cliente) */
body.sin-nav .barra-sup, body.sin-nav .pestanas, body.sin-nav .pie, body.sin-nav .confianza { display: none; }

.aviso-global {
  max-width: 1100px; margin: 12px auto 0; padding: 10px 14px;
  background: rgba(240,82,82,.12); border: 1px solid rgba(240,82,82,.35); border-radius: 10px;
  font-size: .9rem;
}

/* ───────── Componentes ───────── */
.tarjeta {
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: var(--radio);
  padding: 20px;
}
.tarjeta + .tarjeta { margin-top: 16px; }
.tarjeta > h2 { margin-bottom: 4px; }
.tarjeta > .sub { color: var(--dc-muted); font-size: .9rem; margin-bottom: 16px; }

.grilla-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.columna-fija { position: sticky; top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--dc-border);
  background: var(--dc-card2); color: var(--dc-text);
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primario { background: var(--dc-orange); border-color: var(--dc-orange); color: #fff; }
.btn-verde { background: #15803d; border-color: #15803d; color: #fff; }
.btn-rojo { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-whatsapp { background: #128c4b; border-color: #128c4b; color: #fff; }
.btn-texto { background: none; border: none; color: var(--dc-muted); min-height: 36px; padding: 0 8px; text-decoration: underline; }
.btn-bloque { width: 100%; }
.btn-chico { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

label.campo { display: block; margin-bottom: 14px; }
label.campo > span { display: block; font-size: .85rem; font-weight: 600; color: var(--dc-muted); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border-radius: 11px; border: 1px solid rgba(255,255,255,.14);
  background: var(--dc-dark); color: var(--dc-text);
  outline: none;
}
.input:focus { border-color: var(--dc-orange); box-shadow: 0 0 0 3px rgba(232,105,42,.2); }
.input-monto { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 60px; }
.fila-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.segmentado { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--dc-dark); border-radius: 13px; margin-bottom: 14px; }
.segmentado button { min-height: 44px; border: none; border-radius: 9px; background: none; color: var(--dc-muted); font-weight: 700; cursor: pointer; }
.segmentado button.activo:not([data-tipo]) { background: rgba(232,105,42,.18); color: var(--dc-text); }
.segmentado button.activo[data-tipo="ingreso"] { background: rgba(34,197,94,.18); color: var(--verde); }
.segmentado button.activo[data-tipo="salida"] { background: rgba(240,82,82,.18); color: var(--rojo); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: none; color: var(--dc-muted);
  font-size: .9rem; font-weight: 500; cursor: pointer;
}
.chip.activo { border-color: var(--dc-orange); background: rgba(232,105,42,.15); color: var(--dc-text); }
.grupo { margin-bottom: 14px; }
.grupo > .etiqueta { display: block; font-size: .85rem; font-weight: 600; color: var(--dc-muted); margin-bottom: 8px; }

.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 11px; margin-bottom: 16px;
  background: rgba(232,105,42,.1); border: 1px solid rgba(232,105,42,.3);
  font-size: .9rem;
}
.banner.info { background: rgba(148,163,184,.08); border-color: var(--dc-border); }
.banner.alerta { background: rgba(240,82,82,.1); border-color: rgba(240,82,82,.35); }
.banner .btn { margin-left: auto; flex-shrink: 0; }

.insignia { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(148,163,184,.12); color: var(--dc-muted); white-space: nowrap; }
.insignia.naranja { background: rgba(232,105,42,.16); color: var(--dc-orange); }
.insignia.verde { background: rgba(34,197,94,.14); color: var(--verde); }
.insignia.rojo { background: rgba(240,82,82,.14); color: var(--rojo); }

/* Latiguillo comercial */
.latiguillo {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 18px;
  border-radius: var(--radio);
  background: linear-gradient(120deg, #1a2744, rgba(26,39,68,.35));
  border: 1px solid rgba(232,105,42,.3);
}
.latiguillo p { flex: 1 1 260px; font-weight: 600; }
.latiguillo p small { display: block; font-weight: 500; color: var(--dc-muted); font-size: .78rem; margin-top: 2px; }

/* Modal y avisos */
.modal-fondo {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3,6,12,.72); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px;
}
.modal { width: 100%; max-width: 440px; background: #141d33; border: 1px solid var(--dc-border); border-radius: 18px; padding: 24px; }
.modal h2 { margin-bottom: 8px; }
.modal p { color: var(--dc-muted); }
.modal .acciones { justify-content: flex-end; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px;
  background: #f8fafc; color: #0d1220; font-weight: 600; font-size: .92rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Caja ───────── */
.cabecera-vista { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cabecera-vista p { color: var(--dc-muted); }

.conteo { display: grid; gap: 8px; }
.conteo-fila { display: grid; grid-template-columns: 92px auto minmax(0, 1fr); align-items: center; gap: 12px; }
.conteo-den { font-weight: 700; font-variant-numeric: tabular-nums; }
.conteo-ctrl { display: flex; align-items: center; gap: 6px; }
.conteo-ctrl button {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: var(--dc-card2); font-size: 1.3rem; font-weight: 600; cursor: pointer; line-height: 1;
}
.conteo-ctrl input { width: 66px; min-height: 42px; text-align: center; padding: 6px; font-weight: 700; }
.conteo-sub { text-align: right; color: var(--dc-muted); font-variant-numeric: tabular-nums; }
.conteo-sub.con-valor { color: var(--dc-text); }
.conteo-extra { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 4px; }
.conteo-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dc-border); }
.conteo-total strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-variant-numeric: tabular-nums; }

.estado-caja { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.punto { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.resumen-grande { margin: 4px 0 14px; }
.resumen-grande .etq { position: static; overflow: visible; color: var(--dc-muted); font-size: .85rem; font-weight: 600; }
.resumen-grande .valor { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lineas { display: grid; gap: 6px; font-size: .92rem; }
.lineas > div { display: flex; justify-content: space-between; gap: 10px; }
.lineas > div span:last-child { font-variant-numeric: tabular-nums; }
.lineas .total { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--dc-border); font-weight: 700; }
.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th { text-align: left; font-weight: 600; color: var(--dc-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid var(--dc-border); }
.tabla td { padding: 7px 0; border-bottom: 1px solid var(--dc-border); font-variant-numeric: tabular-nums; }
.tabla th:not(:first-child), .tabla td:not(:first-child) { text-align: right; }
.separador { height: 1px; background: var(--dc-border); margin: 16px 0; }

.movs { list-style: none; display: grid; gap: 8px; }
.mov {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 11px; background: rgba(13,18,32,.7);
}
.mov-hora { color: var(--dc-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.mov-detalle { min-width: 0; }
.mov-detalle strong { font-weight: 600; }
.mov-detalle .muted { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.mov-monto { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mov.anulado .mov-detalle strong, .mov.anulado .mov-monto { text-decoration: line-through; color: var(--dc-muted); }
.vacio { text-align: center; padding: 26px 10px; color: var(--dc-muted); }

.diferencia { padding: 14px 16px; border-radius: 12px; margin: 14px 0; text-align: center; }
.diferencia .valor { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.diferencia.ok { background: rgba(148,163,184,.1); }
.diferencia.sobra { background: rgba(34,197,94,.12); color: var(--verde); }
.diferencia.falta { background: rgba(240,82,82,.12); color: var(--rojo); }

.paso { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.paso b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dc-orange); color: #fff; font-size: .9rem; flex-shrink: 0; }

.barra-resumen-movil { display: none; }

.historial-dia + .historial-dia { margin-top: 18px; }
.historial-dia > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cierre-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 11px; background: rgba(13,18,32,.7); }
.cierre-item + .cierre-item { margin-top: 8px; }
.cierre-item .info { flex: 1 1 200px; min-width: 0; }

/* Próximamente */
.proximo { text-align: center; padding: 34px 20px; }
.proximo .icono { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(232,105,42,.12); color: var(--dc-orange); margin-bottom: 14px; }
.proximo .icono svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proximo h1 { margin: 8px 0 6px; }
.proximo > p { color: var(--dc-muted); max-width: 520px; margin: 0 auto; }
.proximo ul { list-style: none; text-align: left; max-width: 460px; margin: 20px auto 0; display: grid; gap: 10px; }
.proximo li { position: relative; padding-left: 22px; }
.proximo li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--dc-orange); }

/* Mi comercio */
.logo-vista { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.logo-vista img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--dc-dark); border: 1px solid var(--dc-border); }

/* ───────── Celular ───────── */
@media (max-width: 760px) {
  /* que al saltar a un campo no quede tapado por las barras fijas de abajo */
  html { scroll-padding-bottom: calc(var(--nav-alto) + 90px); }
  .barra-sup { padding: 10px 16px; }
  .marca img { height: 30px; }
  .pestanas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    margin: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    gap: 4px; background: #0a0f1c; border-top: 1px solid var(--dc-border);
  }
  .pestanas a { flex-direction: column; gap: 3px; padding: 6px 2px; border: none; background: none; font-size: .72rem; border-radius: 10px; }
  .pestanas a.activa { background: rgba(232,105,42,.12); }
  main { padding: 0 16px 8px; margin-top: 16px; }
  /* espacio para la barra de pestañas y la barra de resumen de la caja */
  .pie { padding-bottom: calc(var(--nav-alto) + 84px + env(safe-area-inset-bottom)); }
  body.sin-nav main { padding-bottom: 24px; }
  .grilla-2 { grid-template-columns: minmax(0, 1fr); }
  .columna-fija { position: static; }
  .tarjeta { padding: 16px; }
  .fila-campos { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .conteo-fila { grid-template-columns: 76px auto minmax(0, 1fr); gap: 8px; }
  .conteo-extra { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .mov { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .mov .btn-chico { grid-column: 2 / -1; justify-self: end; }
  .barra-resumen-movil {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: calc(var(--nav-alto) + env(safe-area-inset-bottom)); z-index: 39;
    padding: 10px 16px; background: rgba(20,29,51,.97); border-top: 1px solid var(--dc-border);
  }
  .barra-resumen-movil div { flex: 1; line-height: 1.2; }
  .barra-resumen-movil small { color: var(--dc-muted); font-size: .72rem; display: block; }
  .barra-resumen-movil strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
  .toast { bottom: calc(var(--nav-alto) + 70px); }
  .comercio-nombre { max-width: 34vw; }
  .confianza { margin-top: 12px; padding: 0 16px; gap: 4px 14px; font-size: .78rem; }
}
@media (max-width: 380px) {
  .marca span { display: none; }
}

/* ───────── Estación de precios ───────── */
.ficha { text-align: center; display: grid; justify-items: center; gap: 6px; }
.ficha-nombre { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ficha-nombre.grande { font-size: 1.8rem; }
.ficha-nombre.medio { font-size: 1.45rem; }
.ficha-nombre.chico { font-size: 1.15rem; }
.ficha-precio { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 6px; }
.ficha-oferta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ficha-insignia { background: var(--dc-orange); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; }
.ficha-antes { color: var(--dc-muted); text-decoration: line-through; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.ficha-sub { color: var(--dc-muted); font-size: 1.05rem; }
.ficha-codigo { color: var(--dc-muted); opacity: .6; font-size: .8rem; font-variant-numeric: tabular-nums; margin-top: 6px; }
.ficha-icono { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(240,82,82,.14); color: var(--rojo); font: 800 2rem 'Plus Jakarta Sans', sans-serif; }
.vista-previa { margin-top: 16px; min-height: 230px; display: grid; place-items: center; padding: 24px 16px; border-radius: var(--radio); background: radial-gradient(circle at 100% 0, rgba(232,105,42,.12), transparent 60%), var(--dc-dark); border: 1px solid var(--dc-border); }

.kiosco {
  position: fixed; inset: 0; z-index: 30;
  display: grid; grid-template-rows: auto 1fr auto auto;
  background: radial-gradient(circle at 100% 0, rgba(232,105,42,.16), rgba(232,105,42,0) 55%), var(--dc-dark2);
}
.kiosco-cab { display: flex; align-items: center; gap: 16px; padding: 20px 28px; }
.kiosco-cab img { height: 56px; width: auto; max-width: 160px; object-fit: contain; }
.kiosco-cab span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 2rem); }
.kiosco-salir { margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--dc-border); background: none; color: var(--dc-muted); font-size: 1.6rem; line-height: 1; opacity: .45; cursor: pointer; }
.kiosco-centro { display: grid; place-items: center; padding: 0 5vw; }
.kiosco .ficha-nombre.grande { font-size: clamp(2rem, 5.6vw, 4.4rem); }
.kiosco .ficha-nombre.medio { font-size: clamp(1.7rem, 4.4vw, 3.4rem); }
.kiosco .ficha-nombre.chico { font-size: clamp(1.4rem, 3.4vw, 2.6rem); }
.kiosco .ficha-precio { font-size: clamp(4rem, 15vw, 11rem); margin-top: 2vh; }
.kiosco .ficha-antes { font-size: clamp(1.4rem, 3.2vw, 2.4rem); }
.kiosco .ficha-insignia { font-size: clamp(.9rem, 1.8vw, 1.3rem); padding: 4px 16px; }
.kiosco .ficha-sub { font-size: clamp(1.1rem, 2.4vw, 1.8rem); }
.kiosco .ficha-codigo { font-size: clamp(.9rem, 1.4vw, 1.1rem); }
.kiosco .ficha-icono { width: clamp(80px, 12vw, 130px); height: clamp(80px, 12vw, 130px); font-size: clamp(2.6rem, 6vw, 4.4rem); }
.kiosco-escaner { width: clamp(90px, 14vw, 160px); height: auto; fill: none; stroke: var(--dc-orange); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2vh; animation: latido 2.2s ease-in-out infinite; }
@keyframes latido { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
.kiosco-barra { height: 4px; background: var(--dc-orange); transform-origin: left; transform: scaleX(0); }
.kiosco-barra.corriendo { animation: cuenta linear forwards; }
@keyframes cuenta { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.kiosco-pie { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 28px; color: var(--dc-muted); font-size: .85rem; }
.kiosco-lector { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; }
@media (max-width: 760px) {
  .kiosco-cab { padding: 14px 16px; }
  .kiosco-pie { padding: 10px 16px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .kiosco-escaner { animation: none; } }

/* ───────── ¿Cuánto sale? ───────── */
.telefono {
  width: 300px; height: 600px; margin: 0 auto;
  border: 10px solid #05070d; border-radius: 38px; overflow: hidden;
  background: var(--dc-dark2); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.telefono iframe { width: 100%; height: 100%; border: 0; display: block; }

.cliente { max-width: 560px; margin: 0 auto; padding: 22px 16px 28px; min-height: 100vh; display: flex; flex-direction: column; }
.cliente-cab { margin-bottom: 16px; }
.cliente-cab h1 { font-size: 1.6rem; }
.cliente-cab h1 span { color: var(--dc-orange); }
#cuerpo { flex: 1; }
.btn-grande { min-height: 64px; font-size: 1.1rem; border-radius: 16px; }
.btn-grande svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.camara { margin-top: 14px; padding: 10px; border-radius: var(--radio); background: var(--dc-card); border: 1px solid var(--dc-border); }
#lector-camara { border-radius: 10px; overflow: hidden; }
#lector-camara video { border-radius: 10px; }
.cliente-ficha { margin-top: 14px; margin-bottom: 12px; padding: 26px 14px; border-radius: var(--radio); background: radial-gradient(circle at 100% 0, rgba(232,105,42,.14), transparent 60%), var(--dc-card); border: 1px solid var(--dc-border); }
.items { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--dc-card); border: 1px solid var(--dc-border); cursor: pointer; }
.item-info { min-width: 0; display: grid; }
.item-info strong { font-weight: 600; }
.item-precio { display: grid; justify-items: end; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-antes { font-family: 'Inter', sans-serif; font-weight: 500; font-size: .8rem; color: var(--dc-muted); text-decoration: line-through; }
.grupo-titulo { margin-top: 22px; font-size: 1.05rem; color: var(--dc-orange); }
.chips-desliza { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.chips-desliza .chip { flex-shrink: 0; }
.cliente-pie { margin-top: 30px; text-align: center; color: var(--dc-muted); font-size: .8rem; line-height: 1.7; }
.cliente-pie a { color: var(--dc-orange); text-decoration: none; font-weight: 600; }

/* Cartel QR para imprimir (fondo blanco para no gastar tinta) */
.cartel { display: none; }
@media print {
  body { background: #fff !important; }
  /* al imprimir solo sale lo marcado como .solo-impresion (cartel QR, hojas de etiquetas) */
  body > *:not(.solo-impresion) { display: none !important; }
  #cartel-impresion {
    display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden;
    width: 148mm; height: 209mm; background: #fff; color: #0d1220;
    font-family: 'Inter', sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  #cartel-impresion.a4 { width: 210mm; height: 296mm; font-size: 141%; }
  .cartel-franja { height: 9mm; background: #e8692a; flex-shrink: 0; }
  .cartel-cuerpo { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 9mm 12mm 0; }
  .cartel-comercio { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15em; color: #1a2744; letter-spacing: .02em; text-transform: uppercase; }
  .cartel-titulo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 3.1em; line-height: 1.05; margin-top: 3mm; letter-spacing: -.02em; }
  .cartel-titulo span { color: #e8692a; }
  .cartel-bajada { font-size: 1.05em; color: #475569; margin-top: 3mm; max-width: 110mm; }
  #cartel-impresion.a4 .cartel-bajada { max-width: 160mm; }
  .cartel-qr { width: 78mm; height: 78mm; margin: 7mm 0 5mm; padding: 2mm; border: 0.6mm solid #e2e8f0; border-radius: 4mm; }
  #cartel-impresion.a4 .cartel-qr { width: 112mm; height: 112mm; }
  .cartel-qr svg { width: 100%; height: 100%; display: block; }
  .cartel-pasos { text-align: left; font-size: .95em; color: #1a2744; padding-left: 6mm; display: grid; gap: 1.5mm; max-width: 110mm; }
  #cartel-impresion.a4 .cartel-pasos { max-width: 160mm; }
  .cartel-pie { padding: 4mm 12mm 6mm; text-align: center; font-size: .75em; color: #94a3b8; }
}

/* ───────── Remarcá y etiquetá ───────── */
.grilla-inicio { display: grid; gap: 4px; max-width: 220px; }
.grilla-inicio button {
  height: 24px; border-radius: 5px; border: 1px solid rgba(255,255,255,.14); background: none;
  color: var(--dc-muted); font-size: .7rem; cursor: pointer;
}
.grilla-inicio button.usada { background: rgba(148,163,184,.12); color: rgba(148,163,184,.45); text-decoration: line-through; }
.grilla-inicio button.actual { background: var(--dc-orange); border-color: var(--dc-orange); color: #fff; font-weight: 700; }

/* Hoja A4 en mm: la misma se usa en la vista previa (achicada con zoom) y al imprimir */
.hoja-a4 { position: relative; width: 210mm; height: 297mm; background: #fff; overflow: hidden; color: #0d1220; font-family: 'Inter', sans-serif; }
.etq { position: absolute; overflow: hidden; }
.etq.con-corte { outline: 0.25mm dashed #cbd5e1; }
.etq.prueba { border: 0.35mm solid #e8692a; display: grid; place-items: center; color: #e8692a; font: 700 6mm 'Inter', sans-serif; }
.etq.usada { background: repeating-linear-gradient(45deg, #f1f5f9 0 2mm, #e2e8f0 2mm 4mm); display: grid; place-items: center; color: #94a3b8; font: 600 3.5mm 'Inter', sans-serif; }
.etq.libre { outline: 0.25mm dashed #e2e8f0; }
.etq-contenido { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.etq-nombre { font-weight: 700; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.etq-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 2mm; }
.etq-barras svg { display: block; width: 100%; height: 100%; }
.etq-barras svg rect { fill: transparent; }
.etq-barras svg g, .etq-barras svg g rect { fill: #0d1220; }
.etq-codigo { text-align: center; letter-spacing: .04em; color: #334155; margin-top: .4mm; white-space: nowrap; }
.etq-precio { margin-left: auto; text-align: right; }
.etq-valor { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: .95; letter-spacing: -.02em; white-space: nowrap; }
.etq.oferta .etq-valor { color: #e8692a; }
.etq-oferta { white-space: nowrap; margin-bottom: .6mm; }
.etq-oferta b { background: #e8692a; color: #fff; padding: 0 1.2mm; border-radius: 1mm; font-weight: 800; letter-spacing: .04em; }
.etq-oferta s { color: #64748b; }
.etq-info { color: #475569; margin-top: .6mm; white-space: nowrap; }
.vista-hojas { margin-top: 12px; overflow: hidden; }
.vista-hojas .hoja-a4 { zoom: var(--zoom, .5); margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.etiquetas-impresion { display: none; }
@media print {
  .etiquetas-impresion { display: block !important; }
  .etiquetas-impresion .hoja-a4 { break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .etiquetas-impresion .hoja-a4:last-child { break-after: auto; }
}
.formato-proveedor { padding: 14px 16px; border-radius: 12px; background: rgba(13,18,32,.6); border: 1px solid var(--dc-border); font-size: .9rem; }
.formato-proveedor ul { margin: 10px 0 0 18px; display: grid; gap: 6px; color: var(--dc-muted); }
.formato-proveedor ul strong { color: var(--dc-text); }
.tabla-ejemplo { margin-top: 8px; max-width: 460px; font-size: .82rem; }
.tabla-ejemplo th, .tabla-ejemplo td { text-align: left !important; padding: 5px 10px 5px 0; }
.tabla-ejemplo th:last-child, .tabla-ejemplo td:last-child { text-align: right !important; }

/* ───────── Plan Pro (Mi comercio) ───────── */
.pro-tarjeta { border-color: rgba(232,105,42,.35); background: linear-gradient(160deg, rgba(232,105,42,.10), var(--dc-card) 55%); }
.pro-chip { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(232,105,42,.16); color: var(--dc-orange); font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 700; }
.pro-chip.vencido { background: rgba(240,82,82,.14); color: var(--rojo); }
.pro-beneficios { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pro-beneficios li { position: relative; padding-left: 26px; }
.pro-beneficios li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(232,105,42,.16); color: var(--dc-orange); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.pro-app-cab { display: flex; align-items: center; gap: 4px; margin: 16px 0 8px; }
.pro-app { margin: 0; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dc-muted); }
.pro-proximas { margin: 16px 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--dc-border); }
.pro-proximas summary { cursor: pointer; font-size: .9rem; color: var(--dc-muted); }
.pro-proximas summary strong { color: var(--dc-text); }
.pro-proximas .pro-app { margin: 14px 0 8px; font-size: .82rem; }
.pro-proximas .pro-beneficios { margin-bottom: 4px; font-size: .9rem; }
.pro-proximas .pro-beneficios li::before { background: rgba(148,163,184,.14); color: var(--dc-muted); }
.pro-proximas > p { margin: 10px 0 0; }
.pro-confianza { margin: 0 0 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dc-border); background: rgba(7,11,20,.35); font-size: .9rem; }
.pro-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pro-fila { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-fila .input { flex: 1 1 200px; }
.pro-pasos { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 14px; }
.pro-pasos li { position: relative; padding-left: 36px; counter-increment: paso; display: grid; gap: 8px; }
.pro-pasos li::before { content: counter(paso); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--dc-orange); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.pro-pasos li > p { margin: 0; }
.pro-pasos li > div:not(.pro-robot) { justify-self: start; }
.pro-robot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(232,105,42,.5); background: rgba(7,11,20,.35); }
.pro-robot code { flex: 1 1 200px; font-size: .82rem; word-break: break-all; color: var(--dc-text); }
.pro-planilla { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dc-border); background: rgba(7,11,20,.35); }
.pro-planilla > div { flex: 1; min-width: 0; }
.pro-planilla a strong { overflow-wrap: anywhere; }
.pro-planilla-icono { width: 36px; height: 36px; flex: none; border-radius: 9px; background: rgba(34,197,94,.16); color: var(--verde); display: grid; place-items: center; font-size: 1.2rem; }
.nube-estado { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .82rem; color: var(--dc-muted); }
.nube-punto { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dc-muted); }
.nube-estado.ok .nube-punto { background: var(--verde); }
.nube-estado.enviando .nube-punto { background: var(--dc-orange); animation: nube-latido 1s ease-in-out infinite; }
.nube-estado.espera .nube-punto { background: #f5b942; }
.nube-estado.error { color: var(--rojo); }
.nube-estado.error .nube-punto { background: var(--rojo); }
@keyframes nube-latido { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .nube-estado.enviando .nube-punto { animation: none; } }

/* Ventajas de Pro en cada herramienta */
.pro-promo { margin-top: 18px; }
.pro-promo-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pro-promo-cab h2 { margin: 0; font-size: 1.05rem; }
.comparar { width: 100%; max-width: 760px; border-collapse: separate; border-spacing: 0; margin: 0 0 16px; font-size: .92rem; }
.comparar th, .comparar td { padding: 9px 10px; border-bottom: 1px solid var(--dc-border); text-align: center; vertical-align: middle; }
.comparar tbody th { text-align: left; font-weight: 500; color: var(--dc-text); }
.comparar thead th { border-bottom-color: rgba(255,255,255,.16); font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--dc-muted); width: 92px; }
.comparar thead th:first-child { width: auto; }
.comparar .col-pro { background: rgba(232,105,42,.10); }
.comparar thead .col-pro { color: var(--dc-orange); border-radius: 12px 12px 0 0; }
.comparar thead small { display: block; margin-top: 2px; font-size: .68rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--dc-muted); }
.comparar tbody tr:last-child th, .comparar tbody tr:last-child td { border-bottom: 0; }
.comparar tbody tr:last-child .col-pro { border-radius: 0 0 12px 12px; }
.comparar .solo-pro th { color: var(--dc-text); font-weight: 600; }
.cmp-si, .cmp-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .78rem; font-weight: 800; line-height: 1; }
.cmp-si { background: rgba(34,197,94,.16); color: var(--verde); }
.cmp-no { background: rgba(240,82,82,.14); color: var(--rojo); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .comparar { font-size: .86rem; } .comparar th, .comparar td { padding: 8px 6px; } .comparar thead th { width: 64px; } }
.pro-promo-pie { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.confianza strong { color: var(--dc-text); font-weight: 600; }
