/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Paleta KORU Tropical ──────────────────────────────────── */
  --teal:          #3DBDB7;
  --teal-dark:     #2A9D8F;
  --teal-light:    #7FD8D4;

  --green:         #82C341;
  --green-dark:    #6BA32E;

  /* Rosa Fresa */
  --pink:          #FF6B9E;
  --pink-dark:     #E8528A;
  --pink-light:    #FFD4E6;

  /* Amarillo Mango */
  --mango:         #F4A52B;
  --mango-dark:    #D88D18;
  --mango-light:   #FFF0C2;

  --coral:         #FF6B6B;
  --coral-dark:    #E85555;
  --yellow:        #FFD93D;

  /* Fondos cálidos */
  --sandy:         #FFFBF4;
  --mint:          #E8FAF8;
  --mint-dark:     #C5EFEC;

  /* Neutrales */
  --white:         #FFFFFF;
  --gray-50:       #FFFBF4;
  --gray-100:      #FFF3E8;
  --gray-200:      #E8D5C8;
  --gray-400:      #9BBAB8;
  --gray-600:      #4A8A85;
  --gray-800:      #1A4A44;

  /* Semánticos */
  --primary:       var(--teal);
  --primary-dark:  var(--teal-dark);
  --success:       var(--green);
  --danger:        var(--coral);
  --warning:       var(--yellow);

  --shadow-sm: 0 2px 10px rgba(45,100,90,.09);
  --shadow:    0 6px 24px rgba(45,100,90,.13);
  --shadow-lg: 0 12px 40px rgba(45,100,90,.20);
  --radius:    16px;
  --radius-sm: 10px;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

/* ── Header ───────────────────────────────────────────────────── */
.header {
  background: linear-gradient(135deg, #0F8A84 0%, #2A9D8F 35%, #3DBDB7 70%, #82C341 100%);
  color: white;
  padding: .85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(26,74,68,.25);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.header-logo img {
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
}
.header-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.header-right {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

/* ── Botones ──────────────────────────────────────────────────── */
.btn-primary {
  background: var(--teal);
  color: white;
  border: none;
  padding: .55rem 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
  box-shadow: 0 3px 10px rgba(61,189,183,.3);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 5px 15px rgba(61,189,183,.4); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  padding: .55rem 1.3rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.btn-cerrar {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
  transition: color .2s;
}
.btn-cerrar:hover { color: var(--coral); }

/* ── Barra de horario ─────────────────────────────────────────── */
.horario-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .55rem 1.2rem;
  background: linear-gradient(135deg, #0A3D44, #0E6B6B);
  color: rgba(255,255,255,.92);
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  flex-wrap: wrap;
}
.horario-sep { opacity: .5; }
.zona-entrega-nota {
  font-size: .72rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin: -.2rem 0 .3rem;
  padding: .3rem .6rem;
  background: var(--mint);
  border-radius: 6px;
  border-left: 3px solid var(--teal);
}

/* ── Categorías nav ───────────────────────────────────────────── */
.categorias-nav {
  display: flex;
  gap: .6rem;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  background: white;
  box-shadow: 0 2px 12px rgba(45,100,90,.08);
  position: sticky;
  top: 68px;
  z-index: 90;
  scrollbar-width: none;
}
.categorias-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  white-space: nowrap;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  transition: all .2s;
}
.cat-btn.active, .cat-btn:hover {
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(61,189,183,.35);
}

/* ── Menú cliente – grid de productos ────────────────────────── */
.main-content { max-width: 1200px; margin: 0 auto; padding: 1.8rem 1.5rem; }

/* Banner tropical encima del grid */
.koru-tagline {
  text-align: center;
  margin-bottom: 1.8rem;
  padding: 1.4rem 1rem;
  background: linear-gradient(135deg, var(--pink-light), var(--mango-light), #E8FAF8);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.koru-tagline h2 {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal-dark), var(--pink-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
}
.koru-tagline p {
  font-size: .88rem;
  color: var(--gray-600);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}

/* ── Tarjeta de producto ──────────────────────────────────────── */
.producto-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s;
  border: 1px solid var(--gray-100);
}
.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Imagen grande – muestra el flyer promocional */
.producto-card .card-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--pink-light), var(--mango-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}
.producto-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}
.producto-card:hover .card-img img {
  transform: scale(1.04);
}

/* Franja de color por sabor */
.producto-card .card-flavor-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--mango));
}

.card-body { padding: 1.1rem 1.2rem 1.2rem; }
.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .3rem;
  color: var(--gray-800);
}
.card-body p {
  font-size: .80rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; }

.precio {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.btn-agregar {
  background: linear-gradient(135deg, var(--pink), var(--mango));
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(244,165,43,.4);
  transition: all .2s;
}
.btn-agregar:hover { transform: scale(1.14); box-shadow: 0 6px 18px rgba(244,165,43,.5); }

/* ── Carrito ──────────────────────────────────────────────────── */
.btn-carrito {
  background: rgba(255,255,255,.22);
  color: white;
  border: 2px solid rgba(255,255,255,.5);
  padding: .48rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(4px);
  transition: all .2s;
}
.btn-carrito:hover { background: rgba(255,255,255,.35); }

.badge {
  background: var(--pink);
  color: white;
  font-size: .72rem;
  padding: .1rem .48rem;
  border-radius: 10px;
  font-weight: 700;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,74,68,.45);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.overlay.visible { display: block; }

.carrito-panel {
  position: fixed;
  top: 0; right: -430px;
  width: 420px; max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 300;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(26,74,68,.2);
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.carrito-panel.abierto { right: 0; }

.carrito-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal), var(--green));
  color: white;
}
.carrito-header h2 { color: white; font-size: 1.1rem; }
.carrito-header .btn-cerrar { color: rgba(255,255,255,.8); }

.carrito-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cliente-form { display: flex; flex-direction: column; gap: .6rem; }
.cliente-form h3 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.cliente-form input,
.cliente-form textarea {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--gray-50);
}
.cliente-form input:focus,
.cliente-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,189,183,.12);
  background: white;
}

.carrito-items { display: flex; flex-direction: column; gap: .6rem; }
.carrito-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  border: 1px solid var(--gray-100);
}
.item-nombre { flex: 1; font-size: .88rem; font-weight: 600; color: var(--gray-800); }
.item-controles { display: flex; align-items: center; gap: .4rem; }
.btn-cantidad {
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--mango));
  color: white;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: transform .15s;
}
.btn-cantidad:hover { transform: scale(1.1); }
.item-cantidad { font-weight: 700; min-width: 22px; text-align: center; font-size: .92rem; }
.item-subtotal { font-weight: 700; color: var(--teal-dark); font-size: .9rem; }
.carrito-vacio { text-align: center; color: var(--gray-400); padding: 2.5rem 0; font-size: .9rem; }

.carrito-footer {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .8rem;
  color: var(--gray-800);
}
.total-precio { color: var(--teal-dark); font-size: 1.35rem; font-weight: 700; }

.btn-pedido {
  width: 100%;
  padding: .95rem;
  background: linear-gradient(135deg, var(--pink), var(--mango));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 15px rgba(244,165,43,.4);
}
.btn-pedido:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(244,165,43,.5); }
.btn-pedido:disabled { background: var(--gray-400); cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Modal ────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,74,68,.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal.visible { display: flex; }

.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 2.2rem;
  max-width: 490px;
  width: 92%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn .25s ease;
}
@keyframes popIn { from { opacity:0; transform: scale(.93); } to { opacity:1; transform: scale(1); } }

.modal-grande { max-width: 640px; text-align: left; }
.modal-icon { font-size: 3rem; margin-bottom: .8rem; }
.modal-content h2 { margin-bottom: .5rem; color: var(--gray-800); }
.modal-content p { color: var(--gray-600); margin-bottom: 1.3rem; font-size: .92rem; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: .9rem;
  margin-bottom: 1.1rem;
}
.modal-header h2 { color: var(--teal-dark); font-size: 1.1rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  margin-top: 1rem;
}

/* ── Admin header ─────────────────────────────────────────────── */
.admin-nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.tab-btn {
  padding: .42rem .9rem;
  border: none;
  border-radius: 50px;
  background: rgba(255,255,255,.18);
  color: white;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.tab-btn.active, .tab-btn:hover {
  background: rgba(255,255,255,.35);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ── Admin main ───────────────────────────────────────────────── */
.admin-main { max-width: 1400px; margin: 0 auto; padding: 1.5rem; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.filtros-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.filtros-bar h2 { font-size: 1.1rem; font-weight: 600; color: var(--gray-800); }
.filtros { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filtros input, .filtros select {
  padding: .48rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-size: .87rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .2s;
  background: white;
}
.filtros input:focus, .filtros select:focus { border-color: var(--teal); }

.tabla-container {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.tabla { width: 100%; border-collapse: collapse; }
.tabla th {
  background: var(--gray-50);
  padding: .85rem 1.1rem;
  text-align: left;
  font-size: .8rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--gray-200);
}
.tabla td {
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
  vertical-align: middle;
}
.tabla tr:last-child td { border-bottom: none; }
.tabla tr:hover td { background: var(--gray-50); }
.text-center { text-align: center; color: var(--gray-400); }

/* ── Estado badges ────────────────────────────────────────────── */
.estado-badge {
  display: inline-block;
  padding: .28rem .8rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.estado-pendiente      { background: var(--mango-light);  color: var(--mango-dark); }
.estado-confirmado     { background: #D1ECF1;              color: #0C5460; }
.estado-en_preparacion { background: var(--pink-light);   color: var(--pink-dark); }
.estado-listo          { background: #D4EDDA;              color: #155724; }
.estado-entregado      { background: var(--gray-100);      color: var(--gray-600); }
.estado-cancelado      { background: #FFE5E5;              color: #842029; text-decoration: line-through; }

.btn-accion {
  padding: .32rem .75rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all .15s;
}
.btn-ver      { background: var(--teal);   color: white; }
.btn-cobrar   { background: var(--green);  color: white; }
.btn-reenviar { background: var(--mango);  color: white; }
.btn-wp-comp  { background: #25D366;       color: white; }

/* ── Tablero Kanban ───────────────────────────────────────────── */
.cocina-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: .5rem 0;
}
@media (max-width: 1024px) { .cocina-main { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .cocina-main { grid-template-columns: 1fr; } }

.cocina-col { display: flex; flex-direction: column; gap: .8rem; }
.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  color: white;
  font-size: .92rem;
}
.pendiente-header   { background: linear-gradient(135deg, var(--mango), #E8920F); }
.preparacion-header { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); }
.listo-header       { background: linear-gradient(135deg, var(--green), var(--teal)); }

.col-count {
  background: rgba(255,255,255,.3);
  padding: .18rem .65rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
}

.cocina-cards { display: flex; flex-direction: column; gap: .75rem; }

.cocina-card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--mango);
  animation: slideIn .3s ease;
  transition: box-shadow .2s;
}
.cocina-card:hover { box-shadow: var(--shadow); }
.cocina-card.preparacion  { border-left-color: var(--pink); }
.cocina-card.listo         { border-left-color: var(--green); }
.cocina-card.entregado-card { border-left-color: var(--gray-400); opacity: .7; }

@keyframes slideIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

.cocina-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .5rem;
}
.cocina-card-header h3 { font-size: .95rem; color: var(--teal-dark); font-weight: 700; }
.cocina-mesa { font-size: .8rem; color: var(--gray-600); margin-bottom: .2rem; }
.tiempo-transcurrido { font-size: .73rem; color: var(--gray-400); }

.cocina-item {
  display: flex;
  gap: .5rem;
  padding: .28rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .85rem;
  color: var(--gray-800);
}
.cocina-item:last-child { border-bottom: none; }
.item-qty { color: var(--teal-dark); font-weight: 700; min-width: 28px; }

.cocina-actions { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.cocina-actions button {
  flex: 1;
  padding: .48rem .5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: .8rem;
  font-family: 'Poppins', sans-serif;
  transition: all .18s;
  min-width: 80px;
}
.btn-confirmar { background: var(--teal);  color: white; box-shadow: 0 2px 8px rgba(61,189,183,.3); }
.btn-preparar  { background: var(--pink);  color: white; box-shadow: 0 2px 8px rgba(255,107,158,.3); }
.btn-listo     { background: linear-gradient(135deg, var(--green), var(--teal)); color: white; }
.btn-cancelar  { background: var(--gray-100); color: var(--gray-600); }
.cocina-actions button:hover { transform: translateY(-1px); filter: brightness(1.06); }

.no-pedidos-light { color: var(--gray-400); text-align: center; padding: 2rem 1rem; font-size: .85rem; }
.estado-conexion  { font-size: .8rem; }
.fecha-hora       { font-size: .8rem; color: rgba(255,255,255,.8); }

/* ── Pago / Cobro ─────────────────────────────────────────────── */
.pago-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .pago-layout { grid-template-columns: 1fr; } }

.pago-form-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border: 1px solid var(--gray-100);
}
.pago-form-card h2 {
  font-size: 1.1rem;
  color: var(--teal-dark);
  border-bottom: 2px solid var(--mint-dark);
  padding-bottom: .6rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--gray-50);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,189,183,.12);
  background: white;
}

.input-row { display: flex; gap: .5rem; }
.input-row input { flex: 1; }
.info-pedido { display: flex; flex-direction: column; gap: 1rem; }
.hidden { display: none !important; }

.pedido-resumen {
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  border: 1px solid var(--mint-dark);
}
.pedido-resumen h3 { font-size: .98rem; color: var(--teal-dark); margin-bottom: .2rem; }
.pedido-resumen p  { font-size: .83rem; color: var(--gray-600); }
.items-lista { margin: .6rem 0; display: flex; flex-direction: column; gap: .3rem; }
.item-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--gray-800); }
.total-grande { font-size: 1.2rem; font-weight: 700; color: var(--teal-dark); text-align: right; margin-top: .5rem; }

.cambio-display { font-size: .88rem; color: var(--green-dark); font-weight: 600; margin-top: .3rem; }

.btn-pago {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: .98rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 15px rgba(130,195,65,.35);
}
.btn-pago:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(130,195,65,.45); }
.btn-pago:disabled { background: var(--gray-400); cursor: not-allowed; transform: none; box-shadow: none; }

.pago-resultado {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  border: 1px solid var(--gray-100);
}
.comprobante-preview { display: flex; flex-direction: column; gap: 1rem; }
.comp-numero {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-align: center;
  padding: .6rem;
  background: var(--mint);
  border-radius: var(--radius-sm);
}
.comp-detalle { font-size: .9rem; line-height: 1.9; color: var(--gray-800); }
.whatsapp-status {
  background: #D4EDDA;
  color: #155724;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
}
.whatsapp-status.error { background: #FFE5E5; color: #842029; }

/* ── Resumen del día ──────────────────────────────────────────── */
.resumen-dia { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.resumen-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.5rem;
  flex: 1;
  min-width: 150px;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: transform .2s;
}
.resumen-card:hover { transform: translateY(-2px); }
.resumen-card .valor { font-size: 1.9rem; font-weight: 700; color: var(--teal-dark); }
.resumen-card .etiqueta {
  font-size: .8rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Detalle modal ────────────────────────────────────────────── */
.detalle-items { margin: .9rem 0; }
.detalle-item {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
  color: var(--gray-800);
}
.detalle-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: .8rem;
  color: var(--teal-dark);
}
.estado-acciones { display: flex; gap: .5rem; flex-wrap: wrap; }
.estado-acciones button {
  padding: .48rem 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: .83rem;
  font-family: 'Poppins', sans-serif;
  transition: all .18s;
}
.estado-acciones button:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── Login ────────────────────────────────────────────────────── */
.login-page {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--green) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Loading ──────────────────────────────────────────────────── */
.loading {
  text-align: center;
  color: var(--gray-400);
  padding: 2.5rem;
  grid-column: 1/-1;
  font-size: .9rem;
}

/* ── Admin body fondo ────────────────────────────────────────── */
.admin-body { background: var(--gray-50); }

/* ── Selector método de pago (carrito cliente) ───────────────── */
.metodo-pago-selector {
  display: flex;
  gap: .5rem;
}
.metodo-btn {
  flex: 1;
  padding: .65rem .4rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--gray-600);
  transition: all .2s;
  text-align: center;
  line-height: 1.5;
}
.metodo-btn:hover {
  border-color: var(--teal-light);
  background: var(--mint);
}
.metodo-btn.active {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(61,189,183,.12);
}

/* ── Selector de leche (carrito cliente) ────────────────────── */
.leche-btn {
  flex: 1;
  padding: .65rem .4rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--gray-600);
  transition: all .2s;
  text-align: center;
  line-height: 1.5;
}
.leche-btn:hover { border-color: #A78BFA; background: #F5F3FF; }
.leche-btn.active {
  border-color: #7C3AED;
  background: #F5F3FF;
  color: #5B21B6;
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}

/* ── Caja de transferencia (carrito cliente) ─────────────────── */
.transferencia-box {
  background: linear-gradient(135deg, #E8FAF8, #FFF0C2);
  border: 1.5px solid var(--mango-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }

.cuenta-titulo {
  font-weight: 700;
  font-size: .88rem;
  color: var(--teal-dark);
  margin-bottom: .3rem;
}
.cuenta-fila {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .25rem 0;
  border-bottom: 1px dashed var(--gray-200);
  color: var(--gray-800);
}
.cuenta-fila:last-child { border-bottom: none; }
.cuenta-fila span { color: var(--gray-600); }

.upload-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  border: 2px dashed var(--mango);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: white;
  font-size: .83rem;
  font-weight: 600;
  color: var(--mango-dark);
  transition: all .2s;
}
.upload-label:hover { background: var(--mango-light); }
.upload-label input[type="file"] { display: none; }

.comprobante-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
}

/* ── Badge comprobante en tarjeta del tablero (admin) ────────── */
.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--mango-light);
  color: var(--mango-dark);
  border: 1px solid var(--mango);
  border-radius: 50px;
  padding: .22rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: .25rem;
  transition: all .18s;
}
.comp-badge:hover { background: var(--mango); color: white; }

/* ── Aviso comprobante requerido ─────────────────────────────── */
.aviso-comprobante {
  background: var(--mango-light);
  border: 1.5px solid var(--mango);
  color: var(--mango-dark);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: .5rem;
}

/* ── Card features (bullets de producto) ─────────────────────── */
.card-features {
  list-style: none;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .32rem;
}
.card-features li {
  font-size: .78rem;
  color: var(--gray-600);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
}
.card-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .05rem;
}
.card-desc {
  font-size: .80rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════
   ADMIN – REDISEÑO PROFESIONAL
   ══════════════════════════════════════════════════════════════ */

.admin-body {
  background: #EEF2F7;
}

/* ── Header oscuro ────────────────────────────────────────── */
.admin-body .header {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #164E63 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 28px rgba(0,0,0,.4);
  padding: .75rem 2rem;
}
.admin-body .logo-text { font-weight: 800; letter-spacing: .06em; font-size: 1.35rem; }
.admin-body .estado-conexion {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50px;
  padding: .26rem .85rem;
  font-size: .74rem;
  letter-spacing: .03em;
}
.admin-body .fecha-hora {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .26rem .85rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.9);
}
#usuarioInfo {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .26rem .85rem;
  font-size: .74rem;
  color: rgba(255,255,255,.8);
}

/* ── Tabs navegación ──────────────────────────────────────── */
.admin-body .tab-btn {
  padding: .4rem 1.05rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: .79rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: all .18s;
}
.admin-body .tab-btn:hover {
  background: rgba(255,255,255,.1);
  color: white;
  border-color: rgba(255,255,255,.28);
  transform: none;
}
.admin-body .tab-btn.active {
  background: var(--teal);
  color: white;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(61,189,183,.5);
}
.admin-body .tab-btn[style*="rgba(231,76,60"] {
  border-color: rgba(231,76,60,.4) !important;
  color: rgba(255,255,255,.75);
}

/* ── Barra de estadísticas ────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .stats-bar { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .stats-bar { grid-template-columns: 1fr 1fr; } }

.stat-card {
  background: white;
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .22rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.stat-card:nth-child(1) { border-top: 4px solid var(--mango); }
.stat-card:nth-child(2) { border-top: 4px solid var(--green); }
.stat-card:nth-child(3) { border-top: 4px solid var(--teal); }
.stat-card:nth-child(4) { border-top: 4px solid var(--coral); }
.stat-value { font-size: 1.85rem; font-weight: 800; color: #1A202C; line-height: 1; }
.stat-label { font-size: .75rem; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: .06em; }

/* ── Main admin padding ───────────────────────────────────── */
.admin-body .admin-main { padding: 2rem 2rem 3rem; }

/* ── Kanban – columnas ────────────────────────────────────── */
.admin-body .cocina-main { gap: 1.3rem; align-items: flex-start; }

.admin-body .cocina-col {
  background: rgba(255,255,255,.5);
  border-radius: 22px;
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
}

.admin-body .col-header {
  border-radius: 14px;
  padding: .9rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.13);
}
.admin-body .col-header h2 { font-size: .86rem; font-weight: 700; letter-spacing: .04em; }
.admin-body .col-count {
  background: rgba(255,255,255,.28);
  min-width: 30px;
  text-align: center;
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 800;
}

/* ── Tarjetas de pedido ───────────────────────────────────── */
.admin-body .cocina-card {
  background: white;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06), 0 4px 18px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.05);
  border-left: 5px solid var(--mango);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.admin-body .cocina-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.1); }
.admin-body .cocina-card.preparacion  { border-left-color: var(--pink); }
.admin-body .cocina-card.listo        { border-left-color: var(--green); }
.admin-body .cocina-card.entregado-card { border-left-color: #CBD5E0; opacity: .72; }

.admin-body .cocina-card-header { margin-bottom: .7rem; }
.admin-body .cocina-card-header h3 {
  font-size: .97rem;
  font-weight: 800;
  color: #1A202C;
  letter-spacing: -.01em;
}
.admin-body .tiempo-transcurrido {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  padding: .15rem .6rem;
  border-radius: 50px;
  font-size: .67rem;
  font-weight: 700;
}

.admin-body .cocina-mesa {
  font-size: .79rem;
  color: #475569;
  margin-bottom: .28rem;
  font-weight: 500;
  line-height: 1.55;
}
.admin-body .cocina-item {
  font-size: .81rem;
  padding: .3rem 0;
  border-bottom: 1px solid #F8FAFC;
  color: #1E293B;
}
.admin-body .item-qty { color: var(--teal-dark); font-weight: 800; }

/* ── Botones de acción en tarjetas ───────────────────────── */
.admin-body .cocina-actions { margin-top: 1rem; gap: .45rem; }
.admin-body .cocina-actions button {
  border-radius: 11px;
  font-size: .77rem;
  padding: .55rem .6rem;
  font-weight: 700;
  letter-spacing: .02em;
  min-width: 0;
}
.admin-body .btn-confirmar {
  background: linear-gradient(135deg, #38B2AC, #2A9D8F);
  box-shadow: 0 3px 12px rgba(56,178,172,.4);
}
.admin-body .btn-cancelar {
  background: #FFF5F5;
  color: #C53030;
  border: 1.5px solid #FED7D7 !important;
  box-shadow: none !important;
}
.admin-body .btn-preparar {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  box-shadow: 0 3px 12px rgba(255,107,158,.4);
}
.admin-body .btn-listo {
  background: linear-gradient(135deg, #48BB78, #2A9D8F);
  box-shadow: 0 3px 12px rgba(72,187,120,.4);
}
.btn-entregar {
  flex: 1;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .18s;
  background: linear-gradient(135deg, #64748B, #475569);
  color: white;
  box-shadow: 0 3px 10px rgba(100,116,139,.35);
}
.btn-entregar:hover { background: linear-gradient(135deg, #475569, #334155); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(71,85,105,.4); }

/* ── Selector de tiempo estimado ───────────────────────────── */
.tiempo-selector {
  width: 100%;
  margin-bottom: .55rem;
}
.tiempo-label {
  font-size: .68rem;
  color: #64748B;
  font-weight: 600;
  display: block;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tiempo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  align-items: center;
}
.pill-tiempo {
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  color: #334155;
  border-radius: 20px;
  padding: .18rem .52rem;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .15s;
  line-height: 1.4;
}
.pill-tiempo:hover { background: #E0F2FE; border-color: #38BDF8; color: #0369A1; }
.pill-tiempo.activo { background: #0EA5E9; border-color: #0EA5E9; color: white; box-shadow: 0 2px 8px rgba(14,165,233,.35); }
.tiempo-min-label { font-size: .68rem; color: #94A3B8; font-weight: 600; }

.btn-wp-comp {
  flex: 1;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  border-radius: 11px;
  padding: .5rem .6rem;
  background: #25D366;
  color: white;
  transition: all .18s;
  box-shadow: 0 3px 10px rgba(37,211,102,.35);
}
.btn-wp-comp:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(37,211,102,.45); }
.admin-body .no-pedidos-light { color: #94A3B8; font-size: .81rem; padding: 2.5rem 1rem; }

/* ── Tabla pedidos y comprobantes ────────────────────────── */
.admin-body .filtros-bar {
  background: white;
  border-radius: 18px;
  padding: 1.15rem 1.5rem;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.05);
  margin-bottom: 1.2rem;
}
.admin-body .filtros-bar h2 { font-size: 1.05rem; font-weight: 800; color: #1A202C; }
.admin-body .filtros input,
.admin-body .filtros select {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: .84rem;
  padding: .45rem .9rem;
  color: #374151;
}
.admin-body .filtros input:focus,
.admin-body .filtros select:focus { border-color: var(--teal); background: white; }

.admin-body .tabla-container {
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
}
.admin-body .tabla th {
  background: #F8FAFC;
  color: #64748B;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 2px solid #E2E8F0;
  padding: 1rem 1.2rem;
}
.admin-body .tabla td {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: .86rem;
  color: #374151;
}
.admin-body .tabla tr:hover td { background: #F8FAFC; }

/* ── Modal admin ──────────────────────────────────────────── */
.admin-body .modal-content { border-radius: 22px; box-shadow: 0 24px 64px rgba(0,0,0,.2); }
.admin-body .modal-header { border-bottom: 2px solid #F1F5F9; padding-bottom: 1rem; margin-bottom: 1.1rem; }
.admin-body .modal-header h2 { font-size: 1rem; font-weight: 800; color: #1A202C; }
.admin-body .detalle-item { border-bottom: 1px solid #F1F5F9; font-size: .87rem; color: #374151; }
.admin-body .detalle-total { color: #1A202C; }

/* ── Resumen día (comprobantes) ───────────────────────────── */
.admin-body .resumen-dia { gap: 1rem; margin-bottom: 1.3rem; }
.admin-body .resumen-card {
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  padding: 1.3rem 1.5rem;
}
.admin-body .resumen-card .valor { font-size: 2.1rem; font-weight: 800; color: var(--teal-dark); }
.admin-body .resumen-card .etiqueta { font-size: .73rem; font-weight: 700; color: #94A3B8; letter-spacing: .07em; }

/* ── Comprobante imagen (plantilla de captura) ────────────── */
.recibo-card {
  width: 320px;
  background: white;
  font-family: 'Poppins', sans-serif;
  border-radius: 0;
  overflow: hidden;
}
.recibo-header {
  background: linear-gradient(155deg, #0A3D44 0%, #0E6B6B 50%, #1A9D97 100%);
  color: white;
  text-align: center;
  padding: 1.6rem 1rem 1.2rem;
}
.recibo-header img {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: white;
  padding: 5px;
  margin-bottom: .5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.recibo-header h2 {
  font-size: 1.7rem; font-weight: 800;
  letter-spacing: .09em; margin-bottom: .15rem;
}
.recibo-header p { font-size: .68rem; color: rgba(255,255,255,.72); }

.recibo-numero {
  text-align: center;
  font-size: 1.05rem; font-weight: 800;
  color: #0E6B6B;
  padding: 1rem 1.2rem .25rem;
  letter-spacing: .04em;
}
.recibo-fecha {
  text-align: center;
  font-size: .72rem; color: #94A3B8;
  padding-bottom: .85rem;
}
.recibo-separator {
  height: 1px; background: #E2E8F0; margin: 0 1.2rem;
}
.recibo-separator.dashed {
  background: none; border-top: 2px dashed #E2E8F0;
}
.recibo-datos { padding: .85rem 1.2rem; }
.recibo-fila {
  display: flex; justify-content: space-between;
  font-size: .77rem; padding: .22rem 0; color: #374151;
}
.recibo-fila span:first-child { color: #94A3B8; }
.recibo-fila span:last-child  { font-weight: 600; text-align: right; max-width: 55%; }

.recibo-items { padding: .85rem 1.2rem; }
.recibo-item {
  display: flex; justify-content: space-between;
  font-size: .82rem; padding: .3rem 0; color: #1E293B;
  border-bottom: 1px solid #F8FAFC;
}
.recibo-item span:last-child { font-weight: 700; }

.recibo-total-row {
  display: flex; justify-content: space-between;
  font-size: 1.15rem; font-weight: 800;
  color: #0A3D44;
  padding: .9rem 1.2rem;
  background: #F0FDF9;
}
.recibo-footer {
  background: linear-gradient(135deg, #E8FAF8, #FFF9E6);
  text-align: center;
  padding: .9rem 1rem .8rem;
  font-size: .74rem;
  color: #2A9D8F;
  font-weight: 600;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   REDISEÑO MENÚ CLIENTE (menu-body)
   ═══════════════════════════════════════════════════════════════ */

/* ── Fondo de página ────────────────────────────────────────── */
.menu-body {
  background: #FDF8F3;
  min-height: 100vh;
}

/* ── Header del menú con gradiente tropical ─────────────────── */
.menu-body .header {
  background: linear-gradient(135deg, #0A5C56 0%, #1A8A7A 40%, #2ABD8A 75%, #82C341 100%);
  box-shadow: 0 6px 30px rgba(10,92,86,.28);
  padding: .7rem 1.5rem;
}
.menu-body .header-logo img { height: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.menu-body .logo-text { font-size: 1.6rem; font-weight: 800; letter-spacing: .05em; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.menu-body .btn-carrito {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1.15rem;
  border-radius: 50px;
  padding: .45rem 1rem;
  cursor: pointer;
  display: flex; align-items: center; gap: .4rem;
  transition: all .2s;
  font-weight: 700;
}
.menu-body .btn-carrito:hover { background: rgba(255,255,255,.28); transform: scale(1.04); }
.menu-body .badge {
  background: #FF6B9E;
  color: white;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
  box-shadow: 0 2px 6px rgba(255,107,158,.5);
}

/* ── Barra de horario mejorada ──────────────────────────────── */
.menu-body .horario-bar {
  background: linear-gradient(90deg, #0A3D44 0%, #0D5C5C 50%, #0A3D44 100%);
  padding: .5rem 1.2rem;
  font-size: .78rem;
  letter-spacing: .02em;
}

/* ── Nav de categorías ──────────────────────────────────────── */
.menu-body .categorias-nav {
  padding: .9rem 1.5rem;
  background: white;
  border-bottom: 1px solid #EEE8E0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.menu-body .cat-btn {
  font-size: .82rem;
  font-weight: 600;
  padding: .42rem 1.1rem;
  border: 1.5px solid #DDD4C8;
  background: #FFFBF5;
  color: #5A4A3A;
  border-radius: 50px;
  transition: all .2s;
}
.menu-body .cat-btn.active,
.menu-body .cat-btn:hover {
  background: linear-gradient(135deg, #0A5C56, #2ABD8A);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(42,189,138,.35);
}

/* ── Hero tagline ───────────────────────────────────────────── */
.menu-body .koru-tagline {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 1.8rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0A5C56 0%, #1A9D8A 40%, #3DBDB7 70%, #82C341 100%);
  border: none;
  box-shadow: 0 8px 32px rgba(10,92,86,.22);
}
.tagline-deco {
  position: absolute;
  font-size: 5rem;
  opacity: .12;
  pointer-events: none;
  animation: floatDeco 6s ease-in-out infinite;
}
.tagline-deco-1 { top: -10px; left: -10px; animation-delay: 0s; }
.tagline-deco-2 { bottom: -15px; right: 10px; animation-delay: 3s; font-size: 4rem; }
@keyframes floatDeco {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-12px) rotate(5deg); }
}
.tagline-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.95);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .9rem;
  border-radius: 50px;
  margin-bottom: .8rem;
  backdrop-filter: blur(6px);
}
.menu-body .koru-tagline h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: white;
  -webkit-text-fill-color: white;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  line-height: 1.2;
  margin-bottom: .5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.menu-body .koru-tagline h2 span {
  color: #FFE066;
  text-shadow: 0 2px 12px rgba(255,224,102,.4);
}
.menu-body .koru-tagline p {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  margin-bottom: 1rem;
}
.tagline-pills {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.tagline-pills span {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* ── Grid de productos ──────────────────────────────────────── */
.menu-body .productos-grid {
  gap: 1.8rem;
}

/* ── Tarjetas de producto rediseñadas ───────────────────────── */
.menu-body .producto-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.05);
  border: none;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.menu-body .producto-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
}
.menu-body .card-img {
  height: 260px;
  border-radius: 0;
}
.menu-body .card-flavor-bar {
  height: 5px;
  background: linear-gradient(90deg, #FF6B9E, #F4A52B, #82C341);
}
.menu-body .card-body {
  padding: 1.1rem 1.3rem 1.3rem;
}
.menu-body .card-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1A3A36;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.menu-body .card-features {
  margin-bottom: .9rem;
}
.menu-body .card-features li {
  font-size: .76rem;
  color: #5A7A75;
  padding: .22rem 0;
  border-bottom: 1px solid #F0F7F6;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.menu-body .card-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3DBDB7, #82C341);
  flex-shrink: 0;
}
.menu-body .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .4rem;
  padding-top: .6rem;
  border-top: 1px solid #F0F7F6;
}
.menu-body .precio {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0A5C56, #2ABD8A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.menu-body .btn-agregar {
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 300;
  background: linear-gradient(135deg, #0A5C56, #2ABD8A);
  border: none;
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(42,189,138,.45);
  transition: all .2s;
  flex-shrink: 0;
}
.menu-body .btn-agregar:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 20px rgba(42,189,138,.55);
}

/* ── Carrito panel rediseñado ───────────────────────────────── */
.menu-body .carrito-panel {
  box-shadow: -8px 0 40px rgba(0,0,0,.14);
  border-left: none;
}
.menu-body .carrito-header {
  background: linear-gradient(135deg, #0A5C56, #1A8A7A);
  color: white;
  padding: 1.1rem 1.4rem;
}
.menu-body .carrito-header h2 { color: white; font-size: 1.15rem; font-weight: 700; }
.menu-body .carrito-header .btn-cerrar { color: rgba(255,255,255,.7); font-size: 1.4rem; }
.menu-body .carrito-header .btn-cerrar:hover { color: white; }

.menu-body .cliente-form h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0A5C56;
  margin-bottom: .55rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid #E0F4F1;
}
.menu-body .cliente-form input,
.menu-body .cliente-form textarea {
  border: 1.5px solid #DDE8E7;
  border-radius: 12px;
  background: #FAFFFE;
  font-size: .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.menu-body .cliente-form input:focus,
.menu-body .cliente-form textarea:focus {
  border-color: #3DBDB7;
  box-shadow: 0 0 0 3px rgba(61,189,183,.12);
  outline: none;
}
.menu-body .carrito-item {
  background: #F7FFFE;
  border: 1px solid #E0F0EE;
  border-radius: 12px;
  margin-bottom: .5rem;
}
.menu-body .carrito-footer {
  background: white;
  border-top: 2px solid #E8F5F3;
}
.menu-body .total-precio {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0A5C56, #2ABD8A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.menu-body .btn-pedido {
  background: linear-gradient(135deg, #FF6B9E 0%, #F4A52B 100%);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 6px 20px rgba(244,165,43,.38);
  transition: all .25s;
}
.menu-body .btn-pedido:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244,165,43,.45);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVO MÓVIL — Admin + Menú
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Header admin compacto ──────────────────────────────────── */
  .admin-body .header { padding: 0 1rem; min-height: 52px; }
  .admin-body .header-content { height: 52px; }
  .admin-body .header-logo img { width: 30px; height: 30px; }
  .admin-body .logo-text { font-size: 1rem; }

  /* Ocultar chips de estado, hora y usuario en móvil */
  .admin-body .estado-conexion,
  .admin-body .fecha-hora,
  #usuarioInfo { display: none !important; }

  /* ── Nav → barra inferior fija ──────────────────────────────── */
  .admin-body .admin-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    background: #0F172A;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,.35);
    z-index: 999;
    padding: .3rem 0 .5rem;
  }
  .admin-body .tab-btn {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    font-size: .58rem;
    padding: .35rem .2rem;
    border-radius: 10px;
    margin: 0 .2rem;
    line-height: 1.3;
    letter-spacing: 0;
    min-height: unset;
    white-space: nowrap;
    overflow: hidden;
  }

  /* ── Contenido principal: espacio para barra inferior ───────── */
  .admin-body .admin-main  { padding-bottom: 72px; }
  .admin-body .cocina-main { padding-bottom: 72px; }

  /* ── Stats bar: 2 columnas en móvil ────────────────────────── */
  .stats-bar { grid-template-columns: 1fr 1fr; gap: .6rem; padding: .8rem; }
  .stat-card  { padding: .75rem .8rem; }
  .stat-value { font-size: 1.4rem; }
  .stat-label { font-size: .6rem; }

  /* ── Kanban: columna completa en móvil ──────────────────────── */
  .cocina-main {
    grid-template-columns: 1fr !important;
    gap: .8rem;
    padding: .8rem;
  }
  .cocina-col  { border-radius: 14px; }
  .col-header  { padding: .7rem 1rem; border-radius: 14px 14px 0 0; }
  .col-header h2 { font-size: .9rem; }

  /* ── Cards del tablero ──────────────────────────────────────── */
  .cocina-card { padding: .9rem; }
  .cocina-card-header h3 { font-size: .95rem; }
  .cocina-actions { flex-wrap: wrap; gap: .4rem; }
  .cocina-actions button { flex: 1; min-width: 100px; font-size: .78rem; padding: .55rem .4rem; }

  /* ── Pills de tiempo estimado ───────────────────────────────── */
  .tiempo-pills { gap: .22rem; }
  .pill-tiempo  { padding: .2rem .44rem; font-size: .68rem; }

  /* ── Tabla de pedidos/comprobantes ──────────────────────────── */
  .tabla-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filtros-bar    { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .filtros        { flex-wrap: wrap; gap: .4rem; }
  .filtros input,
  .filtros select { font-size: .8rem; padding: .4rem .7rem; }

  /* ── Modales: ocupan todo el ancho ─────────────────────────── */
  .modal-content  { width: 95vw; max-width: 95vw; padding: 1.1rem; }
  .modal-grande   { width: 95vw; max-width: 95vw; }

  /* ── Resumen comprobantes ───────────────────────────────────── */
  .resumen-dia { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .resumen-card .valor { font-size: 1.2rem; }

  /* ── Carrito panel: ocupa todo en móvil ────────────────────── */
  .carrito-panel {
    width: 100vw;
    right: -100vw;
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    height: 93vh;
  }
  .carrito-panel.abierto { right: 0; }

  /* ── Grid de productos: 2 columnas ─────────────────────────── */
  .productos-grid { grid-template-columns: 1fr 1fr; gap: .7rem; padding: 0 .7rem; }
  .menu-body .koru-tagline { padding: 1.6rem 1.2rem 1.4rem; margin-bottom: 1rem; border-radius: 14px; }
  .menu-body .koru-tagline h2 { font-size: 1.3rem; }
  .menu-body .card-img { height: 180px; }
  .menu-body .main-content { padding: 1rem .7rem 2rem; }

  /* ── Login split: ocultar panel izquierdo en móvil ─────────── */
  .login-split { flex-direction: column; }
  .login-left  { display: none; }
  .login-right { width: 100%; min-height: 100vh; padding: 2rem 1.4rem; }
}

/* Extra pequeño (< 400px): 1 columna de productos */
@media (max-width: 400px) {
  .productos-grid { grid-template-columns: 1fr; }
  .admin-body .tab-btn { font-size: .52rem; padding: .3rem .1rem; }
}
