.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 100dvh;
  background-color: #000;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transition: transform 1.5s ease, opacity 0.35s ease;
  z-index: 1;
}

.hero.scrolled .hero-video {
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-light);
  text-align: center;
  padding: 0 1.25rem;
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 8vw, 2.4rem);
  margin-bottom: 1rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  max-width: min(320px, 100%);
  overflow-wrap: break-word;
}


.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

.hero-buttons .btn-primary {
  background: var(--color-primary);
  color: var(--color-light);
}

.hero-buttons .btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.hero-buttons .btn-secondary {
  border: 2px solid var(--color-light);
  color: var(--color-light);
  background: transparent;
}

.hero-buttons .btn-secondary:hover {
  background: var(--color-light);
  color: var(--color-dark);
}

.lang {
  display: none;
}

.lang.active {
  display: block;
}

/* Animaciones de entrada suave */
.hero-title,
.hero-subtext,
.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.hero-title {
  animation-delay: 0.2s;
}

.hero-subtext {
  animation-delay: 0.5s;
}

.hero-buttons {
  animation-delay: 0.8s;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-light);
  font-size: 1.4rem;
  opacity: 0.7;
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

@media (min-width: 768px) {

  .hero-content {
    align-items: flex-start;
    text-align: left;
    max-width: min(var(--container-width), 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .hero-subtext {
    font-size: 1.2rem;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-buttons a {
    width: 80%;
    text-align: center;
  }
}

