:root {
  --rojo: #e63946;
  --rojo-oscuro: #c1121f;
  --azul-mar: #1d3557;
  --azul-medio: #457b9d;
  --crema: #fff8ef;
  --arena: #ffe8cc;
  --texto: #2b2d42;
  --gris: #8d99ae;
  --verde: #2a9d8f;
  --sombra: 0 4px 18px rgba(29, 53, 87, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--crema);
  color: var(--texto);
  min-height: 100vh;
}

.hero {
  background: linear-gradient(135deg, var(--azul-mar) 0%, var(--azul-medio) 55%, var(--rojo) 130%);
  color: white;
  padding-bottom: 3.5rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.5px; }

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
}
.nav-links a:hover { color: white; text-decoration: underline; }

.hero-texto { text-align: center; padding: 2.5rem 1rem 0; }
.hero-texto h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 2px; }
.hero-texto p { font-size: 1.15rem; opacity: 0.92; margin-top: 0.4rem; }
.hero-datos { font-size: 0.95rem !important; opacity: 0.75 !important; }

.contenedor {
  max-width: 1100px;
  margin: -1.8rem auto 5rem;
  padding: 0 1rem;
  position: relative;
}

.cat-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.cat-card {
  background: white;
  border: 3px solid transparent;
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--azul-mar);
  cursor: pointer;
  transition: all 0.15s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card.activa { border-color: var(--rojo); background: #fff5f5; }
.cat-emoji { font-size: 2rem; }

.bloque h2 {
  color: var(--azul-mar);
  font-size: 1.5rem;
  border-left: 5px solid var(--rojo);
  padding-left: 0.7rem;
  margin-bottom: 0.5rem;
}
.sub { color: #667; margin-bottom: 1rem; }

.grupo { margin-bottom: 1.1rem; }
.grupo h3 { color: var(--azul-mar); margin-bottom: 0.55rem; }

.contador {
  display: inline-block;
  background: var(--arena);
  color: #a15c07;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.chips-tamano { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.chip-size {
  flex: 1;
  min-width: 124px;
  background: white;
  border: 2.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.7rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--texto);
}
.chip-size span { font-weight: 800; }
.chip-size small { color: var(--gris); }
.chip-size b { color: var(--rojo); font-size: 1.1rem; }
.chip-size:hover { border-color: var(--azul-medio); }
.chip-size.activa { border-color: var(--rojo); background: #fff5f5; }
.chip-size.compacta { min-width: 110px; flex-direction: row; justify-content: space-between; }

.grid-ings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ing-chip {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.12s;
  color: var(--texto);
}
.ing-chip:hover { border-color: var(--azul-medio); }
.ing-chip.sel {
  background: var(--azul-mar);
  border-color: var(--azul-mar);
  color: white;
}
.ing-chip.mini { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

.chips-bordes { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.caja-precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: white;
  border-radius: 14px;
  box-shadow: var(--sombra);
  padding: 0.9rem 1.2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.caja-precio strong { color: var(--rojo); font-size: 1.25rem; }

.btn-agregar {
  background: var(--rojo);
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-agregar:hover { background: var(--rojo-oscuro); transform: translateY(-1px); }
.btn-agregar.ancho {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.85rem;
  border-radius: 12px;
}

.grid-especiales, .grid-combos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.card-especial {
  background: white;
  border-radius: 16px;
  box-shadow: var(--sombra);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card-especial header { display: flex; gap: 0.7rem; align-items: flex-start; }
.card-especial h3 { color: var(--azul-mar); }
.card-especial h4 { font-size: 0.85rem; color: #556; margin: 0.55rem 0 0.4rem; }
.desc-fijos { font-size: 0.85rem; color: var(--gris); }
.emoji-grande { font-size: 2rem; line-height: 1; }

.combo-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--sombra);
  padding: 1.15rem;
}
.combo-card.expandida { border: 3px solid var(--arena); }

.combo-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  cursor: default;
}
.combo-card:not(.expandida) .combo-head { cursor: pointer; }
.combo-head > div { flex-grow: 1; }
.combo-head h3 { color: var(--azul-mar); }
.combo-head p { font-size: 0.84rem; color: var(--gris); }
.combo-precio {
  font-weight: 800;
  color: var(--rojo);
  font-size: 1.2rem;
  white-space: nowrap;
}

.combo-body { margin-top: 1rem; }
.slot {
  background: #f8fafc;
  border: 1.5px solid #eef2f7;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.7rem;
}
.slot h4 { font-size: 0.92rem; color: var(--azul-mar); margin-bottom: 0.5rem; }

.addons { display: flex; flex-direction: column; gap: 0.4rem; }
.addon-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.92rem;
}
.addon-row.marcado { background: #eef7f6; outline: 1.5px solid var(--verde); }
.addon-row input { accent-color: var(--verde); width: 17px; height: 17px; }
.addon-row span { flex-grow: 1; }
.addon-row b { color: var(--rojo); }

.reemplazo-select {
  margin: 0.4rem 0 0.2rem 2rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.reemplazo-select select {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-family: inherit;
}

.incluye {
  font-size: 0.86rem;
  color: var(--verde);
  font-weight: 700;
  margin-top: 0.6rem;
}

.btn-volver {
  width: 100%;
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: var(--azul-medio);
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem;
}
.btn-volver:hover { text-decoration: underline; }

.ticket-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  width: min(94%, 560px);
  background: var(--azul-mar);
  color: white;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(29, 53, 87, 0.45);
  z-index: 90;
  transition: transform 0.15s;
}
.ticket-bar:hover { transform: translateX(-50%) scale(1.02); }
.ticket-bar.oculto { display: none; }
.tb-icono { font-size: 1.3rem; }
.tb-texto { flex-grow: 1; font-size: 0.95rem; }
.tb-total { font-weight: 800; font-size: 1.15rem; color: #ffd166; }
.tb-ver { font-size: 0.8rem; opacity: 0.8; }

.recibo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 53, 87, 0.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.recibo-overlay.abierto { display: flex; }

.recibo {
  background: #fffdf7;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 1.2rem 1.4rem 1.6rem;
}
.recibo-cinta { text-align: center; color: var(--gris); letter-spacing: 2px; margin-bottom: 0.4rem; }
.recibo h2 { text-align: center; color: var(--azul-mar); margin-bottom: 1rem; font-size: 1.25rem; }

#recibo-items { border-top: 2px dashed #ccc; border-bottom: 2px dashed #ccc; padding: 0.6rem 0; margin-bottom: 0.8rem; }

.recibo-linea {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted #ddd;
}
.recibo-linea:last-child { border-bottom: none; }
.rl-info strong { display: block; font-size: 0.93rem; }
.rl-info small { display: block; color: var(--gris); font-size: 0.76rem; line-height: 1.35; }
.rl-derecha { text-align: right; white-space: nowrap; }
.rl-precio { display: block; font-weight: 800; color: var(--rojo); }
.rl-quitar {
  background: none;
  border: none;
  color: var(--gris);
  cursor: pointer;
  font-size: 0.95rem;
}
.rl-quitar:hover { color: var(--rojo-oscuro); }

.recibo-total-linea {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.recibo-total-linea strong { color: var(--rojo); font-size: 1.35rem; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 53, 87, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 1rem;
}
.modal-overlay.abierto { display: flex; }

.modal {
  background: white;
  border-radius: 20px;
  padding: 1.8rem;
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow-y: auto;
}
.modal h2 { color: var(--azul-mar); margin-bottom: 1rem; }

.modal label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}
.modal input, .modal select, .modal textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}
.modal input:focus, .modal select:focus, .modal textarea:focus {
  outline: none;
  border-color: var(--azul-medio);
}

.btn-ubicacion {
  width: 100%;
  border: 2px dashed var(--azul-medio);
  background: #f0f7fc;
  color: var(--azul-mar);
  padding: 0.65rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ubicacion:hover { background: #e1effa; }

.estado-ubicacion {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--verde);
}
.estado-ubicacion.error { color: var(--rojo-oscuro); }
.estado-ubicacion a { color: inherit; }

.oculto { display: none; }

.panel-tabs {
  display: flex;
  gap: 0.6rem;
  max-width: 1100px;
  margin: 1.2rem auto 0;
  padding: 0 1rem;
}
.ptab {
  flex: 1;
  background: white;
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 0.75rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--texto);
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: all 0.15s;
}
.ptab:hover { border-color: var(--arena); }
.ptab.activa { background: var(--azul-mar); color: white; }

.admin-wrap {
  max-width: 1100px;
  margin: 1.5rem auto 4rem;
  padding: 0 1rem;
  display: grid;
  gap: 1.2rem;
}
.admin-aviso {
  background: #fff8e1;
  border-left: 4px solid #f4a261;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}
.admin-bloque {
  background: white;
  border-radius: 16px;
  box-shadow: var(--sombra);
  padding: 1.3rem;
}
.admin-bloque h3 { color: var(--azul-mar); }
.admin-sub { font-size: 0.85rem; color: var(--gris); margin: 0.25rem 0 0.9rem; }

.lista-chips-admin { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.ing-admin { cursor: pointer; }
.ing-admin.off { opacity: 0.42; text-decoration: line-through; }

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px dotted #e5e9f0;
}
.admin-item:last-child { border-bottom: none; }
.admin-item.apagado .info { opacity: 0.5; text-decoration: line-through; }
.admin-item .info strong { font-size: 0.95rem; display: block; }
.admin-item .info small { color: var(--gris); font-size: 0.78rem; }

.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #cfd8e3;
  border-radius: 999px;
  transition: 0.2s;
  cursor: pointer;
}
.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--verde); }
.switch input:checked + .slider:before { transform: translateX(20px); }

.form-agregar { display: flex; gap: 0.5rem; margin-top: 0.9rem; flex-wrap: wrap; align-items: center; }
.form-agregar.vertical { flex-direction: column; align-items: stretch; }
.form-agregar input, .form-agregar select {
  padding: 0.55rem 0.7rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  min-width: 0;
}
.btn-mini {
  background: var(--azul-medio);
  border: none;
  color: white;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-mini:hover { filter: brightness(0.94); }
.btn-mini.secundario { background: #eef2f7; color: var(--azul-mar); }

.fila-precios { display: flex; gap: 0.5rem; }
.fila-precios input { width: 100%; }

#slots-nuevo-combo { display: grid; gap: 0.45rem; }
.slot-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.slot-row select { border-radius: 8px; }
.lbl-max { display: flex; align-items: center; gap: 0.35rem; color: var(--gris); }
.lbl-max input { width: 60px; border-radius: 8px; border: 1.5px solid #ddd; padding: 0.3rem; font-family: inherit; }
.quitar-slot {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--rojo-oscuro);
  font-weight: 800;
  cursor: pointer;
}

#admin-seguridad { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
#admin-seguridad input {
  flex: 1 1 240px;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
}
#estado-admin { margin-top: 0.5rem; }

#entidad-editor {
  margin-left: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  background: white;
}

#admin-edicion { display: grid; gap: 0.7rem; margin-top: 1rem; }
#editor-filas { display: grid; gap: 0.6rem; margin-top: 0.8rem; }

.fila-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1.5px solid #e5e9f0;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
}
.fila-editor.desactivada { background: #fdf1f1; border-color: #f2c6c6; opacity: 0.78; }

.fe-campos { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; flex: 1 1 100%; }
.fe-campos input, .fe-campos select, .fe-campos textarea {
  padding: 0.5rem 0.65rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  min-width: 0;
}
.fe-campos textarea { resize: vertical; min-width: 260px; }

.fe-precios { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.fe-precios input { width: 74px; text-align: right; }

.fe-chk {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gris);
}
.fe-chk input { width: 16px; height: 16px; accent-color: var(--verde); }

.fe-activo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--gris);
  white-space: nowrap;
}
.fe-activo input { width: 17px; height: 17px; accent-color: var(--verde); }

.fe-botones { display: flex; gap: 0.4rem; margin-left: auto; }

.datos-pago {
  background: var(--arena);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.btn-copiar {
  background: white;
  border: 1.5px solid var(--azul-medio);
  color: var(--azul-mar);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.3rem;
  transition: all 0.15s;
}
.btn-copiar:hover { background: #e1effa; }
.btn-copiar.copiado {
  background: var(--verde);
  border-color: var(--verde);
  color: white;
}

.modal-botones { display: flex; gap: 0.7rem; margin-top: 0.6rem; }
.btn-secundario {
  flex: 1;
  background: #eee;
  border: none;
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-secundario:hover { background: #ddd; }
.modal-botones .btn-primario { flex: 1.4; }

.btn-primario {
  background: var(--rojo);
  color: white;
  border: none;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primario:hover:not(:disabled) { background: var(--rojo-oscuro); }

.btn-whatsapp {
  flex: 1.4;
  background: #25d366;
  color: white;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 800;
}

.modal-exito { text-align: center; }
.exito-icono { font-size: 3.2rem; }
.modal-exito h2 { margin-top: 0.4rem; }
.modal-exito strong { color: var(--rojo); font-size: 1.1em; }
.exito-sub { color: var(--gris); font-size: 0.92rem; margin: 0.5rem 0 1rem; }

.footer {
  background: var(--azul-mar);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 1.6rem 1rem 5.5rem;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  bottom: 6rem;
  background: var(--azul-mar);
  color: white;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.25s;
  z-index: 300;
  pointer-events: none;
  max-width: 90vw;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.body-panel { background: #f0f4f8; }

.panel-head {
  background: var(--azul-mar);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.panel-head-right { display: flex; align-items: center; gap: 1rem; }
.nav-link-panel { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; }
.nav-link-panel:hover { color: white; }

.modo-badge { font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; }
.modo-badge.demo { background: #fff3cd; color: #856404; }
.modo-badge.en-vivo { background: #d4edda; color: #155724; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.stat-card {
  background: white;
  border-radius: 14px;
  box-shadow: var(--sombra);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.stat-numero { font-size: 1.7rem; font-weight: 800; color: var(--azul-mar); }
.stat-label { color: var(--gris); font-size: 0.82rem; font-weight: 600; }

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 1.2rem;
  padding: 0 1rem;
}
.tab {
  border: 2px solid transparent;
  background: white;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--texto);
  cursor: pointer;
}
.tab.activa { background: var(--azul-mar); color: white; }

.lista-pedidos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  display: grid;
  gap: 1rem;
}

.sin-pedidos {
  background: white;
  border-radius: 14px;
  padding: 3rem;
  text-align: center;
  color: var(--gris);
  font-size: 1.05rem;
}

.pedido {
  background: white;
  border-radius: 14px;
  box-shadow: var(--sombra);
  overflow: hidden;
  border-left: 6px solid var(--azul-medio);
}
.pedido.estado-nuevo { border-left-color: var(--rojo); }
.pedido.estado-preparando { border-left-color: #f4a261; }
.pedido.estado-listo { border-left-color: var(--verde); }
.pedido.estado-entregado { border-left-color: var(--gris); opacity: 0.85; }
.pedido.estado-cancelado { border-left-color: var(--rojo-oscuro); opacity: 0.72; }

.pedido-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: #fafbfd;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.folio { font-weight: 800; color: var(--azul-mar); margin-right: 0.6rem; }
.fecha { color: var(--gris); font-size: 0.83rem; }

.estado-tag { font-size: 0.78rem; font-weight: 800; padding: 0.28rem 0.8rem; border-radius: 999px; }
.tag-nuevo { background: #fdecea; color: var(--rojo-oscuro); }
.tag-preparando { background: #fef3e2; color: #b06a1c; }
.tag-listo { background: #e0f2ef; color: #197a6f; }
.tag-entregado { background: #eceff4; color: #5c677d; }
.tag-cancelado { background: #f0f1f4; color: var(--rojo-oscuro); }

.pedido-body { padding: 0.9rem 1.2rem; }
.pedido-body p { margin-bottom: 0.3rem; font-size: 0.93rem; }
.notas { background: var(--arena); border-radius: 8px; padding: 0.45rem 0.7rem; display: inline-block; }

.detalle {
  background: #f6f8fa;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-top: 0.5rem;
  font-family: inherit;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.pedido-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid #eef1f5;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.total { font-size: 1.02rem; }
.total strong { color: var(--rojo); font-size: 1.15rem; }

.acciones { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-estado {
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: white;
}
.btn-preparando { background: #f4a261; }
.btn-listo { background: var(--verde); }
.btn-entregado { background: var(--azul-medio); }
.btn-estado:hover { filter: brightness(0.92); }

.btn-lamar {
  text-decoration: none;
  color: var(--azul-mar);
  border: 1.5px solid var(--azul-medio);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .nav { padding: 1rem; }
  .grid-especiales, .grid-combos { grid-template-columns: 1fr; }
  .chip-size { min-width: 105px; }
  .contenedor { margin-top: -1.5rem; }
}

/* B11: notificación de pedidos nuevos */
.campana-nuevos {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--rojo);
  color: white;
  animation: latido-campana 1.2s infinite;
  white-space: nowrap;
}
.campana-nuevos.oculto { display: none; }
@keyframes latido-campana {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.banner-nuevo {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: var(--rojo);
  color: white;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(214, 48, 49, 0.35);
  animation: latido-banner 1.1s ease-in-out infinite;
}
.banner-nuevo.oculto { display: none; }
@keyframes latido-banner {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.banner-msj { font-size: 1rem; }
.banner-sonido { font-size: 0.82rem; font-weight: 600; opacity: 0.95; }
.banner-ver {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
}
.banner-ver:hover { background: rgba(255, 255, 255, 0.3); }
