/* =========================================================
   GEO — animations.css
   Estilos para animaciones y microinteracciones
   ========================================================= */

/* ---------------------------------------------------------
   REVEAL AL HACER SCROLL
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.9s cubic-bezier(.22, 1, .36, 1),
    transform 0.9s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---------------------------------------------------------
   RETRASOS PARA ELEMENTOS
   --------------------------------------------------------- */

.method-item:nth-child(1) {
  transition-delay: 0.05s;
}

.method-item:nth-child(2) {
  transition-delay: 0.12s;
}

.method-item:nth-child(3) {
  transition-delay: 0.19s;
}

.method-item:nth-child(4) {
  transition-delay: 0.26s;
}

.testimonial:nth-child(1) {
  transition-delay: 0.08s;
}

.testimonial:nth-child(2) {
  transition-delay: 0.18s;
}

.number-item:nth-child(1) {
  transition-delay: 0.05s;
}

.number-item:nth-child(2) {
  transition-delay: 0.12s;
}

.number-item:nth-child(3) {
  transition-delay: 0.19s;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero-content {
  will-change: transform, opacity;
}

.hero-grid {
  will-change: transform;
}

.hero-title-ready {
  animation: heroTitleReveal 1.4s cubic-bezier(.22, 1, .36, 1)
    both;
}

.hero-title-ready span {
  animation: heroLineReveal 1.2s cubic-bezier(.22, 1, .36, 1)
    0.15s both;
}

.hero-title-ready strong {
  animation: heroLineReveal 1.2s cubic-bezier(.22, 1, .36, 1)
    0.3s both;
}

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(70px);
    clip-path: inset(100% 0 0 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes heroLineReveal {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------------------------------------------------------
   MANIFIESTO
   --------------------------------------------------------- */

.manifesto-line {
  will-change: transform;
  transition: transform 0.15s linear;
}


/* ---------------------------------------------------------
   MÉTODO
   --------------------------------------------------------- */

.method-item {
  transition:
    transform 0.6s cubic-bezier(.22, 1, .36, 1),
    padding-left 0.6s cubic-bezier(.22, 1, .36, 1),
    background-color 0.4s ease;
}

.method-item.hovering {
  transform: translateX(12px);
  padding-left: 18px;
}

.method-item .method-arrow {
  transition:
    transform 0.5s cubic-bezier(.22, 1, .36, 1),
    opacity 0.4s ease;
}

.method-item.hovering .method-arrow {
  transform: translate(8px, -8px);
}


/* ---------------------------------------------------------
   CURSOR GLOW
   --------------------------------------------------------- */

.cursor-glow {
  position: fixed;
  z-index: 9999;

  width: 18px;
  height: 18px;

  left: -9px;
  top: -9px;

  border-radius: 50%;

  background: rgba(199, 255, 61, 0.35);

  pointer-events: none;

  opacity: 0;

  filter: blur(2px);

  transition:
    opacity 0.3s ease,
    width 0.35s cubic-bezier(.22, 1, .36, 1),
    height 0.35s cubic-bezier(.22, 1, .36, 1);
}

.cursor-glow.active {
  opacity: 1;
  width: 38px;
  height: 38px;
  left: -19px;
  top: -19px;
}


/* ---------------------------------------------------------
   SECCIONES ACTIVAS
   --------------------------------------------------------- */

.section {
  position: relative;
}

.section::after {
  content: "";

  position: absolute;

  left: var(--padding);
  right: var(--padding);
  bottom: 0;

  height: 1px;

  background: var(--line);

  transform: scaleX(0);
  transform-origin: left;

  transition:
    transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.section.section-active::after {
  transform: scaleX(1);
}


/* ---------------------------------------------------------
   IMAGE PLACEHOLDER
   --------------------------------------------------------- */

.image-placeholder {
  will-change: transform;
  transition: transform 0.3s ease-out;
}


/* ---------------------------------------------------------
   BOTONES
   --------------------------------------------------------- */

.button,
.instagram,
.scroll {
  will-change: transform;
}


/* ---------------------------------------------------------
   PAGE LEAVING
   --------------------------------------------------------- */

.page-leaving {
  opacity: 0;
  transition: opacity 0.35s ease;
}


/* ---------------------------------------------------------
   REDUCIR MOVIMIENTO
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 768px) {

  .method-item.hovering {
    transform: none;
    padding-left: 0;
  }

  .cursor-glow {
    display: none;
  }

  .manifesto-line {
    transition: none;
  }

  .section::after {
    transform: scaleX(1);
  }
}
