/* ========= Reseteo básico y tipografía ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
  line-height: 1.5;
  padding-bottom: 50px;
}

/* ========= CONTENEDOR PRINCIPAL ========= */
.container {
  max-width: 840px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ========= HEADER CON LOGO SUPER GRANDE ========= */
.header-container {
  background-color: #1f2937;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-container .logo-super-grande {
  max-width: 320px;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

/* ========= TÍTULO DE SECCIÓN (Wizard) ========= */
.wizard-title {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: #1f2937;
  font-weight: 600;
  text-align: center;
}

/* ========= BARRA DE PROGRESO (Scroll Horizontal) ========= */
.progress-bar-wrapper {
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.progress-bar-wrapper::-webkit-scrollbar {
  height: 8px;
}

.progress-bar-wrapper::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 4px;
}

.progress-bar {
  display: inline-flex;
  counter-reset: step;
  white-space: nowrap;
  padding: 0 8px;
}

.progress-step {
  flex: 0 0 auto;
  width: 100px;
  text-align: center;
  position: relative;
  margin-right: 16px;
}

.progress-step:last-child {
  margin-right: 0;
}

.progress-step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border: 2px solid #d1d5db;
  display: block;
  text-align: center;
  margin: 0 auto 8px;
  border-radius: 50%;
  line-height: 36px;
  background-color: #ffffff;
  color: #6b7280;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-step::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: #d1d5db;
  top: 20px;
  left: -50%;
  z-index: -1;
  border-radius: 2px;
}

.progress-step:first-child::after {
  content: none;
}

.progress-step-active::before {
  border-color: #f97316;
  background-color: #f97316;
  color: #ffffff;
}

.progress-step-active::after {
  background-color: #f97316;
}

.progress-label {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: normal;
}

.progress-step-active .progress-label {
  color: #1f2937;
  font-weight: 600;
}

/* ========= VISTAS (STEPS) ========= */
.step {
  display: none;
}

.step-active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========= CAMPO “CANTIDAD DE PLATOS” MÁS GRANDE ========= */
.form-cantidad label {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.cantidad-carrito {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.input-cantidad-super-grande {
  font-size: 2.25rem;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  width: 120px;
  text-align: center;
  background-color: #ffffff;
  color: #1f2937;
  margin: 0 8px;
  transition: border-color 0.2s ease;
}

.input-cantidad-super-grande:focus {
  border-color: #f97316;
  outline: none;
}

.btn-cant-adjust {
  background-color: #f97316;
  color: #ffffff;
  border: none;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-cant-adjust:hover {
  background-color: #ea580c;
}

.btn-cant-adjust:active {
  transform: scale(0.95);
}

/* ========= ICONOS EN “TIPO DE CONSUMO” MÁS VISIBLE ========= */
.label-consumo {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.radio-group.consumo-icons-mejorado {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.consumo-icons-mejorado label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.consumo-icons-mejorado label:hover {
  border-color: #f97316;
  background-color: #fefaf6;
}

.consumo-icons-mejorado input[type="radio"] {
  transform: scale(1.2);
}

.icono-consumo {
  font-size: 2rem;
}

.texto-consumo {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
}

/* ========= CONTROLES (BOTONES) ========= */
.buttons-container {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.btn-prev,
.btn-next,
.btn-submit {
  background-color: #f97316;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-prev:hover,
.btn-next:hover,
.btn-submit:hover {
  background-color: #ea580c;
}

.btn-prev:active,
.btn-next:active,
.btn-submit:active {
  transform: scale(0.97);
}

.btn-prev[disabled],
.btn-next[disabled] {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ========= FORMULARIOS INTERNOS ========= */
.step form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

/* === 1) STEP TITLES MÁS GRANDES Y NEGRITA === */
.step form label {
  font-size: 2rem;
  font-weight: 600;
  color: #da6a10;
  margin-bottom: 8px;
}

/* ========= LISTAS DE ITEMS CON BOTONES +/– ========= */
.items-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.item-card-cantidad {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.item-card-cantidad:hover {
  border-color: #f97316;
  background-color: #fefaf6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-info-cantidad {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
}

.item-price-cant {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ========= CONTROLES DE CANTIDAD ========= */
.control-cantidad {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-cant-item {
  width: 56px;
  font-size: 1rem;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1f2937;
  transition: border-color 0.2s ease;
}

.input-cant-item:focus {
  outline: none;
  border-color: #f97316;
}

.btn-item-increment,
.btn-item-decrement {
  background-color: #f97316;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-item-increment:hover,
.btn-item-decrement:hover {
  background-color: #ea580c;
}

.btn-item-increment:active,
.btn-item-decrement:active {
  transform: scale(0.95);
}

.btn-item-decrement[disabled],
.btn-item-increment[disabled] {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ========= LISTA DE PRINCIPIOS + PROTEÍNAS POR PLATO ========= */
#plates-container {
  margin-top: 16px;
}

.plate-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.plate-label {
  font-weight: 600;
  color: #374151;
}

/* === 2) ESTILAR TODOS LOS SELECT === */
.select-proteina-plato,
.select-principio-plato {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.select-adicion-plato {
  width: 120px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236b7280' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.select-proteina-plato:focus,
.select-principio-plato:focus,
.select-adicion-plato:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.select-proteina-plato option strong {
  font-weight: bold;
  float: right;
}

/* Ajuste responsive: que el ícono no tape el texto */
@media (max-width: 640px) {
  .select-proteina-plato,
  .select-principio-plato,
  .select-adicion-plato {
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 40px;
  }
}

/* ========= OBSERVACIONES ========= */
.textarea-observaciones {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s ease;
}

.textarea-observaciones:focus {
  outline: none;
  border-color: #f97316;
}

/* ========= MENSAJE DE ERROR ========= */
.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}

/* ========= RESUMEN FINAL ========= */
.resumen-container {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.resumen-container h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  color: #1f2937;
  font-weight: 600;
}

.resumen-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.resumen-label {
  color: #374151;
  font-weight: 500;
}

.resumen-value {
  color: #1f2937;
  font-weight: 500;
}

.total-value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 16px;
  border-top: 1px solid #d1d5db;
  padding-top: 12px;
}

/* ========= BOTÓN DE WHATSAPP ========= */
.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-whatsapp:hover {
  background-color: #1EB954;
}

.btn-whatsapp:active {
  transform: scale(0.97);
}

.btn-whatsapp-icon {
  height: 1em;
  width: auto;
}

/* ========= RESPONSIVE (MÓVIL) ========= */
@media (max-width: 768px) {
  .buttons-container {
    flex-direction: column-reverse;
    gap: 16px;
  }
  .buttons-container button {
    width: 100%;
  }
  .items-container {
    grid-template-columns: 1fr;
  }
  .input-cantidad-super-grande {
    width: 80px;
    font-size: 1.75rem;
  }
  .btn-cant-adjust {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .btn-item-increment,
  .btn-item-decrement {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .input-cant-item {
    width: 50px;
    font-size: 0.9rem;
  }
  .select-proteina-plato,
  .select-principio-plato {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
  #plates-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .plate-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .plate-label {
    font-size: 1rem;
  }
}

/* ========= EFECTO SUAVE EN FOCUS PARA INPUTS Y SELECTS ========= */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

/* ========= ESTILOS ADICIONALES ========= */
.opcional {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}
