/* =====================================================
   ESTILOS BASE
===================================================== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  scroll-behavior: smooth;
  background: white;
}

main {
  padding-top: 20px;
}

.seccion {
  padding: 40px 20px;
  text-align: center;
}

h1 {
  margin: 5px 0 18px 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Subtítulos comunes */
.subtitulo {
  font-size: 2rem;
  margin: 0 0 20px 0;
}

/* =====================================================
   TARJETAS
===================================================== */
.tarjetas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.tarjeta {
  background: #1DA28D;
  border-radius: 20px;
  width: 350px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.tarjeta-titulo {
  background-color: #03705E;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 10px;
  text-align: center;
}

.tarjeta-imagen {
  width: 100%;
  overflow: hidden;
  height: 220px;
}

.tarjeta-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tarjeta-items {
  list-style: disc;
  padding: 15px 20px;
  margin: 0;
  flex-grow: 1;
}

.tarjeta-items li {
  margin-left: 10px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  text-align: left;
  color: white;
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* Pantallas medianas */
@media (max-width: 900px) {
  /* Hero */
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .logo-container .logo {
    width: 100px;
  }

  .titulo-container h1 {
    font-size: 2rem;
  }

  /* Tarjetas */
  .tarjetas {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-imagen {
    height: 200px; 
  }

  /* Galería */
  .fila-imagenes img {
    width: 45%;
    margin-bottom: 10px;
  }

  /* Sección 4 */
  .departamentos-container {
    flex-direction: column;
    align-items: center;
  }

  .departamento {
    width: 85%;
    height: auto;
  }

  .color4 h1 {
    font-size: 2.2rem;
  }

  .color4 .subtitulo {
    font-size: 1.4rem;
  }

  .info-general p {
    font-size: 1rem;
  }

  .icono-red {
    font-size: 1.6rem;
  }

  /* Hero imagen */
  .full-width-image {
    max-height: 350px;
  }
}

/* Pantallas pequeñas / móviles */
@media (max-width: 500px) {
  .full-width-image {
    max-height: 200px;
  }
}
