/* ===== ESTILOS DE HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background-color: #000;
  width: 100%;
  padding: 0;
  margin: 0;
  padding-top: 72px; /* Altura del navbar */
  box-sizing: border-box;
}

/* Contenedor del video de fondo */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  margin: 0;
  padding: 0;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2; /* Por encima del video pero debajo del contenido */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 4rem 2rem;
    text-align: left;
    align-items: flex-start;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Botones del hero */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

.hero-cta .cta-button {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  border: 2px solid transparent;
}

.hero-cta .cta-button.primary {
  background-color: var(--primary);
  color: white;
}

.hero-cta .cta-button.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta .cta-button.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.hero-cta .cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats del hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.hero-stat-item {
  text-align: center;
  min-width: 120px;
}

.hero-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image {
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-5px);
}

/* Hero centrado */
.hero-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-centered .hero-buttons {
  justify-content: center;
}

/* Hero con formulario */
.hero-with-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dark-theme .hero-form {
  background: var(--gray-800);
}

/* Hero con video */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Hero con partículas */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Hero con slider */
.hero-slider {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

/* Controles del slider */
.hero-slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-slider-dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* Hero con contador */
.hero-counter {
  display: flex;
  justify-content: space-around;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.counter-text {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Hero con animación de texto */
.hero-animated-text {
  min-height: 4rem;
  display: inline-block;
  position: relative;
}

.hero-animated-text span {
  position: absolute;
  opacity: 0;
  animation: textFade 12s infinite;
  left: 0;
  right: 0;
  color: var(--primary);
}

.hero-animated-text span:nth-child(2) {
  animation-delay: 4s;
}

.hero-animated-text span:nth-child(3) {
  animation-delay: 8s;
}

@keyframes textFade {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; }
}

/* Hero con scroll down */
.hero-scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  z-index: 10;
  animation: bounce 2s infinite;
}

.hero-scroll-down span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.hero-scroll-down i {
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* Hero con gradiente */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

/* Hero con patrón */
.hero-pattern {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiNlZWVlZWUiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
  position: relative;
  z-index: 1;
}

.hero-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: -1;
}

.dark-theme .hero-pattern::before {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-with-image {
    flex-direction: column;
    text-align: center;
    padding: 4rem 0;
  }
  
  .hero-content {
    margin-bottom: 3rem;
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-with-form {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-form {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-slider {
    height: 400px;
  }
  
  .counter-number {
    font-size: 2rem;
  }
  
  .counter-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-counter {
    flex-direction: column;
    gap: 1.5rem;
  }
}
