/*VAR*/
:root {
  --lightgray: #eeeeee;
  --gray: #a1a1a1;
  --darkgray: #4b4b4b;
  --black: #323232;
  --withe: #ffffff;
  --red: #bf1c23;
  --blue: #35589a;
  --darkblue: #233c6b;
}
/*END VAR*/

/*ALERTA*/
.modal-alerta p{
  margin: 2rem auto;
}
/*END ALERTA*/

/*HERO*/

.hero {
  height: 30rem;
  width: 100%;
  margin-top: 7rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-image: url("../resc/hero.webp");
  background-color: #35589a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-info {
  height: 100%;
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-info h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.3rem;
  width: 60%;
}

.hero-info p {
  text-align: center;
  padding: .5rem;
}

.hero-info a {
  padding: 0.7rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 1.5rem;
  color: var(--withe);
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 3rem;
  background-color: var(--blue)
}

.hero-info a:hover {
  cursor: pointer;
  background-color: var(--darkblue);
}

/*END HERO*/

/*SUB HERO*/
.sub-hero {
  display: flex;
  align-items: center;
  height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sub-hero-card {
  height: 14rem;
  width: 15rem;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sub-hero-card svg {
  height: 3rem;
  width: 3rem;
  fill: var(--withe);
}

.sub-hero-card-icon {
  background-color: var(--blue);
  height: 5rem;
  width: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}

.sub-hero-card-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
  height: 7rem;
}

.sub-hero-card-info h2 {
  font-size: 1.2rem;
  text-align: center;
  height: 3rem;
  width: 10rem;
  margin-bottom: 0.7rem;
  font-weight: normal;
}

.sub-hero-card-info span {
  font-weight: bold;
  margin-right: 0.5rem;
}

.sub-hero-card-info span strong {
  color: var(--red);
}

/*END SUB HERO*/

/*NEWS*/
.news {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--lightgray);
  padding: 2rem;
}

.news h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.news p {
  font-size: 1.3rem;
}

.news a {
  padding: 0.7rem;
  font-size: 1.2rem;
  border: solid;
  border-width: 1px;
  border-radius: 1.5rem;
  border-color: var(--blue);
  color: var(--blue);
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.news a:hover {
  border-color: var(--red);
  color: var(--red);
}

.news-container {
  display: flex;
}

.news-container-card {
  width: 18rem;
  margin: 1rem;
  height: 30rem;
  background-color: var(--withe);
  padding: 1rem;
  border-radius: 1.5rem;
}

.news-container-card:hover {
  cursor: pointer;
  border: solid;
  border-width: 2px;
  border-color: var(--lightgray);
}

.news-container-card-img {
  height: 15rem;
  width: 100%;
  background-color: var(--blue);
  border-radius: 1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: solid;
  border-width: 1px;
  border-color: var(--lightgray);
}

.news-container-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.news-container-card-info h3 {
  margin: 1rem auto 0.3rem;
  height: 3.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-container-card-info p {
  text-align: center;
  height: 9rem;
  padding: 0.3rem;
  font-size: 1rem;
}

#news-container-card-1 {
  background-image: url("../resc/novedades/dengue.webp");
}

#news-container-card-2 {
  background-image: url("../resc/novedades/cancer_uterino.webp");
}

/*END NEWS*/

/*ACTIVA TU CREDENCIAL*/
.cred {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem auto;
}

.cred-img {
  height: 35rem;
  width: 20rem;
  background-image: url("../resc/credencial.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: auto 4rem;
}

.cred-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.cred h2 {
  font-size: 2rem;
  width: 30rem;
  text-align: left;
  font-weight: 400;
  margin-bottom: 2rem;
}

.cred h2 a {
  color: var(--blue);
  font-weight: bold;
}

.cred h2 a:hover {
  color: var(--darkblue);
}

.cred-info ul {
  list-style: disc;
}

.cred-info ul li {
  font-size: 1.5rem;
  padding: .5rem;
}


/*END ACTIVA TU CREDENCIAL*/

/*PREVENCION*/
.prevencion {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 5rem auto;
  background-image: url("../resc/prevencion.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.prevencion-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.prevencion-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.prevencion-info p {
  font-size: 1.3rem;
  width: 40rem;
  height: 8rem;
}

.prevencion-info p a {
  font-weight: bold;
  color: var(--blue);
}

.prevencion-info p a:hover {
  color: var(--red);
}

.prevencion-img {
  height: 30rem;
  width: 30rem;

  margin: auto 1rem;
}

/*END PREVENCION*/

/*RESPONSIVE MOBILE*/
@media screen and (max-width: 768px) {
  /*HERO*/
  .hero-info {
    width: 100%;
  }

  .hero-info h1 {
    font-size: 2rem;
  }
  /*END HERO*/

  /*SUB HERO*/
  .sub-hero {
    flex-direction: column;
    height: 35rem;
  }

  .sub-hero-card {
    width: 100%;
  }
  /*END SUB HERO*/

  /*NEWS*/
  .news {
    flex-direction: column;
  }

  .news h2 {
    font-size: 1.5rem;
  }

  .news p {
    font-size: 1rem;
    text-align: center;

  }

  .news a {
    font-size: 1rem;
  }

  .news-container {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow:hidden;
  }

  .news-container-card {
    width:18rem;
    height: 30rem;
  }

  .news-container-card-img {
    height: 15rem;
  }

  .news-container-card-info h3 {
    height: 3rem;
  }

  .news-container-card-info p {
    text-align: center;
    height: 100%;
    font-size: 1rem;
  }

  /*END NEWS*/

  /*ACTIVA TU CREDENCIAL*/
  .cred {
    display: flex;
    flex-direction: column-reverse;
  }

  .cred h2 {
    font-size: 2rem;
    width: auto;
    padding: .7rem;
    text-align: center;
    margin-top: 1rem;
  }

  .cred-info ul {
    display: none;
  }

  /*END ACTIVA TU CREDENCIAL*/

  /*PREVENCION*/
  .prevencion {
    padding: 2rem;
    height: 30rem;
    background-position: left;
  }
  
  .prevencion-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .prevencion-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .prevencion-info p {
    width: 100%;
    height: 100%;
    padding: 1rem 0;
    text-align: center;
  }

  .prevencion-img {
    display: none;
  }

  /*END PREVENCION*/
}

/*FIN RESPONSIVE MOBILE*/
