/* ======== ABOUT SECTION ======== */
.about__container {
  overflow: hidden;
  display: grid;
  gap: 2rem;
}

.about__image img {
  max-width: 450px;
  width: 100%;
  margin: auto;
  border-radius: 8px;
  display: block;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 4rem 1.2rem;
}

.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: 2rem;
  font-weight: 600;
  line-height: 2.6rem;
  color: var(--text-dark);
}

.section__description {
  max-width: 600px;
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* Modal específico para 'Leer Más' */
.about-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
}

.about-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px 30px;
  border-radius: 12px;
  width: min(800px, 95%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeInModal 0.4s ease-in-out;
}

.about-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ======== RESPONSIVE ======== */

/* 📱 Móviles */
@media (max-width: 767px) {
  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section__header {
    font-size: 1.6rem;
    line-height: 2.2rem;
  }

  .section__description {
    font-size: 0.95rem;
  }
}

/* 💻 Tablets y pantallas medianas */
@media (min-width: 768px) and (max-width: 991px) {
  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image img {
    max-width: 380px;
  }
}

/* 🖥️ Pantallas grandes */
@media (min-width: 992px) {
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
  }

  .section__header {
    font-size: 2.5rem;
    line-height: 3rem;
  }
}
