section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
	background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


h1 {
  color: white;
  text-shadow: 1px 1px 3px black;
  z-index: 1;
  font-size: 3em;
  font-weight: 400;
}

/* Cards */

.cards-section {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se acomoden en varias filas si no caben */
    justify-content: center;
    gap: 20px;
    padding: 50px;
}

.card {
    width: 250px;
    height: 350px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Para que el contenido esté en la parte inferior */
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

/* Degradado para mejorar la legibilidad del texto */
.card::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

/* Contenedor del texto */
.card-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
}

/* Estilo del título */
.card h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

/* Estilo del subtítulo */
.card p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .cards-section {
        padding: 20px;
    }

    .card {
        width: 180px;
        height: 280px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 12px;
    }
}

