@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}

h1 {
    font-size: 40px;
}

p {
    font-size: 16px;
    margin: 15 px 0 20px 0;
}

.section-p1 {
    padding: 40px 80px;
}


/********************SECCIÓN HEADER********************/
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 60px;
    background: #f1edea;
    box-shadow: 0 5px 15 px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

#header .nom-container{
    display: flex;
    justify-content:flex-start;
}

#nombre {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#nombre li {
    list-style: none;
}

#nombre li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/*---------------BARRA DE NAVEGACIÓN---------------*/
#navbar {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar li {
    display: flex;
    list-style: none;
    position: relative;
    float: left;
    color: #000;
}

#navbar li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0px 20px;
    display: block;
    transition: color 0.3s ease;
}

#navbar > li > a:hover,
#navbar > li > a.active {
    color: #5f9ea0;
}

#navbar li a.active::after,
#navbar li a.hover::after {
    content: "";
    width: 30%;
    height: 2px;
    background: #5f9ea0;
    position: absolute;
    bottom: 1px;
    left: 20px;
}

#navbar .navbar-vertical {
    position: absolute;
    display: none;
    list-style: none;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.5);
    top: 100%;
    left: 0;
    padding: 0;
    z-index: 10;
}

.navbar-vertical li {
    background-color: #f1edeadc;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#navbar > li:hover .navbar-vertical {
    display: block;
}

#navbar > li:hover > a {
    color:#5f9ea0;
}

.navbar-vertical li a {
    display: block;
    padding: 15px 15px 15px 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-vertical li:hover{
    background-color: #5f9ea0;
}

.navbar-vertical li:hover > a {
    color: #fff !important;
}

.navbar-vertical a:hover { 
    color: #fff !important;
}

/*---------------BOTON HAMBURGUESA Y BOTON CERRAR---------------*/
.btn-bar {
    display: none;
    align-items: center;
    cursor: pointer;
}

.btn-bar i:hover,
.btn-bar i:active {
    color: #5f9ea0;
}

#close {
    display: none;
}

#close i:hover,
#close i:active {
    color: #5f9ea0;
}

/*...............RESPONSIVE DE BARRA DE NAVEGACIÓN...............*/

@media(max-width: 1300px) {
    #header {
        padding: 10px 20px;
    }

    #navbar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: absolute;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: #f1edea;
        padding: 80px 0 0 10px;
        transition: 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    #navbar.active {
        display: block;
        right: 0px;
        max-height: 100vh;
    }

    #navbar li{
        width: 100%;
        padding: 5px;
        text-align: left;
        display: block;
    }

    .navbar-vertical {
        position: relative;
        display: none;
        width: 100%;
    }

    #navbar li:hover .navbar-vertical,
    #navbar li:focus-within .navbar-vertical {
        position: static;
        width: 100%;
    }
    
    .navbar-vertical li {
        padding: 10px 15px;
    }

    .btn-bar {
        display: flex;
    }

    .btn-bar i {
        color: #000;
        font-size: 24px;
    }

    #close {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        color: #000;
        font-size: 24px;
    }
}


/********************SECCIÓN INFO********************/
#Info {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("img/comunidad.png");
    /*flex-direction: column;*/
    /*background-position: center center;*/
    background-position: top 25% right 0;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    /*display: flex;*/
    align-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 80px 0;
}

#Info .info-container{
    padding: 20px;
    align-items: center;
}

#Info h1{
    text-align: center;
    color: #ffffff;
    position: relative;
    align-items: center;
    line-height: 1.3;
    font-size: 40px;
}

#Info p{
    text-align: center;
    padding: 15px 18%;
    color: #ffffff;
    position: relative;
    font-size: 22px;
}

/*...............RESPONSIVE DE INFO...............*/
@media (max-width: 1021px) {

    #Info h1{
        font-size: 30px;
    }

    #Info p {
        font-size: 18px;
    }
}


/********************SECCIÓN NOTES********************/

#notes{  
    justify-content: center;
    align-items: center;
    padding: 40px 10px 15px 10px;
}

#notes h2{
    text-align: center;
}

.collection{
    height: 550px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.collection .content{
    height: 28rem;
    width: 25rem;
    background-color: #f1edea;
    border: .2rem solid rgba(255,255,255,.1);
    border-radius: .7rem;
    border-bottom: .4rem solid #5f9ea0;
    border-top: .4rem solid #5f9ea0;
    overflow: hidden;
}

.content img {
    width: 100%;
    border-bottom-left-radius: .6rem;
    border-bottom-right-radius: .6rem;
}

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

.text-content h3{
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    padding: 2% 6%;
}

/*---------------BOTÓN 'LEER MÁS'---------------*/
.btn {
    display: inline-block;
    padding: 8px 35px;
    border: 1px solid #fff;
    background-color: #fff;
    border-radius: 25px;
    color:#000;
    text-decoration: none;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.5s ease;
}

.btn:hover{
    background-color: #5f9ea0;
    color: #ffffff;
}

.btn:active{
    background-color: #5f9ea0;
    color: #ffffff;
    box-shadow: #5f9ea0 0px 0px 0px 0px;
    transform: translate(10px);
    transition: 100ms;
}

/********************SECCIÓN PERIODICOS********************/

#periodicos {
    background: #fff;
    min-height: 75%;
    padding: 10px 10px 35px 10px;
}

#periodicos h2 {
    text-align: center;
}

#periodicos .periodico-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 25vh;
    background: #fff;
    /*background: #f3f1f5;*/
}

#periodicos .card {
    margin: 20px;
    width: 250px;
    height: 250px;
    border-radius: 5px;
    background: var(--i);
    background-size: cover;
    box-shadow: 3px 5px 5px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

#periodicos .content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: 0.5s;
}

#periodicos .content h3, a{
    color: rgb(255, 255, 255);
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
}

#periodicos .card:hover .content {
    opacity: 1;
}

/*...............RESPONSIVE DE PERIODICOS...............*/
@media (max-width: 880px){
    #periodicos .periodico-container {
        min-height: 25vh;
    }
    #periodicos .card {
        width: 200px;
        height: 200px;
    }
}

@media (max-width:730px) {
    #periodicos .periodico-container {
        flex-direction: column;
    }

    #periodicos .card {
        width: 250px;
        height: 250px;
    }
}

/********************FOOTER********************/

.section-p1 {
    padding: 40px 80px;
}

footer {
    /*position: relative;*/
    background-color: #f1edea;
}

footer h4 {
    font-size: 14px;
    margin: 3%;
    text-align: left;
}

footer p {
    font-size: 13px;
    margin: 4%;
    position: relative;
    text-align: left; 
    line-height: 1.5;
}

#datos {
    position: relative;
}

#datos .dat-container{
    max-width: 100%;
    display: flex;
    padding: 10px;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

#datos .dat{
    width: 100%;
    text-align: center;
}

#datos .dat .logo{
    position: relative;
}

#datos .dat iframe {
    max-width: 100%;
    height: auto;
}

footer .follow h4{
    text-align: center;
}


footer .follow i {
    color: #465b52;
    padding: 5%;
    cursor: pointer;
    position: relative;
    text-align: center;
    font-size: 200%;
}

footer .follow i:hover,
footer a:hover {
    color: #5f9ea0;
}

footer .copyright {
    width: 100%;
    text-align: center;
    padding: 1%;
}

footer .copyright span{
    font-size: 13px;
}

/*...............RESPONSIVE DE FOOTER...............*/
@media (max-width: 730px){

    .section-p1 {
        padding: 30px 20px;
    }

    footer {
        position: relative;
    }

    footer h4 {
        text-align: center;
    }

    footer p {
        text-align: center; 
    }

    #datos .dat-container{
        display: block;
        flex-direction: column;
    }

    #datos .dat{
        width: 100%;
        padding: 20px;
    }
}


/*######################################## CSS PARA SOL.HTML, UNIVERSAL.HTML Y JORNADA.HTML ########################################*/

/********************SECCIÓN MAIN********************/
.main {
    height: 85vh;
    width: 100%;
    overflow: hidden;
}

.wrapper,
.slide {
    width: 100%;
    height: 100%;
}

.slide {
    overflow: hidden;
}

.slide::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.slide .image-new{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slide .image-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 100;
}

.image-txt span.text {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
}

.image-txt h2 {
    font-size: 45px;
    font-weight: 600;
    color: #fff;
}

a.btn-2 {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    color: #000;
    background: #fff;
    text-decoration: none;
    margin-top: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

a.btn-2:hover {
    color: #fff;
    background-color: #5f9ea0;
}

/*---------------BOTÓN DE SIGUIENTE Y ANTERIOR---------------*/
.nav-btn {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.swiper-button-next {
    right: 50px;
}

.swiper-button-prev {
    left: 50px;
}

.nav-btn::before,
.nav-btn::after {
    font-size: 25px;
    color: #fff;
}

.swiper-pagination-bullet {
    opacity: 1;
    height: 12px;
    width: 12px;
    background-color: #fff;
    /*visibility: hidden;*/
}

.swiper-pagination-bullet-active {
    background-color: #5f9ea0;
}

/*...............RESPONSIVE DE MAIN...............*/
@media screen and (max-width: 768px) {
    .nav-btn {
        visibility: hidden;
    }
}


/********************SECCIÓN CONTAINER********************/
#container {
    display:flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 120rem;
    margin: 0 auto;
    align-items: center;
}

#container h2 {
    text-align: center;
    padding: 2%;
}

#container .container-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 85%;
}

#container .card-new {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#container .card-new .container-img img{
    width: 100%;
    max-height: 35vh;
    object-fit: cover;
}

#container .content-new a h3 {
    font-size: 20px;
    margin-bottom: 0.2rem;
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

#container .content-new a h3:hover {
    color: #5f9ea0;
    cursor: pointer;
}

#container .content-new p {
    margin-top: 1rem;
    font-size: 16px;
    color: #777;
}

#container .content-new span {
    color: #777;
    font-size: 13px;
}

#container .btn-3 {
    padding: 6px 30px;
    background-color: #5f9ea0;
    color: #fff;
    font-size: 15px;
    border-radius: 32px;
    margin: 30px 0;
    display: inline-block;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease 0s;
    cursor: pointer;
}

#container .btn-3:hover {
    background-color: rgb(95, 158, 160);
    box-shadow: 0px 15px 20px rgba(95, 158, 160, 0.4);
    color: #fff;
    transform: translateY(-7px);
}

#container .btn-4 {
    padding: 10px 60px;
    background-color: #5f9ea0;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    border-radius: 5px;
    margin: 20px 0 60px;
    display: inline-block;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease 0s;
    cursor: pointer;
}

#container .btn-4:hover {
    background-color: rgb(95, 158, 160);
    box-shadow: 0px 15px 20px rgba(95, 158, 160, 0.4);
    color: #fff;
    transform: translateY(-7px);
}



/*...............RESPONSIVE DE PERIODICOS...............*/
@media(max-width: 870px){

    #container {
        padding: 10px;
    }

    #container .container-news {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

}


/*---------------BOTÓN PARA VER MÁS NOTICIAS---------------*/

.hide {
    display: none;
}

.show{
    display: block;
}