/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #111;

    background: #fafaf8;
}


/* =========================================================
   RETÍCULA GENERAL
   ========================================================= */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .045) 1px,
            transparent 1px
        );

    background-size: 25px 25px;

    pointer-events: none;

    z-index: 0;
}





/* =========================================================
   HEADER
   ========================================================= */

header {

    top: 0;
    left: 0;

    width: 100%;
    height: 100px;

    padding: 0 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    z-index: 20;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand {

    display: inline-flex;

    align-items: center;

    gap: 14px;

    text-decoration: none;

    color: #111;

    height: 44px;
}


/* ISOTIPO */

.brand-mark {

    position: relative;

    width: 48px;
    height: 38px;

    display: block;

    flex-shrink: 0;
}


/* MÓDULO PRINCIPAL */

.block-main {

    position: absolute;

    left: 0;
    top: 0;

    width: 38px;
    height: 38px;

    background: #111;
}


/* VACÍO DEL MÓDULO */

.block-main::after {

    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 13px;
    height: 13px;

    background: #fafaf8;
}


/* MÓDULO PEQUEÑO */

.block-small {

    position: absolute;

    right: 0;
    bottom: 0;

    width: 13px;
    height: 13px;

    background: #111;
}


/* TEXTO LOGO */

.brand-name {

    font-size: 28px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -1.4px;

    white-space: nowrap;
}

.brand-name span {

    font-weight: 400;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

nav {

    display: flex;

    gap: 40px;
}

nav a {

    position: relative;

    color: #111;

    text-decoration: none;

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}

nav a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: #111;

    transition: width .25s ease;
}

nav a:hover::after {
    width: 100%;
}

.grid-line-v {

    position: absolute;

    left: 31%;

    top: 0;

    width: 1px;
    height: 100%;

    background: rgba(0,0,0,.045);
}

.grid-line-h {

    position: absolute;

    left: 0;
    top: 50%;

    width: 100%;
    height: 1px;

    background: rgba(0,0,0,.035);
}
/* =========================================================
   MAIN
   ========================================================= */
#main{
    position: relative;
    padding-top:80px;
    padding-bottom:80px;
}
#main h1 {
    font-weight: 100;
text-align: center;
font-size: 33px;
letter-spacing: -1.2px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.actions {
    display: flex;
    justify-content: center;
    margin-top: 66px;
}

.button {
    display: inline-flex;

    height: 43px;

    align-items: center;
    justify-content: center;

    padding: 0 21px;

    text-decoration: none;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 2px;

    transition: .25s ease;
}

.button-primary {
    background: #111;
    color: white;
}

.button-primary:hover {
    transform: translateY(-2px);
}

/* =========================================================
   SERVICIOS
   ========================================================= */

#servicios {

    position: relative;

    width: 100%;

    padding-top:10px;

    z-index: 2;
}


/* CONTENEDOR */

#servicios .servicios-grid {

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

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

    border-top: 1px solid rgba(0,0,0,.12);

    border-left: 1px solid rgba(0,0,0,.12);
}


/* =========================================================
   CAJAS
   ========================================================= */

#servicios .servicio {

    position: relative;

    min-height: 390px;

    padding: 70px 45px 50px;

    border-right: 1px solid rgba(0,0,0,.12);

    border-bottom: 1px solid rgba(0,0,0,.12);

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background: transparent;

    transition:
        background .3s ease,
        transform .3s ease;
}


/* =========================================================
   NÚMERO
   ========================================================= */

#servicios .servicio-numero {

    position: absolute;

    top: 25px;
    left: 25px;

    font-size: 9px;

    letter-spacing: 3px;

    color: #888;
}


/* =========================================================
   TÍTULO
   ========================================================= */

#servicios .servicio h2 {

    margin: 0 0 14px;

    font-size: 34px;

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -1.5px;

    color: #111;
}


/* =========================================================
   SUBTÍTULO
   ========================================================= */

#servicios .servicio h3 {

    margin: 0 0 22px;

    font-size: 10px;

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #222;
}


/* =========================================================
   TEXTO
   ========================================================= */

#servicios .servicio p {

    max-width: 300px;

    margin: 0;

    font-size: 13px;

    line-height: 1.7;

    color: #666;
}


/* =========================================================
   HOVER
   ========================================================= */

#servicios .servicio:hover {

    background: rgba(255,255,255,.7);

    transform: translateY(-3px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    #servicios {

        padding: 90px 6vw;

    }

    #servicios .servicios-grid {

        grid-template-columns: 1fr;

    }

    #servicios .servicio {

        min-height: 320px;

        padding: 65px 40px 45px;

    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    

    header {

        height: 75px;

        padding: 0 7vw;

    }

    .brand {

        gap: 10px;

    }

    .brand-mark {

        width: 44px;

        height: 31px;

    }

    .brand-name {

        font-size: 22px;

    }

    nav {

        gap: 18px;

    }

    nav a {

        font-size: 8px;

        letter-spacing: 1.5px;

    }

    .grid-line-v {

        display: none;

    }

    #servicios {

        padding: 10px 7vw;
    }

    #servicios .servicios-grid {

        width: 100%;

    }

    #servicios .servicio {

        min-height: 290px;

        padding: 65px 28px 40px;

    }

    #servicios .servicio h2 {

        font-size: 29px;

        letter-spacing: -1.2px;

    }

    #servicios .servicio h3 {

        font-size: 9px;

        letter-spacing: 1.7px;

    }

    #servicios .servicio p {

        font-size: 12px;

        line-height: 1.7;

    }

    #servicios .servicio-numero {

        top: 22px;

        left: 22px;

    }
}