/*
 * Portada: ancla #section-services y las cuatro tarjetas de servicio.
 *
 * El offset no cambia el alto del header.
 * Desktop: header fixed, alto 80px (70px con .smaller al scrollear).
 * Mobile (<=992px): header.header-mobile queda position:relative, alto 80px,
 * dentro del flujo. No tapa el ancla, así que el margen extra dejaría un hueco.
 */
@media only screen and (min-width: 993px) {
    #section-services {
        scroll-margin-top: 90px;
    }
}

#section-services .home-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 10px 0 36px;
}

@media (min-width: 768px) {
    #section-services .home-services {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    #section-services .home-services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

#section-services .home-service {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#section-services .home-service__media {
    display: block;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #2a2b2e;
}

#section-services .home-service__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#section-services .home-service__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 18px 18px 16px;
}

#section-services .home-service h3 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.4px;
    text-transform: none;
    font-weight: 500;
}

#section-services .home-service p {
    margin: 0;
    color: #d7d7d7;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

#section-services .home-service__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
}

#section-services .home-service__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--primary-color-1, #ffff00);
    color: #111111;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

#section-services .home-service__cta:hover {
    background: #ffffff;
    color: #111111;
    text-decoration: none;
}

#section-services .home-service__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    color: #eceff3;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#section-services .home-service__more:hover {
    color: var(--primary-color-1, #ffff00);
}

#section-services .home-service__media:focus-visible,
#section-services .home-service__cta:focus-visible,
#section-services .home-service__more:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

#section-services .home-service__cta:focus-visible {
    outline-color: #111111;
    box-shadow: 0 0 0 4px #ffffff;
}
