/* ==========================================================
   Kiosco — hoja de estilos única
   ========================================================== */
:root {
  --tinta:      #0f172a;
  --tinta-2:    #334155;
  --tenue:      #64748b;
  --borde:      #e2e8f0;
  --borde-2:    #cbd5e1;
  --fondo:      #f1f5f9;
  --papel:      #ffffff;
  --acento:     #0f766e;
  --acento-osc: #115e59;
  --acento-luz: #ccfbf1;
  --ok:         #16a34a;
  --ok-luz:     #dcfce7;
  --alerta:     #d97706;
  --alerta-luz: #fef3c7;
  --error:      #dc2626;
  --error-luz:  #fee2e2;
  --info-luz:   #dbeafe;
  --info:       #1d4ed8;
  --radio:      10px;
  --sombra:     0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.1);
  --sombra-alta:0 10px 25px -5px rgba(15,23,42,.15), 0 8px 10px -6px rgba(15,23,42,.1);
  --barra-ancho: 250px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--fondo);
  color: var(--tinta);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }

.barra {
  width: var(--barra-ancho);
  flex: 0 0 var(--barra-ancho);
  background: #0b1220;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.barra-marca {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marca-icono {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  background: var(--acento); color: #fff;
  border-radius: 9px; font-weight: 800; font-size: 16px;
}
.marca-texto {
  font-weight: 650; color: #f8fafc; font-size: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.barra-nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px;
  color: #94a3b8; font-size: 14.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; text-decoration: none; }
.nav-item.activo { background: var(--acento); color: #fff; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }

.barra-pie { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.usuario-chip { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: #1e293b; color: #5eead4;
  display: grid; place-items: center; font-weight: 700;
}
.usuario-datos { min-width: 0; }
.usuario-datos strong { display: block; color: #e2e8f0; font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-datos small { color: #64748b; font-size: 12px; }

.contenido { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; height: 62px;
  background: var(--papel); border-bottom: 1px solid var(--borde);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 18px; flex: 1; }
.btn-menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--tinta-2); }
.btn-menu svg { width: 22px; height: 22px; }

.principal { padding: 24px; flex: 1; max-width: 1400px; width: 100%; }

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.tarjeta-cabecera {
  padding: 14px 18px; border-bottom: 1px solid var(--borde);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tarjeta-cabecera h2 { font-size: 15.5px; flex: 1; }
.tarjeta-cuerpo { padding: 18px; }
.tarjeta-cuerpo.sin-relleno { padding: 0; }

/* ---------- KPIs ---------- */
.grilla-kpi {
  display: grid; gap: 14px; margin-bottom: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.kpi { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 16px 18px; box-shadow: var(--sombra); }
.kpi-etiqueta { font-size: 12.5px; color: var(--tenue); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 600; }
.kpi-valor { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.kpi-pie { font-size: 12.5px; color: var(--tenue); margin-top: 4px; }
.kpi.acento .kpi-valor { color: var(--acento); }
.kpi.alerta .kpi-valor { color: var(--alerta); }
.kpi.error  .kpi-valor { color: var(--error); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; background: var(--acento); color: #fff;
  transition: background .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--acento-osc); text-decoration: none; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-borde { background: var(--papel); color: var(--tinta-2); border-color: var(--borde-2); }
.btn-borde:hover { background: #f8fafc; color: var(--tinta); }
.btn-sutil { background: rgba(255,255,255,.07); color: #cbd5e1; border-color: rgba(255,255,255,.12); }
.btn-sutil:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-peligro { background: var(--error); }
.btn-peligro:hover { background: #b91c1c; }
.btn-chico { padding: 6px 11px; font-size: 13px; border-radius: 7px; }
.btn-bloque { width: 100%; }
.btn-grande { padding: 13px 22px; font-size: 16px; }

/* ---------- Formularios ---------- */
.campo { margin-bottom: 14px; }
.campo label, .etiqueta {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--tinta-2); margin-bottom: 5px;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--borde-2); border-radius: 8px;
  background: var(--papel); color: var(--tinta);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(15,118,110,.13);
}
input:disabled, select:disabled { background: #f8fafc; color: var(--tenue); }
textarea { resize: vertical; min-height: 70px; }
/* Sin esto un campo no se achica por debajo de su ancho "natural" y, en una
   fila angosta, se monta sobre el de al lado (pasa con las fechas en Android) */
input, select, textarea { min-width: 0; max-width: 100%; }
/* Safari en iPhone dibuja las fechas con estilo propio e ignora el ancho */
input[type=date] { -webkit-appearance: none; appearance: none; min-height: 40px; }
.ayuda { font-size: 12.5px; color: var(--tenue); margin-top: 4px; }
.fila { display: flex; gap: 14px; flex-wrap: wrap; }
.fila > * { flex: 1 1 180px; min-width: 0; }
.grilla-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }

.filtros {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 16px; padding: 14px 16px;
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); box-shadow: var(--sombra);
}
.filtros .campo { margin: 0; flex: 0 1 auto; }
.filtros .campo.crece { flex: 1 1 200px; }

/* ---------- Tablas ---------- */
.tabla-scroll { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tabla th {
  text-align: left; padding: 11px 14px; background: #f8fafc;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--tenue); font-weight: 700; border-bottom: 1px solid var(--borde);
  white-space: nowrap;
}
table.tabla td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.tabla tbody tr:last-child td { border-bottom: 0; }
table.tabla tbody tr:hover { background: #fafcfe; }
.der { text-align: right; }
.cen { text-align: center; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Etiquetas de estado ---------- */
.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap;
}
.pill-ok     { background: var(--ok-luz);     color: #15803d; }
.pill-alerta { background: var(--alerta-luz); color: #b45309; }
.pill-error  { background: var(--error-luz);  color: #b91c1c; }
.pill-info   { background: var(--info-luz);   color: var(--info); }
.pill-gris   { background: #f1f5f9;           color: var(--tenue); }
.pill-acento { background: var(--acento-luz); color: var(--acento-osc); }

/* ---------- Alertas ---------- */
.alerta {
  padding: 11px 15px; border-radius: 9px; margin-bottom: 16px;
  font-size: 14px; border: 1px solid transparent;
}
.alerta-ok     { background: var(--ok-luz);     color: #14532d; border-color: #bbf7d0; }
.alerta-error  { background: var(--error-luz);  color: #7f1d1d; border-color: #fecaca; }
.alerta-info   { background: var(--info-luz);   color: #1e3a8a; border-color: #bfdbfe; }
.alerta-aviso  { background: var(--alerta-luz); color: #78350f; border-color: #fde68a; }

/* ---------- Vacío ---------- */
.vacio { padding: 48px 24px; text-align: center; color: var(--tenue); }
.vacio h3 { color: var(--tinta-2); font-size: 15px; margin-bottom: 6px; }
.vacio p { margin: 0 0 16px; font-size: 14px; }

/* ---------- Pantallas de acceso ---------- */
.acceso {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  grid-template-rows: 1fr auto;
  background: linear-gradient(160deg, #0b1220 0%, #0f766e 100%);
}
.acceso-caja {
  background: var(--papel); border-radius: 14px; padding: 32px;
  width: 100%; max-width: 420px; box-shadow: var(--sombra-alta);
}
.acceso-caja.ancha { max-width: 560px; }
.acceso-marca { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.acceso-marca .marca-icono { width: 38px; height: 38px; flex: 0 0 38px; font-size: 19px; }
.acceso-marca div strong { display: block; font-size: 17px; }
.acceso-marca div small { color: var(--tenue); font-size: 13px; }
.acceso-pie { margin-top: 20px; text-align: center; font-size: 14px; color: var(--tenue); }
.separador { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; color: var(--tenue); font-size: 12.5px; }
.separador::before, .separador::after { content: ''; flex: 1; height: 1px; background: var(--borde); }

/* ---------- Punto de venta ---------- */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.buscador { position: relative; }
.resultados {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--papel); border: 1px solid var(--borde-2);
  border-radius: 10px; box-shadow: var(--sombra-alta);
  max-height: 340px; overflow-y: auto;
}
.resultados:empty { display: none; }
.resultado {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; border-bottom: 1px solid #f1f5f9;
}
.resultado:last-child { border-bottom: 0; }
.resultado:hover, .resultado.marcado { background: var(--acento-luz); }
.resultado-info { flex: 1; min-width: 0; }
.resultado-info strong { display: block; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resultado-info small { color: var(--tenue); font-size: 12.5px; }
.resultado-precio { font-weight: 700; color: var(--acento); white-space: nowrap; }

.carrito-cant { display: flex; align-items: center; gap: 4px; }
.carrito-cant input { width: 62px; text-align: center; padding: 5px; font-size: 13.5px; }
.btn-icono {
  width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center;
  border: 1px solid var(--borde-2); background: var(--papel); color: var(--tinta-2);
  border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1; font-family: inherit;
}
.btn-icono:hover { background: #f1f5f9; }
.btn-quitar { color: var(--error); border-color: #fecaca; }
.btn-quitar:hover { background: var(--error-luz); }

.resumen-linea { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.resumen-linea.total {
  border-top: 2px solid var(--tinta); margin-top: 10px; padding-top: 12px;
  font-size: 21px; font-weight: 700;
}

/* ---------- Gráfico de barras ---------- */
.gbar { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 0 2px; }
.gbar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: 6px; height: 100%; min-width: 0; }
.gbar-barra {
  width: 100%; max-width: 46px; background: var(--acento);
  border-radius: 5px 5px 0 0; min-height: 3px;
  transition: background .15s;
}
.gbar-col:hover .gbar-barra { background: var(--acento-osc); }
.gbar-etq { font-size: 11px; color: var(--tenue); white-space: nowrap; }

/* ---------- Modal ---------- */
.modal-fondo {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: none; place-items: center; padding: 20px; z-index: 100;
  overflow-y: auto;
}
.modal-fondo.abierto { display: grid; }
.modal {
  background: var(--papel); border-radius: 13px; width: 100%; max-width: 540px;
  box-shadow: var(--sombra-alta); margin: auto;
}
.modal-cabecera { padding: 16px 20px; border-bottom: 1px solid var(--borde);
  display: flex; align-items: center; gap: 12px; }
.modal-cabecera h2 { font-size: 16px; flex: 1; }
.modal-cuerpo { padding: 20px; }
.modal-pie { padding: 14px 20px; border-top: 1px solid var(--borde);
  display: flex; gap: 10px; justify-content: flex-end; }
.cerrar { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--tenue); padding: 0 4px; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.tenue { color: var(--tenue); }
.chico { font-size: 13px; }
.fuerte { font-weight: 650; }
.flex { display: flex; }
.gap { gap: 10px; }
.entre { justify-content: space-between; }
.centro-v { align-items: center; }
.crece { flex: 1; }
.envuelve { flex-wrap: wrap; }
.oculto { display: none !important; }

/* ---------- Pie de página ---------- */
.pie-pagina {
  padding: 14px 24px; text-align: center; font-size: 12.5px;
  color: var(--tenue); border-top: 1px solid var(--borde);
}
.acceso .pie-pagina { border-top: 0; padding: 18px 0 0; color: rgba(255,255,255,.7); }

/* ---------- Impresión ---------- */
@media print {
  .barra, .topbar, .pie-pagina, .no-imprimir { display: none !important; }
  .principal { padding: 0; }
  .tarjeta { border: 0; box-shadow: none; }
  body { background: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pos { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .barra {
    position: fixed; left: 0; top: 0; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: var(--sombra-alta);
  }
  .barra.abierta { transform: translateX(0); }
  .btn-menu { display: block; }
  .principal { padding: 16px; }
  /* Las acciones de la barra de arriba bajan a otra línea si no entran */
  .topbar { padding: 8px 14px; height: auto; min-height: 56px; flex-wrap: wrap; gap: 8px 10px; }
  .topbar h1 { font-size: 16px; }
  .topbar .btn { padding: 7px 11px; font-size: 13px; }
}

@media (max-width: 640px) {
  /* Filtros: cada control ocupa el ancho disponible, sin huecos */
  .filtros { padding: 12px; gap: 8px; }
  .filtros .campo { flex: 1 1 130px; min-width: 0; }
  .filtros .btn { width: 100%; }

  /* Indicadores de a dos por fila */
  .grilla-kpi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-valor { font-size: 21px; }

  /* Productos: cada fila pasa a ser una tarjeta (nombre, cifras, botones) */
  .tabla-productos thead { display: none; }
  .tabla-productos, .tabla-productos tbody { display: block; }
  .tabla-productos tr {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--borde);
  }
  .tabla-productos tbody tr:last-child { border-bottom: 0; }
  table.tabla-productos td { padding: 0; border: 0; text-align: left; white-space: nowrap; }
  .tabla-productos td:first-child { grid-column: 1 / -1; white-space: normal; }
  .tabla-productos .col-categoria { grid-column: 1 / -1; margin-top: -4px; }
  .tabla-productos td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: 11px; font-weight: 700; color: var(--tenue);
    text-transform: uppercase; letter-spacing: .05em;
  }
  .tabla-productos .col-acciones { grid-column: 1 / -1; display: flex; gap: 8px; }
  .tabla-productos .col-acciones > * { flex: 1; }
  .tabla-productos .col-acciones .btn { width: 100%; padding: 8px; font-size: 13.5px; }

  /* Ventas: número y total arriba, fecha y pago, cliente y vendedor */
  .tabla-ventas thead, .tabla-ventas .col-items { display: none; }
  .tabla-ventas, .tabla-ventas tbody { display: block; }
  .tabla-ventas tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px;
    grid-template-areas: "num total" "fecha pago" "cliente ver" "vendedor ver";
    padding: 12px 14px; border-bottom: 1px solid var(--borde);
  }
  .tabla-ventas tbody tr:last-child { border-bottom: 0; }
  table.tabla-ventas td { padding: 0; border: 0; }
  .tabla-ventas .col-num { grid-area: num; }
  .tabla-ventas .col-total { grid-area: total; }
  .tabla-ventas .col-fecha { grid-area: fecha; color: var(--tenue); }
  .tabla-ventas .col-pago { grid-area: pago; text-align: right; }
  .tabla-ventas .col-cliente { grid-area: cliente; }
  .tabla-ventas .col-vendedor { grid-area: vendedor; color: var(--tenue); }
  .tabla-ventas .col-vendedor::before { content: "Vendió: "; }
  .tabla-ventas .col-ver { grid-area: ver; align-self: end; }
}

/* ==========================================================
   Escáner de códigos de barras con la cámara
   ========================================================== */
.escaner {
  position: fixed; inset: 0; z-index: 300;
  background: #000; display: none;
  flex-direction: column;
}
.escaner.abierto { display: flex; }

.escaner-barra {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(11,18,32,.95); color: #e2e8f0;
  padding-top: max(12px, env(safe-area-inset-top));
}
.escaner-titulo { flex: 1; font-size: 15px; font-weight: 600; }
.escaner-cerrar {
  background: none; border: 0; color: #cbd5e1;
  font-size: 30px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.escaner-luz {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #e2e8f0; border-radius: 7px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.escaner-luz.activo { background: #fbbf24; color: #1c1917; border-color: #fbbf24; }

.escaner-visor { position: relative; flex: 1; overflow: hidden; background: #000; }
.escaner-visor video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Marco guía con las cuatro esquinas */
.escaner-marco {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(78vw, 380px); height: min(42vw, 210px);
  border-radius: 12px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.85);
  overflow: hidden;
}
.escaner-linea {
  position: absolute; left: 0; right: 0; height: 2px;
  background: #22d3ee; box-shadow: 0 0 10px 2px rgba(34,211,238,.8);
  animation: escanear 2s ease-in-out infinite;
}
@keyframes escanear {
  0%, 100% { top: 6%; }
  50%      { top: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  .escaner-linea { animation: none; top: 50%; }
}

.escaner-pie {
  padding: 14px 16px; text-align: center;
  background: rgba(11,18,32,.95); color: #94a3b8; font-size: 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

/* Botón de cámara embebido en un campo de texto */
.campo-con-escaner { position: relative; display: block; }
.campo-con-escaner input { padding-right: 44px; }
.btn-escanear {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 7px;
  color: var(--tenue); cursor: pointer; padding: 0;
}
.btn-escanear:hover { background: #f1f5f9; color: var(--acento); }
.btn-escanear svg { width: 20px; height: 20px; }

/* ---------- Ayuda ---------- */
.ayuda-indice { display: flex; flex-wrap: wrap; gap: 6px; }
.ayuda-indice a {
  padding: 5px 11px; border: 1px solid var(--borde); border-radius: 999px;
  font-size: 13px; color: var(--tinta-2); text-decoration: none; background: var(--papel);
}
.ayuda-indice a:hover { border-color: var(--acento); color: var(--acento); }
.ayuda-indice a.apagado { opacity: .35; }
.ayuda-seccion { margin-bottom: 16px; scroll-margin-top: 72px; }
.ayuda-seccion .tarjeta-cabecera h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ayuda-seccion .tarjeta-cuerpo { font-size: 14.5px; line-height: 1.6; max-width: 820px; }
.ayuda-seccion h3 { font-size: 15px; margin: 22px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ayuda-seccion ol, .ayuda-seccion ul { padding-left: 22px; margin: 6px 0 12px; }
.ayuda-seccion h3:first-child { margin-top: 0; }
.ayuda-seccion li { margin-bottom: 5px; }
.ayuda-seccion li ul { margin-top: 5px; }
.ayuda-seccion code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.ayuda-tip {
  margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--acento);
  background: var(--acento-luz); border-radius: 0 8px 8px 0; font-size: 13.5px;
}
.ayuda-formula { padding: 10px 14px; background: #f8fafc; border: 1px dashed var(--borde); border-radius: 8px; font-weight: 600; }
.ayuda-faq dt { font-weight: 600; margin-top: 16px; }
.ayuda-faq dt:first-child { margin-top: 0; }
.ayuda-faq dd { margin: 4px 0 0; color: var(--tinta-2); }
