@charset "utf-8";
/* CSS Document */
/* =========================================================
   SECCIÓN SERVICIOS
========================================================= */

.ac-hom-ser-section {
    padding: 90px 0;
     
}


/* =========================================================
   ENCABEZADO
========================================================= */

.ac-hom-ser-header {
    max-width: 500px;
    margin-bottom: 50px;
}


.ac-hom-ser-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    color: #b77a4e;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}


.ac-hom-ser-subtitle-line {
    display: inline-block;

    width: 18px;
    height: 2px;

    background: #b77a4e;
}


.ac-hom-ser-title {
    margin: 0 0 15px;

    color: #303238;

    font-size: 34px;
    font-weight: 800;

    line-height: 1.2;
}


.ac-hom-ser-description {
    max-width: 430px;

    margin: 0;

    color: #73767d;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   GRID DE SERVICIOS
========================================================= */

.ac-hom-ser-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 20px;
}


/* =========================================================
   TARJETA
========================================================= */

.ac-hom-ser-card {
    position: relative;

    grid-column: span 2;

    min-height: 250px;

    padding: 28px 25px;

    background: #ffffff;

    border: 1px solid #e3e4e6;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* TARJETAS 4 Y 5 CENTRADAS */

.ac-hom-ser-card:nth-child(4) {
    grid-column: 2 / span 2;
}


.ac-hom-ser-card:nth-child(5) {
    grid-column: 4 / span 2;
}


/* =========================================================
   HOVER
========================================================= */

.ac-hom-ser-card:hover {
    transform: translateY(-6px);

    border-color: rgba(232, 93, 35, 0.35);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.09);
}


/* =========================================================
   ÍCONO
========================================================= */

.ac-hom-ser-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    background: #fff7f2;

    border-radius: 8px;

    color: #c77a43;

    font-size: 25px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.ac-hom-ser-card:hover .ac-hom-ser-icon {
    background: #f15a24;

    color: #ffffff;
}


/* =========================================================
   TÍTULO
========================================================= */

.ac-hom-ser-card-title {
    margin: 0 0 14px;

    color: #34363b;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.4;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.ac-hom-ser-card-text {
    margin: 0;

    color: #777a81;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   LÍNEA INFERIOR
========================================================= */

.ac-hom-ser-card-line {
    position: absolute;

    left: 25px;
    bottom: 24px;

    width: 25px;
    height: 2px;

    background: #c77a43;

    transition:
        width 0.3s ease,
        background 0.3s ease;
}


.ac-hom-ser-card:hover .ac-hom-ser-card-line {
    width: 50px;

    background: #f15a24;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .ac-hom-ser-section {
        padding: 70px 0;
    }


    .ac-hom-ser-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .ac-hom-ser-card {
        grid-column: auto;
    }


    .ac-hom-ser-card:nth-child(4),
    .ac-hom-ser-card:nth-child(5) {
        grid-column: auto;
    }


    /* CENTRA LA ÚLTIMA TARJETA */

    .ac-hom-ser-card:nth-child(5) {
        grid-column: 1 / -1;

        width: calc(50% - 10px);

        justify-self: center;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 767px) {

    .ac-hom-ser-section {
        padding: 55px 0;
    }


    .ac-hom-ser-header {
        margin-bottom: 35px;
    }


    .ac-hom-ser-title {
        font-size: 28px;
    }


    .ac-hom-ser-description {
        font-size: 14px;
    }


    .ac-hom-ser-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .ac-hom-ser-card,
    .ac-hom-ser-card:nth-child(4),
    .ac-hom-ser-card:nth-child(5) {
        grid-column: auto;

        width: 100%;
    }


    .ac-hom-ser-card {
        min-height: 230px;

        padding: 25px 22px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .ac-hom-ser-section {
        padding: 45px 0;
    }


    .ac-hom-ser-title {
        font-size: 25px;
    }


    .ac-hom-ser-subtitle {
        font-size: 10px;
    }


    .ac-hom-ser-card {
        min-height: auto;

        padding: 24px 20px 55px;
    }


    .ac-hom-ser-card-title {
        font-size: 16px;
    }


    .ac-hom-ser-card-text {
        font-size: 13px;
    }

}