
.ah-services,
.ah-services * {
    box-sizing: border-box;
}

.ah-services {
    width: 100%;
    padding: 56px 20px 70px;
    background: #fff;
    color: var(--ah-title, #0D3551);
    font-family: inherit;
}

.ah-services__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ah-services__header {
    text-align: center;
    margin-bottom: 40px;
}

.ah-services__header h2 {
    margin: 0;
    color: var(--ah-title, #0D3551);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ah-services__header p {
    margin: 10px 0 0;
    color: var(--ah-accent, #98B5CB);
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.ah-services__line {
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--ah-accent, #98B5CB);
    margin: 13px auto 0;
}

.ah-services__grid {
    display: grid;
    grid-template-columns: repeat(var(--ah-cols, 3), minmax(0, 1fr));
    gap: 24px;
}

.ah-service-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 190px;
    padding: 26px;
    background: #fff;
    border: 1px solid #E1E7EC;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(13, 53, 81, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.ah-service-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--ah-accent, #98B5CB) 55%, #dfe7ec);
    box-shadow: 0 10px 28px rgba(13, 53, 81, 0.10);
}

.ah-service-card__icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ah-accent, #98B5CB) 18%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ah-service-card__icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.ah-service-card__fallback {
    font-size: 34px;
    line-height: 1;
    color: var(--ah-accent, #98B5CB);
    font-weight: 300;
}

.ah-service-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ah-service-card__unit {
    margin-bottom: 6px;
    color: #4B8BC7;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ah-service-card h3 {
    margin: 0;
    color: var(--ah-title, #0D3551);
    font-size: 20px;
    line-height: 1.28;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ah-service-card__button {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ah-button, #EF6B59);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    transition: gap .2s ease, opacity .2s ease;
}

.ah-service-card__button:hover {
    gap: 15px;
    opacity: .85;
    color: var(--ah-button, #EF6B59);
}

.ah-service-card__arrow {
    font-size: 20px;
    line-height: .8;
    font-weight: 400;
}

.ah-services__empty {
    padding: 24px;
    text-align: center;
    border: 1px dashed #d7e0e7;
    border-radius: 10px;
    color: #607687;
}

/* Tablet */
@media (max-width: 991px) {
    .ah-services {
        padding: 46px 18px 56px;
    }

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

    .ah-service-card {
        grid-template-columns: 80px minmax(0, 1fr);
        min-height: 170px;
        padding: 22px;
        gap: 16px;
    }

    .ah-service-card__icon {
        width: 80px;
        height: 80px;
    }

    .ah-service-card__icon img {
        width: 56px;
        height: 56px;
    }

    .ah-service-card h3 {
        font-size: 18px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .ah-services {
        padding: 38px 14px 48px;
    }

    .ah-services__header {
        margin-bottom: 28px;
    }

    .ah-services__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ah-service-card {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 148px;
        padding: 18px;
        gap: 14px;
        border-radius: 10px;
    }

    .ah-service-card__icon {
        width: 72px;
        height: 72px;
    }

    .ah-service-card__icon img {
        width: 50px;
        height: 50px;
    }

    .ah-service-card h3 {
        font-size: 17px;
        line-height: 1.3;
    }

    .ah-service-card__button {
        margin-top: 16px;
        font-size: 12px;
    }
}

/* Móviles pequeños */
@media (max-width: 420px) {
    .ah-service-card {
        grid-template-columns: 62px minmax(0, 1fr);
        padding: 16px;
    }

    .ah-service-card__icon {
        width: 62px;
        height: 62px;
    }

    .ah-service-card__icon img {
        width: 44px;
        height: 44px;
    }
}
