.pedido-main {
  padding: 3rem 0;
  background-color: var(--light-color);
  min-height: calc(100vh - 200px);
}

.pedido-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.productos-fieldset {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.productos-fieldset legend {
  font-weight: 600;
  padding: 0 0.5rem;
  color: var(--dark-color);
}

.mensaje-vacio {
  text-align: center;
  padding: 2rem;
  color: var(--gray-color);
}

.mensaje-vacio a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.mensaje-vacio a:hover {
  text-decoration: underline;
}

.producto-pedido {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.producto-pedido:last-child {
  border-bottom: none;
}

.producto-info h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.precio-unitario {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.producto-cantidad {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cantidad {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cantidad:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.cantidad {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.btn-eliminar {
  background-color: #ff4757;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 0.5rem;
}

.btn-eliminar:hover {
  background-color: #ff3742;
  transform: scale(1.1);
}

.producto-total {
  font-weight: 600;
  text-align: right;
}

.total-pedido {
  text-align: right;
  padding-top: 1rem;
  border-top: 2px solid #eee;
  font-size: 1.2rem;
  margin-top: 1rem;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-confirmar {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--success-color);
  color: white;
}

.btn-confirmar:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.resumen-pedido {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.resumen-pedido h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.resumen-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f0f0f0;
}

.resumen-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.resumen-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
  font-size: 1.2rem;
}

.info-entrega {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.info-entrega h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.info-entrega p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-color);
}

.info-entrega i {
  color: var(--primary-color);
  width: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalAppear 0.3s;
}

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

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--dark-color);
}

.modal-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.modal-content h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.modal-content p {
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .pedido-container {
    grid-template-columns: 1fr;
  }
  
  .resumen-pedido {
    position: static;
  }
}

@media (max-width: 576px) {
  .producto-pedido {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }
  
  .form-buttons {
    flex-direction: column;
  }
}