/* SOBRE EL CAMPUS */

.section-sobreElCampus {
  background-image: url('../img/texturaPapel.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 0;
  scroll-margin-top: 60px;
}

/* Contenedor */
.section-sobreElCampus .container {
  padding: 0 1.4rem;
}

/* TEXTOS */

.section-sobreElCampus h5 {
  text-align: center;
  color: var(--color7);
  font-size: var(--fs-h4);
  margin-bottom: 1rem;
}

.section-sobreElCampus h1 {
  text-align: center;
  font-size: var(--fs-h1);
  color: var(--color4);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.section-sobreElCampus p {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--color7);
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

/* CARDS */

.cards-sobreElCampus {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.section-sobreElCampus .card-sobre {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.card:hover {
  transform: translateY(-4px);
}

/* Ícono */

.img-card {
  width: 48px;
  height: 48px;
  flex-shrink: 0;        
  display: flex;         
  align-items: center;
  justify-content: center;
}

/* TEXTO CARD */

.texto-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.texto-card h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h4); 
  color: var(--color2);
  margin: 0 0 0.3rem 0;
}

.texto-card p {
  font-size: var(--fs-small); 
  color: var(--color5);
  line-height: 1.4;
  text-align: left;
  margin: 0;
}

/* TABLET */

@media screen and (min-width: 768px) {

  .section-sobreElCampus p {
    text-align: justify;
  }

  .card {
    padding: 1.5rem;
  }
}

/* DESKTOP */

@media screen and (min-width: 1024px) {

  .cards-sobreElCampus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .section-sobreElCampus p {
    text-align: justify;
  }

  .card {
    padding: 2rem;
  }

  .img-card {
    width: 52px;
    height: 52px;
  }

  .texto-card p {
    text-align: left;
  }
}