/* --- ESTILOS DEL HEADER Y EL FOOTER */
@import url("../../../GlobalElements/HeaderFooter/css/stylesHeaderFooter.css");
@import url("../../../GlobalElements/Sponsors/css/styles_sponsors.css");
/* ---------------------------------------------------------------- */

/* Agrego otros estilos necesarios para el header */

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

body {
    font-family: 'Nunito', 'Roboto', sans-serif;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #000;
}

.btn-return {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 2.4rem;
}

.return {
    background-color: #736B02;
    color: #ffffff;
    border-radius: 5px;
    margin: 2rem 0;
    padding: .6rem 2rem;
    text-decoration: none;
    transition: .2s all ease-in-out;
}

.return:hover {
    background-color: #575101;
    transition: .2s all ease-in-out;
}

.line {
    border-bottom: 2px solid #736B02; 
}

.wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    background-color: #F4F4F4;
}

.title {
    font-size: 3rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}
  
.container-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-direction: row;
}
  
main {
    width: 80%;
    height: 100%;
    margin-bottom: 6rem;
}
  
main .main-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery .container {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.pictures {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

.container-title {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.container-title .gallery-title {
    font-size: 2.4rem;
    text-decoration: underline;
}

.pic {
    width: 350px;
    height: 295px;
    border-radius: 5px;
    object-fit: cover;
    object-position: top;
}

.btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-see-more {
    border-radius: 5px;
    background: #736B02;
    padding: 1rem 3rem;
    color: #fff;
    font-size: 1rem;
    border: none;
    margin-top: 3rem;
    margin-bottom: 10rem;
    transition: .2s all ease-out;
    cursor: pointer;
}

.btn-see-more:hover {
    background: #5a5402;
    transition: .2s all ease-in;
}

/* ESTILOS GALERIA MAXIMIZADA */
.wrapper .title-extended {
    text-align: center;
    margin: 2rem 0;
}

.extended-gallery {
    width: 100%;
}

.extended-gallery .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pictures-extended {
    /* width: 95%;
    height: 100%; */
    width: 300px;
    height: 270px;
    margin: auto;
    margin-bottom: 1.4rem;
}

.pictures-extended .figure-extended {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    height: 100%;
}

.pictures-extended .figure-extended .pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pic-description {
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 270px;
    opacity: 0;
    transition: .2s all ease;
    font-family: 'Roboto', 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

.pic-description .text-description {
    width: 100%;
    height: 20%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: #000000c4;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    position: absolute;
    bottom: 0;
}

.pic-description:hover {
    opacity: 1;
    background-color: #00000000;
    transition: .2s all ease;
    color: #fff;
}

.btn-see-more-extended {
    border-radius: 5px;
    background: #736B02;
    padding: 1rem 3rem;
    color: #fff;
    font-size: 1rem;
    border: none;
    margin-top: 3rem;
    margin-bottom: 10rem;
    transition: .2s all ease-out;
    cursor: pointer;
}

.btn-see-more-extended:hover {
    background: #5a5402;
    transition: .2s all ease-in;
}

/* Clase que deshabilita el btn ver mas de la galeria */
.btn-disabled {
    background-color: #6c6505d5;
    pointer-events: none;
    color:  #575103;
    text-decoration: none;
    cursor: default;
}

/* MODAL */
.news-events-max {
    width: 100%;
    height: 100%;
  
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #00000083;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
}

.news-events-max.close-modal-p {
    display: none;
}
  
.news-events-max.active-modal {
    display: flex;
}

.max-image-container {
  /* min-width: 1013px; */
  max-width: 1013px;
  max-height: 1363px;
  width: auto;
  height: auto;
  background-color: #fff;
  border-radius: 5px;

  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;

  position: relative;
  transition: .2s all ease-in-out;
}

.modal-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
}

.maximized-img {
    margin-top: 20px;
    margin-bottom: 1rem;
    border-radius: 5px;
    object-fit: cover;
    image-rendering: auto;
    width: auto;
    height: auto;
    max-width: 800px;
    max-height: 800px;
}

.modal-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  margin: 1rem 0;
  
}

.container-description-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* margin-top: .5rem; */
}

.modal-text-description {
  margin: .8rem 0;
  font-size: 1rem;
  line-height: 30px;
  text-align: justify;
  width: 100%;
}

.container-btn-modal {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.active-modal {
    display: flex;
}

.close-modal {
  width: 35px;
  height: 35px;
  background-color: rgb(167, 7, 7);
  color: #fff;
  border: none;
  border-radius: 5px;
  z-index: 2000;
  font-size: 2rem;
  /* padding: .5rem; */
  cursor: pointer;
  transition: .2s all ease-in-out;

  display: flex;
  justify-content: center;
  align-items: center;
}

.close-modal i {
    font-size: 1.5rem;
}

.close-modal:hover {
  background-color: rgb(107, 5, 5);
  transition: .2s all ease-in-out;
}

@media screen and (max-width: 1520px) {
    .extended-gallery .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1500px) {
    /* .wrapper .container-wrapper main .main-container .gallery .container {
        width: 100%;
    } */

    .wrapper .container-wrapper main .main-container .gallery .container .container-title {
        width: 95%;
    }

    .wrapper .container-wrapper main .main-container .gallery .container .pictures figure {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .wrapper .container-wrapper main .main-container .gallery .container .pictures figure .pic {
        width: 90%;
    }
}

@media screen and (max-width: 1140px) {
    /* Estilos para que los sponsors se adapten como columna */
    .wrapper .container-wrapper {
        flex-direction: column;
    }

    .wrapper .statute_title {
        margin: 2rem 0;
    }
    
      .wrapper .container-wrapper main {
        width: 100%;
    }

    .wrapper .container-wrapper main .main-container .gallery .container {
        width: 100%;
    }

    /* ESTILOS GALERIA MAXIMIZADA */
    .extended-gallery .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    /* ESTILOS MODAL */
    .close-modal {
      width: 40px;
      height: 40px;
    }

    .close-modal i {
      font-size: 1.2rem;
    }

    .modal-title {
      margin-bottom: 2rem;
    }

    .max-image-container {
      max-width: 900px;
      width: auto;
    }

    .modal-container {
      margin-top: 1rem;
      width: 100%;
    }

    .maximized-img {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 930px) {
    .extended-gallery .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .pictures figure .pic {
        width: 100%;
    }
}
  
@media screen and (max-width: 900px) {
    .wrapper .container-wrapper main .main-container .gallery .container .pictures {
        flex-direction: column;
    }

    .wrapper .container-wrapper main .main-container .gallery .container .container-title {
        justify-content: center;
    }

    .wrapper .container-wrapper main .main-container .gallery .container .pictures figure {
        margin-bottom: 2rem;
    }

    .btn::after {
        content: ' ';
        width: 80%;
        height: 2px;
        background-color: #736B02;
        position: absolute;
        margin-top: 4rem;
        border-radius: 2px;
    }
}

@media only screen and (max-width: 850px) {
    /* ESTILOS MODAL */
    .max-image-container {
      min-width: 95%;
      max-width: 95%;
      width: 100%;
    }
  }

@media screen and (max-width: 780px) {
    .extended-gallery .container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 680px) {
    .btn-return {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 0;
    }

    .wrapper .title-extended {
        font-size: 2rem;
    }
}
  
@media screen and (max-width: 650px) {
    .wrapper .title {
        font-size: 2.6rem;
        margin-bottom: 2rem;
    }

    .wrapper .container-wrapper main .main-container .gallery .container .container-title .gallery-title {
        font-size: 2rem;
    }
}

/* Mediaqueries para la lista de socios */
@media screen and (max-width: 500px) {
    .wrapper .statute_title {
        font-size: 2rem;
        margin: 1rem 0;
    }

    .wrapper .container-wrapper main .main-container .statute .container .statute-paragraph {
        font-size: 1rem;
    }

    /* ESTILOS MODAL */
    .max-image-container {
        min-width: 95%;
        max-width: 95%;
        width: 100%;
    }
}

@media screen and (max-width: 380px) {
    .wrapper .container-wrapper main .main-container .life-partners .container .partners .list {
        flex-direction: column;
        line-height: 50px;
    }

    .wrapper .container-wrapper main .main-container .life-partners .container .partners .list .group li {
        font-size: 1rem;
    }

    .extended-gallery .container {
        margin: 0 1rem;
    }
}

@media screen and (max-width: 340px) {
    .pictures-extended {
        max-width: 300px;
        width: 100%;
    }
}

/* Estilos y mediaqueries del buscador */
.modal-searchbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  .modal-search {
    background: none;
    border: none;
    width: 100%;
    margin-left: 10px;
  }
  
  .results-container,
  .modal-results-container {
    width: 100%;
    max-width: 1265px;
  }
  
  .results-container .section-title,
  .modal-results-container .section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
  }
  
  .modal-content .container {
    max-width: 1265px;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.56rem;
  }
  
  .search-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
  
    border-radius: 15px;
    background: #F1F1F1;
    box-shadow: 0px 2px 10px 1px rgba(0, 0, 0, 0.25);
    border: none;
    width: 100%;
    padding: .44rem .63rem;
  }
  
  .modal-content {
    background: rgba(241, 241, 241, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 1536px;
    max-height: 80%;
    width: 100%;
    overflow: auto;
    position: relative;
    display: flex;
    justify-content: flex-start;;
    align-items: center;
    flex-direction: column;
    margin: 2rem;
    gap: 3.75rem;
    position: relative;
  }
  
  .modal-content .modal-list {
    padding: 0;
    margin: 0;
    margin-left: 1rem;
  }
  
  .modal-content .modal-list .modal-link {
    color: #000;
    text-decoration: none;
    transition: .2s all ease-in-out;
  }
  
  .modal-content .modal-list .modal-link:hover {
    color: #736b02;
    transition: .2s all ease-in-out;
  }
  
  .modal-content .modal-list li {
    margin-bottom: 5px;
    color: #000;
    font-family: 'Nunito', sans-serif;
  }
  
  .item-title {
    text-decoration: underline;
  }
  
  .modal-content button.close-button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: none;
    border: none;
    border-radius: 4px;
    font-size: 25px;
    color: #FF0000;
    background: none;
    margin-left: 2.5rem;
    transition: .2s all ease-in-out;
  }
  
  .modal-content button.close-button:hover {
    transition: .2s all ease-in-out;
    color: #d30303;
  }
  
  .scroll-to-top {
    position: fixed;
    bottom: 120px;
    /* right: 30px; */
    z-index: 1000;
    padding: 10px 15px;
    background-color: #736b02;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 25px;
    transition: .2s all ease-in-out;
    border-radius: 100%;
    box-shadow: 10px 10px 39px -2px rgba(0,0,0,0.25);
    -webkit-box-shadow: 10px 10px 39px -2px rgba(0,0,0,0.25);
    -moz-box-shadow: 10px 10px 39px -2px rgba(0,0,0,0.25);
    width: 50px;
    height: 50px;
  }
  
  .scroll-to-top:hover {
    background-color: #554f02;
    transition: .2s all ease-in-out;
  }
  
  /* RESPONSIVE */
  @media screen and (max-width: 1412px) {
    .results-container, .modal-results-container {
        max-width: 1240px;
        margin-left: 1rem;
    }
  }
  @media screen and (max-width: 800px) {
    .modal-content {
        gap: 1.8rem;
    }
  
    .modal-content .container {
        margin-top: 1.2rem;
    }
  }
  
  @media screen and (max-width: 380px) {
    .modal-content button.close-button {
        margin-left: .5rem;
        font-size: 20px;
    }
  
    .results-container .section-title,
    .modal-results-container .section-title  {
        font-size: 1.4rem;
    }
}

.modal-searchbox {
    display: none;
}