* {
  font-family: "Delius", serif;
  font-style: normal;
}

.dropdown-submenu {
  position: relative;
}

/* IMPORTANTE: Ocultar submenú por defecto con mayor especificidad */
.dropdown-submenu > .dropdown-menu {
  display: none !important;
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0;
}

/* Mostrar submenú solo al hacer hover sobre el item padre */
.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
}

/* Flecha indicadora a la derecha */
.dropdown-submenu > .dropdown-toggle::after {
  transform: rotate(-90deg);
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -3px;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 767px) {
  .dropdown-submenu .dropdown-menu {
    position: static;
    left: auto;
    margin-left: 1rem;
  }
}
/* Sección principal */
.section {
  display: flex;
  justify-content: space-evenly;
  margin: 10px 0px 0px 0px;
  margin-top: 70px;
  background-image: url("/image/clouds-2821064_1920.png");
  max-width: 100%;
  padding: 40px 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.section {
  max-width: 100%;
  padding: 40px 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  background-color: #f5f5f5;
}

.box {
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.box:hover {
  transform: translateY(-10px);
}

.box h1 {
  margin-bottom: 20px;
  color: #007bff;
  font-size: 24px;
  text-align: center;
}

.fig {
  width: 100%;
  height: 400px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagenes {
  width: 110%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .section {
    flex-direction: column;
    padding: 20px 10px;
    gap: 20px;
  }

  .box {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }

  .fig {
    height: 350px;
  }

  .box h1 {
    font-size: 20px;
  }
}
.cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  flex-wrap: wrap;
}

.card-container {
  width: 250px;
  height: 300px;
  position: relative;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.card {
  width: 100%;
  height: 100%;
}

.card .front-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.front-content .front-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 10px;
}

.card .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(
    86deg,
    rgba(0, 123, 255, 1) 63%,
    rgba(136, 188, 25, 1) 81%
  );
  color: #e8e8e8;
  padding: 20px;
  line-height: 1.5;
  border-radius: 5px;
  pointer-events: none;
  transform: translateX(96%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card .content .heading {
  font-size: 32px;
  font-weight: 700;
}

.card:hover .content {
  transform: translateY(0);
}

.card:hover .front-content {
  transform: translateX(20%);
}

.card:hover .front-content p {
  opacity: 0;
}

.navbar-nav .nav-link {
  font-size: 18px;
  font-weight: bold;
  color: #007bff !important;
}
