body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f4f6f8;
}

/* ==== NAVBAR ==== */
.navbar {
  background-color: #ffffff;
  color:#70be44;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 2000;
  /*background:#ffffff;
  color:#004882;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.7rem 1.5rem;
  box-shadow:0 2px 6px rgba(0,0,0,.2);*/
}
.navbar-brand img {
  width: 90%;
}
.navbar-nav .nav-link {
  color: #000000 !important;
  padding: .6rem 1rem;
}
.navbar-nav .nav-link:hover {
  color: #0f75bd !important;
}
.dropdown-menu {
  background: #0f75bd;
  border: none;
  border-radius: 8px;
}
.dropdown-item {
  color: #fff;
}
.dropdown-item:hover {
  background: #ffffff;
  color: #70be44;
  border-radius: 6px;
}

/* ==== SLIDER ==== */
.carousel-item img {
  width: 100%;
  height: auto; /* autoajuste en móvil */
  display: block;
}

/* En pantallas grandes, fijamos altura */
@media (min-width: 992px) {
  .carousel-item img {
    max-height: auto;
    object-fit: cover;
  }
}

/* ==== Texto del slider ==== */
.carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 15px 25px;
  max-width: 80%;
  margin: 0 auto;
}

.carousel-caption h5 {
  font-size: 1.8rem;
  font-weight: 600;
}

.carousel-caption p {
  font-size: 1.1rem;
}

/* ==== Ajustes responsivos para móvil ==== */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.35);
    bottom: 15px !important;
    max-width: 90%;
  }

  .carousel-caption h5 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .carousel-caption p {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .carousel-caption {
    padding: 8px 12px;
    bottom: 10px !important;
  }

  .carousel-caption h5 {
    font-size: 1rem;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }
}

 /* 1️⃣ EFECTO FLIP */
 .card-flip {
  perspective: 1000px;
  height: 350px;
  position: relative;
}
.card-flip .inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}
.card-flip:hover .inner {
  transform: rotateY(180deg);
}
.card-flip .front, .card-flip .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}
.card-flip .front {
  background: white;
}
.card-flip .back {
  background: linear-gradient(135deg, #70be44, #0f75bd);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  transform: rotateY(180deg);
}

   /* 3️⃣ EFECTO SLIDE DE TEXTO 
   .card-slide {
    position: relative;
    overflow: hidden;
  }
  .card-slide .card-body {
    background: rgba(255,255,255,0.95);
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    transition: bottom 0.4s ease;
  }
  .card-slide:hover .card-body {
    bottom: 0;
  }*/