/* AnimaciÃ³n principal con escala y opacidad */
@keyframes scrollFadeScale {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(-120px);
	  filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0px);
	  filter: blur(0px);
  }
}

/* Clase base para animacion en scroll */
.scroll-animate {
  animation: scrollFadeScale linear forwards;
  animation-timeline: view();
  animation-range: entry 0 cover 25%;
}

/* Delays */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

/* Variantes con direcciÃ³n */
@keyframes scrollFadeUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scroll-animate-up {
  animation: scrollFadeUp linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

@keyframes scrollFadeDown {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scroll-animate-down {
  animation: scrollFadeDown linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

@keyframes scrollFadeLeft {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.scroll-animate-left {
  animation: scrollFadeLeft linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

@keyframes scrollFadeRight {
  from {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.scroll-animate-right {
  animation: scrollFadeRight linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

/* Variantes de velocidad (ajustando el animation-range) */
.duration-fast {
  animation-range: entry 0% cover 20%;
}

.duration-normal {
  animation-range: entry 0% cover 30%;
}

.duration-slow {
  animation-range: entry 0% cover 40%;
}

/* AnimaciÃ³n con rebote */
@keyframes scrollFadeScaleBounce {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scroll-animate-bounce {
  animation: scrollFadeScaleBounce linear forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

/* ========================================
   ANIMACIONES ESPECIALES PARA HERO BANNER
   ======================================== */

/* Texto con clip-mask de izquierda a derecha */
@keyframes heroTextReveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.hero-text-reveal {
  animation: heroTextReveal 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* TÃ­tulo principal del hero */
.hero-title {
  animation: heroTextReveal 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.3s;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

/* SubtÃ­tulo del hero */
.hero-subtitle {
  animation: heroTextReveal 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.6s;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

/* DescripciÃ³n del hero */
.hero-description {
  animation: heroTextReveal 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.9s;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

/* Botones del hero con fade y escala */
@keyframes heroButtonAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-button {
  animation: heroButtonAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.hero-button-secondary {
  animation: heroButtonAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.4s;
  opacity: 0;
}

/* Imagen o contenido del hero con zoom sutil */
@keyframes heroImageZoom {
  from {
    opacity: 0;
    transform: scale(1.5);
  }
  to {
    opacity: 1;
    transform: scale(1) ;
  }
}

@keyframes heroImageZoom2 {
  from {
    opacity: 0;
    transform: scale(1.5);
  }
  to {
    opacity: 1;
    transform: scale(1) translate(-35%, 0%);
  }
}

.hero-image {
  animation: heroImageZoom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
  opacity: 0;
    transform-origin: right bottom
}

.hero-image2 {
  animation: heroImageZoom2 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.5s;
  opacity: 0;
    transform-origin: right bottom
}










/* Variante de clip-mask de derecha a izquierda */
@keyframes heroTextRevealRTL {
  from {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.hero-text-reveal-rtl {
  animation: heroTextRevealRTL 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Clip-mask desde abajo */
@keyframes heroTextRevealBottom {
  from {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.hero-text-reveal-bottom {
  animation: heroTextRevealBottom 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Overlay animado para el hero */
@keyframes heroOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-overlay {
  animation: heroOverlay 1s ease-out forwards;
}

/* LÃ­nea decorativa animada */
@keyframes heroLineGrow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

.hero-line {
  animation: heroLineGrow 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 1.1s;
  width: 0;
  opacity: 0;
}

/* Delays personalizados para hero */
.hero-delay-100 { animation-delay: 0.1s; }
.hero-delay-200 { animation-delay: 0.2s; }
.hero-delay-300 { animation-delay: 0.3s; }
.hero-delay-400 { animation-delay: 0.4s; }
.hero-delay-500 { animation-delay: 0.5s; }
.hero-delay-600 { animation-delay: 0.6s; }
.hero-delay-700 { animation-delay: 0.7s; }
.hero-delay-800 { animation-delay: 0.8s; }
.hero-delay-900 { animation-delay: 0.9s; }
.hero-delay-1000 { animation-delay: 1s; }
.hero-delay-1200 { animation-delay: 1.2s; }
.hero-delay-1400 { animation-delay: 1.4s; }

/* Fallback para navegadores sin soporte de animation-timeline */
@supports not (animation-timeline: view()) {
  .scroll-animate,
  .scroll-animate-up,
  .scroll-animate-down,
  .scroll-animate-left,
  .scroll-animate-right,
  .scroll-animate-bounce {
    animation: none;
    opacity: 1;
    transform: none;
  }
}



.hero{

    
    will-change: transform, border-radius;
    animation: heroExpand 2.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

 @keyframes heroExpand {
    from {
      transform: scale(0.2);
      border-radius: 48px;
      opacity: 0;
    }
    to {
      transform: scale(1);
      border-radius: 30px;
      opacity: 1;
    }
  }


html:not(.no-js) [data-aos^=fade][data-aos^=fade].aos-animate {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    filter: blur(0px) brightness(1.0);
}

html:not(.no-js) [data-aos^=fade][data-aos^=fade] {
    opacity: 0;
    transition-property: opacity, -webkit-transform;
    transition-property: opacity, transform, filter;
    transition-property: opacity, transform, filter,  -webkit-transform;
    filter: blur(8px) brightness(1.5);
}


/* Clip-mask desde arriba */
@keyframes heroTextRevealTop {
  from {
    clip-path: inset(0 -5% 100% 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 -5% 0 0);
    opacity: 1;
  }
}

.hero-text-reveal-top {
  animation: heroTextRevealTop 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
	opacity: 0;
}


