.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__subheader {
  margin-bottom: 0.5rem;
  position: relative;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.section__subheader::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translate(1rem, -50%);
  height: 2px;
  width: 4rem;
  background-color: var(--primary-color);
}

.section__header {
  max-width: 600px;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 3rem;
  color: var(--text-dark);
}

.section__description {
  max-width: 600px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.about__container {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Se adapta automáticamente */
  align-items: center;
  gap: 2rem;
}

.about__image img {
  width: 100%; /* Ocupa todo el ancho disponible */
  max-width: 450px; /* Límite en pantallas grandes */
  margin: auto;
  border-radius: 10px;
  height: auto; /* Mantiene proporciones */
}

/* 📱 Móviles */
@media (max-width: 768px) {
  .section__header {
    font-size: 1.8rem;
    line-height: 2.2rem;
    text-align: center;
  }

  .section__subheader {
    text-align: center;
  }

  .section__subheader::after {
    display: none; /* Ocultamos la línea en pantallas pequeñas */
  }

  .section__description {
    text-align: center;
  }
}

/* 💻 Pantallas grandes */
@media (min-width: 1024px) {
  .section__header {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}
