@font-face {
  font-family: "Futura LT Condensed";
  src: url("../fonts/FuturaLT-Condensed.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Futura LT Condensed";
  src: url("../fonts/FuturaLT-CondensedOblique.ttf") format("truetype");
  font-weight: 400;
  font-style: oblique;
}

@font-face {
  font-family: "Futura LT Condensed";
  src: url("../fonts/Futura LT Condensed Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Futura LT Condensed";
  src: url("../fonts/FuturaLT-CondensedBoldOblique_2.ttf") format("truetype");
  font-weight: 700;
  font-style: oblique;
}

.banner-container {
  width: 100%;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.content-text {
  font-family: "Futura LT Condensed", sans-serif;
  color: black;
  text-align: center;
  font-weight: 700;
  margin: 0vw 10vw;
  line-height: 1.6;
  margin-top: 4vw;
}

.content-text h1 {
  font-size: 2.5vw;
  letter-spacing: 0vw;
}

.content-text p {
  font-size: 1.5vw;
  margin-bottom: 5vw;
}

.card-container {
  display: flex;
  gap: 2vw;
  justify-content: center;
  padding: 2vw;
  flex-wrap: wrap;
  background-color: rgb(241, 236, 236);
}

.card {
  position: relative;
  width: 20vw;
  height: auto;
}

.card-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1vw;
}

.card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.card-icon1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.card-icon2 {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 10vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.card-icon3 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6.5vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ver-mas {
  position: absolute;
  top: 80%;
  left: 33%;
  width: 7vw;
  cursor: pointer;

  transition: transform 0.3s ease, filter 0.3s ease;
}

.ver-mas:hover {
  transform: scale(1.15);
  filter: brightness(0.9);
}

.educacion {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.educacion-bg {
  width: 100%;
  height: auto;
  display: block;
}

.card-grid {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: center;
  top: 5vw;
}

.row {
  display: flex;
  gap: 2vw;
  margin-bottom: 0vw;
  flex-wrap: wrap;
  justify-content: center;
}

.card-vertical,
.card-horizontal,
.card-combined {
  border-radius: 2vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  padding: 1vw;
}

.card-vertical {
  width: 20vw;
  height: 31vw;
  background: #00a1e9;
}

.card-horizontal {
  width: 42vw;
  height: 31vw;
  background: #0037d6;
}

.card-combined {
  background: #e0e0e0;
  color: black;
  flex-direction: row;
  width: 66vw;
  height: 17vw;
}

.card-combined img {
  width: 28vw;
  object-fit: contain;
}

.card-combined .text-content {
  display: flex;
  flex-direction: column;
  justify-content: left;
  margin-right: 16vw;
}

.text-content a {
  text-decoration: none;
  color: inherit;
}

.btn {
  align-self: center;
  cursor: pointer;
}

.btn img {
  width: 6vw;
  height: auto;
  margin-top: 2vw;
}

.text-content h3 {
  margin-top: 1vw;
  font-size: 2.2vw;
  font-weight: 700;
  font-family: "Futura LT Condensed", sans-serif;
  line-height: 1.1;
  margin-left: -5vw;
}

.text-content small {
  font-family: "Futura LT Condensed", sans-serif;
  margin: 0vw -4.8vw 4.5vw;
  font-size: 1.4vw;
  font-weight: 700;
}
.card-container {
  display: flex;
  gap: 2vw;
  justify-content: center;
  padding: 2vw;
  flex-wrap: wrap;
  background-color: rgb(241, 236, 236);
}

/* Esto permite que las tarjetas se muestren en una fila de 4 en pantallas grandes */
.card {
  position: relative;
  width: 20vw;
  height: auto;
}

/* En pantallas más pequeñas, ajustamos a 2 tarjetas por fila */
@media (max-width: 768px) {
  .card {
    width: 30vw; /* Cada tarjeta ocupará la mitad de la pantalla */
  }

  .ver-mas {
    top: 80%;
    left: 34.5%;
    width: 10vw;
  }
}

/* Para pantallas aún más pequeñas, como móviles, mostramos 2x2 */
@media (max-width: 430px) {
  .card {
    width: 34vw; /* De nuevo, cada tarjeta ocupa la mitad */
    margin-bottom: 2vw; /* Espaciado entre las filas */
  }
  .ver-mas {
    top: 80%;
    left: 34.5%;
    width: 11vw;
  }
}

/* Efecto suave al hacer hover sobre las tarjetas */
.card,
.card-vertical,
.card-horizontal,
.card-combined {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.card-vertical:hover,
.card-horizontal:hover,
.card-combined:hover {
  transform: scale(1.03);
  border-radius: 2vw;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Animaciones suaves en íconos centrales */
.card-icon,
.card-icon1,
.card-icon2,
.card-icon3 {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover .card-icon,
.card:hover .card-icon1,
.card:hover .card-icon2,
.card:hover .card-icon3 {
  transform: translate(-50%, -55%) scale(1.05);
  opacity: 0.9;
}

/* Hover para botones de "ver más" */
.btn img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.btn:hover img {
  transform: scale(1.15);
  filter: brightness(0.9);
}

/* Texto con animación en terera tarjeta */
.text-content h3,
.text-content small {
  transition: color 0.3s ease;
}

.card-combined:hover .text-content h3 {
  color: #394d86;
}

.card-combined:hover .text-content small {
  color: #666;
}

@media (max-width: 612px) {
  .content-text h1 {
    font-size: 3vw;
  }

  .content-text p {
    font-size: 2.7vw;
  }
}

@media (max-width: 430px) {
  .card-grid {
    top: 3.5vw;
  }
  .card-combined .text-content {
    /* padding: 2vw; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2.5vw;
  }

  .text-content h3 {
    margin-top: 0vw;
    font-size: 2.3vw;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    line-height: 1.1;
  }

  .text-content small {
    font-family: sans-serif;
    margin: -2vw -4.8vw 2.5vw;
    font-size: 1.4vw;
  }

  .btn {
    width: 6vw;
    margin-top: -3vw;
    cursor: pointer;
  }
}
