/* ============================================================
   POSADA DEL PUERTO — Estilos personalizados
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Sora:wght@600;700&display=swap');

/* ── Login ─────────────────────────────────────────────────── */
.login-page {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d6efd 100%);
}
.login-box {
  width: 380px;
}
.login-logo {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.main-sidebar {
  background: #1e2d40;
}
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:focus {
  background-color: #0d6efd;
  color: #fff;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.main-header.navbar {
  border-bottom: 1px solid #dee2e6;
}

/* ── Tarjetas small-box (hotel-habitaciones) ─────────────────── */
.small-box {
  border-radius: .5rem;
  overflow: hidden;
}

.small-box.box-clickable {
  position: relative;
  cursor: pointer;
}

.small-box.box-clickable:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  transform: translateY(-2px);
  transition: all .2s ease;
}
.small-box .inner h3 {
  font-size: 2.4rem;
}

/* ============================================================
   DASHBOARD — sistema visual
   Comparte el lenguaje del formulario de reserva:
   Sora para títulos, Nunito para UI, radios amplios,
   sombras suaves y acentos pastel sobre fondo blanco.
   ============================================================ */

.dash {
  --ink:   #132433;
  --muted: #6b7a8b;
  --line:  #e8eef5;
}

.dash .dash-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.dash .dash-kicker {
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7d8fa1;
}

/* ── Hero: prioridades del turno ─────────────────────────────── */
.dash-hero {
  position: relative;
  border: 1px solid #e5edf8;
  border-radius: 1.1rem;
  background:
    radial-gradient(620px 260px at 0% 0%, rgba(0, 168, 150, .10), transparent 62%),
    radial-gradient(520px 260px at 100% 10%, rgba(13, 110, 253, .10), transparent 58%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .85rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  background: #fff;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}

a.stat-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .10);
  text-decoration: none;
}

.chip-warning { background: #fff4db; color: #8b5e00; border-color: #f7e3b5; }
.chip-danger  { background: #fde7ea; color: #9e1c2b; border-color: #f6ccd3; }
.chip-info    { background: #e8f6ff; color: #0f5d88; border-color: #c9e7fa; }

/* ── Medidor de ocupación ────────────────────────────────────── */
.occupancy-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .04);
}

.occupancy-box .occupancy-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.occupancy-box .progress {
  height: 8px;
  border-radius: 999px;
  background: #eef3f9;
  overflow: hidden;
}

.occupancy-box .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #00a896 0%, #00b4d8 100%);
  transition: width .6s cubic-bezier(.22,.61,.36,1);
}

/* ── Tarjetas KPI ────────────────────────────────────────────── */
.kpi-card {
  --kpi: #0d6efd;
  --kpi-soft: #e8f1ff;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem 1.2rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.2rem; right: 1.2rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--kpi);
  opacity: .85;
}

.kpi-card.is-clickable { cursor: pointer; }

.kpi-card.is-clickable:hover,
.kpi-card.is-clickable:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
  border-color: var(--kpi);
  outline: none;
}

.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: .8rem;
  background: var(--kpi-soft);
  color: var(--kpi);
  font-size: 1.05rem;
}

.kpi-value {
  font-family: 'Sora', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
}

.kpi-label {
  display: block;
  margin-top: .35rem;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

/* Aclaración secundaria bajo la etiqueta de un KPI */
.kpi-hint {
  display: block;
  margin-top: .2rem;
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--kpi, #0d6efd);
  line-height: 1.25;
}

.kpi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .9rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 700;
}

.kpi-foot .kpi-link {
  color: var(--kpi);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.kpi-foot .kpi-link:hover { text-decoration: none; opacity: .8; }

.kpi-card .kpi-foot i.fa-arrow-right {
  transition: transform .2s ease;
}
.kpi-card.is-clickable:hover .kpi-foot i.fa-arrow-right {
  transform: translateX(3px);
}

.kpi-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: .55rem;
  background: var(--kpi-soft);
  color: var(--kpi);
  font-size: .75rem;
  transition: background .2s ease, color .2s ease;
}
.kpi-add:hover {
  background: var(--kpi);
  color: #fff;
  text-decoration: none;
}

/* Acentos */
.kpi-teal   { --kpi: #00a896; --kpi-soft: #e6f7f4; }
.kpi-rose   { --kpi: #e5484d; --kpi-soft: #fdeced; }
.kpi-amber  { --kpi: #d97706; --kpi-soft: #fdf1e0; }
.kpi-blue   { --kpi: #2563eb; --kpi-soft: #e8f0fe; }

/* ── Paneles de tabla ────────────────────────────────────────── */
.dash-panel {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
  overflow: hidden;
  height: 100%;
}

.dash-panel .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.dash-panel .card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.dash-panel .panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kpi, #0d6efd);
  flex: 0 0 8px;
}

.dash-panel .table thead th {
  background: #f8fafc;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  color: #7d8fa1;
  font-size: .72rem;
  letter-spacing: .06em;
  padding: .65rem .9rem;
}

.dash-panel .table tbody td {
  padding: .7rem .9rem;
  border-top: 1px solid #f2f6fa;
  font-size: .9rem;
}

.dash-panel .table tbody tr:hover { background: #f9fcff; }

.dash-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #9aa8b6;
}

.dash-empty i {
  font-size: 2rem;
  opacity: .35;
  display: block;
  margin-bottom: .6rem;
}

@media (max-width: 575.98px) {
  .kpi-value { font-size: 1.9rem; }
  .kpi-card  { padding: 1rem; border-radius: .9rem; }
}

/* ── Badges de estado ───────────────────────────────────────── */
.badge {
  font-size: .75rem;
  padding: .3em .55em;
}

/* ── Tablas ─────────────────────────────────────────────────── */
.table th {
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.table td {
  vertical-align: middle;
}

/* ── Botones extra-small ────────────────────────────────────── */
.btn-xs {
  padding: .15rem .4rem;
  font-size: .75rem;
  border-radius: .2rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  border-radius: .5rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

/* ── Reserva form ───────────────────────────────────────────── */
.reserva-shell {
  position: relative;
  padding: 1.1rem 1.1rem 1.35rem;
  background: linear-gradient(135deg, #f5fbff 0%, #fff7ef 55%, #f2fff7 100%);
  border-radius: 1.25rem;
  max-width: 1540px;
  margin: 0 auto;
}

.reserva-shell::before {
  content: '';
  position: absolute;
  inset: 12px;
  background:
    radial-gradient(500px 240px at 5% 0%, rgba(0, 168, 150, .15), transparent 60%),
    radial-gradient(420px 240px at 95% 5%, rgba(255, 147, 0, .18), transparent 55%),
    radial-gradient(360px 220px at 70% 90%, rgba(13, 110, 253, .12), transparent 60%);
  pointer-events: none;
  border-radius: 1rem;
}

.reserva-card {
  position: relative;
  width: 100%;
  max-width: none;
  border: 0;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(12, 24, 40, .10);
  border-radius: 1.1rem;
  overflow: hidden;
}

.reserva-card .card-body {
  position: relative;
  padding: 1.5rem 1.6rem 1.4rem;
}

.reserva-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 2rem 1.25rem;
  background:
    linear-gradient(120deg, #ffffff 0%, #f6fbff 60%, #fff3e8 100%);
  border-bottom: 1px solid #edf3f9;
}

.reserva-kicker {
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1f3b4d;
  margin-bottom: .35rem;
}

.reserva-header .card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #132433;
  margin-bottom: .15rem;
}

.reserva-meta {
  font-size: .88rem;
  color: #5c6c7c;
}


.reserva-form label {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: #3b4a5a;
}

.reserva-form .form-control,
.reserva-form .custom-select {
  min-height: 46px;
  border-radius: .8rem;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #213042;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.reserva-form input[type="date"],
.reserva-form input[type="time"],
.reserva-form input[type="number"],
.reserva-form input[type="email"],
.reserva-form input[type="text"],
.reserva-form select {
  padding: .7rem .95rem;
}

.reserva-form .form-control:focus,
.reserva-form .custom-select:focus {
  border-color: #7aa7f9;
  box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .10);
  background: #fff;
  transform: translateY(-1px);
}

.reserva-section {
  position: relative;
  padding: 1.25rem 1.45rem 1rem;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 1rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .05);
}

.reserva-section .section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1f3b4d;
  margin-bottom: 1rem;
}

.reserva-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .35rem 0 .1rem;
}

.reserva-actions .btn-primary {
  background: linear-gradient(90deg, #00a896 0%, #00b4d8 100%);
  border: none;
  box-shadow: 0 10px 20px rgba(0, 168, 150, .25);
}

.reserva-actions .btn-primary:hover {
  transform: translateY(-1px);
}

.reserva-actions .btn-secondary {
  background: #fff;
  border: 1px solid #e1e8f3;
  color: #2e3d4f;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .75rem;
}

.room-option {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .85rem .9rem .8rem;
  border: 1px solid #dce5ef;
  border-radius: .95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  cursor: pointer;
  min-height: 96px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .04);
}

.room-option input {
  margin-right: .4rem;
}

.room-option .room-number {
  font-weight: 700;
  color: #1f2d3d;
  font-size: .95rem;
}

.room-option .room-desc {
  font-size: .85rem;
  color: #5f6f7f;
}

.room-option.is-checked {
  border-color: #00a896;
  box-shadow: 0 0 0 2px rgba(0, 168, 150, .18);
  background: linear-gradient(140deg, #f0fffb 0%, #f3faff 100%);
}

.reserva-grid {
  margin-bottom: .25rem;
}

.reserva-side {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  border: 1px solid #e2ecf8;
  box-shadow: 0 16px 28px rgba(13, 110, 253, .10);
  border-radius: 1rem;
}

.reserva-form .form-row {
  margin-left: -.55rem;
  margin-right: -.55rem;
}

.reserva-form .form-row > [class*="col-"] {
  padding-left: .55rem;
  padding-right: .55rem;
}

.reserva-section .form-group:last-child {
  margin-bottom: .25rem;
}

.reserva-section .form-control {
  min-height: 42px;
}

.reserva-section .form-check {
  padding-left: 1.5rem;
}

.reserva-section .form-check-input {
  margin-top: .3rem;
}

@media (min-width: 992px) {
  .reserva-shell {
    padding: 1.25rem;
  }

  .reserva-grid > [class*="col-"] {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  .reserva-section {
    padding: 1.25rem 1.45rem .9rem;
  }

  .reserva-side {
    position: sticky;
    top: 92px;
    min-height: calc(100vh - 170px);
  }
}

@media (max-width: 991.98px) {
  .reserva-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reserva-shell {
    border-radius: .9rem;
    padding: .85rem;
  }

  .reserva-card .card-body {
    padding: .95rem .85rem .9rem;
  }

  .reserva-section {
    padding: .95rem .85rem .8rem;
    border-radius: .85rem;
  }

  .reserva-actions .btn {
    width: 100%;
  }
}

/* ── Scrollbar fino en tablas largas ────────────────────────── */
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* ============================================================
   PUNTO DE VENTA — pedidos del café (cafe-pedido-form.php)
   Selector de mesa, cajas de categoría y tarjetas de producto.
   Comparte la paleta teal y las formas del resto del sistema.
   ============================================================ */

.pos {
  --pos-ink:   #132433;
  --pos-muted: #6b7a8b;
  --pos-line:  #e3ebf4;
  --pos-teal:  #00a896;
}

/* ── Selector de tipo de pedido ─────────────────────────────── */
.pos-tipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.pos-tipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1rem .75rem .85rem;
  border: 1.5px solid var(--pos-line);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .04);
}

.pos-tipo .pos-tipo-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.pos-tipo .pos-tipo-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #2e3d4f;
}

.pos-tipo:hover {
  transform: translateY(-2px);
  border-color: #b9d9f6;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .08);
}

.pos-tipo.is-active {
  border-color: var(--pos-teal);
  background: linear-gradient(140deg, #f0fffb 0%, #f3faff 100%);
  box-shadow: 0 0 0 2px rgba(0, 168, 150, .18), 0 12px 22px rgba(0, 168, 150, .12);
}

.pos-tipo.is-active .pos-tipo-label {
  color: #0b6b60;
}

/* ── Mesas y huéspedes como fichas ──────────────────────────── */
.pos-mesa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: .7rem;
}

.pos-mesa {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .9rem .6rem .75rem;
  border: 1.5px solid var(--pos-line);
  border-radius: .95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .04);
}

.pos-mesa .pos-mesa-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.pos-mesa .pos-mesa-nombre {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--pos-ink);
}

.pos-mesa .pos-mesa-meta {
  font-size: .75rem;
  color: var(--pos-muted);
}

.pos-mesa .pos-mesa-estado {
  margin-top: .3rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .12rem .5rem;
  border-radius: 999px;
}

.pos-mesa .pos-estado-libre    { background: #e6f9f4; color: #0b7a63; }
.pos-mesa .pos-estado-ocupada  { background: #ffeaea; color: #b3261e; }
.pos-mesa .pos-estado-reservada{ background: #fff4e0; color: #9a6212; }

.pos-mesa:hover {
  transform: translateY(-3px);
  border-color: #b9d9f6;
  box-shadow: 0 12px 22px rgba(15, 23, 42, .09);
}

.pos-mesa.is-selected {
  border-color: var(--pos-teal);
  background: linear-gradient(140deg, #f0fffb 0%, #f3faff 100%);
  box-shadow: 0 0 0 2px rgba(0, 168, 150, .2), 0 12px 22px rgba(0, 168, 150, .14);
}

.pos-mesa.is-selected::after {
  content: '✓';
  position: absolute;
  top: .45rem;
  right: .55rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pos-teal);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ficha de huésped: más ancha, texto a la izquierda */
.pos-huesped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .7rem;
}

.pos-huesped {
  flex-direction: row;
  align-items: center;
  gap: .7rem;
  text-align: left;
  padding: .8rem .9rem;
}

.pos-huesped .pos-mesa-icon { font-size: 1.55rem; }

.pos-huesped .pos-huesped-datos {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.pos-huesped .pos-huesped-nombre {
  font-weight: 700;
  font-size: .92rem;
  color: var(--pos-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Buscador ───────────────────────────────────────────────── */
.pos-search {
  position: relative;
}

.pos-search .pos-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: .55;
  pointer-events: none;
}

.pos-search input {
  min-height: 50px;
  padding-left: 2.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--pos-line);
  background: #fff;
  font-size: .95rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pos-search input:focus {
  border-color: var(--pos-teal);
  box-shadow: 0 0 0 .2rem rgba(0, 168, 150, .12);
  outline: none;
}

/* ── Cajas de categoría ─────────────────────────────────────── */
.pos-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: .85rem;
}

.pos-cat {
  --cat:      #00a896;
  --cat-soft: #e6f9f4;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem 1rem 1.25rem;
  min-height: 158px;
  border: 1.5px solid var(--pos-line);
  border-radius: 1.1rem;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .05);
}

/* Halo de color propio de cada categoría */
.pos-cat::before {
  content: '';
  position: absolute;
  top: -45%;
  left: -20%;
  width: 140%;
  height: 110%;
  background: radial-gradient(circle at 50% 50%, var(--cat-soft) 0%, transparent 68%);
  opacity: .95;
  pointer-events: none;
}

.pos-cat > * { position: relative; }

.pos-cat .pos-cat-icon {
  font-size: 2.9rem;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .14));
}

.pos-cat .pos-cat-nombre {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--pos-ink);
  text-align: center;
  letter-spacing: -.01em;
}

.pos-cat .pos-cat-count {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cat);
  background: var(--cat-soft);
  padding: .15rem .6rem;
  border-radius: 999px;
}

.pos-cat:hover {
  transform: translateY(-4px);
  border-color: var(--cat);
  box-shadow: 0 18px 32px rgba(15, 23, 42, .12);
}

/* Variantes de color por categoría */
.pos-cat-frias    { --cat: #0091d5; --cat-soft: #e4f4fd; }
.pos-cat-calientes{ --cat: #d98324; --cat-soft: #fdf0e0; }
.pos-cat-licores  { --cat: #a4508b; --cat-soft: #f8ecf6; }
.pos-cat-comidas  { --cat: #00a896; --cat-soft: #e6f9f4; }

/* ── Barra de navegación de categoría ───────────────────────── */
.pos-back-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pos-line);
  border-radius: .85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.pos-back-bar .btn {
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
}

.pos-back-bar .pos-back-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--pos-ink);
}

/* ── Tarjetas de producto ───────────────────────────────────── */
.pos-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: .85rem;
}

.pos-prod {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--pos-line);
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.pos-prod .pos-prod-media {
  position: relative;
  height: 108px;
  background: linear-gradient(140deg, #f4f8fc 0%, #eef4fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pos-prod .pos-prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pos-prod .pos-prod-emoji {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 5px 8px rgba(15, 23, 42, .12));
}

.pos-prod .pos-prod-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .7rem .75rem .8rem;
  flex-grow: 1;
}

.pos-prod .pos-prod-nombre {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.3;
  color: var(--pos-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.pos-prod .pos-prod-precio {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0b7a63;
  margin-top: auto;
}

.pos-prod:hover {
  transform: translateY(-4px);
  border-color: var(--pos-teal);
  box-shadow: 0 18px 30px rgba(15, 23, 42, .13);
}

/* Confirmación al agregar */
.pos-prod.is-added {
  border-color: var(--pos-teal);
  box-shadow: 0 0 0 2px rgba(0, 168, 150, .22), 0 14px 26px rgba(0, 168, 150, .16);
}

/* Contador de unidades ya agregadas */
.pos-prod .pos-prod-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  min-width: 26px;
  height: 26px;
  padding: 0 .35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a896 0%, #00b4d8 100%);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 168, 150, .35);
}

.pos-prod.has-qty .pos-prod-badge { display: flex; }

/* ── La cuenta (columna derecha) ────────────────────────────── */
.pos-cuenta {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 110px);
}

/* Las líneas ocupan el alto sobrante y hacen scroll solo ellas,
   así el total y el botón nunca se van fuera de la pantalla. */
.pos-cuenta-lineas {
  flex: 1 1 auto;
  min-height: 96px;
  overflow-y: auto;
  margin: 0 -.35rem .75rem;
  padding: 0 .35rem;
}

.pos-cuenta-lineas::-webkit-scrollbar { width: 6px; }
.pos-cuenta-lineas::-webkit-scrollbar-thumb {
  background: #cfdae7;
  border-radius: 3px;
}

.pos-cuenta-pie {
  flex: 0 0 auto;
  border-top: 1px solid var(--pos-line);
  padding-top: .75rem;
}

/* ── Líneas del pedido ──────────────────────────────────────── */
.pos-linea {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .4rem .5rem;
  padding: .6rem 1.9rem .6rem .7rem;
  margin-bottom: .5rem;
  border: 1px solid var(--pos-line);
  border-radius: .8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.pos-linea .pos-linea-info {
  grid-column: 1 / -1;
  min-width: 0;
}

.pos-linea .pos-linea-nombre {
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.25;
  color: var(--pos-ink);
}

.pos-linea .pos-linea-unit {
  font-size: .74rem;
  color: var(--pos-muted);
}

.pos-linea .pos-stepper {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.pos-linea .pos-stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--pos-line);
  background: #fff;
  color: #2e3d4f;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: border-color .15s ease, background .15s ease;
}

.pos-linea .pos-stepper button:hover {
  border-color: var(--pos-teal);
  background: #f0fffb;
}

.pos-linea .pos-stepper input {
  width: 46px;
  height: 30px;
  text-align: center;
  border: 1.5px solid var(--pos-line);
  border-radius: .5rem;
  font-weight: 700;
  color: var(--pos-ink);
  -moz-appearance: textfield;
}

.pos-linea .pos-stepper input::-webkit-outer-spin-button,
.pos-linea .pos-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pos-linea .pos-linea-sub {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: #0b7a63;
  text-align: right;
  white-space: nowrap;
}

.pos-linea .pos-linea-del {
  position: absolute;
  top: .45rem;
  right: .35rem;
  border: none;
  background: transparent;
  color: #c9c9d1;
  font-size: .8rem;
  line-height: 1;
  padding: .25rem .3rem;
  border-radius: .5rem;
  transition: color .15s ease, background .15s ease;
}

.pos-linea:hover .pos-linea-del { color: #c0392b; }

.pos-linea .pos-linea-del:hover { background: #ffeaea; }

/* ── Estado vacío ───────────────────────────────────────────── */
.pos-empty {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--pos-muted);
}

.pos-empty .pos-empty-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: .5rem;
  opacity: .55;
}

/* ── Recargos: impuesto y servicio ──────────────────────────── */
.pos-recargos {
  margin-bottom: .65rem;
}

.pos-recargo {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .5rem;
  border-radius: .6rem;
  transition: opacity .15s ease, background .15s ease;
}

.pos-recargo + .pos-recargo { margin-top: .2rem; }

.pos-recargo:hover { background: #f5f9fd; }

/* Apagado: se atenúa pero sigue legible */
.pos-recargo.is-off { opacity: .55; }

.pos-recargo .pos-recargo-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-grow: 1;
  margin: 0;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: #3b4a5a;
  min-width: 0;
}

.pos-recargo .pos-recargo-check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--pos-teal);
}

.pos-recargo .pos-recargo-pct {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
  font-size: .78rem;
  color: var(--pos-muted);
}

.pos-recargo .pos-recargo-pct input {
  width: 52px;
  height: 28px;
  padding: 0 .3rem;
  text-align: right;
  border: 1.5px solid var(--pos-line);
  border-radius: .45rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pos-ink);
  background: #fff;
  -moz-appearance: textfield;
}

.pos-recargo .pos-recargo-pct input::-webkit-outer-spin-button,
.pos-recargo .pos-recargo-pct input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pos-recargo .pos-recargo-pct input:disabled {
  background: #f2f5f9;
  color: #9aa8b6;
}

.pos-recargo .pos-recargo-pct input:focus {
  border-color: var(--pos-teal);
  box-shadow: 0 0 0 .15rem rgba(0, 168, 150, .12);
  outline: none;
}

.pos-recargo .pos-recargo-valor {
  flex-shrink: 0;
  min-width: 68px;
  text-align: right;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: #3b4a5a;
}

/* ── Total del resumen ──────────────────────────────────────── */
.pos-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-radius: .9rem;
  background: linear-gradient(140deg, #f0fffb 0%, #f3faff 100%);
  border: 1px solid #d6f0ea;
}

.pos-total-box .pos-total-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0b6b60;
}

.pos-total-box .pos-total-valor {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0b7a63;
  letter-spacing: -.02em;
}

.pos-btn-crear {
  background: linear-gradient(90deg, #00a896 0%, #00b4d8 100%);
  border: none;
  border-radius: .85rem;
  font-weight: 700;
  padding: .8rem 1rem;
  box-shadow: 0 12px 22px rgba(0, 168, 150, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pos-btn-crear:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 168, 150, .34);
}

.pos-btn-crear:disabled {
  background: #cfd8e3;
  box-shadow: none;
  transform: none;
}

@media (max-width: 575.98px) {
  .pos-tipo-grid { gap: .5rem; }
  .pos-tipo { padding: .8rem .4rem .7rem; }
  .pos-tipo .pos-tipo-icon { font-size: 1.5rem; }
  .pos-tipo .pos-tipo-label { font-size: .78rem; }
  .pos-cat-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .pos-cat { min-height: 132px; padding: 1.1rem .7rem; }
  .pos-cat .pos-cat-icon { font-size: 2.2rem; }
  .pos-prod-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .pos-mesa-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}
