*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

h1{ font-size: 3.5em;}
h2{ font-size: 2.7em;}
h3{ font-size: 2em;}
p{ font-size: 1.25em;}
ul{ list-style: none;}
li{ font-size: 1.25em;}

button{
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.3);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: white;
    background-color: blueviolet;
}

button:hover{
    background-color: rgb(101, 33, 165);
}

.container{
    max-width: 1400px;
    margin: auto;
}

.color-acento{ color:rgb(7, 76, 179); }

header{
    background-color: rgb(245,245,245);
    
}

.logo img{
    height: 80px;
    width: 75px;
}

header .logo{
    margin: 0;
    padding: 5px 30px;
    font-weight: bold;
    color: blueviolet;
    font-size: 1.6em;
}

header .container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

header nav{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
}

header a{
    padding: 5px 12px;
    text-decoration: none;
    font-weight: bold;
    color: rgb(3, 4, 80);
}

header a:hover{
    color: rgb(202, 5, 5);
    transform: translateY(-5px);
    transition: 0.5s;    

}

#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 100vh;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url(../imagenes/busblanco.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-position-y: center -350px;
}

#hero h1{
    color: white;
}

#hero button{
    font-size: 1.75em;
}

#somos-proya .container{
    text-align: center;
    padding: 200px 12px;
}

#nuestros-programas{
    background-color: #19478d;
    color: white;
    text-align: center;
}


#nuestros-programas .programas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    }


#nuestros-programas .carta {
    flex: 1 1 300px;
    margin: 10px;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center center;
    border-radius: 15px;
    
}
        
    

#nuestros-programas .container{
    padding: 150px 12px;
}

#nuestros-programas h2{
    margin-top: 0;
    font-size: 3.2em;
}

#nuestros-programas p{
    display: block;
}

#nuestros-programas .carta{
    background-position: center center;
    background-size: cover;
    padding: 50px 0px;
    margin: 30px;
    border-radius: 15px;
}

.carta:first-child{
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url(../imagenes/somos/ciudad1.jpg);

}

.carta:nth-child(2){
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url(../imagenes/somos/paisaje.jpg);
}

.carta:nth-child(3){
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url(../imagenes/somos/variosbus.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        color: white;
}

#caracteristicas .container{
    text-align: center;
    padding: 250px 12px;
    max-width: 100%;
}

#caracteristicas li{
    margin: 16px 0px;
    font-weight: bold;
}

footer {
    font-family: Arial, sans-serif;
    background-color: #19478d;
    color: #fff;
    text-align: left;
    padding: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    margin: 1px 0;
}

.section1, .section2, .section3{
    padding: 0 5%;
    width: 35%;
    gap: 5px;
}


.footer-container h2 {
    color: #fff;
    font-size: 15px;
}

.footer-container p {
    color: #0c0606;
}

.footer-icons a{
    font-size: 35px;
    width: 24px;
    margin-right: 10px;
    color: #d3d3d3;
    text-decoration: none;
}

.footer-icons a:hover{
    color: #02223b;
}

iframe {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
}

@media (max-width:1070px){
    iframe {
        border-radius: 10px;
        width: 100%;
        max-width: 350px;
    }
    
    .image-team img {
        display: none;
    }

}

@media (max-width:800px){

    #hero h1{
        font-size: 2.5em;
    }

    .image-team img {
        display: none;
    }

    #nuestros-programas .carta {
    flex: 1 1 100%; 
    max-width: 100%;
    }
    

    footer {
        background-color: #19478d;
        color: rgb(1, 24, 53);
        padding: 20px;
        text-align: center;
    }


    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 10px;
        gap: 20px;
    }
    
    .footer-container div {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-icons a{
        color: #fff;
        font-size: 24px;
        margin: 5px;
        text-decoration: none;
    }
    
    iframe {
        border-radius: 10px;
        width: 100%;
        max-width: 300px;
    }

}

@media (min-width:800px){
    header{
        position: fixed;
        width: 100%;
    }

    header .container{
        flex-direction: row;
        justify-content: space-between;
    }

    header nav{
        flex-direction: row;
        padding-bottom: 0;
        padding-right: 20px;
    }

    #hero h1{
        font-size: 5em;
    }

    #somos-proya .container{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }

    #somos-proya .texto{
        width: 50%;
        max-width: 600px;
        text-align: initial;
        padding-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #somos-proya h2{
        margin-top: 0px;
    }

    #somos-proya p{
        text-align: justify;
    }

    #somos-proya .img-container{
        background-image: url(../imagenes/manbus.jpg);
        background-size: cover;
        background-position: center center;
        height: 500px;
        width: 400px; 
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
        overflow: hidden;
        border-radius: 10px;
    }

    #nuestros-programas .programas{
        display: flex;
        justify-content: center;
    }

    #nuestros-programas p{
        display: block;
        margin-bottom: 30px;
        text-align: center;
        word-spacing: normal;
    }

    #nuestros-programas h2{
        font-size: 4em;
    }

    #nuestros-programas h3{
        margin-top: 0;
    }

    #nuestros-programas .carta{
        padding: 50px;
        background-size: 100% 150px;
        background-repeat: no-repeat;
        background-position-y: 0;
        background-color: rgba(50, 50, 50, 1);
        box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    }

    .carta:first-child{
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.5),
            rgba(0,0,0,0.5)
        )
        ,url(../imagenes/somos/ciudad1.jpg);

    }


.carta:nth-child(2) {
        background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
        ), url(../imagenes/somos/paisaje.jpg);
        background-size: cover;
        background-position: center;
        color: white;
}


    .carta:nth-child(3){
        background-image: linear-gradient(
            0deg,
            rgba(0,0,0,0.5),
            rgba(0,0,0,0.5)
        )
        ,url(../imagenes/somos/variosbus.jpg);

    }

    #caracteristicas .container{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 20px;
        flex-wrap: wrap;
    }


    #caracteristicas ul{
        margin-left: 100px;
    }

    .image-team {
        flex: 1;
        text-align: center;
      }

    .image-team img {
        height: 500px;
        width: 600px; 
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.8);
      }

    @media (min-width: 1200px) {
        #caracteristicas{
            background-position-x: calc(100vw - 800px);
        }
    }

}
