*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

h1{ font-size: 3.2em;}
h2{ font-size: 2.4em;}
h3{ font-size: 1.65em;}
p{ font-size: 1.05em;}
ul{ list-style: none;}
li{ font-size: 1.05em;}

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: rgb(209, 40, 40);
}

button:hover{
    background-color: rgb(15, 15, 15);
}

.container{
    max-width: 1400px;
    margin: auto;
}

.color-acento{ color:rgb(209, 40, 40); }

header{
    background-color: rgb(245,245,245);    
}

header .logo{
    margin: 0;
    padding: 25px 30px;
    font-weight: bold;
    color: rgb(209, 40, 40);
    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;
    font-weight: bold;
    color: black;
}

header a:hover{
    color: rgb(209, 40, 40);
}


.menu ul {
    list-style-type: none;
    padding: 0;
}

.menu li {
    display: inline-block;
    margin-right: 20px;
    position: relative;
}

.menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
}

.menu li:hover ul {
    display: block;
}

.menu li a {
    color: black;
}

.menu li a:hover {
    color: #21aa38;
}

.menu li a:visited {
    color: red;
}

.menu a {
    color: black;
}

.menu a:hover {
    color: #21aa38;
}

.menu a:visited {
    color: red;
}

.menu ul ul li {
    display: block;
    background-color: #f0f0f0;
    margin: 0;
}


#hero{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 90vh;
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/RPA_03.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#hero h1{
    color: white;
}

#hero button{
    font-size: 1.75em;
}

#panel {
    width: 600px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border: 1px solid black;
}

#panel p{
    font-size: 1.75em;
    color: white;
    text-align: left;
}

#fondo {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, #f06, #09f, #0c9, #f90);
    animation: moverFondo 10s linear infinite;
}

#fondo p{
    font-size: 1.75em;
    color: white;
}

@keyframes moverFondo {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-30%);
    }
}

#somos-redbot .container{
    text-align: center;
    padding: 24px 12px;
}

#desarrollos p{
    display: block;
    margin-bottom: 30px;
}

#desarrollos h2{
    font-size: 3em;
}

#desarrollos h3{
    margin-top: 0;
}

#desarrollos .cartaAA{
    padding: 50px;
    background-size: 50% 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);
}

.cartaAA:first-child{
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/Automation Anywhere.png");
}

#desarrollos .cartaRocket{
    padding: 50px;
    background-size: 50% 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);
}

.cartaRocket:first-child{
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/Rocketbot.jpg");
}

#desarrollos .cartaUipath{
    padding: 50px;
    background-size: 50% 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);
}

.cartaUipath:first-child{
    background-image: linear-gradient(
        0deg,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    )
    ,url("media/ui-path.jpg");
}

#final{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(30,30,30);
    color: white;
    height: 80vh;
}

#final h2{
    font-size: 9vw;
}

#final button{
    font-size: 5vw;
}

footer{
    background-color: rgb(230,230,230);
}

footer p{
    margin: 0;
    padding: 12px;
    color: rgb(100,100,100);
}

footer .container{
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 850px){
    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-redbot .container{
        display: flex;
        justify-content: space-evenly;
    }

    #somos-redbot h2{
        margin-top: 0px;
    }

    #desarrollos p{
        display: block;        
        margin-top: 0px;
        margin-bottom: 0px;
    }

    #desarrollos h2{
        font-size: 3em;
        background-color: white;
        justify-content: center;
        align-items: center;
        text-align: center;  
        margin-bottom: 0px;      
    }

    #ndesarrollos h3{
        margin-top: 0;
    }

    #desarrollos .container-AA{
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-image: url("media/Automation Anywhere.png");
        background-repeat: no-repeat;
        /* background-size: 8% 8%;  */
        background-position: 0 0; 
    }

    #desarrollos .img-container-AA{
        background-size: cover;
        background-position: center center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #desarrollos .container-Rocket{
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-image: url("media/Rocketbot.jpg");
        background-repeat: no-repeat;
        background-size: 14% 14%; 
        background-position: 0 0; 
    }

    #desarrollos .img-container-Rocket{        
        background-size: cover;
        background-position: center center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #desarrollos .container-Uipath {
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-image: url("media/ui-path.jpg");
        background-repeat: no-repeat;
        background-size: 14% 14%; 
        background-position: 0 0; 
    }
    
    #desarrollos .img-container-Uipath {
        background-size: cover;
        background-position: center center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #desarrollos .container-Power {
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-image: url("media/Power.png");
        background-repeat: no-repeat;
        background-position: 0 0; 
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    #desarrollos .img-container-Power {
        background-size: cover;
        background-position: center center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    #desarrollos .texto-explicativo {
        text-align: center;
    }

    #final h2{
        font-size: 5em;
    }

    #final button{
        font-size: 2em;
    }

    footer .container{
        justify-content: flex-start;
    }
}

@media (min-width: 1200px) {
    #metodologias{
        background-position: center;
        padding: 400px 600px;
    }

    #robot{
        background-position: center;
        padding: 100px 100px;
    }
}