:root {
    --celeste: #C9DFF2;
    --azul: #2B2872;
    --gris: #BFBFBF;
    --azul-transp1: rgba(43, 40, 114, 0.8);
    --azul-transp2: rgba(43, 40, 114, 0.5);
    --gris-oscuro: #3D3D3D;
}

body {
    padding: 0;
    margin: 0;
}

body, body * {
    overflow-x: hidden;
    color: var(--gris-oscuro);
}

body * {
    overflow-y: hidden;
}

header {
    position: relative;
}

header, section {
    width: 100%;
}

header > div {
    padding-left: 10%;
    padding-right: 10%;

}

header > div:first-of-type {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

header ul {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

header ul li {
    list-style-type: none;
}

header nav li a {
    font-size: 28px;
    color: white;
    text-decoration: none;
    padding-left: 30px;
    padding-right: 30px;
}

header nav li:last-of-type a {
    text-decoration: underline;
    font-weight: bold;
}

header nav li:hover a {
    text-decoration: underline;
}

header nav li {
    transition: transform 0.2s ease-in-out;
}

header nav li:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

header img {
    height: 60px;
}

header video {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -10;
}

header::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;    
    background: linear-gradient(90deg, var(--azul) 0%, var(--azul-transp1) 20%, var(--azul-transp2) 50%, var(--azul-transp1) 80%);
    z-index: -5;
}

header > div:last-of-type {
    height: 500px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
}

header > div:last-of-type * {
    color: white;
}

header > div:last-of-type h1 {
    font-size: 72px;
    margin: 0;
}

header > div:last-of-type p {
    font-size: 28px;
}

#sect-Nosotros > div:first-of-type {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    justify-content: space-between;
    margin-left: 10%;
    margin-right: 10%;
    overflow: visible;
    position: relative;

}

#sect-Nosotros h1 {
    margin: 0;
    font-size: 36px;
    color: var(--azul);
}

#sect-Nosotros p {
    font-size: 26px;
}

#sect-Nosotros h1:first-of-type {
    color: white;
    background-color: var(--azul);
    padding:10px 20px;
    display: inline-block;
    margin-left:-20px;
}

#sect-Nosotros > div:first-of-type > div:first-of-type {
    padding-right: 50px;
    padding-left:20px;
    border-left: 2px solid var(--azul);
    position: relative;
    overflow:visible;
    background: linear-gradient(90deg, white 0%, white 50%, rgba(255,255,255,0) 70%);
}

#sect-Nosotros > div:first-of-type > div:first-of-type > * {
    max-width: 60%;
}

#sect-Nosotros > div:first-of-type > div:first-of-type::before {
    content: '';
    position:absolute;
    bottom:80%;
    left: 0px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--azul);
    transform: translate(-50%, 0);
}

#sect-Nosotros > div:first-of-type > div:first-of-type.animar::before {
    bottom: 0%;
    transition: bottom ease-out 0.5s;
}

#sect-Nosotros > div:first-of-type > :last-of-type {
    overflow-y: hidden;
    position: absolute;
    right: 0;
    top: 0;
    height:100%;
    z-index: -5;
}

#sect-Nosotros > div:first-of-type > :last-of-type::before{
    content: "";
    height: 100%;
    width: 100%;
    right: 0;
    top: 0;
    position: absolute;
    background: linear-gradient(90deg, white 0%, white 5%, rgba(255,255,255,0) 50%);
}

#sect-Nosotros > div:first-of-type > :last-of-type > img {
    max-height: 100%;
}

#sect-Nosotros > div:last-of-type {
    width: 100%; 
    display: flex;
    justify-content: center;
}

#sect-Nosotros > div:last-of-type span{
    padding: 30px;
    margin-top: 100px;
    margin-bottom: 20px;
    border-bottom: 4px solid var(--azul);
    border-right: 4px solid var(--azul);
    font-size: 30px;
    font-weight: bold;
    color: var(--azul);
    text-align: center;
    max-width: 70%;
    box-shadow: 5px 5px 10px 5px;
}

#sect-Servicios h1:first-of-type {
    display: flex;
    justify-content: space-between;

}

#sect-Servicios h1 * {
    width: 50%;
    font-size: 36px;
    margin-top: 80px;
    margin-bottom: 20px;
}

#sect-Servicios h1:last-of-type {
    display: flex;
    justify-content: space-between;

}

#sect-Servicios h1:first-of-type {
    text-align: end;
}

#sect-Servicios h1 span {
    padding: 5px 10px;
    border-bottom: 3px solid var(--azul);
}

#sect-Servicios h1:first-of-type span:last-of-type {
    background-color: var(--azul);
    color: white;
    text-align: start !important;
}

#sect-Servicios h1:last-of-type span:first-of-type {
    background-color: var(--azul);
    color: white;
    text-align: end !important;
}

#sect-Servicios > div:first-of-type {
    display: flex;
    justify-content: space-between;
    margin-left: 10%;
    margin-right: 10%;
    gap:10px;
    min-height: 555.2px;
}

#sect-Servicios > div.serv > div {
    width: 32%;
    min-width: 290px;
    transform: translateY(80%);
}

#sect-Servicios > div.serv > div > div:first-of-type {
    height: 300px;
    max-width: 100%;
    
}

#sect-Servicios > div.serv > div > div:first-of-type img {
    width: 121%;
    transition: width 0.3s ease-in-out;
    margin-left: -10%
}

#sect-Servicios > div.serv > div > div:first-of-type img:hover {
    width: 120%;
    transition: width 0.5s ease-in-out;
}

#sect-Servicios > div.serv > div > div:last-of-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    transform: translateY(-20%);
    opacity: 0;
    transition: opacity 0.3s linear;
}

#sect-Servicios > div.serv > div > div:last-of-type * {
    margin: 0px;
    text-align: center;
    font-size: 26px;
    color: var(--gris-oscuro);
}

#sect-Servicios > div.serv > div > div:last-of-type h3 {
    margin: 10px 0;
    font-size: 36px;
    color: var(--azul);
}

#sect-Servicios a {
    text-align: center;
    font-size: 46px;
    font-weight: bold;
    color: white;
    display: block;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--azul);
    text-decoration: none;
    box-shadow: 0px 0px 5px 5px var(--gris);
}

#sect-Servicios a:hover {
    box-shadow: 0px 0px 10px 10px var(--gris);
    transition: box-shadow 0.3s linear;
}

.contenedorContacto {
    display: flex;
    justify-content: center;
}

.TrabajosRealizados {
    width: 100%;
    overflow: hidden;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: white;
}

.TrabajosRealizados div{
    height: 400px;
    display: inline-flex;
    gap: 30px;
    background-color: white;
}

.TrabajosRealizados div img {
    height: 100%;
    display: inline;
}

#sect-Servicios h2 {
    text-align:center;
    margin-bottom: 0;
    color:var(--azul);
    font-weight: bold;
    font-size: 36px;
}

#sect-Servicios h4 {
    text-align:center;
    margin-bottom: 60px;
    margin-top: 0;
    font-size: 20px;
    color:var(--azul);
}

footer {
    background-image: url(../img/Obra\ Vial.jpg);
    background-size: cover;
    position: relative;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-evenly;
    padding-bottom: 50px;
    padding-top: 50px;
}

footer > * {
    z-index: 1;
    position: relative;
}

footer * {
    margin:0px;
}

footer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--azul);
    opacity: 0.8;
    top: 0;
    left: 0;
    z-index: 0;
}


footer  h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
}

footer  form {
    background-color: white;
    width: 500px;
    padding: 10%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.form-control > * {
    display: block;
    margin: 0;
    width: 80%;
    font-size: 20px;
}

.form-control:not(:first-of-type) label, #contact-submit {
    margin-top: 20px;
}

.form-control label, #contact-submit {
    font-weight: bold;
}

.form-control > input:not([type="submit"]) {
    border-top: 0;
    border-right: 0;
    border-left: 0;
}

.form-control > input[type="submit"] {
    width: auto;
    background-color: var(--azul);
    color: white;
    padding: 10px 50px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.form-control > input[type="submit"]:hover {
    background-color: var(--azul-transp1);
    color: white;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#mapa {
    width: 500px;
    height: 300px;
}

#mapa iframe {
    width: 100%;
    height: 100%;
}

#mail {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: white;
    gap: 5px;
    margin-bottom: 0;
    margin-top: 0;
    text-decoration: none;
}

#mail > img {
    height: 25px;
}

#Pasion {
    border-bottom: 2px white solid;
    position: absolute;
    right: -240px;
    top: 200px;
    transform: rotate(90deg);
    color: white;
    font-size: 26px;
    padding-right: 100px;
    overflow: visible;
}

#Pasion::after {
    content: "";
    height: 15px;
    width:15px;
    position: absolute;
    right: 100%;
    bottom: 0;
    transform: translate( 50%, 50%);
    background-color: white;
    border-radius: 50%;
    transition: right 0.3s ease-out;
}

#Pasion.animar2::after {
    right: 0%;
}


#confirmacionform {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 345px;
    width: 500px;
    justify-content: center;
}

#confirmacionform h4 {
    text-align: center;
    color: white !important;
}

#confirmacionform img {
    height: 200px;
    margin-bottom: 20px;
}

.menu-redes {
    height: 25px;
}

.menu-redes > a {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding-left: 10px;
    padding-right: 10px;
}

.menu-redes * {
    height: 100%;
    
}

.contact-redes {
    height: 25px;
    display: flex;
    align-items: center;
}

.contact-redes * {
    height: 100%;
}

.contact-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
    overflow: visible;
}

.contact-links a {
    overflow: visible;
}

.contact-links a:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    footer form, footer #confirmacionform {
        width: 300px;
    }

    #sect-Nosotros > div:first-of-type, #sect-Servicios > div:first-of-type{
        margin-left: 3%;
        margin-right: 3%; 
        overflow-x: hidden;
    }

    header ul li a {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 1000px) { 
    #mapa {
        width: 350px;
    }

    #mail {
        font-size: 18px;
    }

    header > div:first-of-type {
        flex-direction: column;
    }

    header ul {
        justify-content: center;
        padding-left: 0px;
    }

    #sect-Servicios > div:first-of-type {
        flex-direction: column;
        align-items: center;
    }

    #sect-Servicios > div.serv > div {
        transform: translateY(0);
        width: 80%;
        
    }

    #sect-Servicios > div.serv > div > div:last-of-type {
        opacity: 1;
    }

    .TrabajosRealizados div {
        height: 300px;
    }

    #Pasion {
        right: -215px;
    }

    #sect-Nosotros p {
        font-size: 20px;
    }
}

@media (max-width: 750px) { 
    footer {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    footer > div {
        width: 70%;
        min-width: 300px;
    }

    footer form, footer #confirmacionform {
        width: 100%;
    }

    #Pasion {
        display: none;
    }

    #mapa {
        width: 100%;
    }

    #sect-Nosotros > div:first-of-type > div:first-of-type > * {
        max-width: 70%;
    }

    #sect-Nosotros > div:first-of-type > div:first-of-type {
        background: linear-gradient(90deg, white 0%, white 60%, rgba(255,255,255,0) 90%);
    }
    
    #sect-Nosotros p {
        font-size: 18px;
    }
}

@media (max-width: 650px) {     
    header > div:last-of-type {
        max-width: 94%;
    }

    header > div:last-of-type h1 {
        font-size: 65px;
        text-align: center;
    }

    header > div:last-of-type p {
        text-align: center;
    }

    header > div {
        padding-left: 3%;
        padding-right: 3%;
    }

    #sect-Nosotros > div:first-of-type > div:first-of-type > * {
        max-width: 100%;
    }

    #sect-Nosotros > div:first-of-type > div:first-of-type {
        background: linear-gradient(90deg, white 0%, white 50%, rgba(255,255,255,0) 100%);
    }

    header nav li a {
        font-size: 22px;
    }
}

@media (max-width: 500px) {     
    header > div:last-of-type h1 {
        font-size: 45px;
    }

    header ul li a {
        font-size: 20px;
        padding-left: 7px;
        padding-right: 7px;
    }

    #mail img {
        display: none;
    }

    #mail {
        text-align: center;
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 300px) {     
    header nav ul {
        flex-wrap: wrap;
    }
    header nav li a {
        font-size: 18px;
    }
    header > div:last-of-type h1 {
        font-size: 40px;
    }
    
    header > div:last-of-type h1 span {
        font-size: 35px;
    }

    footer > div {
        min-width: 0;
    }

    #sect-Servicios h1 * {
        font-size: 25px;
    }
}