/* --- 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;
}

.paragraph {
    text-align: justify;
    font-size: 1rem;
}

.p1 {
    margin-bottom: 1rem;
}

.p2 {
    margin-top: 1rem;
}

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

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

.tying-notes_title {
    font-size: 3rem;
    margin: 2rem 0;
    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: center;
    align-items: center;
    flex-direction: column;
}

.tying-notes {
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.tying-notes .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tyed-note {
    width: 100%;
    height: 100%;
    max-width: 380px;
    min-width: unset;
    min-height: 500px;
    max-height: 500px;
    border-radius: 15px;
    background: #F5F5F5;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.tying-note__details .container__title-author,
.tying-note__details .container-note__description {
    transition: opacity 0.2s ease-in-out; /* Transición para el contenido */
}

.tyed-note:hover .tying-note__details .container__title-author,
.tyed-note:hover .tying-note__details .container-note__description {
    opacity: 1;
}

/* Animacion del note */
.tyed-note:hover .tying-note__details {
    margin-top: 10px;
    height: 100%; /* Altura completa al hacer hover */
    top: 0; /* Posición al hacer hover */
}

.tyed-note .tying-note__details .container__title-author {
    transition: .2s all ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 30%;
}

.img__note {
    transition: .2s all ease-out;
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 250px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    object-fit: cover;
    object-position: top;
}

.tyed-note:hover .img__note {
    opacity: 0;
    transition: .2s all ease-in;
}

.container-note__description {
    min-height: 200px;
    max-height: 60%;
    max-width: 323px;
    height: 60%;
    width: 100%;
    overflow: hidden;

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

.tying-note__description {
    text-align: justify;
    opacity: 0;
    transition: .2s all ease;
}

.tyed-note:hover .tying-note__description {
    max-width: 100%;
    opacity: 1;
    transition: .2s all ease;
}

.tying-note__details {
    height: 50%; /* Altura visible por defecto */
    position: absolute;
    top: 50%; /* Posición visible por defecto */
    left: 0;
    right: 0;
    transition: height 0.2s ease-in-out, top 0.2s ease-in-out; /* Transición para ambos cambios */
    background: rgba(245, 245, 245, 0.8); /* Fondo con algo de transparencia para el contenido */
    padding: 10px;
}

.tyed-note__title {
    font-family: 'Nunito', 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.tyed-note__author {
    font-family: 'Nunito', 'Roboto', sans-serif;
    font-size: .8rem;
    font-weight: 700;
}

.titles .tying-notes_extended-title {
    text-align: center;
    margin: 0 1rem;
}

/* ESTILOS PAGINACION */
.paginacion .container-paginacion .list .number a.active__page {
    color: #ffffff;
    background-color: #504a00;
}

.paginacion {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

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

.paginacion .container-paginacion ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
}

.paginacion .container-paginacion .list li {
    display: flex;
    flex-direction: row;
    padding: 0 .4rem;
}

.paginacion .container-paginacion ul li a {
    padding: .4rem .8rem;
    border: 1px solid #736B02;
    color: #736B02;
    transition: .2s all ease;
}

.paginacion .container-paginacion ul li a.active__page {
    background-color: #575101;
    color: #fff;
}

.paginacion .container-paginacion ul li a:hover {
    padding: .4rem .8rem;
    background-color: #504a00;
    color: #fff;
    transition: .2s all ease;
}

.next, .prev {
    background-color: #575101;
    padding: .4rem .8rem;
}

.arrow {
    color: #fff;
}

#siguiente {
    border-color: #00000000;
    transition: .2s all ease;
    text-decoration: underline;
}

#siguiente:hover {
    color: #504a00;
    transition: .2s all ease;
    background-color: #00000000;
}

#anterior {
    border-color: #00000000;
    transition: .2s all ease;
    text-decoration: underline;
}

#anterior:hover {
    color: #504a00;
    transition: .2s all ease;
    background-color: #00000000;
}

/* ESTILOS DE LA NOTA DETALLADA */
.titles {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.detailed-tying-note {
    margin-bottom: 6rem;
}

.detailed-tying-note .container {
    padding: 2rem;
    max-width: 100%;
    min-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: justify;
}

.detailed-tying-note .container h2 {
    margin-bottom: 2rem;
}

.detailed-tying-note .container p {
    line-height: 30px;
    font-family: 'Nunito';
    font-weight: 400;
    width: 100%;
    display: flex;
}

/* MEDIAQUERIES */
@media screen and (max-width: 1550px) {
    .wrapper .container-wrapper main .tying-notes .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tyed-note {
        height: 95%;
    }

    .tyed-note .tying-note__details .container-note__description {
        max-width: 100%;
        min-height: 150px;
        max-height: 60%;
    }

    .wrapper .container-wrapper .paginacion .container-paginacion {
        display: flex;
    }
}


@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%;
    }
}

@media screen and (max-width: 900px) {
    /* MEDIAQUERIES PARA EL ANCHO DE LA ANIMAICON */
    .tyed-note .tying-note__details .tyed-note__title {
        font-size: 1.4rem;
    }

    .tyed-note .tying-note__details .tying-note__description {
        font-size: .8rem;
    }
}

@media screen and (max-width: 800px) {
    .wrapper .container-wrapper main .tying-notes .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* MEDIAQUERIES PARA EL ANCHO DE LA ANIMAICON */
    .tyed-note .tying-note__details .tying-note__title {
        font-size: 1.6rem;
    }

    .tyed-note .tying-note__details .tying-note__description {
        font-size: 1rem;
    }
}

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

    .detailed-tying-note .container {
        padding-top: 0;
    }
}

@media screen and (max-width: 650px) {
    .wrapper .tying-notes_title {
        font-size: 2.5rem;
    }

    .wrapper .container-wrapper main .tying-notes .container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .tyed-note .tying-note__details .tying-note__description {
        width: 100%;
    }
    .titles {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 550px) {
    .titles .tying-notes_extended-title {
        margin: 0 1rem;
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }
}

/* 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;
}