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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stripe-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Portfolio: mostrar descripción por click */
.portfolio-card.is-open .overlay {
  opacity: 1 !important;
  pointer-events: auto;
}

.portfolio-card .overlay {
  pointer-events: none;
  transition: opacity 300ms ease;
}

.portfolio-card img {
  transition: transform 0.5s ease;
}

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

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* Portfolio carousel styles */
#portfolio-carousel {
  scroll-behavior: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

#portfolio-carousel:active {
  cursor: grabbing;
}

[data-carousel-track] {
  display: flex;
  width: fit-content;
}

/* Justificar textos descriptivos */
body p {
  text-align: justify;
  text-justify: inter-word;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(10px);
  transition:
    opacity 500ms ease,
    transform 650ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 650ms ease;
  will-change: opacity, transform, filter;
}

.reveal[data-reveal-type="card"] {
  transform: translate3d(0, 40px, 0);
  filter: blur(6px);
}

.reveal[data-reveal-type="fade"] {
  transform: none;
  filter: blur(14px);
  transition: opacity 550ms ease, filter 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
