*{
    box-sizing: border-box;
   
}

html{
   scroll-behavior: smooth; 
}
body{
    margin: 0;
    font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h1{ font-size: 3.5em;}
h2{ font-size: 2.0em;}
h3{ font-size: 1.5em;}

button{
    font-size: 1em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0, 0 , 0.5);
    box-shadow: 2px 2px 10px rgba(0,0, 0 , 0.5);
    color:white;
    background-color: #D91E1E;
}

button:hover{
    background-color: rgb(170, 53, 53);
}

.container{
    max-width: 1400px;
    margin: auto;
}

header{
    background-color: rgb(6, 10, 74);
    
}


.logo{
    height: 15vh ;

}




#quienesSomos .container{
    text-align: center;
    padding: 80px 12px;
    text-align: center;

}

#quienesSomos h1{
text-align: center;
font-size: 2.5em;
font-weight: bold;
color: #D91E1E;
padding-bottom: 5px;
}


.boton{
    font-size: 1em;
    font-weight: bold;
    padding: 5px 5px;
    border-radius: 10px;
    border: 1px solid rgba(0,0, 0 , 0.5);
    box-shadow: 2px 2px 5px rgba(0,0, 0 , 0.5);
    color:white;
    background-color: #D91E1E;
}

#servicios{
    background-color: #e9ecef;
    color: white;
    padding: 80px 12px 60px 12px;
}

#servicios .container{
    text-align: center;
}

#servicios h2{
    margin-bottom: 0;
    padding-bottom: 50px;
    text-align: center;
    font-size: 3.2em;
    color: #D91E1E;
}

#servicios p{
    text-align: center;
}

.card{
    margin: auto;
    margin-bottom: 10px;
    align-items: center;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-img-top{
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border: 10px solid white;
    box-sizing: border-box;
}

.card-body{
    padding: 20px;
    text-align: center;
}

.card-title{
    color: #D91E1E;
    font-weight: bold;
}

.card-text{
    color: black;
    padding: 5px;
}

.card-link{
    color: #D91E1E;
    font-weight: bold;
    
   
}







footer{
    width: 100%;
    background: linear-gradient(135deg, rgb(6, 10, 74) 0%, rgb(15, 25, 100) 100%);
    padding: 50px 0 25px;
}

footer .container{
    width: 95%;
    max-width: 1000px;
    margin: auto;
    padding: 0 15px;
}

footer .container .row{
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
}

footer .container .row > div{
    flex: 1;
    min-width: 280px;
}

footer .container h4{
    color: white;
    margin-bottom: 25px;
    font-size: 1.3em;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

footer .container h4::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #D91E1E;
    border-radius: 2px;
}

footer li{
    list-style-type: none;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover{
    color: #D91E1E;
}

footer .contact-info{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

footer .contact-item{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer .contact-item:hover{
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

footer .contact-item i{
    font-size: 22px;
    color: #D91E1E;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 30, 30, 0.1);
    border-radius: 50%;
}

footer .contact-item span{
    color: white;
    font-size: 0.95em;
}

footer .social-links{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

footer .social-links a{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 22px;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

footer .social-links a:hover{
    background: #D91E1E;
    border-color: #D91E1E;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(217, 30, 30, 0.3);
}

footer .derechos{
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .derechos small{
    display: block;
    margin-bottom: 5px;
}

@media (min-width:720px){


    #quienesSomos .container{
        display: flex;
        padding: 130px 12px;
        justify-content: space-evenly;
    }

    #quienesSomos .institucional{
        width:50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        
    }

    #quienesSomos h1{
        margin-top: 0px;
    }

    #quienesSomos p{
        text-align: justify;
    }

    #quienesSomos .img{
        background-image:url("../img/instituto.jpg");
        background-size: cover;
        background-position: center center;
        height: 500px;
        width: 400px;
    }

    #quienesSomos .img2{
        background-image:url("../img/instituto-2.jpg");
        background-size: cover;
        background-position: center center;
        height: 500px;
        width: 400px;
    }

    #servicios .container{
        display: flex;
        justify-content: center;
        gap: 0;
        flex-wrap: wrap;
    }

    .card{
        margin: 0 30px 30px 30px;
    }

    #servicios p{
        margin-bottom: 30px;
    }

    #servicios h3{
        margin-top: 0px;
    }

    footer .container h4{
        text-align: left;
    }

    footer .container h4::after{
        left: 0;
        transform: none;
    }

    footer .social-links{
        justify-content: flex-start;
    }

    footer .container .row{
        gap: 40px;
    }

    .boton{
        font-size: 1em;
        font-weight: bold;
        padding: 5px 5px;
        border-radius: 10px;
        border: 1px solid rgba(0,0, 0 , 0.5);
        box-shadow: 2px 2px 5px rgba(0,0, 0 , 0.5);
        color:white;
        background-color: #D91E1E;
    }
    
    button:hover{
        background-color: rgb(170, 53, 53);
    }

}

.navbar-nav .nav-link{
    color: white !important;
    font-weight: 500;
}
