/* SANA 1937 - Estilos Personalizados Mínimos (Tailwind CSS) */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Header scrolled state */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(233, 236, 239, 0.8);
}

.header.scrolled .logo {
  height: 60px;
}

/* Mobile menu active state */
.mobile-nav.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hero background pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern.png") repeat;
  opacity: 0.05;
}

/* Scroll button floating animation */
.scroll-down-btn {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-down-btn.pulse {
  animation: pulse 2s ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 38, 75, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(21, 38, 75, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 38, 75, 0);
  }
}

/* Timeline fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.show {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.show {
  opacity: 1;
  transform: scale(1);
}

/* Delay variations */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

/* Timeline step hover effects */
.timeline-step:hover .step-dot {
  background: #15264b;
  color: white;
  transform: scale(1.05);
}

.timeline-step:hover .step-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #15264b;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .header.scrolled .logo {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .scroll-down-btn {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .hero {
    background-attachment: scroll;
  }
}
