body{
    background-color: #fff;
}

.portadaTitulo{
    background-color: #892735;
    color: #fff;
}

.portadaTitulo h1{
    text-align: center;
    padding: 60px 0;
    font-size: 60px;
}

.novedades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 30px 0;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card_novedad {
    display: grid;
    grid-template-rows: 74% 20% 5%;
    width: 300px; 
    height: 600px;
    margin: 0 auto; 
}

.admin {
    grid-template-rows: 10% 65% 20% 5%;
}

.acciones{
    height: 100%;
    display: block;
    margin: 0 auto;
}

.acciones img{
    width: 40px;
    transition: 0.3s ease all;
    cursor: pointer;
}

.acciones img:hover{
    transform: scale(1.2);
}

.container_img {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    place-content: center;
    border-radius: 25px;
}

.container_img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contenido_novedad {
    display: flex;
    flex-direction: column;
    align-self: top;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.contenido_novedad .nombre_novedad {
    font-weight: 700;
    font-size: 20px;
    color: #892735;
}

.contenido_novedad .texto_novedad {
    font-size: 14px;
}

.btnVerMas {
    display: flex;
    justify-content: center;
    align-self: center;
}

.btnVerMas button {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    background-color: #892735;
    color: #fff;
    font-weight: 500;
    border: 2px solid #892735;
    cursor: pointer;
}

.btnVerMas button:hover {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    color: #892735;
    font-weight: 600;
    border: 2px solid #892735;
    cursor: pointer;
}

.btn2{
    margin: 30px auto;
}

@media(max-width:1300px){
    .novedades {
        gap: 70px;
        width: 100%;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .card_novedad{
        grid-template-rows: 70% 20% 10%;
        width: 300px; 
        height: 350px;
    }
    
    .admin {
        grid-template-rows: 10% 60% 25% 5%;
    }

    .contenido_novedad .nombre_novedad {
        font-size: 15px;
    }
    
    .contenido_novedad .texto_novedad {
        font-size: 13px;
    }
    
    .btnVerMas button {
        font-size: 13px;
    }

    .portadaTitulo h1{
        font-size: 50px;
    }
}

@media(max-width:1100px){
    .novedades {
        max-width: 700px;
        gap: 30px;
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:760px){
    section{
        margin-top: 207px;
    }

    .novedades {
        max-width: 600px;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
    }

    .novedades {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .card_novedad{
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: 400px;
    }

    .container_img{
        height: 200px;
    }

    .acciones{
        height: 40px;
    }

    .texto_novedad{
        margin-top: 0;
    }

    .portadaTitulo h1{
        font-size: 40px;
    }
}
