/* 
 * =======================
 * GRAFITECK - HERO LATERAL ANIMATION
 * =======================
 * Estilos para la animación lateral de palabras en el hero
 * Versión: 2.0
 * Fecha: Junio 2025
 */

/* Hero Container */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* Video Background */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(19, 28, 36, 0.5);
  z-index: 2;
}

/* Hero Content - Lateral Layout */
.hero-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 5%;
  z-index: 3;
  text-align: left;
}

/* Hero Text Animation */
.hero-animated-text {
  margin-bottom: 2rem;
  width: 100%;
}

.hero-line-1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: -1rem;
}

.hero-line-2 {
  position: relative;
  height: 5rem;
  margin-bottom: 1rem;
  margin-top: -2rem;
}

.word-animation-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.animated-word {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-secondary);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  white-space: nowrap;
}

.animated-word.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-line-3 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 3rem;
}

.hero-line-3 span {
  color: var(--yellow);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 400;
  font-family: var(--font-secondary);
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 1.8rem;
}

/* --- Scrolling Ticker --- */
.scrolling-ticker {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #ffffff25;
  backdrop-filter: blur(10px);
  color: var(--black);
  overflow: hidden;
  z-index: 3;
  padding: 1rem 0;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  animation: scrollTicker 80s linear infinite;
  width: max-content;
  gap: 60px;
}

.ticker-item {
  white-space: nowrap;
  padding: 0 3rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff4f;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CTA Button */
.hero .btn {
  display: inline-block;
  background-color: transparent;
  color: var(--yellow-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color var(--transition-speed);
}

.hero .btn:hover {
  background-color: var(--dark-blue);
  color: var(--yellow-dark);
  transform: translateY(2px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-content {
    width: 60%;
    height: 100vh;
  }
  
  .hero-line-1 {
    font-size: 2.5rem;
    margin-bottom: 0rem;
  }
  
  .animated-word {
    font-size: 4rem;
  }
  
  .hero-line-3 {
    font-size: 2rem;
  }

  .hero-subtitle {
  font-size: 1.5rem;
  }
}

@media (max-width: 992px) {
  .hero-content {
    width: 70%;
    height: 100vh;
  }
  
  .hero-line-1 {
    font-size: 2.2rem;
    margin-bottom: 0rem;
  }

  .hero-line-2 {
  position: relative;
  height: 5rem;
  margin-bottom: -0.5rem;
  margin-top: -1.5rem;
}
  
  .animated-word {
    font-size: 3.5rem;
  }
  
  .hero-line-3 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
  font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    height: 100vh;
    padding: 0 10%;
    align-items: center;
    text-align: center;
  }
  
  .hero-line-1 {
    font-size: 2rem;
    margin-bottom: 0rem;
  }
  
  .hero-line-2 {
  position: relative;
  height: 5rem;
  margin-bottom: -1.2rem;
  margin-top: -1.3rem;
}
  
  .animated-word {
    font-size: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
  }
  
  .animated-word.active {
    transform: translateX(-50%) translateY(0);
  }
  
  .hero-line-3 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
  font-size: 1.5rem;
  line-height: 1.8rem;
  }

  .hero-video-container video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: 100%;
  }

  .hero-video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  }
}

@media (max-width: 576px) {
  .hero-line-1 {
    font-size: 1.8rem;
    margin-bottom: 0rem;
  }
  
  .hero-line-2 {
  position: relative;
  height: 5rem;
  margin-bottom: -1.5rem;
  margin-top: -1rem;
}
  
  .animated-word {
    font-size: 2.5rem;
  }
  
  .hero-line-3 {
    font-size: 1.7rem;
    line-height: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.5rem;
  }

  .hero-video-container video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: 100%;
  }

  .hero-video {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  }
}

@media (max-width: 768px) {
  .ticker-track {
  display: flex;
  animation: scrollTicker 80s linear infinite;
  width: max-content;
  gap: 10px;
  }
}