@import url("header.css");
@import url("footer.css");

/* --- BODY --- */
body {
  visibility: hidden;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

/* --- MAIN --- */
main {
  /* max-width: 900px; */
  /* margin: 3rem auto 4rem; */
  padding: 2rem 2.5rem;
  background-color: #fff;
  /* border-radius: 14px; */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  transition: box-shadow 0.3s ease;
}

main:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* --- SECTION TITLES & TEXT --- */
.section-title {
  font-size: clamp(1.8rem, 4dvw, 2.4rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: left;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.section-text {
  font-size: clamp(1rem, 2.5dvw, 1.15rem);
  line-height: 1.75;
  /* max-width: 720px; */
  margin: 2.5rem auto 2.5rem;
  color: #4b5563;
  text-align: justify;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
  main {
    padding: 1rem;
    /* menos espacio lateral */
    box-shadow: none;
    /* más limpio en móvil */
  }

  .section-text {
    text-align: left;
    /* más legible */
    font-size: 1rem;
    line-height: 1.6;
  }

  .image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  .image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
  }

  .image-gallery img:hover {
    transform: scale(1.03);
    /* sutil efecto de zoom */
  }
}

@media (max-width: 480px) {
  .image-gallery {
    grid-template-columns: 1fr;
    /* una imagen por fila */
  }

  footer {
    font-size: 0.8rem;
    /* tipografía más compacta */
  }

  footer nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  footer a {
    margin: 0;
  }
}