/*---SECCION #2 QUIENES SOMOS---------------------- */

  /* Base de la tarjeta giratoria */
  .flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 400px; /* Altura ajustada para esta sección */
    width: 100%;
  }

  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
  }

  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 2rem;
    overflow: hidden;
  }

  .flip-card-front {
    background: #f0f0f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  }

  .card-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }

  .flip-card:hover .card-img-full {
    transform: scale(1.05);
  }

  .flip-card-back {
    background: #1B1670;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px solid #00BDFF;
  }

  @keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .animate-card {
    animation: float-card 4s ease-in-out infinite;
  }
/*---FIN SECCION #2 QUIENES SOMOS---------------------- */

/* ----- SECCION #4  ---------------------- */


@keyframes slideInfinite {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.animate-slide-infinite {
  animation: slideInfinite 3s linear infinite;
}

/* ----- FIN SECCION #4  ---------------------- */

/* ----- SECCION #5  ---------------------- */

  @keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
  }
  .animate-float-slow {
    animation: float-slow 5s ease-in-out infinite;
  }
/* ----- FIN SECCION #5  ---------------------- */

/*---SECCION  DE SERVICIOS ---------------------- */
@keyframes fadeInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growWidth {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 6rem; /* Tailwind w-24 */
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInFromBottom 1s ease-out forwards;
}

.animate-grow-width {
  animation: growWidth 1s ease-out forwards;
  animation-delay: 0.8s; /* Para que aparezca después del título */
}

/*---FIN SECCION  DE SERVICIOS ---------------------- */

/*---SECCION #2 ---------------------- */