@import "global.css";
@import "bar.css";
@import "footer.css";
@import "mediocubo_animations.css";

.who_are_we {
    width: 370px;
    margin: 0 auto;
}

.who_are_we h2 {
    text-align: center;
}

.who_are_we p {
    text-align: justify;
}

.img_4astronauts {
    width: 99%;
    margin: 0 auto;
}

.car_leftbracket {
    position: relative;
    float: left;
}

.car_leftbracket img {
    position: absolute;
}

/* El contenedor flotante no tiene ancho, así que estas imágenes no deben limitarse a él */
.container .car_leftbracket img {
    max-width: none;
}

.car_leftbracket img:nth-child(1) {
    z-index: 2; /* La imagen 1 estar� detr�s */
}

.car_leftbracket img:nth-child(2) {
    z-index: 1; /* La imagen 2 estar� encima */
}

.img_car {
    float: left;
}

.what_we_do {
    width: 370px;
    text-align: justify;
    margin: 0 0 0 auto;
}

.what_we_do h2 {
    text-align: center;
}

.how_we_work {
    display: inline-block;
}

.how_we_work .text {
    width: 340px;
    float: left;
    display: block;
    margin: auto;
    padding: 100px 10px;
}

.how_we_work h2 {
    text-align: center;
}

.how_we_work p {
    text-align: justify;
    width: 320px;
    margin: 1em auto;
}

.img_astronaut_back {
    float: right;
}

.img_astronaut_touching_ui {
    position: relative;
    float: left;
    z-index: 1;
}

.experience {
    display: inline-block;
    height: 700px;
}

.experience .text {
    float: right;
    display: block;
    margin: auto;
    padding: 60px 0;
}

.experience h2 {
    text-align: center;
    width: 500px;
}

.experience p {
    text-align: justify;
    width: 340px;
    margin: 1em auto;
}

.technologies {
    display: inline-block;
    height: 560px;
    background-color: #151515;
}

.technologies .text {
    float: left;
    margin: auto;
    padding: 140px 0 0 64px;
}

.technologies h2 {
    text-align: center;
    width: 600px;
}

.technologies p {
    text-align: justify;
    width: 340px;
    margin: 1em auto;
}

.img_astronaut_fixing {
    float: right;
    position: relative;
    margin-top: -150px;
    overflow-x: hidden;
}

.img_technologies {
    transform: translateY(-280px);
    width: 99%;
}

.clients {
    display: inline-block;
    position: relative;
    background-image: url("../imgs/bg_06.png");
    height: 735px;
    width: 100%;
    z-index: -1;
}

.clients .text {
    margin: auto;
    padding: 40px 0;
}

.clients h2 {
    text-align: center;
}

.clients p {
    width: 500px;
    text-align: justify;
    color: #111111;
    margin: 1em auto;
}

.img_clients {
    vertical-align: bottom;
    bottom: 0;
    margin: auto auto 0;
}

.img_logo {
    float: left;
    padding: 80px 0 0 120px;
}

.contact {
    display: inline-block;
    position: relative;
}

.contact .text {
    float: right;
    width: 370px;
    margin: auto;
    padding: 140px 80px 40px 0;
}

.contact h2 {
    text-align: center;
}

.contact p {
    text-align: justify;
    margin: 1em auto;
}

:root * {
    /* Pause the animation */
    animation-play-state: paused;
    /* These last 2 properites clean up overshoot weirdness */
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

/* Pantallas estrechas (la base de una columna está en global.css) */
@media (max-width: 1099px) {
    /* El coche va debajo de "¿Qué hacemos?": los bloques anteriores a él se adelantan con order */
    .container {
        display: flex;
        flex-direction: column;
    }

    .container > .who_are_we,
    .container > .img_4astronauts,
    .container > .what_we_do {
        order: -1;
    }

    .container > .img_4astronauts {
        align-self: center;
    }

    .car_leftbracket {
        align-items: center;
    }

    .container .car_leftbracket img {
        position: static;
        max-width: 100%;
    }

    .container .img_leftbracket,
    .container .img_rightbracket {
        display: none;
    }

    .container > .technologies,
    .container > .clients {
        padding: 24px 16px;
    }

    .clients {
        background-size: cover;
        background-position: center;
    }

    /* Fondo claro tras el texto para que se lea sobre la ilustración */
    .container .clients > .text {
        background-color: rgba(255, 255, 255, 0.88);
        border-radius: 4px;
        padding: 4px 16px;
    }

    .container > div > .img_astronaut_fixing {
        max-width: 200px;
    }

    .container > div > .img_logo {
        max-width: 160px;
    }
}
