/**
 * Bloques SEO related/blog/cases en landings home-clone (estado/ciudad).
 * body.page-home sin .mx-mexico — debe ganar a home-ui/home-mobile
 * (padding 0 / text-align left en .cards-section--bridge).
 * Misma caja que .home-flow__services: shell centrado + títulos al centro.
 */

body.page-home .mx-geo-related.cards-section--bridge {
    position: relative;
    z-index: 2;
    width: 100% !important;
    max-width: var(--hs-shell, var(--home-shell-max, var(--cw-shell-wide, 1540px))) !important;
    margin-top: clamp(1.25rem, 2.5vw, 2rem) !important;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: clamp(1.5rem, 3vw, 2.75rem) var(--hs-pad, var(--home-shell-pad, var(--cw-shell-pad-x, 5%))) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-align: center;
}

body.page-home .mx-geo-related .section-title {
    display: block;
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0.65rem !important;
    box-sizing: border-box;
}

body.page-home .mx-geo-related .section-subtitle {
    display: block;
    width: 100% !important;
    max-width: 52ch !important;
    text-align: center !important;
    margin: 0 auto 1.5rem !important;
    line-height: 1.55;
    box-sizing: border-box;
}

body.page-home .mx-geo-related .mx-geo-links-grid,
body.page-home .mx-geo-related .mx-svc-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: left; /* cards: texto legible a la izquierda dentro del grid centrado */
    box-sizing: border-box;
}

body.page-home .mx-geo-related .mx-svc-links-card,
body.page-home .mx-geo-related .mx-geo-link-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.15rem 1rem;
    min-height: 132px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

body.page-home .mx-geo-related .mx-svc-links-card::before,
body.page-home .mx-geo-related .mx-geo-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green, #00ff9d), rgba(0, 243, 255, 0.35), transparent);
    opacity: 0.8;
}

body.page-home .mx-geo-related .mx-svc-links-card:hover,
body.page-home .mx-geo-related .mx-geo-link-card:hover {
    border-color: rgba(0, 255, 157, 0.38);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 255, 157, 0.1);
}

body.page-home .mx-geo-related .mx-svc-links-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.22);
    color: var(--matrix-green, #00ff9d);
    flex-shrink: 0;
    font-size: 1.05rem;
}

body.page-home .mx-geo-related .mx-svc-links-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1;
    text-align: left;
}

body.page-home .mx-geo-related .mx-svc-links-body strong {
    font-size: 0.94rem;
    line-height: 1.3;
    color: var(--stardust, #fff);
}

body.page-home .mx-geo-related .mx-svc-links-body span {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.page-home .mx-geo-related .mx-svc-links-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--neon-blue, #00f3ff);
    font-size: 0.85rem;
    align-self: center;
}

@media (max-width: 1024px) {
    body.page-home .mx-geo-related .mx-geo-links-grid,
    body.page-home .mx-geo-related .mx-svc-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 968px) {
    body.page-home .mx-geo-related.cards-section--bridge {
        padding: 1.75rem var(--home-mobile-x, var(--hs-pad, 1rem)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.page-home .mx-geo-related .section-title,
    body.page-home .mx-geo-related .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.page-home .mx-geo-related .section-subtitle {
        margin-bottom: 1.15rem !important;
        max-width: 40ch !important;
    }
}

@media (max-width: 768px) {
    body.page-home .mx-geo-related .mx-geo-links-grid,
    body.page-home .mx-geo-related .mx-svc-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    body.page-home .mx-geo-related .mx-svc-links-card,
    body.page-home .mx-geo-related .mx-geo-link-card {
        min-height: 0;
        padding: 1rem 0.95rem;
    }

    body.page-home .mx-geo-related .mx-svc-links-body strong {
        font-size: 0.88rem;
    }

    body.page-home .mx-geo-related .mx-svc-links-body span {
        font-size: 0.76rem;
    }
}

@media (max-width: 520px) {
    body.page-home .mx-geo-related .mx-geo-links-grid,
    body.page-home .mx-geo-related .mx-svc-links-grid {
        grid-template-columns: 1fr;
    }

    body.page-home .mx-geo-related .mx-svc-links-card,
    body.page-home .mx-geo-related .mx-geo-link-card {
        min-height: 44px;
    }
}
