/* ================================
   COPIONES MDZ – ESTILOS GENERALES
================================ */

:root {
  --rojo: #d32f2f;
  --rojo-claro: #ef5350;
  --amarillo: #ffca28;
  --gris: #f5f5f5;
  --gris-texto: #444;
  --negro: #111;
}

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body.bg {
  background: var(--gris);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================
   CABECERA
================================ */
.topbar {
  background: var(--rojo);
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 60px;
  border-radius: 8px;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.spacer {
  flex-grow: 1;
}

.link {
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ================================
   CONTENEDORES Y TARJETAS
================================ */
.container {
  width: 95%;
  max-width: 900px;
  margin: 20px auto;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* ================================
   FORMULARIOS
================================ */
form label {
  display: block;
  font-weight: 500;
  margin-top: 10px;
  color: var(--gris-texto);
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 4px;
  font-size: 15px;
}

button, .btn-red {
  background: var(--rojo);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover, .btn-red:hover {
  background: var(--rojo-claro);
}

.btn-descargar {
  background: #1976d2;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-descargar:hover {
  background: #2196f3;
}

/* ================================
   TABLAS
================================ */
.tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.tabla th, .tabla td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.tabla th {
  background: var(--rojo);
  color: white;
  font-weight: 600;
}

/* ================================
   TEXTO Y MENSAJES
================================ */
.muted {
  color: #777;
  font-size: 14px;
}

.small {
  font-size: 13px;
}

.footer {
  margin-top: auto;
  background: var(--negro);
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

/* ================================
   LOGIN Y REGISTRO
================================ */
.narrow {
  max-width: 400px;
}

.login-tabs {
  display: flex;
  margin-bottom: 10px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-bottom: none;
  cursor: pointer;
  background: #eee;
}

.tab.active {
  background: white;
  border-top: 3px solid var(--rojo);
  font-weight: 600;
}

.form {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
}

/* ================================
   MIS PEDIDOS (CLIENTE)
================================ */
.pedido-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: white;
  transition: all 0.2s ease;

  /* Compacto pero SIN SCROLL */
  max-width: 650px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;

  max-height: none !important;
  overflow-y: visible !important;

  box-shadow: 0px 3px 10px rgba(0,0,0,0.08);
}

.pedido-card:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pedido-card p {
  font-size: 14px;
  margin: 4px 0;
}

.pedido-card ul {
  padding-left: 18px;
  margin-top: 4px;
}

.pedido-card li {
  font-size: 13px;
}

/* Estados */
.estado-pendiente {
  background: #ff9800;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
}

.estado-en-proceso {
  background: #03a9f4;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
}

.estado-listo {
  background: #4caf50;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
}

.estado-entregado {
  background: #9e9e9e;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
}

/* ================================
   PANEL EMPLEADO
================================ */

select {
  background: white;
}

audio {
  display: none;
}

/* ================================
   BOTONES ADICIONALES
================================ */
.btn-yellow {
  background: var(--amarillo);
  color: #000;
}

.btn-yellow:hover {
  background: #ffb300;
}

/* ================================
   BOTÓN MERCADO PAGO
================================ */
.btn-mp {
  background: var(--amarillo);
  color: #111;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  width: 100%;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-mp:hover {
  background: #ffca28;
}

.btn-mp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  .tabla th, .tabla td {
    font-size: 13px;
  }
  .logo {
    height: 50px;
  }
  button, .btn-red {
    font-size: 14px;
  }
  .topbar h1 {
    font-size: 18px;
  }
}

/* ================================
   Lista de precios – UI
================================ */
.prices {
  list-style:none; padding:0; margin:6px 0 0;
  display:grid; gap:10px;
}

.prices li {
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px; border:1px solid #eee; border-radius:12px;
  background:#fff; box-shadow:0 1px 0 rgba(0,0,0,.03);
  font:500 15px/1.25 system-ui, -apple-system, Segoe UI, Roboto;
}

.prices li strong {
  font-weight:700; color:#111;
}

.prices li::before {
  content:""; width:8px; height:8px; border-radius:50%;
  background:#ff3355; margin-right:10px; display:inline-block;
}

.prices li>span { color:#555 }

/* ================================
   TARJETAS DE MIS PEDIDOS (ANTIGUAS)
================================ */
.pedido-item { 
  border:1px solid #eee; 
  border-radius:12px; 
  padding:12px 14px; 
  background:#fff; 
  margin-bottom:10px;
}

.pedido-head { 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  margin-bottom:6px;
}

.pedido-head .estado { 
  padding:3px 8px;
  border-radius:999px; 
  font-size:12px; 
  background:#f1f1f1;
}

.pedido-head .estado.pagado { background:#e8f7ee; color:#0a7a3e }
.pedido-head .estado.en-preparación { background:#fff6e6; color:#b07200 }
.pedido-head .estado.listo { background:#e9f1ff; color:#0b5bd3 }

.pedido-body .monto { margin-top:6px; font-weight:700 }
.pedido-body .archivos { margin:8px 0 0 14px }
