:root {
  --accent: #F25C05;
  --font: "Poppins", sans-serif;
  --font-title: "Playfair Display", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: #f7f5f3;
  padding-bottom: 40px;
}

.site-header {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo img {
  height: 100px;
}

#primary_nav_wrap ul {
  list-style: none;
  display: flex;
  gap: 18px;
}

#primary_nav_wrap ul li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 8px 6px;
  font-family: var(--font-title);
  position: relative;
  transition: color 0.18s ease;
}

#primary_nav_wrap ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  transition: transform 0.22s ease;
}

#primary_nav_wrap ul li:hover a::after {
  transform: translateX(-50%) scaleX(1);
}







.contenedor {
  max-width: 1200px;
  margin: auto;
  margin-top: 180px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 10px;
}

.formulario {
  background: white;
  padding: 25px;
  border-radius: 18px;
  flex: 1 1 580px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.formulario h2 {
  color: var(--accent);
  margin-bottom: 20px;
}

.fila {
  display: flex;
  gap: 20px;
}

.campo {
  flex: 1;
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 600;
  margin-top: 10px;
}

input, textarea, select {
  width: 95%;
  padding: 10px;
  margin-top: 5px;
  border: 1.5px solid rgb(198, 192, 181);
  border-radius: 6px;
  font-size: 15px;
}

textarea { resize: none; }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 4px rgb(147, 64, 9);
}

.pagos {
  background-color: #fff6ee;
  border-radius: 15px;
  padding: 15px;
  border-left: 4px solid var(--accent);
  margin-top: 20px;
}

.pagos h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.iconos-pago {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  align-items: center;
}

.iconos-pago img {
  height: 45px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.iconos-pago img:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pedido {
  flex: 0 1 350px;
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  height: fit-content;
}

.pedido h2 {
  color: var(--accent);
  margin-bottom: 15px;
}

.lista-pedido {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  max-height: 400px;
  overflow-y: auto;
}

.lista-pedido::-webkit-scrollbar {
  width: 6px;
}

.lista-pedido::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.lista-pedido::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.vacio {
  color: #999;
  text-align: center;
  font-style: italic;
  padding: 30px 10px;
  font-size: 14px;
}

/* ESTILOS MEJORADOS PARA ITEMS DEL PEDIDO */
.item-pedido {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  margin-bottom: 12px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #ececec;
  transition: all 0.2s ease;
}

.item-pedido:hover {
  background: #fff6ee;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(242, 92, 5, 0.1);
}

.item-detalles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-nombre {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  margin-bottom: 2px;
}

.item-cantidad {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-precio {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.btn-eliminar {
  background: #ff4444;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-eliminar:hover {
  background: #cc0000;
  transform: scale(1.05);
}

.totales div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.totales div.total {
  border-top: 2px solid var(--accent);
  padding-top: 12px;
  margin-top: 8px;
}

.total span:last-child {
  color: var(--accent);
  font-weight: bold;
  font-size: 20px;
}

.btn-pedido {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
}

.btn-pedido:hover {
  background: #d74d04;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 92, 5, 0.3);
}

.btn-pedido:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.error {
  border-color: red !important;
  background-color: #ffe6e6;
}

.error-message {
  display: none;
  color: red;
  font-size: 12px;
  margin: 3px 0 5px;
}

.error-message.active {
  display: block;
}

.aviso {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contenedor {
    flex-direction: column;
  }

  input, textarea, select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .iconos-pago {
    justify-content: center;
  }

  .iconos-pago img {
    height: 35px;
  }
  
  .item-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-eliminar {
    width: 100%;
  }
}

/* ESTILOS DEL MODAL DE PAGO */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-pago {
  background: linear-gradient(135deg, #fef5e7 0%, #ffe8cc 100%);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  border: 3px solid #d4a574;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  padding: 25px;
  border-radius: 17px 17px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bread-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
}

.bread-icon {
  font-size: 40px;
  animation: float 3s ease-in-out infinite;
}

.bread-icon:nth-child(2) {
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.modal-header h2 {
  color: #fff;
  font-family: var(--font-title);
  font-size: 28px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.modal-body {
  padding: 30px;
}

.campo-pago {
  margin-bottom: 20px;
}

.campo-pago label {
  display: block;
  color: #5d4037;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.input-pago {
  width: 100%;
  padding: 14px;
  border: 2px solid #d4a574;
  border-radius: 10px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.input-pago:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(242, 92, 5, 0.2);
  transform: translateY(-2px);
}

.fila-pago {
  display: flex;
  gap: 15px;
}

.fila-pago .campo-pago {
  flex: 1;
}

.error-tarjeta {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 600;
}

.btn-pagar {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #d74d04 100%);
  color: white;
  border: none;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(242, 92, 5, 0.3);
}

.btn-pagar:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 92, 5, 0.4);
}

.btn-pagar:active {
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .modal-pago {
    width: 95%;
  }

  .modal-header h2 {
    font-size: 22px;
  }

  .bread-icon {
    font-size: 30px;
  }

  .fila-pago {
    flex-direction: column;
    gap: 0;
  }
}
    









/* Estilo del placeholder mostrado dentro del select */
select:invalid {
  color: #b7b7b7; /* más claro */
}

/* Evita que el primer option se muestre oscuro */
select option[disabled] {
  color: #b7b7b7;
}


.modal {
  max-height: 90vh;
  overflow-y: auto;
}
.modal-body {
  max-height: 75vh;
  overflow-y: auto;
  scrollbar-width: thin;   /* Firefox */
  scrollbar-color: #ccc transparent;
}

/* Chrome, Edge, Safari */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
