* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: #141414;
    font-family: 'Arial', sans-serif;
    color: white;
  }
  
  header {
    background-color: #000;
    padding: 10px;
    text-align: center;
  }
  
  header img {
    height: 200px;
  }
  
  .banner {
    position: relative;
    overflow: hidden;
    height: 410px;
    background-color: #222;
  }
  
  .banner .slides {
    display: flex;
    animation: slide 10s infinite;
  }
  
  .banner img {
    width: 90%;
    flex-shrink: 0;
    object-fit: cover;
  }
  
  @keyframes slide {
    0% {transform: translateX(0);}
    50% {transform: translateX(-100%);}
    100% {transform: translateX(0);}
  }
  
  .category {
    margin: 40px 20px;
  }
  
  .category h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid red;
    display: inline-block;
    padding-bottom: 5px;
  }
  
  .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .product-card {
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
    transition: transform 0.3s;
  }
  
  .product-card:hover {
    transform: scale(1.05);
  }
  
  .product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  
  .product-card .info {
    padding: 10px;
  }
  
  .product-card .info h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .product-card .info p {
    margin-bottom: 10px;
  }
  
  .product-card .info button {
    width: 100%;
    background-color: red;
    border: none;
    padding: 10px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .product-card .info button:hover {
    background-color: darkred;
  }
  
  footer {
    background-color: #000;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
  }
  
  @media (max-width: 768px) {
    .products {
      justify-content: center;
    }
  
    .product-card {
      width: 90%;
    }
  }
  
  /* Modal general */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semitransparente */
  justify-content: center;
  align-items: center;
}

/* Contenido del modal */
.modal-content {
  position: fixed;
  top: 50%; /* Centrar verticalmente */
  left: 50%; /* Centrar horizontalmente */
  transform: translate(-50%, -50%); /* Ajustar el centro exacto */
  background-color: #746f6f; /* Fondo oscuro para combinar con la página */
  padding: 20px;
  border-radius: 10px;
  width: 90%; /* Ancho responsivo */
  max-width: 400px; /* Máximo ancho */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Arial', sans-serif;
  color: white; /* Texto blanco para contraste */
  animation: fadeIn 0.3s ease-in-out; /* Animación de entrada */
  text-align: center; /* Centrar los textos */
  overflow: hidden; /* Evitar que el contenido se desborde */
}

/* Botón de cerrar */
.modal-content .close {
  color: white;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-content .close:hover {
  color: red; /* Cambia a rojo al pasar el mouse */
}

/* Títulos y textos */
.modal-content h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: red; /* Título en rojo para destacar */
}

.modal-content p {
  margin: 10px 0;
  font-size: 14px;
  color: #ccc; /* Texto gris claro */
}

/* Inputs y selects */
.modal-content label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.modal-content input[type="number"],
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #333;
  color: white;
  font-size: 14px;
}

/* Estilo de los medios de pago */
.medios-pago {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 15px 0;
}

.medios-pago label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.medios-pago img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  transition: transform 0.2s ease-in-out;
}

.medios-pago img:hover {
  transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
}

/* Botón de confirmar compra */
.modal-content button {
  width: 100%;
  padding: 12px;
  background-color: red; /* Botón rojo para destacar */
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: darkred; /* Rojo más oscuro al pasar el mouse */
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}