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

body {
    background-color: #dbdbdb;
}
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 */

/* CONTENEDOR DEL TITULO */
.prim-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    margin-top: 40px;  /* separa del nav */
    margin-bottom: 20px;

    color: #fff;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px #000000;
}

/* TEXTO */

.prim-title{
    margin-top: 125px;
    flex-direction: column;
}

.prim-title h1 {
    font-size: clamp(24px, 6vw, 70px);
}

/* LOGO */
.prim-logo img {
    height: 80px;
    width: auto;
    transition: 1s;
}

.prim-logo img:hover {
    transform: scale(1.1) rotate(360deg);
}
/* AJUSTES DEL MAIN */
.main-content {
    width: 100%;
    margin-top: 8rem;
}/* TERMINA AJUSTES DEL MAIN */

/* COMIENZA: MODALIDADES*/
.main-modalidades {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.card-modalidades {
    display: flex;
    flex-wrap: wrap;
    margin: 3vh auto;
    gap: 40px;
    justify-content: center;
}

.card-modalidad {
    background: #ffffff;
    border-radius: 5%;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    transition: 0.5s;
}

.card-modalidad img {
    width: 100%;
    height: auto;
    max-height: 400px;
    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 */
    border-radius: 5% 5% 0 0;
}

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

.card-modalidad:hover {
    transform: scale(1.05);
}/* TERMINA: MODALIDADES*/

/* COMIENZA: POR QUE ELEGIRNOS */
.pqe-container {
    padding: 5vh 0;
    width: 100%;
}

.pqe-container h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.pqe-card-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 7.7vh;
    background-color: #b70100;
    padding: 20px 0;
    width: 100%;
}

.pqe-card {
    color: #ffff;
    justify-content: center;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 200px;
    max-width: 220px;
    min-width: 0;
    transition: 0.3s;
}

.pqe-card img {
    width: 110px;
    height: 110px;
    filter: brightness(0) invert(1); /*para poner la imagen blanca*/
}

.pqe-card h3 {
    margin-top: 0px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.pqe-card:not(:last-child)::after /* para poner la linea entre las cards, el :not(:last-child) es para que no se ponga en la ultima card*/ {
    content: ""; /*necesario para que el after funcione, se pone aunque este vacio*/
    position: absolute;
    right: 0;
    transform: translateX(50%);
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: #ffff;
}
/* HOVER */
.pqe-card:hover {
    transform: translateY(-5px);
}

/* TERMINA: POR QUE ELEGIRNOS */

/* FOOTER */

.footer{
    background: #1f1f1f;
    color: white;
}

.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: 900px) {
    .pqe-card-content {
        justify-content: space-around;
    }
}

@media (max-width: 600px) {
    .pqe-card {
        flex: 1 1 45%; /* 2 por fila */
    }

}
@media (max-width: 400px) {
    .pqe-card {
        flex: 1 1 100%; /* 1 por fila */
    }
}
@media (max-width: 900px) {
    .pqe-card::after {
        display: none; /* evita bug visual */
    }
}