/* Contenedor principal de la sección */
.products-section {
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0px 10px 10px 10px;
  box-sizing: border-box;

}

/* Fila superior */
.top-row {
  display: flex;
  width: 100%;
  height: 40vh;
  gap: 10px;
}

/* Fila inferior */
.bottom-row {
  display: flex;
  width: 100%;
  height: 60vh;
  gap: 10px;
}

/* Cada producto */
.product {
  flex: 1;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contenido del producto */
.product-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Imagen del producto */
.product-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Overlay con texto y botón */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50%; /* Ajusta la altura del overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  color: #fff;
}

/* **No hay animación ni expansión al hacer hover** */
.product-content:hover .overlay {
  height: 50%; /* Mantén estático */
}

/* Título del producto */
.overlay h2 {
  font-family: 'Eurostile-Heavy';
  font-size: 2.5rem;
  margin: 10px 0;
  color: #000000;
}

/* Botón de descarga */
.download-btn {
  font-family: 'Eurostile-Regular';

  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: #333; /* Fondo oscuro inicial */
  color: #fff;
  text-decoration: none;
  text-align: center;

}

.download-btn:hover {
  color: #333;
  background: linear-gradient(45deg, #ff7800, #ffb84d);
}


/* Ajustes específicos para las primeras dos cajas */
.top-row .product:nth-child(1) .overlay,
.top-row .product:nth-child(2) .overlay {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente dentro de la caja de 40vh */
  align-items: flex-end; /* Alinea hacia la derecha */
  height: 100%; /* Asegura que ocupe toda la altura del contenedor */
  padding: 0 20px; /* Espaciado del borde derecho */
  text-align: right; /* Alinea el texto a la derecha */
}


/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  /* Cambiamos el diseño a columna */
  .products-section {
    gap: 10px;
   
  }
  .top-row {
    display: flex;
    width: 100%;
    height: 50vh;
    gap: 10px;
  }
.bottom-row {
  display: flex;
  width: 100%;
  height: 150vh;
  gap: 10px;
}
  
  .top-row, .bottom-row {
    flex-direction: column;
    
  }

 /* Ajustes específicos para las primeras dos cajas */
.top-row .product:nth-child(1) .overlay,
.top-row .product:nth-child(2) .overlay {

  height: 100%; /* Asegura que ocupe toda la altura del contenedor */
  padding: 0 10px; /* Espaciado del borde derecho */
  right: 3%;

}

  /* Ajustes para el texto */
  .overlay h2 {
    font-size: 1.2rem; /* Título más pequeño */
  }

  /* Ajustes para el botón */
  .download-btn {
    width: 150px; /* Botón más estrecho */
   
    font-size: 0.875rem; /* Texto más pequeño */
  }
}
