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

.home-main-services {
    width: 100%;
    padding: 70px 0 110px;

    background: #f7f8f6;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.home-main-services__header {
    width: min(1500px, 100%);
    margin: 0 auto 44px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
}

.home-main-services__heading {
    min-width: 0;
    max-width: 800px;
}

.home-main-services__eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 12px;

    color: #879873;

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-main-services__eyebrow::before {
    content: "";

    display: block;

    width: 26px;
    height: 1px;

    background: currentColor;
}

.home-main-services__header h2 {
    max-width: 800px;
    margin: 0;

    color: #233b32;

    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.home-main-services__introduction {
    max-width: 420px;
    margin: 0 0 4px;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
}


/* =========================================================
   GRID DE SERVICIOS
========================================================= */

.home-main-services__grid {
    width: min(1500px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 26px;
}


/* =========================================================
   TARJETA
========================================================= */

.home-service-card {
    min-width: 0;
    min-height: 640px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(35, 59, 50, 0.12);

    background: #ffffff;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.home-service-card:hover {
    transform: translateY(-5px);

    border-color: rgba(135, 152, 115, 0.5);

    box-shadow:
        0 22px 45px rgba(35, 59, 50, 0.09),
        0 6px 15px rgba(35, 59, 50, 0.04);
}


/* =========================================================
   IMAGEN
========================================================= */

.home-service-card__image {
    position: relative;

    width: 100%;
    height: 310px;

    flex-shrink: 0;

    overflow: hidden;

    background: #e9ede8;
}

.home-service-card__image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(35, 59, 50, 0.02) 25%,
            rgba(35, 59, 50, 0.42) 100%
        );

    pointer-events: none;
}

.home-service-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}

.home-service-card:hover .home-service-card__image img {
    transform: scale(1.035);
}


/* =========================================================
   NÚMERO DEL SERVICIO
========================================================= */

.home-service-card__number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;

    min-width: 40px;
    height: 40px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.55);

    background: rgba(35, 59, 50, 0.55);
    color: #ffffff;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}


/* =========================================================
   ICONO
========================================================= */

.home-service-card__icon {
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 2;

    width: 54px;
    height: 54px;

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

    background: #ffffff;
    color: #879873;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.home-service-card__icon svg {
    display: block;

    width: 28px;
    height: 28px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-service-card:hover .home-service-card__icon {
    background: #233b32;
    color: #ffffff;
}


/* =========================================================
   CONTENIDO
========================================================= */

.home-service-card__content {
    flex: 1;

    padding: 28px 28px 30px;

    display: flex;
    flex-direction: column;
}

.home-service-card__category {
    display: block;

    margin-bottom: 11px;

    color: #879873;

    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-service-card h3 {
    margin: 0;

    color: #233b32;

    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.home-service-card__content > p {
    margin: 16px 0 0;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
}


/* =========================================================
   LISTA DE BENEFICIOS
========================================================= */

.home-service-card__list {
    margin: 23px 0 18px;
    padding: 20px 0 0;

    display: grid;
    gap: 11px;

    border-top: 1px solid rgba(35, 59, 50, 0.12);

    list-style: none;
}

.home-service-card__list li {
    position: relative;

    padding-left: 18px;

    color: #526059;

    font-size: 12px;
    line-height: 1.55;
    font-weight: 500;
}

.home-service-card__list li::before {
    content: "";

    position: absolute;
    top: 7px;
    left: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #879873;
}


/* =========================================================
   ENLACE
========================================================= */

.home-service-card__link {
    margin-top: auto;
    padding-top: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    border-top: 1px solid rgba(35, 59, 50, 0.12);

    color: #233b32;

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.2s ease;
}

.home-service-card__link span {
    font-size: 19px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.home-service-card__link:hover {
    color: #879873;
}

.home-service-card__link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE - NOTEBOOK
   HASTA 1366 PX
========================================================= */

@media (max-width: 1366px) {

    .home-main-services {
        padding: 62px 0 96px;
    }

    .home-main-services__header {
        margin-bottom: 38px;

        gap: 46px;
    }

    .home-main-services__grid {
        gap: 22px;
    }

    .home-service-card {
        min-height: 610px;
    }

    .home-service-card__image {
        height: 285px;
    }

    .home-service-card__content {
        padding: 25px;
    }

    .home-service-card h3 {
        font-size: 23px;
    }
}


/* =========================================================
   RESPONSIVE - TABLET / NOTEBOOK PEQUEÑO
   HASTA 1050 PX
========================================================= */

@media (max-width: 1050px) {

    .home-main-services {
        padding: 55px 0 82px;
    }

    .home-main-services__header {
        align-items: flex-start;
        gap: 32px;
    }

    .home-main-services__introduction {
        max-width: 350px;

        font-size: 13px;
    }

    .home-main-services__grid {
        gap: 18px;
    }

    .home-service-card {
        min-height: 570px;
    }

    .home-service-card__image {
        height: 235px;
    }

    .home-service-card__content {
        padding: 22px 19px;
    }

    .home-service-card h3 {
        font-size: 21px;
    }

    .home-service-card__content > p {
        font-size: 13px;
    }

    .home-service-card__number {
        top: 16px;
        left: 16px;

        min-width: 36px;
        height: 36px;
    }

    .home-service-card__icon {
        right: 16px;
        bottom: 16px;

        width: 48px;
        height: 48px;
    }

    .home-service-card__icon svg {
        width: 25px;
        height: 25px;
    }
}


/* =========================================================
   RESPONSIVE - TABLET VERTICAL
   HASTA 780 PX
========================================================= */

@media (max-width: 780px) {

    .home-main-services {
        padding: 45px 0 70px;
    }

    .home-main-services__header {
        margin-bottom: 30px;

        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .home-main-services__introduction {
        max-width: 600px;
        margin: 0;

        font-size: 14px;
    }

    .home-main-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .home-service-card {
        min-height: 550px;
    }

    .home-service-card__image {
        height: 235px;
    }

    .home-service-card__content {
        padding: 22px 20px;
    }

    .home-service-card h3 {
        font-size: 22px;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL
   HASTA 560 PX
========================================================= */

@media (max-width: 560px) {

    .home-main-services {
        padding: 38px 0 58px;
    }

    .home-main-services__header {
        margin-bottom: 24px;
    }

    .home-main-services__header h2 {
        font-size: clamp(29px, 8vw, 36px);
    }

    .home-main-services__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-service-card {
        min-height: auto;
    }

    .home-service-card__image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .home-service-card__content {
        padding: 23px 21px 24px;
    }

    .home-service-card h3 {
        font-size: 23px;
    }

    .home-service-card__content > p {
        margin-top: 14px;
    }

    .home-service-card__list {
        margin: 20px 0 17px;
        padding-top: 18px;
    }

    .home-service-card__link {
        padding-top: 19px;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL PEQUEÑO
   HASTA 430 PX
========================================================= */

@media (max-width: 430px) {

    .home-main-services {
        padding: 34px 0 52px;
    }

    .home-main-services__eyebrow {
        font-size: 10px;
    }

    .home-main-services__header h2 {
        font-size: 30px;
    }

    .home-main-services__introduction {
        font-size: 13px;
    }

    .home-service-card__content {
        padding: 21px 18px;
    }

    .home-service-card h3 {
        font-size: 21px;
    }

    .home-service-card__list li {
        font-size: 12px;
    }
}


