* {
    padding: 0;
    margin: 0;
    font-family: "exo 2";
}

:root {
    --azul:#000e29;
    --azulclaro:#446eb3;
}

body {
    min-height: 100vh;
    background: linear-gradient(45deg, black, rgb(1, 9, 20) 100%);
}

header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    width: 90%;
    padding: 0 5%;
    margin: 0 auto;
    border-bottom: 3px solid var(--azul);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.753), rgb(31, 31, 31));
    font-family: "exo 2";
}

.contlogo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contlogo img {
    height: 80%;
}

header ul {
    width: 50%;
    align-items: center;
    justify-content: space-between;
    display: flex;
    list-style: none;
}

header ul li a {
    color: white;
    text-decoration: none;
    font-size: .95vw;
}

header ul li a:hover {
    color: var(--azulclaro);
}

.solicitar {
    background-color: white;
    padding: 8px 15px;
    border-radius: 30px;
    color: var(--azul);
    cursor: pointer;
    transition: all.3s;
    font-size: .95vw;
}

.solicitar:hover {
    scale: 1.1;
    transform: rotateZ(2deg);
}

.portada {
    background: url(img/portadafondo.png);
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
}

.capa1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.596);
}

.txtportada {
    width: 100%;
    position: absolute;
    bottom: 5vw;
    right: 0vw;
    background-color: rgba(0, 0, 0, 0.411);
    padding: 2.5vw;
    text-align: end;
    color: white;
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 1vw;
    font-family: "exo 2";
}

.txtportada h2 {
    font-size: 2vw;
}

.txtportada h3 {
    font-size: 1.2vw;
}

.txtportada a {
    background-color: white;
    color: black;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all .3s;
}

.txtportada a:hover {
    background-color: rgb(194, 194, 194);
}

.nosotros {
    color: white;
    width: 80%;
    margin: 200px auto;
    font-family: "exo 2";
    display: grid;
    grid-template-columns: 4fr 2fr;
}

.txtnosotros {
    width: 100%;
    margin: auto;
}

.txtnosotros p {
    font-size: 1vw;

}

.logons {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logons img {
    width: 100%;
}

.servicios {
    width: 90%;
    margin: 100px auto;
    font-family: "exo 2";
}

.servicios h2 {
    font-size: 3vw;
    color: white;
    width: fit-content;
    margin: 50px auto;
}

.contservicios {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4vw;
}

.servicios a {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-top-right-radius: 60px;
    border: 4px solid var(--azulclaro);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s scale;
    scale: .9;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-decoration: none;
}

.servicios a:hover {
    scale: 1;
}

.servicios a img {
    width: calc(100%);
    position: absolute;
    top: 0;
    left: 0;
}

.capaserv {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #00000000;
    z-index: 1;
    transition: background .3s;
}

.servicios a:hover .capaserv {
    background-color: rgba(0, 0, 0, 0.7);
}

.servicios a:hover h2 {
    opacity: 1;
}

.servicios a:hover p {
    opacity: 1;
}

.servicios a h2 {
    z-index: 2;
    color: white;
    font-size: 1.3vw;
    text-align: center;
    opacity: 0;
    transition: opacity .3s;
    padding: 10px;
}

.servicios a p {
    z-index: 2;
    color: white;
    font-size: 1.15vw;
    text-align: center;
    opacity: 0;
    transition: opacity .3s;
    padding: 10px;
}

.compromiso {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    width: 90%;
    margin: 200px auto;
    background-color: rgb(34, 34, 34);
    border-radius: 30px;
}

.txtcom {
    width: 60%;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    gap: 3vw;
}

.txtcom h2 {
    font-size: 2vw;
}

.txtcom p {
    font-size: 1.1vw;
}

.compromiso img {
    width: 40%;
    padding: 50px;
}

.contacto {
    width: 90%;
    margin: 200px auto;
}

.contacto h2 {
    color: white;
    width: fit-content;
    margin: 50px auto;
    font-size: 3vw;
}

.contcontacto {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.contcontacto a{
    width: 50%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contcontacto a ion-icon {
    color: white;
    font-size: 4vw;
}

footer {
    display: flex;
    flex-direction: column;
}

footer div div h2 {
    font-size: 1.5vw;
    color: white;
    margin-bottom: 1.5vw;
}

.fooarriba {
    width: 80%;
    padding: 50px 5%;
    margin: auto;
    display: flex;
    align-items: start;
    justify-content: space-between;
    border-top: 3px solid white;
}

.foomenu ul {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.foomenu ul a {
    color: white;
    font-size: 1vw;
    text-decoration: none;
}

.foocont ul {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.foocont ul a {
    color: white;
    font-size: 1vw;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 5px;
}

.fooimg {
    width: 250px;
}

.fooimg img {
    width: 100%;
}

.foabajo {
    text-align: center;
    color: white;
    font-size: 1.2vw;
    padding: 15px 0;
    background-color: rgb(56, 56, 56);
}

.foabajo a {
    color: white;
    text-decoration: none;
    font-size: 1.2vw;
}

.foabajo a:hover {
    color: var(--azul);
}

@media (max-width:800px) {
    header {
        height: auto;
        width: 100%;
        padding: 0;
        flex-direction: column;
        position: relative;
        clip-path: none;
    }

    .contlogo {
        height: 50px;
    }

    header ul {
        width: 90%;
        margin: 20px;
    }

    header ul li a {
        font-size: 4vw;
    }

    .solicitar {
        font-size: 4vw;
        margin-bottom: 20px;
    }

    .portada {
        height: 50vh;
        background-position: bottom;
    }

    .txtportada {
        text-align: center;
        align-items: center;
        padding: 20px 0;
        bottom: 0vw;
    }

    .txtportada h2 {
        font-size: 6vw;
    }

    .txtportada h3 {
        font-size: 5vw;
        margin: 20px 0;
    }

    .nosotros {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5vh;
    }

    .txtnosotros p {
        font-size: 4vw;
    }

    .servicios h2 {
        font-size: 7vw;
    }

    .contservicios {
        grid-template-columns: 1fr 1fr;
        margin: auto;
        gap: 2vw;
    }

    .compromiso {
        flex-direction: column;
    }

    .txtcom {
        width: 90%;
        padding: 0px 0px;
        padding-top: 20px;
    }

    .txtcom h2 {
    font-size: 7vw;
    }

    .txtcom p {
        font-size: 4vw;
    }

    .compromiso img {
        width: 90%;
        padding: 30px 0;
    }

    .contacto h2{
        font-size: 7vw;
    }

    .contcontacto a ion-icon{
        font-size: 7vw;
    }

    footer div div h2 {
        font-size: 5vw;
    }

    .fooarriba {
        display: flex;
        flex-direction: column;
        gap: 5vw;
        align-items: center;
    }

    .foomenu {
        text-align: center;
        width: 100%;
    }
    
    .foomenu ul {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .foomenu ul a {
        font-size: 3vw;
    }

    .foocont {
        text-align: center;
    }

    .foocont ul li {
        width: 100%;
    }

    .foocont ul a{
        font-size: 3vw;
        gap: 5px;
    }

    .fooimg {
        width: 190px;
    }

    .foabajo {
        font-size: 3vw;
    }

    .foabajo a {
        font-size: 3vw;
    }
}