/* ==========================================
   MAIN
========================================== */

.revistas-main{
    background:#f4f5f7;
    min-height:100vh;
    padding-bottom:80px;
}

/* ==========================================
   HERO
========================================== */

.hero-revistas{
    text-align:center;
    padding:60px 20px;
}

.hero-revistas h1{
    font-size:3rem;
    color:#17335f;
    margin-bottom:15px;
    font-weight:700;
}

.hero-revistas p{
    font-size:1.1rem;
    color:#4d6380;
    max-width:1063px;
    margin:auto;
    line-height:1.7;
}

/* ==========================================
   CONTENEDOR
========================================== */

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* ==========================================
   GRID
========================================== */

.revistas-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
}

/* ==========================================
   CARD
========================================== */

.revista-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    transition:all .35s ease;
}

.revista-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 40px rgba(0,0,0,.15);
}

/* ==========================================
   IMAGEN PORTADA
========================================== */

.revista-card img{
    width:100%;
    height:420px;
    object-fit:cover;
    display:block;
}

/* ==========================================
   CONTENIDO
========================================== */

.card-content{
    padding:25px;
    text-align:center;
}

.card-content h3{
    color:#17335f;
    font-size:1.4rem;
    line-height:1.4;
    margin-bottom:20px;
    font-weight:700;
    min-height:60px;
}

/* ==========================================
   BOTON
========================================== */

.btn-revista{
    display:inline-block;
    padding:14px 30px;
    border-radius:50px;
    text-decoration:none;
    font-size:1rem;
    font-weight:600;
    color:#fff;

    background:linear-gradient(
        90deg,
        #49b3e6,
        #0e5c8b
    );

    transition:.3s ease;
}

.btn-revista:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(73,179,230,.4);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

    .revistas-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .hero-revistas h1{
        font-size:2.2rem;
    }

    .revistas-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .revista-card img{
        height:380px;
    }

}

@media(max-width:480px){

    .hero-revistas{
        padding:40px 15px;
    }

    .hero-revistas h1{
        font-size:2rem;
    }

    .card-content{
        padding:20px;
    }

    .revista-card img{
        height:340px;
    }

}