* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  font-family: "Gotham-Book";
}

:root {
  --primary-color: #ffcb17;
  --secondary-color: #1b3561;
  --third-color: #009293;
  --general-background: #fefcf5;
  --footer-background: #122340;
  --green-dark: #035f5b;
  --text-gray: #777777;
  --border: #424242;
  --white: #ffffff;
  --primary-blue: #06abea;
  --secondary--blue: #0b6ab7;
  --third--blue: #1c4492;
  --dameUnaCasa-red:#ff2221;
  --adultoMayor: #7a52aa;
  --bs-font-sans-serif: "Gotham-Book";
}

/* AhMain */

.ahMain {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 81vh;
  background: url(../img/programas/ayudaHumanitaria/ah-tumaco.webp);
  background-size: cover;
  background-position: calc(50% - 200px) center;
  background-repeat: no-repeat;
}

.dcMain {
  background: url(../img/programas/dameUnaCasa/fondo-dame-una-casa.webp);
  background-size: cover;
  background-position: calc(50% - 200px) center;
  background-repeat: no-repeat;
}

.amMain {
  background: url(../img/programas/adultoMayor/fondo-adulto-mayor.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mvMain {
  background: url(../img/programas/mejoramientos/pagina-mejoramientos-de-vivienda.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ldMain {
  background: url(../img/programas/ludotecas/ld_fondoItsmina.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-position: 79%;
}

.ahMain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.ahMain__content {
  text-align: center;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
  color: white;
  z-index: 2;
}

.ahMain__content h2 {
  font-family: "Gotham-Bold2";
  font-size: 3rem;
}

.ahMain__content hr {
  height: 3px;
  color: var(--primary-color);
  width: 300px;
  margin: 12px auto;
  border-radius: 22px;
  opacity: 1;
}

.dcMain hr {
  color: var(--dameUnaCasa-red);
}

.amMain hr {
  color: var(--adultoMayor);
}

.ldMain hr {
  color: var(--adultoMayor);
}

.ahMain__content p {
  font-size: 2.4rem;
}

.ahMain__content p:last-of-type {
  margin-top: -12px;
}

/* AhData */
.ahData {
  display: flex;
  padding: 24px 0;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
}

.ahData h2 {
  margin-bottom: 24px;
  font-size: 3rem;
  font-family: "Gotham-Bold2";
  color: var(--secondary-color);
  text-align: center;
}

.ahData h3 {
  margin-bottom: 0px;
  font-size: 3rem;
  font-family: "Gotham-bold2";
  text-align: center;
  color: var(--primary-color);
}

.dcData h3 {
  color: var(--dameUnaCasa-red);
}

.amData h3 {
  color: var(--adultoMayor);
}

.mvData h3 {
  color: var(--primary-color);
}

.ahData--content2 {
  margin-bottom: 24px;
}

.ahData p {
  margin-bottom: 0px;
  font-size: 2.1rem;
  color: var(--secondary-color);
}

.ahData .ahData--content2,
.ahData .ahData--content3,
.ahInformation--content1,
.ahInformation--content2 {
  view-timeline-name: --p;
  view-timeline-axis: block;

  animation-timeline: --p;
  animation-name: show;
  animation-range: entry 25% cover 50%;
  animation-fill-mode: both;
}

.ahData .ahData--content3__element1-1,
.ahData .ahData--content3__element1-2 {
  display: flex;
  justify-content: start;
}

.ahData .ahData--content3__element1-1 p,
.ahData .ahData--content3__element1-2 p {
  padding-left: 12px;
}

/* ahGallery */
.agGallery {
  width: 100%;
}

.ahGallery--content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ahGallery--content img {
  width: 100%;
}

.ahGallery--content1 img {
  max-width: 600px;
}

.dcGallery--content1 img {
  max-width: 300px;
  padding: 9% 0;
}

.mvGallery--content1 img {
  max-width: 300px;
}
/* ahInformation */

.ahInformation {
  background-color: var(--white);
}

.ahInformation--content1 {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ahInformation--content1 h2, .ahDescription h2 {
  margin: 24px 0;
  font-size: 3rem;
  font-family: "Gotham-Bold2";
  color: var(--secondary-color);
}

.ahInformation--content1 p, .ahDescription p {
  margin-bottom: 0;
  font-size: 2.1rem;
  color: var(--secondary-color);
  text-align: center;
}

.ahInformation--content1 p:nth-of-type(2) {
  margin-top: 24px;
}

.ahInformation--content1 span img {
  width: 23px;
  height: 23px;
}

.ahInformation--content1 button,
.ahInformation--content2 button {
  display: inline-block;
  margin: 24px 0 0 0;
  padding: 10px 16px;
  font-size: 1.8rem;
  font-weight: bold;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 4px;
  transition: background-color 0.6s ease;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.dcData--content2 p {
  padding: 0 3%;
}

/* descripción */

.ahDescription{
  margin: 27px 42px 33px 42px;
  padding: 48px 10%;
  background-color: var(--white);
  box-shadow: 2px 4px 12px #00000014;
  border-radius: 18px;
}
.ahDescription p {
  text-align: justify;
}


/* information */

.dcInformation--content1 button,
.dcInformation--content2 button {
  color: var(--white);
  background-color: var(--dameUnaCasa-red);
}

.amInformation--content1 button,
.amInformation--content2 button {
  color: var(--white);
  background-color: var(--adultoMayor);
}

.ahInformation button:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.ahInformation--content2 {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ahInformation--content2 h2 {
  margin: 24px 0;
  font-size: 3rem;
  font-family: "Gotham-Bold2";
  text-align: center;
  color: var(--secondary-color);
}

.ahInformation--content2 {
  width: 95%;
  margin: 0 auto;
}

.ahInformation--content2 img {
  width: 100%;
  box-shadow: 2px 4px 12px #00000014;
  border-radius: 18px;
  max-width: 400px;
}

.ahInformation--content2 button {
  margin: 12px 0 0 0;
}

/* animations */
@keyframes show {
  from {
    opacity: 0;
    scale: 25%;
  }

  to {
    opacity: 1;
    scale: 100%;
  }
}

/* media query */
@media screen and (min-width: 768px) {
  .ahMain {
    background-position: center;
  }

  .dcData--content2 p {
    padding: 0;
  }

  .ahGallery--content1 {
    width: 100%;
    display: flex;
    justify-content: end;
  }

  .ahGallery--content1 img {
    max-width: 300px;
  }
  
  .ldGallery--content1 img {
    max-width: 400px;
  }

  .mvGallery--content1 img {
    max-width: 213px;
  }

  .amGallery-content1 img {
    max-width: 270px;
  }

  .dcGallery--content1 img {
    padding: 24px 24px 24px 24px;
  }

  .ahGallery--content2 {
    width: 100%;
    display: flex;
  }

  .ahInformation {
    padding: 81px;
    display: flex;
    align-items: center;
  }

  .ahInformation--content1, .ahInformation--content2 {
    width: 50%;
    padding: 0 6%;
  }

  .ahInformation--content1 h2 {
    margin: 0 0 24px 0;
  }
}

@media screen and (width >= 1024px) {
  .agAbsolute {
    position: relative;
  }

  .ahData {
    position: absolute;
    top: calc(81vh - 23px);
    z-index: 3;
    width: 1000px;
    padding: 48px;
    flex-direction: row;
    justify-content: space-between;
    background-color: var(--white);
  }

  .dcData {
    width: 1023px;
  }
/* 
  .amData {
    width: 900px;
  } */

  .dcData p {
    font-size: 1.5rem;
  }

  .ahData--content1 {
    width: 260px;
  }

  .dcData--content1 {
    padding: 0 9% 0 0;
  }

  .dcData--content1 h2 {
    width: 172px;
  }

  .dcData--content2 {
    padding: 0 3%;
    text-align: center;
  }

  .ahData .ahData--content2,
  .ahData .ahData--content3 {
    animation-range: entry -50% cover 50%;
  }
}

@media screen and (min-width: 1920px) {
  .ahMain {
    height: 100vh;
    /* background-position: center calc(50% + 30px); */
  }

  .ahData {
    top: calc(100vh - 23px);
  }

  .ahData .ahData--content2,
  .ahData .ahData--content3 {
    animation-range: entry 25% cover 50%;
  }
}
