
.service-item {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;

    border: 1px solid rgba(138, 21, 137, 0.10);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);

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

/*
|--------------------------------------------------------------------------
| Icono
|--------------------------------------------------------------------------
*/

.service-item .service-icon {
    width: 90px;
    height: 90px;

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

    transition: transform 0.2s ease;
}

.service-item .service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}


/*
|--------------------------------------------------------------------------
| Texto
|--------------------------------------------------------------------------
*/

.service-title {
    font-size: 1.35rem;
    line-height: 1.25;
}

.service-description {
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Botón / enlace
|--------------------------------------------------------------------------
*/

.service-item .service-link {
    color: var(--primary);
    min-height: 44px;

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

.service-item .service-link:hover {
    color: #ffffff;
    background-color: var(--primary);
    border-color: var(--primary);
}


/*
|--------------------------------------------------------------------------
| Mouse
|--------------------------------------------------------------------------
*/

@media (hover: hover) {

    .service-item:hover {
        transform: translateY(-8px);
        border-color: rgba(138, 21, 137, 0.22);
        box-shadow:
            0 18px 38px rgba(0, 0, 0, 0.10),
            0 6px 14px rgba(138, 21, 137, 0.08);
    }

    .service-item:hover .service-icon {
        transform: scale(1.04);
    }
}


/*
|--------------------------------------------------------------------------
| Teclado
|--------------------------------------------------------------------------
*/

.service-item:focus-within {
    outline: 3px solid rgba(138, 21, 137, 0.30);
    outline-offset: 3px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .service-item.p-lg-5 {
        padding: 1.75rem !important;
    }

    .service-item .d-flex.align-items-center {
        min-width: 0;
    }

    .service-item .service-icon {
        width: 72px;
        height: 72px;

        margin-right: 0.85rem !important;
    }

    .service-item .service-icon img {
        width: 48px;
        height: 48px;
    }

    .service-title {
        min-width: 0;

        font-size: 1.1rem;
        line-height: 1.2;

        white-space: normal;
    }

    .service-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    .service-item .service-icon {
        width: 80px;
        height: 80px;
    }

    .service-item .service-icon img {
        width: 52px;
        height: 52px;
    }

    .service-title {
        font-size: 1.2rem;
    }
}


/*
|--------------------------------------------------------------------------
| Móvil
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {

    .service-item .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-item .service-icon img {
        width: 46px;
        height: 46px;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.95rem;
    }
}


/*
|--------------------------------------------------------------------------
| Preferencias de accesibilidad
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .service-item,
    .service-item .service-icon,
    .service-item .service-link {
        transition: none;
    }

    .service-item:hover,
    .service-item:hover .service-icon {
        transform: none;
    }
}