/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  /* Fondo con overlay para que las tarjetas destaquen */
/*  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
  background-size: cover;*/
  padding: 10px;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
  margin-top: 10px;
}

/* CATÁLOGO */
.catalogo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 10px;
}

.producto {
  background-color: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.producto:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Imagen catálogo: completa, manteniendo proporción */
.producto img {
  width: auto;           /* Mantiene proporción */
  max-width: 150%;       /* No se salga del contenedor */
  height: auto;
  max-height: 220px;     /* Limita altura */
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;   /* Ajusta sin recortar */
}

.producto h2 {
  margin: 10px 0 5px 0;
  font-size: 1.25rem;
  color: #e63946;
}

.producto p {
  font-size: 1rem;
  color: #555;
}

.precio {
  font-weight: bold;
  color: #e63946;
  margin-top: 5px;
}

/* SWEETALERT */
.swal-fullscreen {
  width: 95% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  border-radius: 15px !important;
  padding: 5px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  /*background-color: #fff !important; */
}

.detalle-producto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.detalle-producto img {
  width: 100%;      /* ocupa todo el ancho del contenedor */
  height: auto;     /* mantiene proporción */
  max-height: 50vh; /* limita la altura máxima */
  border-radius: 2px;
  object-fit: contain; /* se ajusta sin recortarse */
}

.detalle-producto .info {
  text-align: center;
}

.precio-detalle {
  color: #e63946;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Responsive */
@media(min-width: 600px){
  .catalogo {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 900px){
  .catalogo {
    grid-template-columns: repeat(5, 1fr);
  }
}
