/* ESPACIO FINNEGANS */
#espacio {
  margin-top: 89px;
  background-color: var(--gris-2);
  padding: 40px 0 var(--paddingMedium) 0;
}

@media screen and (max-width: 800px) {
  #espacio {
    margin-top: 0;
  }
}

#espacio h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 7.5vw, 5.7rem);
  line-height: 1.1em;
  font-weight: 600;
  min-height: clamp(100px, 25vw, 250px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1em;
  background: url(back_espacio.png) no-repeat right center;
  background-size: contain;
}

#espacio h1 span {
  font-weight: 800;
}

#espacio .wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

#espacio p {
  font-weight: 500;
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  line-height: 1.4em;
  margin-bottom: 1em;
}

#espacio picture {
  display: flex;
}

#espacio picture img {
  width: 100%;
}

@media screen and (max-width: 720px) {
  #espacio .wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
  #espacio picture {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* IMPACTO */
#impacto {
  background-color: var(--gris-2);
}

#impacto h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 6.3vw, 3.5rem);
  padding-left: 0.5em;
  line-height: 1.1em;
  font-weight: 600;
  min-height: clamp(100px, 25vw, 350px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* margin-bottom: 1em; */
  background: url(back_impacto.png) no-repeat 0 center;
  background-size: contain;
}

#impacto h1 span {
  font-weight: 800;
}

#impacto .wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

#impacto .wrapper > div:nth-child(2) {
  display: flex;
}

#impacto p {
  font-weight: 500;
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  line-height: 1.4em;
  margin-bottom: 1em;
}

#impacto picture {
  display: flex;
  margin: 0 auto;
}

#impacto picture img {
  max-width: 100%;
  max-height: 500px;
}

@media screen and (max-width: 720px) {
  #impacto .wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
  #impacto picture {
    max-width: 400px;
  }
}

/* ACTIVIDADES */
#actividades {
  background-color: var(--gris-2);
  padding: var(--paddingMedium) 0;
}

#actividades ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: flex-start;
}

#actividades ul li {
  background-color: #fff;
  border-radius: calc(var(--radiusV) * 0.5);
  overflow: hidden;
  padding-bottom: 20px;
}

#actividades ul li .wrapper {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

#actividades ul li .bigIcon {
  font-size: 70px;
  margin: 0 auto;
}
#actividades ul li .title {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#actividades ul li .title h3 {
  margin-top: 0.1em;
}

#actividades ul li .title i {
  font-size: 30px;
  color: #000;
  transition: all 0.2s;
  margin-left: 0;
  transform: rotate(-90deg);
}

#actividades ul li.expanded .title i {
  transform: rotate(90deg);
}

#actividades ul .description {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows ease-in-out 300ms;
  font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  line-height: 1.5em;
}

#actividades ul li:nth-child(1) {
  background-color: var(--dorado-3);
}
#actividades ul li:nth-child(2) {
  background-color: var(--dorado-1);
}
#actividades ul li:nth-child(3) {
  background-color: var(--verde-1);
}
#actividades ul li:nth-child(4) {
  background-color: var(--coral-2);
}

#actividades ul li.expanded .description {
  grid-template-rows: 1fr;
}

#actividades ul .description > div {
  overflow: hidden;
  padding: 0 20px 0 20px;
}

#actividades ul .description .wrapper {
  margin-top: 10px;
  padding: 20px min(100px, 5%);
  background: #fff;
  border-radius: calc(var(--radiusV) * 0.3);
}

#actividades ul .description p {
  font-weight: 500;
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  line-height: 1.4em;
  margin-top: 1em;
}

@media screen and (max-width: 1000px) {
  #actividades ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 500px) {
  #actividades ul {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* OBRA */
#obra {
  background-color: var(--gris-2);
  padding: 40px 0 var(--paddingMedium) 0;
}
#obra .wrapper {
  display: flex;
  gap: 50px;
}

#obra .wrapper > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#obra .wrapper > div:nth-child(1) {
  flex: 1;
}

#obra .wrapper > div:nth-child(2) {
  width: 35%;
}

#obra h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 5.8vw, 3.5rem);
  line-height: 1.1em;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0.4em;
}

#obra h1 span {
  font-weight: 800;
}

#obra p {
  font-weight: 500;
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  line-height: 1.4em;
  margin-bottom: 1em;
}

#obra p span {
  font-weight: 700;
}

#obra picture {
  display: flex;
}

#obra picture img {
  width: 100%;
}

@media screen and (max-width: 720px) {
  #obra .wrapper {
    flex-direction: column-reverse;
  }

  #obra .wrapper > div:nth-child(2) {
    width: 100%;
  }
  #obra picture {
    max-width: 300px;
  }
}

/* PROYECTO */
#cta {
  background-color: var(--gris-2);
  padding: var(--paddingMedium) 0;
}

#cta .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
}

#cta h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 6.3vw, 2rem);
  line-height: 1.1em;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0.8em;
}
#cta h2 span.txt {
  position: relative;
  z-index: 1;
}

#cta h2 span.circle {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--purpura-3);
  z-index: 0;
  left: -30px;
}

#cta p {
  font-weight: 500;
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  line-height: 1.4em;
  margin-bottom: 1.5em;
  max-width: 500px;
  position: relative;
  z-index: 2;
}

#cta a {
  white-space: nowrap;
  background-color: var(--dorado-2);
  color: var(--marino);
  padding: 0.3em 1.1em;
  border-radius: 1em;
  font-size: clamp(1rem, 3.81vw, 1.3rem);
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

#cta a i {
  font-size: 1.3em;
  margin-right: 0.2em;
}

#cta a:hover {
  background-color: var(--dorado-3);
}

@media screen and (max-width: 650px) {
  #cta h2 span.circle {
    display: none;
  }
}

/* PROYECTANDO */
#proyectando {
  margin-top: 89px;
  background-color: var(--gris-2);
  padding: 40px 0 var(--paddingMedium) 0;
}

@media screen and (max-width: 800px) {
  #proyectando {
    margin-top: 0;
  }
}

#proyectando .photoWrapper {
  position: relative;
  margin-bottom: 40px;
  border-radius: var(--radiusV);
  overflow: hidden;
  padding: 50px 20px 50px 20px;
  min-height: clamp(500px, 58vw, 650px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#proyectando .photoWrapper h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(2.7rem, 5.8vw, 3.7rem);
  line-height: 1.1em;
  font-weight: 600;
  max-width: 580px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#proyectando .photoWrapper h1 span {
  color: var(--dorado-3);
  font-weight: 800;
}

#proyectando .photoWrapper .impacto {
  position: relative;
  z-index: 1;
  max-width: 200px;
}

#proyectando .photoWrapper picture {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
}

#proyectando .photoWrapper picture:after {
  content: "";
  top: 0;
  left: 0;
  min-width: clamp(300px, 58vw, 520px);
  bottom: 0;
  background: rgb(0, 0, 0);
  background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
  position: absolute;
  opacity: 0.7;
}

#proyectando .photoWrapper picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}

#proyectando img {
  max-width: 100%;
}

#proyectando .data {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#proyectando p {
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  line-height: 1.4em;
}

#proyectando p.sinopsis {
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  line-height: 1.5em;
  margin-bottom: 2em;
}

#proyectando p.featured {
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.5rem);
  line-height: 1.4em;
  margin-bottom: 1em;
}

#proyectando p.featured span {
  font-weight: 700;
}

#proyectando a {
  white-space: nowrap;
  background-color: var(--dorado-2);
  color: var(--marino);
  padding: 0.3em 1.1em;
  border-radius: 1em;
  font-size: clamp(1rem, 3.81vw, 1.3rem);
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

#proyectando a i {
  font-size: 1.3em;
  margin-right: 0.2em;
}

#proyectando a:hover {
  background-color: var(--dorado-3);
}

/* TECHO Y COMIDA */
#techoYComida {
  background-color: var(--gris-2);
  padding: 40px 0 var(--paddingMedium) 0;
}

#techoYComida h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 6.3vw, 4.7rem);
  line-height: 1.1em;
  font-weight: 800;
  min-height: clamp(100px, 25vw, 350px);
  display: flex;
  align-items: center;
  margin-bottom: 1em;
  background: url(back_techo_y_comida.png) no-repeat 0 center;
  background-size: contain;
}

#techoYComida .videoWrapper {
  flex: 1;
  height: 0;
  position: relative;
  padding-bottom: 56%;
  height: 0;
  width: 100%;
  border-radius: var(--radiusV);
  overflow: hidden;
  margin-bottom: 50px;
}

#techoYComida .videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
}

#techoYComida .data {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#techoYComida p {
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.5rem);
  line-height: 1.4em;
  margin-bottom: 1em;
}

#techoYComida p span {
  font-weight: 700;
}

/* FICHA TÉCNICA */
#ficha {
  background-color: var(--gris-2);
  padding: 0 0 40px 0;
}

#ficha .wrapper {
  position: relative;
  margin-bottom: 40px;
  border-radius: var(--radiusV);
  overflow: hidden;
  padding: 30px 40px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--dorado-3);
}

#ficha h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.7rem, 6.3vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.4em;
}

#ficha p {
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.4rem);
  line-height: 1.4em;
  margin-bottom: 0.5em;
}

#ficha p span {
  font-weight: 700;
}
