
/* =========================================================
   SERVICIOS
========================================================= */

.services-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 145px 6vw 110px;
    overflow: hidden;
}


/* =========================================================
   INTRODUCCIÓN
========================================================= */

.services-intro {
    width: min(1380px, 100%);
    margin: 0 auto 65px;
    white-space: nowrap;
}

.services-kicker {
    display: block;
    margin-bottom: 20px;

    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.services-intro h1 {
    max-width: 850px;
    margin: 0 0 22px;

    color: var(--blue-dark);
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(42px, 4.5vw, 64px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.services-intro p {
    max-width: 620px;
    margin: 0;

    color: var(--gray-dark);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   CATÁLOGO
========================================================= */

.services-catalog {
    width: min(1380px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
   TARJETAS
========================================================= */

.service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 420px;

    overflow: hidden;

    border: 1px solid rgba(31,97,139,.18);
    background: rgba(255,255,255,.30);

    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-color: rgba(31,97,139,.38);
    background: rgba(255,255,255,.52);
}


/* =========================================================
   IMAGEN
========================================================= */

.service-card-image {
    position: relative;

    width: 100%;
    height: 190px;
    min-height: 190px;

    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter: saturate(.82);

    transition:
        transform .55s ease,
        filter .55s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
    filter: saturate(1);
}


/* =========================================================
   CONTENIDO
========================================================= */

.service-card-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    flex: 1;

    padding: 25px 27px 24px;
}


/* =========================================================
   NÚMERO
========================================================= */

.service-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin-bottom: 18px;

    color: var(--blue);
    background: var(--white);

    font-size: 12px;
    font-weight: 800;

    border: 1px solid var(--blue);
    border-radius: 50%;
}


/* =========================================================
   TÍTULO
========================================================= */

.service-card h2 {
    margin: 0 0 13px;

    color: var(--blue-dark);
    font-family: 'Libre Baskerville', serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.service-card p {
    margin: 0 0 20px;

    color: var(--gray-dark);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   ENLACE
========================================================= */

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;

    color: var(--blue);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        gap .25s ease,
        color .25s ease;
}

.service-link::after {
    content: "→";

    font-size: 16px;
    line-height: 1;

    transition: transform .25s ease;
}

.service-link:hover {
    gap: 13px;
    color: var(--blue-dark);
}

.service-link:hover::after {
    transform: translateX(3px);
}


/* =========================================================
   DETALLE DECORATIVO
========================================================= */

.services-page::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    top: 240px;

    border: 1px solid rgba(31,97,139,.09);
    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .services-page {
        padding: 125px 5vw 90px;
    }

    .services-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .services-page {
        padding: 110px 6vw 70px;
    }

    .services-intro {
        margin-bottom: 50px;
    }

    .services-intro h1 {
        font-size: 40px;
    }

    .services-intro p {
        font-size: 16px;
    }

    .services-catalog {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        min-height: 0;
    }

    .service-card-image {
        height: 210px;
        min-height: 210px;
    }

    .service-card-content {
        padding: 28px 27px 26px;
    }

    .service-card h2 {
        font-size: 22px;
    }

}
