

/* Animaciones personalizadas */
@layer utilities {
  .fade-in {
    @apply opacity-0 translate-y-4 transition-all duration-700 ease-out;
  }

  .fade-in.show {
    @apply opacity-100 translate-y-0;
  }
}

@keyframes floatDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@layer components {
  .effect-fade-in-scroll {
    @apply fade-in opacity-0 translate-y-4 transition-all duration-700 ease-out fade-on-scroll;
  }
}
.float-down {
  animation: floatDown 1.2s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/*Estilo de la imagen en seccion about us*/
.custom-bottom-round {
  clip-path: ellipse(100% 90% at 50% 0%);
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}

/* Excepción: mantener Playfair Display para el logo */
header h1,
header .logo-text,
header a h1 {
  font-family: "Playfair Display", serif;
}

body,
p,
a,
span,
li {
  font-family: "Source Sans Pro", sans-serif;
}

/* anumacion del boton inicio en menu nav */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.spin-slow {
  animation: spin-slow 10s linear infinite;
}

/* Animacion de svg menu nav en movil version */
.eyes-bounce {
  animation: bounceUp 6s ease-in-out 2s infinite;
}

@keyframes bounceUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.wiggle-card {
  transform-origin: center;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.flip {
  transform-origin: center;
  animation: flipY 10s ease-in-out infinite;
}

@keyframes flipY {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
}

.heart-group {
  transform-origin: center;
  animation: pulse 3s infinite ease-in-out;
}

.heart {
  fill: none;
  stroke: #f8f4e3;
  stroke-width: 2;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Timeline background - Desktop */
#timeline-bg-container {
  background-image: url('../../images/svg/fidelandante.svg');
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Responsive: ajustar timeline background para móviles */
@media (max-width: 768px) {
  /* Timeline background para móvil */
  #timeline-bg-container {
    background-image: url('../../images/svg/fidelandante-mobile.svg') !important;
    background-attachment: scroll !important;
    background-size: 100% 100% !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
    position: relative !important;
  }
}