body {
  font-family: Arial, sans-serif;
  background: #fff8e1;
  text-align: center;
  padding: 2rem;
  color: #5d4037;
}

.logo {
  width: 200px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.productos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.producto {
  background-color: #fff3cd;
  border: 2px solid #fbc02d;
  border-radius: 12px;
  padding: 1rem;
  width: 90%;
  max-width: 300px;
  text-decoration: none;
  color: #5d4037;
  transition: transform 0.2s, box-shadow 0.2s;
}

.producto:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* =========================
   IMÁGENES ESTANDARIZADAS
   ========================= */

.producto img {
  width: 100%;
  height: 180px;          /* altura fija estándar */
  object-fit: cover;      /* recorta sin deformar */
  object-position: center;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #fff8e1;    /* evita parpadeos si tarda en cargar */

  /* toque elegante */
  transition: transform 0.25s ease;
}

.producto:hover img {
  transform: scale(1.03);
}

/* Ajuste para móvil */
@media (max-width: 480px) {
  .producto img {
    height: 200px;
  }
}


.producto h2 {
  margin: 0;
  font-size: 1.4rem;
}

/* ---------------- MODALES ---------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.modal__content {
  position: relative;
  width: min(92vw, 520px);
  margin: 6vh auto;
  background: #fff3cd;
  border: 2px solid #fbc02d;
  border-radius: 14px;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal__title {
  margin: 0.25rem 0 1rem 0;
  font-size: 1.5rem;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #5d4037;
}

.modal__desc {
  margin: 0.75rem 0 1rem 0;
  line-height: 1.4;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  width: 100%;
}

.btn--primary {
  background: #fbc02d;
  border-color: #fbc02d;
  color: #5d4037;
}

.btn--secondary {
  background: #fff8e1;
  border-color: #fbc02d;
  color: #5d4037;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Paso / Formulario */
.step__label {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  text-align: center;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.form {
  display: none; /* se activa cuando elige tipo */
  margin-top: 0.75rem;
}

.form.is-active {
  display: block;
}

.form__row {
  margin-bottom: 0.75rem;
}

.form__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form__input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
}

.form__input:focus {
  border-color: #fbc02d;
  box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.25);
}

.hint {
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: center;
}

.hint.small {
  font-size: 0.85rem;
}

/* =========================
   MEJORAS MODALES (MÓVIL)
   ========================= */

/* Evita que inputs y elementos se salgan del contenedor por padding/bordes */
*, *::before, *::after {
  box-sizing: border-box;
}

/* El modal puede tener scroll vertical si el contenido es alto */
.modal__content {
  max-height: 88vh;       /* ajusta si quieres más/menos alto */
  overflow-y: auto;       /* scroll dentro del modal */
  -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
}

/* Evita que el contenido toque bordes al hacer scroll */
.modal__content {
  padding: 1rem;
}

/* Galería: una imagen debajo de la otra */
.gallery {
  display: grid;
  grid-template-columns: 1fr; /* 1 columna */
  gap: 0.75rem;
}

/* Imágenes: rectangulares y bien proporcionadas */
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* cambia a 1/1 si las quieres cuadradas */
  object-fit: cover;
  border-radius: 12px;
}

/* Inputs/pastillas: que nunca se salgan del modal */
.form__input {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Radios/pastillas (Persona natural / Negocio): que queden dentro */
.radio {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Asegura que la capa del modal permita scroll general si hiciera falta */
.modal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Opcional: un poquito más de aire entre secciones */
.modal__desc {
  margin-top: 0.75rem;
}

#moreProductsList {
  gap: 1rem;
}

#moreProductsModal .modal__content {
  max-height: 88vh;
  overflow-y: auto;
}

#welcomeClientText {
  white-space: pre-line;
} 

/* =========================
   MODAL CANTIDAD - IMAGEN
   ========================= */

.qty-modal__img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: #fff8e1;
}

/* Un poco más alta en móvil */
@media (max-width: 480px) {
  .qty-modal__img {
    max-height: 260px;
  }
}
