body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

header {
  background: #111827;
  color: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #1d4ed8;
}

button.rojo {
  background: #dc2626;
}

button.gris {
  background: #6b7280;
}

input,
select {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
}

.login-body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  background: white;
  width: 330px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px #0002;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.menu-grid button {
  height: 120px;
  font-size: 22px;
}

.form-card,
.tabla-card {
  background: white;
  margin: 25px;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px #0001;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}

.factura-container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 20px;
  padding: 20px;
}

.panel-productos,
.panel-factura {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px #0001;
}

.producto-btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  background: #16a34a;
  text-align: left;
}

.producto-btn:hover {
  background: #15803d;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
}

tr.seleccionado {
  background: #bfdbfe;
}

.atajos {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.atajos span {
  background: #e5e7eb;
  color: #111827;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
}

@media print {
  header,
  .panel-productos,
  .atajos {
    display: none;
  }

  .factura-container {
    display: block;
  }

  .panel-factura {
    box-shadow: none;
  }
}
.tablet-layout {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tablet-card {
  background: white;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 8px 20px #0001;
}

.grid-mesas,
.grid-categorias,
.grid-productos-tablet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mesa-btn,
.categoria-btn,
.producto-tablet-btn {
  min-height: 70px;
  font-size: 18px;
  border-radius: 16px;
}

.mesa-ocupada {
  background: #f97316;
}

.mesa-seleccionada,
.categoria-activa {
  background: #16a34a;
}

.producto-tablet-btn {
  background: #2563eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.item-pedido-tablet {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.controles-cantidad {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controles-cantidad button {
  min-width: 45px;
  min-height: 45px;
  font-size: 20px;
}

.btn-eliminar-mini {
  background: #dc2626;
}

.btn-enviar {
  width: 100%;
  min-height: 65px;
  background: #16a34a;
  font-size: 20px;
  margin-top: 10px;
}

.btn-limpiar {
  width: 100%;
  min-height: 55px;
  background: #6b7280;
  font-size: 18px;
  margin-top: 10px;
}

@media (min-width: 900px) {
  .tablet-layout {
    grid-template-columns: 1fr 1fr;
  }

  .pedido-actual {
    grid-column: span 2;
  }

  .grid-mesas,
  .grid-categorias,
  .grid-productos-tablet {
    grid-template-columns: repeat(3, 1fr);
  }
}
.producto-agotado {
  background: #9ca3af !important;
  color: #f3f4f6 !important;
  cursor: not-allowed !important;
  opacity: 0.65;
}

.producto-agotado small {
  color: #fee2e2;
  font-weight: bold;
}

.producto-tablet-btn small {
  font-size: 14px;
  margin-top: 4px;
}

.modo-btn,
.pago-btn {
  flex: 1;
  min-height: 55px;
}

.modo-btn.activo,
.pago-btn.activo {
  background: #16a34a;
}

.cuenta-item {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.cuenta-item:hover {
  border-color: #2563eb;
}

.cuenta-item.seleccionada {
  border-color: #16a34a;
  background: #ecfdf5;
}

.badge-listo {
  background: #16a34a;
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.badge-pendiente {
  background: #f59e0b;
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.pedido-numero-btn {
  min-height: 90px;
  font-size: 26px;
  font-weight: bold;
}
.pos-container {
  margin: 20px;
  background: #071a44;
  color: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px #0003;
}

.pos-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #0f172a;
  padding: 14px;
  font-size: 18px;
  border-bottom: 3px solid #22c55e;
}

.pos-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 12px;
  padding: 15px;
  background: #0b255f;
}

.pos-info label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.pos-info input {
  width: 100%;
  box-sizing: border-box;
  background: #e0f2fe;
  border: none;
  color: #111827;
  font-weight: bold;
}

.pos-main {
  display: grid;
  grid-template-columns: 1fr 270px;
  min-height: 430px;
}

.pos-tabla {
  padding: 15px;
}

.pos-tabla table {
  background: #08225a;
  color: white;
}

.pos-tabla th {
  background: #16a34a;
  color: white;
  font-size: 15px;
}

.pos-tabla td {
  border-bottom: 1px solid #38bdf8;
  color: white;
}

.pos-tabla tr.seleccionado {
  background: #2563eb;
}

.pos-total {
  border-left: 3px solid #38bdf8;
  padding: 20px;
  background: #06163a;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pos-total p {
  font-size: 22px;
  margin: 0;
}

.pos-total h1 {
  font-size: 58px;
  margin: 10px 0 25px;
  text-align: right;
  color: #facc15;
}

.pos-total button {
  background: #2563eb;
  font-size: 16px;
}

.pos-bottom {
  background: #16a34a;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media print {
  header,
  .pos-bottom,
  .pos-total button {
    display: none;
  }

  .pos-container {
    background: white;
    color: black;
    box-shadow: none;
  }

  .pos-main {
    display: block;
  }

  .pos-total {
    border: none;
    background: white;
    color: black;
  }

  .pos-tabla table,
  .pos-tabla td {
    color: black;
    background: white;
  }
}
.pos-body {
  margin: 0;
  background: #0f766e;
  font-family: Consolas, Arial, sans-serif;
}

.pos-window {
  width: 92%;
  margin: 35px auto;
  background: #001f5b;
  border: 3px solid #c8d4b8;
  color: white;
  box-shadow: 0 10px 35px #0007;
}

.pos-titlebar {
  height: 36px;
  background: #c8d4b8;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-weight: bold;
}

.pos-titlebar button {
  background: #2563eb;
  color: white;
  padding: 7px 14px;
  border-radius: 6px;
}

.pos-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #001648;
  border-bottom: 2px solid #c8d4b8;
  font-size: 22px;
  padding: 8px 12px;
}

.pos-subheader {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 10px;
  background: #001f5b;
  padding: 10px 12px;
  border-bottom: 2px solid #22c55e;
}

.pos-subheader label {
  display: block;
  font-weight: bold;
  color: white;
  margin-bottom: 4px;
}

.pos-subheader input {
  width: 100%;
  box-sizing: border-box;
  background: #d9f99d;
  border: none;
  border-radius: 0;
  color: #111827;
  font-size: 20px;
  font-family: Consolas, Arial, sans-serif;
  font-weight: bold;
  padding: 7px;
}

.pos-content {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 430px;
}

.pos-table-zone {
  padding: 0;
  border-right: 2px solid #93c5fd;
}

.pos-table {
  width: 100%;
  border-collapse: collapse;
  background: #001f5b;
  color: white;
  margin: 0;
}

.pos-table th {
  background: #16a34a;
  color: white;
  padding: 8px;
  font-size: 18px;
  border-right: 2px solid #93c5fd;
}

.pos-table td {
  padding: 9px;
  font-size: 20px;
  border-right: 2px solid #93c5fd;
  border-bottom: 1px solid #2563eb;
  color: #e0f2fe;
}

.pos-table tr.seleccionado {
  background: #0ea5e9;
}

.pos-total-zone {
  background: #001648;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.total-label {
  font-size: 22px;
  font-weight: bold;
}

.total-big {
  margin: 20px 0;
  text-align: right;
  font-size: 58px;
  color: #facc15;
  font-weight: bold;
}

.pos-total-zone button {
  background: #2563eb;
  font-size: 16px;
  padding: 12px;
  border-radius: 6px;
}

.pos-shortcuts {
  background: #16a34a;
  color: #eaffea;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
:root {
  --term-bg: #eef2f6;
  --term-surface: #ffffff;
  --term-header: #0f172a;
  --term-text: #1e293b;
  --term-focus: #f59e0b; /* Color ámbar muy llamativo para el foco */
  --term-border: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Consolas', 'Courier New', monospace; /* Fuente monoespaciada ideal para números */ }

body.pos-keyboard-body {
  background-color: var(--term-bg);
  color: var(--term-text);
  height: 100vh;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.pos-terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--term-surface);
  border: 2px solid var(--term-border);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Header */
.terminal-header {
  background: var(--term-header);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}
.header-left h2 { font-size: 1.2rem; display: inline; margin-right: 20px; }
.status-badge { background: #3b82f6; padding: 4px 8px; border-radius: 4px; font-weight: bold; }
.header-right { display: flex; gap: 20px; font-weight: bold; }

/* Inputs para Teclado */
.terminal-inputs {
  display: flex;
  padding: 15px 20px;
  gap: 20px;
  background: #f8fafc;
  border-bottom: 2px solid var(--term-border);
}
.input-group { flex: 1; display: flex; flex-direction: column; }
.search-group { flex: 2; }
.input-group label { font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; color: #475569; }

.input-group input {
  width: 100%;
  padding: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  border: 2px solid var(--term-border);
  background: white;
  transition: all 0.1s;
  text-transform: uppercase;
}

/* EL ESTADO FOCUS ES LA CLAVE AQUÍ */
.input-group input:focus {
  outline: none;
  border-color: var(--term-focus);
  background: #fffbeb;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

/* Tabla */
.terminal-main { flex: 1; overflow-y: auto; background: white; }
.terminal-table { width: 100%; border-collapse: collapse; }
.terminal-table th { background: #e2e8f0; color: #334155; padding: 12px; text-align: left; font-weight: bold; border-bottom: 2px solid var(--term-border); position: sticky; top: 0; }
.terminal-table td { padding: 12px; border-bottom: 1px solid #e2e8f0; font-size: 1.1rem; }
.terminal-table tr.seleccionado td { background: var(--term-focus); color: black; font-weight: bold; }

/* Footer / Atajos */
.terminal-footer {
  display: flex;
  border-top: 2px solid var(--term-border);
  background: var(--term-header);
  color: white;
  height: 90px;
}
.terminal-shortcuts {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 20px;
  gap: 15px;
}
.shortcut { font-size: 0.95rem; font-weight: bold; }
.shortcut kbd { background: white; color: var(--term-header); padding: 4px 8px; border-radius: 4px; margin-right: 5px; }

.terminal-total {
  flex: 1;
  background: #10b981;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0 30px;
}
.terminal-total span { font-size: 1rem; font-weight: bold; opacity: 0.9; }
.total-amount { font-size: 2.5rem; font-weight: bold; line-height: 1; }
.input-tabla {
  width: 100%;
  border: none;
  background: #ecfeff;
  padding: 10px;
  font-weight: bold;
  font-size: 15px;
  box-sizing: border-box;
  text-transform: uppercase;
}

.input-tabla:focus {
  outline: 3px solid #facc15;
  background: #fef3c7;
}

.fila-edicion td {
  padding: 0;
}
.input-tabla {
  width: 100%;
  border: none;
  background: #ecfeff;
  padding: 10px;
  font-weight: bold;
  font-size: 15px;
  box-sizing: border-box;
  text-transform: uppercase;
}

.input-tabla:focus {
  outline: 3px solid #facc15;
  background: #fef3c7;
}

.fila-edicion td {
  padding: 0;
}

/* =========================================================
   MEJORAS RESPONSIVE / DISEÑO POS
   No cambia funciones ni JavaScript.
   ========================================================= */
:root {
  --azul-oscuro: #0f172a;
  --azul: #2563eb;
  --azul-hover: #1d4ed8;
  --verde: #16a34a;
  --naranja: #f97316;
  --rojo: #dc2626;
  --gris-bg: #f3f4f6;
  --borde: #e5e7eb;
  --sombra: 0 8px 20px #0001;
  --radio: 16px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 12px;
}

header h2 {
  margin: 0;
}

header div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

button,
input,
select {
  font-family: inherit;
}

button {
  min-height: 44px;
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
}

button:active {
  transform: scale(.98);
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* MENÚ PRINCIPAL */
.menu-grid {
  min-height: calc(100vh - 76px);
  align-content: start;
}

.menu-grid button {
  border-radius: 14px;
  box-shadow: var(--sombra);
  letter-spacing: .3px;
}

/* FORMULARIOS Y TABLAS */
.form-card,
.tabla-card,
.tablet-card {
  border: 1px solid #eef2f7;
}

.tabla-card {
  overflow-x: auto;
}

.form-card input,
.form-card select,
.tabla-card input,
.tabla-card select {
  width: 100%;
  max-width: 100%;
}

/* CAJA - convierte cada pedido en tarjeta */
#listaPendientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.pedido-caja {
  background: #ffffff;
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--sombra);
}

.pedido-caja h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--azul-oscuro);
}

.pedido-caja p {
  margin: 6px 0;
}

.pedido-caja input {
  width: 100%;
  margin: 12px 0 10px;
}

.pedido-caja button {
  width: 100%;
}

/* TABLET MESERA */
.tablet-layout {
  grid-template-columns: minmax(280px, .75fr) minmax(320px, 1fr) minmax(320px, 1fr);
  align-items: start;
}

.tablet-card {
  min-width: 0;
}

.pedido-actual {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.grid-mesas,
.grid-categorias {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.grid-productos-tablet {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.mesa-btn,
.categoria-btn,
.producto-tablet-btn {
  min-height: 76px;
  padding: 14px;
}

.producto-tablet-btn strong {
  line-height: 1.2;
}

.item-pedido-tablet {
  align-items: center;
}

.controles-cantidad {
  flex-wrap: nowrap;
}

/* TABLAS EN PANTALLAS PEQUEÑAS */
.tabla-card table,
.form-card + .tabla-card table {
  min-width: 720px;
}

/* RESPONSIVE GENERAL */
@media (max-width: 1180px) {
  .tablet-layout {
    grid-template-columns: 1fr 1fr;
  }

  .pedido-actual {
    grid-column: span 2;
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  header {
    align-items: flex-start;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 16px;
  }

  .menu-grid button {
    height: 100px;
    font-size: 18px;
  }

  .form-card,
  .tabla-card {
    margin: 16px;
    padding: 18px;
  }

  .tablet-layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .pedido-actual {
    grid-column: auto;
  }

  .grid-mesas,
  .grid-categorias,
  .grid-productos-tablet {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  header {
    padding: 14px 16px;
  }

  header,
  header div {
    flex-direction: column;
    align-items: stretch;
  }

  header button {
    width: 100%;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .menu-grid button {
    height: 78px;
    font-size: 17px;
  }

  .login-card {
    width: min(330px, calc(100vw - 32px));
  }

  .form-card,
  .tabla-card {
    margin: 12px;
    padding: 16px;
    border-radius: 14px;
  }

  #listaPendientes {
    grid-template-columns: 1fr;
  }

  .grid-mesas,
  .grid-categorias,
  .grid-productos-tablet {
    grid-template-columns: 1fr;
  }

  .mesa-btn,
  .categoria-btn,
  .producto-tablet-btn {
    min-height: 64px;
    font-size: 16px;
  }

  .item-pedido-tablet {
    flex-direction: column;
    align-items: stretch;
  }

  .controles-cantidad {
    justify-content: space-between;
  }
}

/* =========================================================
   MODAL "FINALIZAR PEDIDO" (F6)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-cobro-card {
  background: #ffffff;
  width: 440px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: modalCobroAparece .15s ease-out;
}

@keyframes modalCobroAparece {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-cobro-header {
  background: var(--azul-oscuro, #0f172a);
  color: #fff;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-cobro-header .icono-cobro {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--azul, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.modal-cobro-header h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: .2px;
}

.modal-cobro-header p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #94a3b8;
}

.modal-cobro-body {
  padding: 24px 28px 6px;
}

.campo-cobro {
  margin-bottom: 16px;
}

.campo-cobro label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #374151;
  margin-bottom: 6px;
}

.campo-cobro input,
.campo-cobro select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1.5px solid var(--borde, #e5e7eb);
  border-radius: 10px;
  font-size: 15px;
}

.campo-cobro input:focus,
.campo-cobro select:focus {
  outline: none;
  border-color: var(--azul, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.fila-doble-cobro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vuelto-destacado {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.vuelto-destacado span:first-child {
  font-size: 13px;
  font-weight: bold;
  color: #166534;
}

.vuelto-destacado span:last-child {
  font-size: 24px;
  font-weight: 800;
  color: #166534;
}

.modal-cobro-acciones {
  padding: 18px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-confirmar-cobro {
  background: var(--verde, #16a34a);
  font-size: 16px;
  padding: 14px;
}

.btn-confirmar-cobro:hover {
  background: #15803d;
}

.btn-cancelar-cobro {
  background: transparent;
  color: #6b7280;
  border: 1.5px solid var(--borde, #e5e7eb);
}

.btn-cancelar-cobro:hover {
  background: #f3f4f6;
}

/* =========================================================
   MODAL "FINALIZAR PEDIDO" v2 — layout de dos paneles
   ========================================================= */
.modal-cobro-card-v2 {
  background: #ffffff;
  width: 620px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: modalCobroAparece .15s ease-out;
}

.cobro-header-v2 {
  background: var(--azul-oscuro, #0f172a);
  color: #fff;
  padding: 20px 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cobro-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: bold;
  letter-spacing: .8px;
  color: #38bdf8;
  margin-bottom: 4px;
}

.cobro-header-v2 h2 {
  margin: 0;
  font-size: 20px;
}

.btn-cerrar-x {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  padding: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cerrar-x:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cobro-paneles {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.panel-cobro {
  padding: 22px 24px;
}

.panel-pedido {
  border-right: 1px solid var(--borde, #e5e7eb);
}

.panel-pago {
  background: #f8fafc;
}

.panel-cobro h4 {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: bold;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #94a3b8;
}

.vuelto-destacado-v2 {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-radius: 14px;
  padding: 18px 18px;
  text-align: center;
  margin-top: 22px;
}

.vuelto-destacado-v2 span:first-child {
  display: block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .8px;
  color: #dcfce7;
  margin-bottom: 4px;
}

.vuelto-destacado-v2 span:last-child {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
}

.cobro-acciones-v2 {
  padding: 18px 26px 24px;
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border-top: 1px solid var(--borde, #e5e7eb);
}

.cobro-acciones-v2 .btn-cancelar-cobro,
.cobro-acciones-v2 .btn-confirmar-cobro {
  flex: 1;
  padding: 13px;
}

@media (max-width: 640px) {
  .cobro-paneles {
    grid-template-columns: 1fr;
  }

  .panel-pedido {
    border-right: none;
    border-bottom: 1px solid var(--borde, #e5e7eb);
  }
}

/* =========================================================
   LOGIN DARK (San Jacinto - Piscinas, Bar & Saunas)
   ========================================================= */
.login-body-dark {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(14, 165, 233, .10), transparent 55%),
    #0a1120;
  padding: 24px;
  box-sizing: border-box;
}

.login-card-dark {
  background: #101b30;
  border: 1px solid rgba(56, 189, 248, 0.12);
  width: 400px;
  max-width: 100%;
  padding: 40px 36px 34px;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-icono-dark {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1e3a5f, #0d1a2e);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.06);
}

.login-icono-dark img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 50%;
}

.login-card-dark h2 {
  margin: 0 0 6px;
  color: #f1f5f9;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .2px;
}

.login-subtitulo-dark {
  margin: 0 0 28px;
  color: #7c93ad;
  font-size: 13.5px;
}

.campo-login-dark {
  width: 100%;
  text-align: left;
  margin-bottom: 16px;
}

.campo-login-dark label {
  display: block;
  font-size: 12.5px;
  font-weight: bold;
  color: #8798b0;
  margin-bottom: 6px;
}

.campo-login-dark input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  background: #0a1120;
  border: 1.5px solid #223047;
  border-radius: 10px;
  font-size: 15px;
  color: #f1f5f9;
}

.campo-login-dark input::placeholder {
  color: #4b5b74;
}

.campo-login-dark input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .2);
}

.btn-login-dark {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 6px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.btn-login-dark:hover {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
}

.login-mensaje-dark {
  min-height: 18px;
  margin: 12px 0 0;
  color: #f87171;
  font-size: 13.5px;
  font-weight: bold;
}

@media (max-width: 480px) {
  .login-card-dark {
    padding: 32px 24px 28px;
  }

  .login-icono-dark {
    width: 80px;
    height: 80px;
  }

  .login-icono-dark img {
    width: 56px;
    height: 56px;
  }
}
