:root {--main: #1f5961; --mainOscuro: #113f46;}

/*****************************************/
.tituloActividades{
    color: var(--mainOscuro);
    margin: auto;
    padding-top: 100px;
    width: 100%;
    max-width: 68%;
   
}


.navActividades{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    margin-top: 5px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 68%;
    height: auto;
    box-sizing: border-box;
    padding: 5px 0;
    border-top: 1px solid gainsboro;
    border-bottom: 1px solid gainsboro;
    
}

.navActividades img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 2px;
    cursor: pointer;
    aspect-ratio: 1/1;
    transition: transform .2s;
    border: #aaaaaa solid 2px;
}

.navActividades img:hover{
    transform: scale(1.1);
    border: orange solid 2px;
}

/******************************************************/

.general{
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 40px;
}

.contenedorNovedades{
    width: 70%;
    margin: auto;
    
}

.item{
    display: grid;
    grid-template-columns: 40% auto;
    align-items: center;
    gap: 20px;
    padding: 20px 10px;
    border-bottom: 1px solid gainsboro;
}

.info{
   
    padding-left: 10px;
}

.foto{
    width: 100%;
    display: block;
}

.actividad{
    color: rgb(87, 87, 87);
    font-weight: bold;
}

.titulo{
    color: var(--mainOscuro);
    font-size: 2.4rem;
    line-height: 2.2rem;
    padding: 10px 0;
}

.fecha{
    color: orange;
    font-weight: bold;
}

.participantes{
    font-size: 1rem;
    margin-bottom: 20px;
    color: #6b6b6b;
}

.participantes a{
    color: orange;
}

.modalidad{
    color: rgb(241, 241, 241);
    padding: 5px 3px;
    margin-bottom: 20px;
    font-size: .8rem;
    width: fit-content;
    border-radius: 5px;
    color: #4b4b4b;

}

.texto{
    font-size: .9rem;
    line-height: 1.3rem;
    padding: 30px 0;
    color: #4b4b4b;
}

.texto a{
    color: orange;
}

/**********BOTONES PASAR******/


.botones{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 60px;
    position: absolute ;
    top: 200px;
}

.button{
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: .8;
    border-radius: 50%;
    transition: transform .1s ease-in;
}

.button:nth-child(1):hover{
    opacity: 1;
    transform: translateX(-5px);
}

.button:nth-child(2):hover{
    opacity: 1;
    transform: translateX(5px);
}



.button img{
    width: 100%;
    opacity: 1;
    padding: 5px;
}


/******************ACTIVIDADES ANTERIORES*****/

.actividades-anteriores{
    border-top: 1px dotted grey;
    padding: 40px 20px;
    text-align: center;
    margin: auto;
}

.actividades-anteriores h2{
    color: rgb(32, 32, 32);
    font-size: 1rem;
}

.botonesAnteriores{
    display: flex;
    justify-content: center;
    align-items: center;
}

.btonAnterior{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    width: 50px;
    height: 50px;
    text-align: center;
    background: var(--main);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.btonAnterior:hover{
    background: orange;
}


.btonAnterior a{
    text-decoration: none;
}


/**************RESPONSIVE*********************/

@media screen and (max-width:800px){

    .tituloActividades{
        max-width: 90%;
    }

    .navActividades{
    max-width: 90%;
    flex-wrap: nowrap;
    justify-content: left;
    left: 0;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    scrollbar-width: none;
    }

    .navActividades img{
        margin: 8px 3px;
    }

    .titulo{
        font-size: 2rem;
        line-height: 2rem;
    }

    .tituloBotones{
        font-size: 1.5rem;
    }

    .contenedorNovedades{
        width: 100%;
        padding: 5px 20px;
    }
    .item{
        grid-template-columns: 1fr;
    }

    .botones{
        margin: 0;
        padding: 0 10px;
    }

    .texto{
        padding: 20px 12px;
    }
};

