
/* ============================================
   NAURA — ANIMACIONES CSS
   Scroll reveal, decoración e intro de marca
   ============================================ */


/* ============================================
   1. SCROLL REVEAL
   ============================================ */

/* Estado inicial */

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elemento visible */

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

/* Aparición escalonada */

.reveal--delay-1 {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

.reveal--delay-3 {
  transition-delay: 0.3s;
}


/* ============================================
   2. DECORACIÓN DEL HERO
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__decoracion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__contenido {
  position: relative;
  z-index: 1;
}


/* Animaciones decorativas */

@keyframes girar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes flotar {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}


/* ============================================
   3. INTRO NAURA
   ============================================ */

/* Bloquea el scroll durante la intro */

body.intro-activa {
  overflow: hidden;
}

/* Pantalla completa */

.intro-naura {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  background-color: var(--color-verde1);
  overflow: hidden;
}

/* Contenedor de la marca */

.intro-naura__marca {
  display: flex;
  flex-direction: column;
  align-items: center;

  transform: translateY(0);
}

/* Logo NAURA */

.intro-naura__logo {
  display: flex;

  padding: 0.12em 0.08em 0.18em;

  font-family: var(--fuente-marca);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.065em;

  color: var(--color-bordo);
  overflow: hidden;
}

/* Animación de cada letra */

.intro-naura__logo span {
  display: inline-block;

  opacity: 0;
  transform: translateY(100%);

  animation:
    letraNauraEntrada 1s
    cubic-bezier(0.16, 1, 0.3, 1)
    forwards;
}

/* Entrada progresiva de las letras */

.intro-naura__logo span:nth-child(1) {
  animation-delay: 0.10s;
}

.intro-naura__logo span:nth-child(2) {
  animation-delay: 0.17s;
}

.intro-naura__logo span:nth-child(3) {
  animation-delay: 0.24s;
}

.intro-naura__logo span:nth-child(4) {
  animation-delay: 0.31s;
}

.intro-naura__logo span:nth-child(5) {
  animation-delay: 0.38s;
}

/* Texto LEATHER */

.intro-naura__leather {
  margin-top: 20px;
  padding-left: 0.6em;

  font-family: var(--fuente-texto);
  font-size: clamp(0.55rem, 1vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.6em;

  color: var(--color-bordo);

  opacity: 0;
  transform: translateY(12px);

  animation:
    leatherEntrada 0.7s ease 0.9s forwards;
}


/* ============================================
   4. SALIDA DE LA INTRO
   ============================================ */

/* Desplazamiento del logo */

.intro-naura--salir .intro-naura__marca {
  animation:
    marcaNauraSalida 0.8s
    cubic-bezier(0.76, 0, 0.24, 1)
    forwards;
}

/* Desaparición de la pantalla */

.intro-naura--salir {
  animation:
    pantallaNauraSalida 1.15s
    cubic-bezier(0.76, 0, 0.24, 1)
    forwards;
}


/* ============================================
   5. KEYFRAMES DE LA INTRO
   ============================================ */

/* Entrada de letras */

@keyframes letraNauraEntrada {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aparición de LEATHER */

@keyframes leatherEntrada {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
}

/* Salida del logo */

@keyframes marcaNauraSalida {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.96);
  }
}

/* Salida de la pantalla */

@keyframes pantallaNauraSalida {
  0% {
    clip-path: inset(0 0 0 0);
  }

  100% {
    clip-path: inset(0 0 100% 0);
  }
}


/* ============================================
   6. RESPONSIVE — CELULARES
   ============================================ */

@media (max-width: 700px) {

  /* Ocultar decoración grande */

  .forma--anillo-grande,
  .forma--anillo-chico {
    display: none;
  }

  /* Ajustar tamaño del logo */

  .intro-naura__logo {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  /* Ajustar texto LEATHER */

  .intro-naura__leather {
    margin-top: 14px;
    font-size: 0.55rem;
    letter-spacing: 0.5em;
  }

}
