/* Contenedor principal del Hero */
.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--navbar-total-height));
  padding-top: var(--navbar-total-height);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: layout style paint;
  isolation: isolate;
}

/* Contenedor del fondo animado */
#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

#tsparticles canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Contenido — z-index alto para quedar sobre las partículas */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 56px 48px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.65) 55%, transparent 82%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

/* Location text above title — vibrant blue, no badge */
.hero-location {
  display: block;
  color: var(--color-primary-hover);
  font-size: var(--font-size-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

.hero-content-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  color: var(--color-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.hero-title-accent {
  color: var(--color-primary);
}

.hero-subtitle {
  color: var(--color-body);
  font-size: var(--font-size-lg);
  max-width: 560px;
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  color: var(--color-primary-hover);
  font-size: var(--font-size-base);
  font-weight: var(--font-semibold);
  max-width: 560px;
}

/* CTA row */
.hero-content-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Extends .btn and .btn-primary/.btn-outline */
.btn-hero {
  font-weight: var(--font-semibold);
  border-radius: 50px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero--primary {
  padding: calc(var(--space-md) + 2px) calc(var(--space-lg) + 12px);
  font-size: var(--font-size-lg);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  animation: hero-btn-pulse 2.8s ease-in-out infinite;
}

.btn-hero--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  animation: none;
}

.btn-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.btn-hero--primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-hero--secondary {
  padding: var(--space-md) calc(var(--space-lg) + 4px);
  font-size: var(--font-size-base);
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  background: transparent;
}

.btn-hero--secondary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

@keyframes hero-btn-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35); }
  50%       { box-shadow: 0 4px 28px rgba(37, 99, 235, 0.6); }
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1024px) {
  .hero-content {
    max-width: 680px;
    padding: 48px 36px;
  }

  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-xl);
  }

  .hero-content h1 {
    font-size: var(--font-size-3xl); /* Mantenemos el tamaño 3xl en móviles en lugar de 2xl */
    line-height: 1.2; /* Ajustamos levemente el interlineado para evitar que choque */
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .hero-tagline {
    font-size: var(--font-size-sm, 0.875rem);
  }

  .hero-content-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-hero--primary,
  .btn-hero--secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: var(--space-xl) var(--space-md);
  }

  .hero-content h1 {
    font-size: var(--font-size-2xl); /* Lo subimos de xl a 2xl para teléfonos muy pequeños (ej: iPhone SE) */
  }

  .hero-location {
    font-size: 0.8125rem;
  }
}
