/* Estilos generales */
body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e6e0f8;
  color: #333;
  line-height: 1.6;
  margin: 10px 25px;
  padding: 20px;
}
h1 {
  font-size: 2.8em;
}

h1,
h2,
h3 {
  color: #2c3e50;
  text-align: center;
}

/* Estilos para el mensaje de no productos */
.mensaje-no-productos {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.2em;
  color: #7f8c8d;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

/* Estilos para la sección de bienvenida */
.primera-seccion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}

.seccion-bienvenida {
  grid-column: 1 / 5;

  background: linear-gradient(to right, #decbe6, #e6e0f8);
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.seccion-bienvenida h1 {
  font-size: 2.5em;
  color: #450062;
  margin-bottom: 10px;
}

.seccion-bienvenida p {
  font-size: 1.2em;
  color: #5a5a5a;
}

.seccion-sobre {
  grid-column: 1 / 2;
}
.seccion-encontrar {
  grid-column: 2 / 5;
}

.seccion-sobre,
.seccion-encontrar {
  background-color: #f4effd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #333;
}

.seccion-sobre h2,
.seccion-encontrar h2 {
  color: #450062;
  margin-bottom: 10px;
}

/* ! sección de contactos del home */

.seccion-contactos {
  grid-column: span 4;
  background-color: #f4effd;
  padding: 30px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.seccion-contactos h2 {
  color: #450062;
  margin-bottom: 10px;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.icono-red {
  text-decoration: none;
  color: #450062;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #e6e0f8;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.icono-red img {
  width: 20px;
  height: 25px;
}

.icono-red:hover {
  background-color: #decbe6;
  transform: scale(1.05);
}

/* ! sección de contactos del home */

/* Lista de ítems */
.lista-inicio {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.lista-inicio li {
  margin: 10px 0;
  font-size: 1em;
}

/* ! Botón de llamada a la acción */
.boton-accion-inicio {
  display: inline-block;
  padding: 10px 20px;
  background-color: #89118d;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.boton-accion-inicio:hover {
  background-color: #5d0e5f;
  transform: scale(1.05);
}

/* ! Estilos para el filtro de categorías */
.categoria-filter {
  text-align: center;
  margin-bottom: 30px;
}

.categoria-filter label {
  margin-right: 10px;
  font-weight: bold;
}

.categoria-filter select {
  background-color: #e3e5f1;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 16px;
}

/* ! Estilos para el catálogo */
#catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.producto {
  background-color: #e6e0f8;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.producto h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.2em;
}

.producto p {
  margin: 10px 0;
}

.producto .precio {
  font-size: 1.2em;
  font-weight: bold;
  color: #450062;
}

.producto .stock {
  font-size: 0.9em;
  color: #7f8c8d;
}

/* ! Estilos para el botón de mostrar más */
.boton-mas {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 1em auto;
  margin-top: 40px;
  display: block;
  padding: 10px 20px;
  background-color: #e6e0f8;
  color: #3a3a3a;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.boton-mas:hover {
  background-color: #c9bded;
}

/* ! Estilos para el footer */
footer {
  margin-top: 50px;
  padding: 30px;
  background-color: #decbe6;
  color: #450062;
  text-align: center;
  border-radius: 10px;
}

footer p {
  margin-bottom: 15px;
}

.donation-link {
  display: inline-block;
  background-color: #450062;
  color: #cbcfed;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.donation-link:hover {
  border: 2px solid #450062;
  background-color: #cbcfed;
  color: #450062;
}

/* ! Estilos para el modal */
/* Contenedor principal del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

/* Contenido del modal */
.modal-contenido {
  background: #e6e0f8;
  padding: 16px;
  border-radius: 10px;
  max-width: 560px;
  width: 92%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  gap: 12px;
}

/* Contenedor del slider */
#slider-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin-bottom: 12px;
}

/* Slider */
#slider {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

#slider-images img {
  width: 100%;
  height: auto;
  max-height: 45vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Flechas de navegación */
#prev,
#next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#prev {
  left: 5px;
}
#next {
  right: 5px;
}

#prev:hover,
#next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ! Contenedor de información del producto */
#modal-info {
  width: 100%;
  padding: 8px 4px;
}

#modal-nombre {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin: 6px 0 4px;
}

#modal-descripcion,
#modal-precio,
#modal-stock {
  margin: 6px 0;
}

#modal-descripcion {
  font-size: 16px;
  color: #34495e;
  margin-bottom: 10px;
}

#modal-precio {
  font-size: 22px;
  font-weight: bold;
  color: #450062;
}

#modal-stock {
  font-size: 16px;
  color: #7f8c8d;
}

.boton-interes {
  display: inline-block;
  padding: 10px 20px;
  background-color: #25d366; /* Verde de WhatsApp */
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
}

.boton-interes:hover {
  background-color: #1ebe57;
}

.container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
}

/* ! Para pantallas chicas - catalogo */
@media (max-width: 600px) {
  #catalogo {
    grid-template-columns: repeat(2, 1fr); /* 2 cards por fila */
    gap: 15px;
  }

  .producto {
    padding: 10px;
  }

  .producto h3 {
    font-size: 0.7em;
  }

  .producto img {
    height: 90px;
    margin-bottom: 5px;
  }

  .producto .precio {
    font-size: 0.8em;
  }

  .producto .stock {
    font-size: 0.5em;
  }

  .categoria-filter {
    font-size: 0.7em;
  }

  .categoria-filter select {
    font-size: 10px;
  }
}

/* ! Botón para cerrar modal */
.cerrar-modal {
  position: absolute;
  z-index: 20;
  top: 20px;
  right: 15px;
  width: 34px;
  height: 34px;
  background: #955d9885;
  border-radius: 9999px;
  border: none;
  font-size: 22px;
  font-weight: bold;
  line-height: 34px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cerrar-modal:hover {
  color: #89118d;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .modal {
    padding: 12px;
  }
  .modal-contenido {
    padding: 12px;
    border-radius: 12px;
  }

  #prev,
  #next {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  #modal-nombre {
    font-size: 20px;
  }
  #modal-descripcion {
    font-size: 14px;
  }
  #modal-precio {
    font-size: 18px;
  }
  #modal-stock {
    font-size: 14px;
  }

  .boton-interes {
    width: 80%;
    font-size: 16px;
    padding: 12px;
    margin-top: 8px;
  }
}
