/* Estilos del contenido de las tarjetas */
#noticias {
    padding: 50px 160px;
}

#noticias h3 {
    text-align: center;
    color: var(--blue);
    font-size: 2.7vw;
}

/* CARDS */
.card-news {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 50px;
}

.cardP {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    margin: 50px 0;
    text-align: center;
    height: 380px;
    width: 100%;
    position: relative; 
    border-radius: 25px;
}

.cardP img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.cardP h2 {
    font-size: 1rem;
    color: #333;
    margin: 15px auto 10px auto;
}

.cardP p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 30px;
}

.cardP a {
    text-decoration: none;
    display: block;
    position: absolute;
    text-align: center;
    color: var(--blue);
    font-weight: 500;
    bottom: 20px;
    width: 100%;
}

/* BTN-NEWS */
#verMas,
#verMenos {
    width: 155px;
    padding: 14px 9px;
    background-color: #333232;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    margin: 0 10px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#verMas:hover,
#verMenos:hover {
    background-color: var(--blue);
    border-color: var(--blue);
    transition: 0.4s;
}

#masTarjetas {
    margin-bottom: 50px;
}

.btn-news {
    display: flex;
    justify-content: center;
}

.btn-news a {
    text-decoration: none;
}

/* Estilos del contenido de las tarjetas */
#noticias {
    padding: 50px 160px;
}

#noticias h3 {
    text-align: center;
    color: var(--blue);
    font-size: 2.7vw;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #E4E5E9;
    margin: auto;
    margin-top: calc(50vh - 450px);
    border: 1px solid #888;
    width: 1400px;
    height: 900px;
    display: flex;
}

.close {
    color: #000;
    display: flex;
    position: absolute;
    right: 20px;
    font-size: 52px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999999;
}

.close:hover,
.close:focus {
    color: var(--green);
    text-decoration: none;
}

.titleModal,
.descriptionModal{
    display: none;
}

/* Estilos de los elementos en el modal */
    .leftModal {
        width: 55%;
    }
        .leftModal img{
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: relative;
        }

    .rightModal {
        width: 45%; 
    }

    #modalContent{
        margin: 0 20px;
    }

    .titleContainer h2{
        font-size: 1.2rem;
    }

    .descriptionContainer p{
        font-size: 0.8rem;
        padding-top: 30px;
    }

/* MODALHEADER*/
.modalHeader{
    padding: 20px 20px 0 20px;
}
.modalHeader img {
    width: 250px;
}

.line {
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

/*=============== RESPONSIVE 100px - 425px ===============*/
@media (min-width: 100px) and (max-width: 425px){
    #noticias{
        padding: 50px 20px;
    }
        #noticias h3{
            font-size: 9vw;
        }

    .card-news{
        display: grid;
        grid-template-columns: repeat(1,1fr);
    }
    
    /* MODAL */
    .modal-content {
        display: flex;
        position: relative;
        flex-direction: column;
        width: 320px;
        height: auto;
        padding: 20px;
        position: absolute;
        top: 50%; 
        left: 50%;
        transform: translate(-50%, -50%);
    }  

    .leftModal {
        width: 100%;
        height: 100%;
    }
        .leftModal img{
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: relative;
        }

    .rightModal {
        width: 100%; 
    }

    #modalContent{
        padding: 0 20px;
    }

    .titleContainer h2{
        font-size: 3.5vw;
    }

    .descriptionContainer p{
        font-size: 3vw;
        padding-top: 30px;
    }

    /* MODALHEADER*/
    .modalHeader img {
        width: 200px;
    }

    /* Angel */

    .cardP {
        margin: 25px 0;
    }

    .cardP h2 {
        font-size: 1.15rem;
        line-height: 1.1;
    }
}

/*=============== RESPONSIVE 426px - 768px ===============*/
@media (min-width: 426px) and (max-width: 768px){
    #noticias{
        padding: 50px 20px;
    }
        #noticias h3{
            font-size: 6vw;
        }

    .card-news{
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }

    /* MODAL */
    .modal-content {
        display: flex;
        position: relative;
        flex-direction: column;
        width: auto;
        height: auto;
        padding: 20px;
    }

    .leftModal {
        width: 100%;
        height: 100%;
    }
        .leftModal img{
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: relative;
        }

    .rightModal {
        width: 100%; 
    }

    #modalContent{
        padding: 0 20px;
    }

    .titleContainer h2{
        font-size: 3vw;
    }

    .descriptionContainer p{
        font-size: 2.5vw;
        padding-top: 30px;
    }

    /* MODALHEADER*/
    .modalHeader img {
        width: 200px;
    }

    .cardP {
        margin: 25px 0;
    }

    .cardP h2 {
        font-size: 1.15rem;
        line-height: 1.1;
    }
}


/*=============== RESPONSIVE 769px - 1280px ===============*/
@media (min-width: 769px) and (max-width: 1280px){
    #noticias{
        padding: 50px 20px;
    }
        #noticias h3{
            font-size: 6vw;
        }

    .card-news{
        display: grid;
        grid-template-columns: repeat(3,1fr);
    }

    /* MODAL */
    .modal-content {
        width: 900px;
        height: 780px;
        position: absolute;
        top: 50%; 
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .leftModal {
        width: 50%;
        height: 100%;
        float: left;
    }   
        .leftModal img {
            width: 100%;
            height: 100%;
        }

    .rightModal {
        width: 50%;
        height: 100%;
    }

    #modalContent{
        padding: 0 20px;
    }

    .titleContainer h2{
        font-size: 2vw;
    }

    .descriptionContainer p{
        font-size: 1.2vw;
        padding-top: 30px;
    }

    /* MODALHEADER*/
    .modalHeader img {
        width: 200px;
    }
}

@media (min-width: 100px) and (max-width: 320px){
    .modal-content{
        margin-top: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 321px) and (max-width: 375px){
    .modal-content{
        margin-top: 200px;
    }
}

@media (min-width: 376px) and (max-width: 425px){
    .modal-content{
        margin-top: 250px;
    }
}

@media (min-width: 426px) and (max-width: 768px){
    .modal-content{
        margin-top: 100px;
    }
}

@media (min-width: 769px) and (max-width: 1024px){
    .modal-content{
        margin-top: 20px;
    }
}

@media (min-width: 1025px) and (max-width: 1280px){
    .modal-content{
        margin-top: 20px;
        width: 1000px;
        height: 900px;
    }
}

