*{
    margin: 0;
    padding: 0;
}

:root {
    --top: 0px;
}

body {
    background-color: #07132f;
    font-family: Arial, Helvetica, sans-serif;
}

.wafloat {
    position: fixed;
    bottom: 60px;
    left: 60px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wafloat img {
    display: flex;
    width: 80%;
    height: 80%;
}

header {
    background-color: rgba(0, 0, 0, 0.501);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 5%;
    position: absolute;
    top: var(--top);
    width: 90%;
    z-index: 5;
}

.menu-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60%;
}

.logo img {
    display: flex;
    height: 100%;
}

.menuhead {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 40%;
}

.menuhead a {
    color: white;
    text-decoration: none;
}

.hero {
    aspect-ratio: 16/9;
    width: 100%;
    background: url(img/paraweb.webp);
    background-size: cover;
    position: relative;
    margin-top: var(--top);
}

.logohero {
    position: absolute;
    top: calc(5% + 100px);
    right: 5%;
    height: 200px;
}

@media (max-width: 900px) {
    .hero {
        aspect-ratio: 4 / 3;
        background-position: center;
    }

    .logohero {
        height: clamp(100px, 20vw, 170px);
        top: auto;
        bottom: 7%;
    }
}

@media (max-width: 760px) {
    header {
        box-sizing: border-box;
        height: 76px;
        width: 100%;
        padding: 0 6%;
        justify-content: space-between;
        background: rgba(4, 10, 27, .86);
    }

    .logo {
        height: 58px;
    }

    .menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, .38);
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 16px;
        height: 1px;
        background: #fff;
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .menuhead {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 6% 20px;
        background: rgba(4, 10, 27, .96);
    }

    .menuhead-abierto {
        display: flex;
    }

    .menuhead a {
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
        font-size: .78rem;
    }

    .hero {
        aspect-ratio: auto;
        min-height: 78svh;
        background-position: center center;
    }

    .logohero {
        right: 6%;
        bottom: 6%;
        height: clamp(88px, 23vw, 140px);
        max-width: 42vw;
        object-fit: contain;
    }
}

@media (max-width: 400px) {
    .hero {
        min-height: 72svh;
    }

    .menuhead a {
        font-size: .74rem;
    }
}

.servicios {
    background: #07132f;
    color: #fff;
    padding: clamp(100px, 13vw, 190px) 8% clamp(120px, 16vw, 230px);
}

.servicios > h1 {
    margin: 0 auto clamp(90px, 12vw, 170px);
    max-width: 520px;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(.85rem, 1.2vw, 1.05rem);
    line-height: 1.6;
    letter-spacing: .12em;
    font-weight: 500;
}

.servicios-lista {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(28px, 5vw, 76px);
    row-gap: clamp(64px, 8vw, 116px);
    max-width: 1440px;
    margin: 0 auto;
}

.servicio {
    display: grid;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.servicio > img {
    width: 100%;
    aspect-ratio: 1.65 / 1;
    object-fit: cover;
    border-radius: 2px;
}

.servicio-texto h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: .68rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.servicio-texto p {
    color: #e4e9f4;
    font-size: .72rem;
    line-height: 1.8;
    max-width: 30ch;
}

.proceso {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) 1.5fr;
    column-gap: clamp(64px, 12vw, 180px);
    row-gap: 72px;
    align-items: start;
    padding: clamp(100px, 13vw, 180px) 10%;
    background: #f5f6f8;
    color: #07132f;
}

.proceso-intro {
    max-width: 360px;
}

.etiqueta {
    margin-bottom: 28px;
    color: #667085;
    font-size: .65rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.proceso-intro h2 {
    margin-bottom: 24px;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.proceso-descripcion,
.paso p {
    color: #667085;
    font-size: .75rem;
    line-height: 1.9;
}

.proceso-pasos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 58px);
    padding-top: 40px;
}

.paso {
    border-top: 1px solid #cbd0da;
    padding-top: 20px;
}

.paso span {
    display: block;
    margin-bottom: 46px;
    color: #8790a1;
    font-size: .65rem;
    letter-spacing: .1em;
}

.paso h3 {
    margin-bottom: 14px;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.5;
}

.proceso-cta {
    grid-column: 2;
    justify-self: start;
    color: #07132f;
    border-bottom: 1px solid #07132f;
    padding-bottom: 10px;
    text-decoration: none;
    font-size: .72rem;
    letter-spacing: .02em;
}

.proceso-cta .icono-flecha {
    width: 16px;
    height: 16px;
    margin-left: 18px;
    vertical-align: middle;
}

.contacto {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, .8fr);
    align-items: center;
    gap: clamp(56px, 12vw, 180px);
    padding: clamp(100px, 14vw, 190px) 10%;
    background: #fff;
    color: #07132f;
}

.contacto-intro {
    max-width: 440px;
}

.contacto-intro h2 {
    margin-bottom: 24px;
    font-size: clamp(1.45rem, 2.6vw, 2.3rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.contacto-intro > p:last-child,
.contacto-descripcion {
    color: #667085;
    font-size: .75rem;
    line-height: 1.9;
}

.contacto-panel {
    border-top: 1px solid #d7dbe2;
    border-bottom: 1px solid #d7dbe2;
    padding: 30px 0;
}

.contacto-nota {
    margin-bottom: 12px;
    font-size: .76rem;
    font-weight: 600;
}

.contacto-descripcion {
    max-width: 38ch;
    margin-bottom: 28px;
}

.contacto-enlaces {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.contacto-enlaces a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #07132f;
    font-size: .68rem;
    letter-spacing: .04em;
    text-decoration: none;
}

.contacto-enlaces a:hover,
.pie-contacto a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.icono-contacto {
    box-sizing: border-box;
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #07132f;
}

.pie {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 54px 10%;
    background: #07132f;
    color: #fff;
}

.pie-logo {
    display: block;
    width: 100px;
}

.pie-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.pie > p,
.pie-contacto {
    color: #e4e9f4;
    font-size: .68rem;
    line-height: 1.8;
}

.pie-contacto {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
    justify-self: end;
    text-align: right;
}

.pie-contacto a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
}

.icono-footer {
    display: block;
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.pie small {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 22px;
    color: #aab3c4;
    font-size: .6rem;
    letter-spacing: .05em;
}

@media (max-width: 900px) {

    .wafloat {
        bottom: 30px;
        left: 30px;
    }

    .servicios-lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proceso {
        grid-template-columns: 1fr;
    }

    .contacto {
        grid-template-columns: 1fr;
    }

    .proceso-cta {
        grid-column: 1;
    }
}

@media (max-width: 520px) {
    .servicios {
        padding: 88px 8% 112px;
    }

    .servicios > h1 {
        margin-bottom: 64px;
    }

    .servicios-lista {
        grid-template-columns: 1fr;
        row-gap: 54px;
    }

    .servicio {
        gap: 16px;
    }

    .proceso {
        padding: 88px 8%;
        row-gap: 42px;
    }

    .contacto {
        padding: 88px 8%;
        gap: 42px;
    }

    .proceso-pasos {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 0;
    }

    .paso span {
        margin-bottom: 22px;
    }

    .pie {
        grid-template-columns: 1fr 1fr;
        padding: 42px 8%;
    }

    .pie-contacto {
        grid-column: 1 / -1;
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
    }
}
