* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f8f8f8;
    min-height: 100vh;
}
img{
    max-width:100%;
    height:auto;
    }
/* COMIENZA NAV */
/* NAVBAR BASE */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.6);
}

/* LOGO */
.navbar-left img {
    width: 45px;
    transition: 0.4s;
}

.navbar-left img:hover {
    transform: scale(1.1) rotate(10deg);
}

/* LINKS */
.navbar-botones {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar-botones li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px;
}

/* EFECTO SUBRAYADO */
.navbar-botones li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: red;
    left: 0;
    bottom: 0;
    transition: 0.3s;
}

.navbar-botones li a:hover::after {
    width: 100%;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .navbar-right {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: 0.4s ease;
    }

    .navbar-right.active {
        max-height: 300px;
    }

    .navbar-botones {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .navbar-botones li {
        margin: 10px 0;
    }
}
/* TERMINA NAV */
/* EMPIEZA CARDS */
.container-modalidades {
    padding: 12vh;
}

.container-modalidades h2 {
    margin-top: 50px;
}

.noticias-title-content {
    margin-bottom: 3vh;
    font-size: 18px;
    font-weight: 700;
}
.noticias-card-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.noticias-card img {
    width: 300px;
    height: 300px;
    object-fit: cover; /*para que la imagen no se deforme y ocupe todo el espacio, hay que sacarlo si se va a poner una imagen que no es cuadrada */
}

.noticias-card{
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    width: 300px;
    
}

.noticias-card{
    transition: 0.5s;
}

.noticias-card h3{
    text-align: center;
}

.noticias-card:hover{
    transform: scale(1.05);
}

.noticias-card p {
    padding: 15px;
    font-size: 16px;
    color: #333;
    text-align: justify;
}

.descripcion {
    text-align: justify;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    opacity: 0;
    transition: all 0.4s ease;
}
/* cuando se abre */
.descripcion.activa {
    overflow: scroll auto;
    max-height: 250px; 
    padding: 15px;
    opacity: 1;
}
/* TERMINA CARDS*/
/* BOTÓN */
.btn-novedades {
    padding: 15px;
    text-align: center;
}

.btn-novedades button{
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
    background-color: #a33838;
    transition: 0.5s;
}

.btn-novedades button:hover{
    transform: scale(1.05);
    background-color: rgb(255, 255, 255);
}
.btn-novedades button a {
    text-decoration: none;
    color: white;
    padding: 15px;
}
.btn-novedades button a:hover {
    color: #a33838;
    padding: 15px;
}
/* TERMINA BOTÓN */
/* FOOTER */

.footer{
    background: #1f1f1f;
    color: white;
    margin-top: 60px;
}

.footer-contenido{
    max-width: 1200px;
    margin: auto;
    display :grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); /* Genera columnas automáticas que se adaptan al ancho de la pantalla */
    gap: 40px;
    padding: 40px 20px;
}

.footer-col h3{
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col p{
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col ul{
    list-style: none;
    padding: 0;
}

.footer-col ul li{
    margin-bottom: 8px;
}
 
.footer-col ul li a{
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.footer-col ul li a:hover{
    color: #e10600;
}

.redes a{
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 6px;
}

.redes a:hover{
    color:#e10600;
}

.footer-bottom{
    text-align: center;
    padding: 15px;
    background: #111;
    font-size: 14px;
}
/* RESPONSIVE */
@media (max-width: 600px){

.card-modalidades{
    flex-direction: column;
    align-items: center;
}

.pqe-container{
    height: auto;
}


@media (max-width:700px){

.noticias-card{
    width:90%;
}
/* una noticia por fila */

.noticias-card img{
    width:100%;
    height:auto;
}
/* imagen adaptable */
}
}
.btn-vermas {
    display: block;          /*  necesario para centrar */
    margin: 10px auto;       /*  centra horizontalmente */
    padding: 8px 16px;
    border: none;
    background: #a33838;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
}

.btn-vermas:hover {
    background: #7a2424;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
}
