/* ==========================================================
   01. VARIABLES
   ========================================================== */

:root {

    --paper: #f7f6f2;
    --paper-alt: #ebe9e3;

    --ink: #111315;
    --soft: #656762;
    --faint: #969791;

    --blue: #2384bd;
    --blue-dark: #173f5b;

    --line: rgba(17, 19, 21, 0.14);

    --max: 1480px;
    --gutter: clamp(24px, 5vw, 82px);

}


/* ==========================================================
   02. RESET
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    overflow-x: hidden;
}

body {

    margin: 0;

    background: var(--paper);

    color: var(--ink);

    font-family: 'Inter', sans-serif;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;

}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}


/* ==========================================================
   03. CONTENEDOR
   ========================================================== */

.wrap {

    width: min(100%, var(--max));

    margin: 0 auto;

    padding-left: var(--gutter);
    padding-right: var(--gutter);

}


/* ==========================================================
   03. HEADER
   ========================================================== */

header {
    position: relative;
    z-index: 50;
    width: 100%;
    padding: 22px var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

header .wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* ==========================================================
   04. LOGO
   ========================================================== */

.brand img {
    height: 42px;
    width: auto;
}


/* ==========================================================
   05. NAVEGACIÓN
   ========================================================== */

.primary-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;

    list-style: none;
}

.primary-nav a {
    position: relative;

    padding: 5px 0;

    font-size: 13px;
    font-weight: 500;
}


/* Línea inferior */

.primary-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 100%;
    bottom: 0;

    height: 1px;

    background: var(--ink);

    transition: right 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    right: 0;
}


/* Texto derecho */

.tagline {
    font-family: "IBM Plex Mono", monospace;

    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--soft);
}


/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

.menu-toggle {
    display: none;
    width: 30px;
    padding: 0;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    margin: 6px auto;
    background: var(--ink);
}

.mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    padding: 25px var(--gutter);
    background: var(--paper);
}

.mobile-panel.open {
    display: block;
}

.mobile-panel ul {
    margin: 80px 0 0;
    padding: 0;
    list-style: none;
}

.mobile-panel li {
    border-bottom: 1px solid var(--line);
}

.mobile-panel a {
    display: block;
    padding: 20px 0;
    font-family: 'Archivo', sans-serif;
    font-size: 2rem;
    font-weight: 500;
}

.mobile-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}


/* ---------- Panel de menú móvil ---------- */

.mobile-panel {

    position: fixed;
    inset: 0;

    z-index: 200;

    padding: 30px var(--gutter);

    background: var(--paper);

    transform: translateX(100%);

    transition: transform 0.35s ease;
}

.mobile-panel.open {

    transform: none;
}

.mobile-close {

    position: absolute;

    top: 28px;
    right: var(--gutter);

    font-size: 13px;
}

.mobile-panel ul {

    margin-top: 100px;

    list-style: none;
}

.mobile-panel li {

    border-top: 1px solid var(--line);
}

.mobile-panel li:last-child {

    border-bottom: 1px solid var(--line);
}

.mobile-panel a {

    display: block;

    padding: 15px 0;

    font-family: 'Archivo', sans-serif;

    font-size: clamp(2rem, 9vw, 4rem);
}


/* ==========================================================
   08. SECCIÓN PRINCIPAL DE SERVICIOS
   ========================================================== */

.services-main {

    padding-top: 155px;

    padding-bottom: 150px;

}


/* ==========================================================
   09. LAYOUT SERVICIOS
   ========================================================== */

.services-layout {

    display: grid;

    grid-template-columns: minmax(340px, .82fr) minmax(450px, 1.18fr);

    gap: clamp(55px, 7vw, 115px);

    align-items: start;

}


/* ==========================================================
   10. IMAGEN PRINCIPAL
   ========================================================== */

.services-image {

    position: sticky;

    top: 125px;

    height: min(72vh, 720px);

    overflow: hidden;

    background: #d8d7d2;

}

.services-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(100%);

    transition:
        transform .8s cubic-bezier(.2,.7,.2,1),
        filter .5s ease;

}

.services-image:hover img {

    transform: scale(1.025);

    filter: grayscale(20%);

}


/* ==========================================================
   11. ETIQUETA DE IMAGEN
   ========================================================== */

.image-caption {

    position: absolute;

    left: 24px;
    right: 24px;
    bottom: 20px;

    display: flex;

    justify-content: space-between;

    color: white;

    font-family: 'IBM Plex Mono', monospace;

    font-size: 9px;

    letter-spacing: .12em;

    text-transform: uppercase;

    text-shadow: 0 1px 5px rgba(0,0,0,.25);

}


/* ==========================================================
   12. CONTENIDO DE SERVICIOS
   ========================================================== */

.services-content {

    padding-top: 5px;

}

.section-label {

    display: block;

    color: var(--blue);

    font-family: 'IBM Plex Mono', monospace;

    font-size: 10px;

    letter-spacing: .18em;

    text-transform: uppercase;

}


/* ==========================================================
   13. TÍTULO SERVICIOS
   ========================================================== */

.services-content h2 {

    max-width: 550px;

    margin: 22px 0 52px;

    font-family: 'Archivo', sans-serif;

    font-size: clamp(2.5rem, 3.8vw, 4.5rem);

    font-weight: 500;

    line-height: .92;

    letter-spacing: -.055em;

}


/* ==========================================================
   14. LISTA
   ========================================================== */

.service-list {

    border-top: 1px solid var(--line);

}


/* ==========================================================
   15. SERVICIO INDIVIDUAL
   ========================================================== */

.service-item {

    display: grid;

    grid-template-columns: 48px 1fr;

    gap: 24px;

    padding: 31px 0 34px;

    border-bottom: 1px solid var(--line);

    transition:
        padding-left .35s ease,
        background .35s ease;

}

.service-item:hover {

    padding-left: 15px;

    background: rgba(35, 132, 189, .035);

}


/* ==========================================================
   16. NÚMERO
   ========================================================== */

.service-number {

    padding-top: 6px;

    color: var(--blue);

    font-family: 'IBM Plex Mono', monospace;

    font-size: 10px;

    letter-spacing: .08em;

}


/* ==========================================================
   17. TÍTULO DEL SERVICIO
   ========================================================== */

.service-item h3 {

    margin: 0 0 10px;

    font-family: 'Archivo', sans-serif;

    font-size: clamp(1.45rem, 1.8vw, 2rem);

    font-weight: 300;

    line-height: 1;

    letter-spacing: -.035em;

}


/* ==========================================================
   18. DESCRIPCIÓN
   ========================================================== */

.service-item p {

    max-width: 570px;

    margin: 0;

    color: var(--soft);

    font-size: 13px;

    line-height: 1.75;

}


/* ==========================================================
   19. PILARES
   ========================================================== */

.pillars {

    padding: 145px 0 155px;

    background: var(--paper-alt);

}


/* ==========================================================
   20. CABECERA PILARES
   ========================================================== */

.pillars-heading {

    display: grid;

    grid-template-columns: 1.15fr .85fr;

    gap: 80px;

    align-items: end;

    margin-bottom: 85px;

}

.pillars-heading h2 {

    max-width: 620px;

    margin: 10px 0 0;

    font-family: 'Archivo', sans-serif;

    font-size: clamp(3rem, 4.5vw, 5.2rem);

    font-weight: 500;

    line-height: .88;

    letter-spacing: -.06em;

}

.pillars-heading > p {

    max-width: 390px;

    margin: 0 0 5px;

    color: var(--soft);

    font-size: 14px;

    line-height: 1.75;

}


/* ==========================================================
   21. GRID PILARES
   ========================================================== */

.pillar-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--line);

}

.pillar {

    min-height: 330px;

    padding: 30px 38px 20px 0;

    border-right: 1px solid var(--line);

}

.pillar:not(:first-child) {

    padding-left: 38px;

}

.pillar:last-child {

    border-right: 0;

}


/* ==========================================================
   22. NÚMERO PILAR
   ========================================================== */

.pillar-number {

    display: block;

    margin-bottom: 65px;

    color: var(--blue);

    font-family: 'IBM Plex Mono', monospace;

    font-size: 10px;

}


/* ==========================================================
   23. TÍTULO PILAR
   ========================================================== */

.pillar h3 {

    max-width: 310px;

    margin: 0 0 20px;

    font-family: 'Archivo', sans-serif;

    font-size: clamp(1.9rem, 2.6vw, 2.8rem);

    font-weight: 500;

    line-height: .95;

    letter-spacing: -.045em;

}


/* ==========================================================
   24. TEXTO PILAR
   ========================================================== */

.pillar p {

    max-width: 350px;

    margin: 0;

    color: var(--soft);

    font-size: 13px;

    line-height: 1.75;

}


/* ==========================================================
   25. DIFERENCIADOR
   ========================================================== */

.differentiator {

    padding: 155px 0;

    background: var(--paper);

}

.differentiator-grid {

    display: grid;

    grid-template-columns: .78fr 1.22fr;

    gap: clamp(55px, 8vw, 135px);

    align-items: center;

}


/* ==========================================================
   26. TEXTO DIFERENCIADOR
   ========================================================== */

.differentiator-copy h2 {

    max-width: 350px;

    margin: 22px 0 35px;

    font-family: 'Archivo', sans-serif;

    font-size: clamp(3rem, 4.5vw, 5.3rem);

    font-weight: 500;

    line-height: .86;

    letter-spacing: -.06em;

}

.differentiator-copy p {

    max-width: 510px;

    margin: 0 0 22px;

    color: var(--soft);

    font-size: 14px;

    line-height: 1.8;

}


/* ==========================================================
   27. IMAGEN DIFERENCIADOR
   ========================================================== */

.differentiator-image {

    position: relative;

    aspect-ratio: 1.25 / 1;

    overflow: hidden;

    background: #d6d4cf;

}

.differentiator-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(100%);

    transition:
        transform .8s ease,
        filter .5s ease;

}

.differentiator-image:hover img {

    transform: scale(1.025);

    filter: grayscale(15%);

}


/* ==========================================================
   28. ETIQUETA DIFERENCIADOR
   ========================================================== */

.image-overlay-label {

    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 18px;

    display: flex;

    justify-content: space-between;

    color: white;

    font-family: 'IBM Plex Mono', monospace;

    font-size: 9px;

    letter-spacing: .12em;

    text-transform: uppercase;

    text-shadow: 0 1px 5px rgba(0,0,0,.3);

}


/* ==========================================================
   29. FOOTER
   ========================================================== */

footer {

    background: #0d1215;

    color: rgba(255,255,255,.75);

}

.footer-inner {

    width: min(100%, var(--max));

    min-height: 92px;

    margin: 0 auto;

    padding: 0 var(--gutter);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;

    font-size: 13px;

    white-space: nowrap;

}

.footer-logo img {

    width: auto;

    height: 27px;

}

.footer-copy {

    color: rgba(255,255,255,.4);

}


/* ==========================================================
   30. TABLET
   ========================================================== */

@media (max-width: 950px) {

    .primary-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .services-layout {

        grid-template-columns: 1fr;

    }

    .services-image {

        position: relative;

        top: auto;

        height: min(70vh, 650px);

    }

    .pillars-heading {

        grid-template-columns: 1fr;

        gap: 35px;

    }

    .differentiator-grid {

        grid-template-columns: 1fr;

    }


    /* FOOTER */

    .footer-inner {

        min-height: auto;

        padding-top: 32px;

        padding-bottom: 32px;

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

        white-space: normal;

    }

}


/* ==========================================================
   31. MÓVIL
   ========================================================== */

@media (max-width: 600px) {

    .header-wrap {

        height: 78px;

    }

    .brand img {

        height: 34px;

    }


    /* SERVICIOS */

    .services-main {

        padding-top: 120px;

        padding-bottom: 90px;

    }

    .services-image {

        height: 480px;

    }

    .services-content {

        padding-top: 55px;

    }

    .services-content h2 {

        margin-top: 22px;

        margin-bottom: 50px;

        font-size: clamp(3rem, 14vw, 5rem);

    }

    .service-item {

        grid-template-columns: 35px 1fr;

        gap: 15px;

        padding: 27px 0 30px;

    }

    .service-item:hover {

        padding-left: 0;

    }

    .service-item h3 {

        font-size: 2rem;

    }

    .service-item p {

        font-size: 12.5px;

    }


    /* PILARES */

    .pillars {

        padding: 90px 0;

    }

    .pillars-heading {

        margin-bottom: 60px;

    }

    .pillars-heading h2 {

        font-size: clamp(3.5rem, 15vw, 5.5rem);

    }

    .pillar-grid {

        grid-template-columns: 1fr;

    }

    .pillar {

        min-height: auto;

        padding: 30px 0;

        border-right: 0;

        border-bottom: 1px solid var(--line);

    }

    .pillar:not(:first-child) {

        padding-left: 0;

    }

    .pillar:last-child {

        border-bottom: 0;

    }

    .pillar-number {

        margin-bottom: 30px;

    }


    /* DIFERENCIADOR */

    .differentiator {

        padding: 90px 0;

    }

    .differentiator-copy h2 {

        font-size: clamp(3.8rem, 16vw, 6rem);

    }

    .differentiator-image {

        aspect-ratio: 1 / 1.05;

    }


    /* FOOTER */

    .footer-inner {

        min-height: auto;

        padding-top: 35px;

        padding-bottom: 35px;

        flex-direction: column;

        align-items: flex-start;

        gap: 14px;

        white-space: normal;

    }

}