.hero-section {
  position: relative;
  height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-family: var(--font-title);
  max-width: 100%;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  color: var(--color-bg);
  text-align: center;
  font-size: clamp(38px, 12vw, 112px);
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 2px;
  font-weight: 450;
}

.hero-text {
  display: flex;
  position: relative;
  max-width: 500px;
  color: var(--color-bg);
  text-align: center;
  font-family: var(--font-paragraph);
  font-size: clamp(12px, 2vw, 20px);
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: 1.5px;
  margin: 5px auto 0 auto; /* ✅ centrado horizontalmente */
  justify-content: center; /* ✅ centra el texto dentro del contenedor flex */
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 220px;
    height: auto;
    height: fit-content;
    padding: 50px 0;
  }

  .hero-text {
    padding: 0 20px;
  }
}

@media (max-width: 425px) {
  .hero-content {
    display: block; /* ✅ forzar comportamiento de bloque */
    width: 100%; /* ✅ ocupa todo el ancho */
    max-width: 100%; /* ✅ sin límite */
    padding: 0 20px; /* ✅ mantiene márgenes internos */
  }
}
