/**
 * Estilos del componente Hero
 * 
 * @package Puerto_Sostenible
 */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 1;
  --parallax-offset: 0px;
  animation: slowPanUp 60s linear infinite;
  will-change: transform;
}

@keyframes slowPanUp {
  0% {
    transform: translateY(calc(0% + var(--parallax-offset))) scale(1.15);
  }
  100% {
    transform: translateY(calc(-10% + var(--parallax-offset))) scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 2rem;
}

.hero-content h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 2.5rem 0;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-waves {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  z-index: 4;
  width: 300px;
  height: auto;
  opacity: 0.9;
}

#Ondas path {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  opacity: 1;
}

#Trazado_1660,
#Trazado_1661,
#Trazado_1662 {
  clip-path: inset(0 100% 0 0);
  animation: revelar-onda 1.5s cubic-bezier(.65,.50,.50,1) forwards;
}

#Trazado_1660 {
  animation-delay: 0s;
}

#Trazado_1661 {
  animation-delay: .35s;
}

#Trazado_1662 {
  animation-delay: .7s;
}

@keyframes revelar-onda {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-waves {
    width: 200px;
    bottom: 1rem;
    right: 1rem;
  }
}
