/**
 * Cards horizontales del índice México + navegación (breadcrumbs, subnav).
 * Solo afecta .mx-* — no modifica estilos globales del HOME.
 */

.mx-breadcrumbs {
    position: relative;
    z-index: 25;
    width: 100%;
    box-sizing: border-box;
}

.mx-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0 auto;
    padding: 0 var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%));
    max-width: var(--cw-shell-wide, 1540px);
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-breadcrumbs-list li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
}

.mx-breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.mx-breadcrumbs-list a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mx-breadcrumbs-list a:hover {
    color: var(--matrix-green);
}

.mx-breadcrumbs-list span[aria-current] {
    color: rgba(255, 255, 255, 0.9);
}

.mx-section-nav {
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: var(--cw-shell-wide, 1540px);
    margin-inline: auto;
    padding: 0.65rem var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%));
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.12);
    box-sizing: border-box;
}

.mx-section-nav-link {
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-section-nav-link:hover {
    color: var(--stardust);
    border-color: rgba(0, 243, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.mx-section-nav-link.is-active {
    color: var(--stardust);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(185, 103, 255, 0.12));
    border-color: rgba(0, 243, 255, 0.35);
}

.mx-section-nav-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mx-section-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.mx-directory-toolbar {
    max-width: 1100px;
    margin: 0 auto 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.mx-directory-search {
    flex: 1;
    min-width: 240px;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
}

.mx-directory-search:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.15);
}

.mx-directory-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--stardust);
    font-size: 0.95rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    outline: none;
}

.mx-directory-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.mx-directory-count {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-directory-groups {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mx-directory-region {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neon-blue);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-directory-group.is-hidden {
    display: none;
}

.mx-directory-card.is-hidden {
    display: none;
}

.mx-directory-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ============================================================
   HUB NACIONAL /mexico/
   ============================================================ */

.container.mx-hub-hero-wrap .content-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.container.mx-hub-hero-wrap {
    margin-bottom: 1rem;
}

.mx-hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.25rem;
}

.mx-hub-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-hero-cta--primary {
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.mx-hub-hero-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.mx-hub-hero-cta--secondary {
    color: var(--stardust);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.35);
}

.mx-hub-hero-cta--secondary:hover {
    transform: translateY(-2px);
    border-color: var(--neon-blue);
    box-shadow: 0 8px 24px rgba(0, 243, 255, 0.2);
}

.mx-hub {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 3rem 5rem;
}

.mx-hub-search-wrap {
    position: relative;
    margin: 0 auto 3.5rem;
    max-width: 760px;
}

.mx-hub-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 243, 255, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mx-hub-search:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(0, 243, 255, 0.15);
}

.mx-hub-search i {
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.mx-hub-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--stardust);
    font-size: 1.05rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    outline: none;
    min-width: 0;
}

.mx-hub-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.mx-hub-search-hint {
    display: none;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
    .mx-hub-search-hint { display: inline-block; }
}

.mx-hub-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 360px;
    overflow-y: auto;
    border-radius: 16px;
    background: rgba(12, 12, 18, 0.98);
    border: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    z-index: 30;
}

.mx-hub-search-results[hidden] {
    display: none;
}

.mx-hub-result {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.mx-hub-result:last-child { border-bottom: none; }

.mx-hub-result:hover,
.mx-hub-result.is-focused {
    background: rgba(0, 243, 255, 0.08);
}

.mx-hub-result-type {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(185, 103, 255, 0.2);
    color: var(--neon-purple);
    margin-top: 0.15rem;
}

.mx-hub-result-type--Estado { background: rgba(0, 243, 255, 0.15); color: var(--neon-blue); }
.mx-hub-result-type--Ciudad { background: rgba(0, 255, 157, 0.12); color: var(--matrix-green); }
.mx-hub-result-type--Servicio { background: rgba(185, 103, 255, 0.2); color: var(--neon-purple); }

.mx-hub-result-body strong {
    display: block;
    color: var(--stardust);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.mx-hub-result-body span {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.4;
}

.mx-hub-result-empty {
    padding: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.mx-hub-quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    justify-content: center;
}

.mx-hub-quick-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-quick-tag {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-quick-tag:hover {
    border-color: var(--neon-blue);
    color: var(--stardust);
    background: rgba(0, 243, 255, 0.1);
}

.mx-hub-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
    margin-bottom: 4rem;
}

.mx-hub-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.25rem 0.75rem;
    border-radius: var(--border-radius-card);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-amount));
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mx-hub-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.35);
}

.mx-hub-stat i {
    font-size: 1.25rem;
    color: var(--neon-blue);
}

.mx-hub-stat strong {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--stardust);
    line-height: 1;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-stat span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-block {
    margin-bottom: 4.5rem;
}

.mx-hub-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: 2.75rem;
    padding-bottom: 0.25rem;
}

.mx-hub-heading {
    margin: 0 0 0.75rem;
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.28;
    padding-block: 0.05em 0.15em;
    overflow: visible;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--matrix-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.35);
}

.mx-hub-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 680px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 400;
}

.mx-hub-block-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-block-link:hover { color: var(--matrix-green); }

.mx-hub-portals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mx-hub-portal {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    border-radius: var(--border-radius-card);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-amount));
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    min-height: 220px;
}

.mx-hub-portal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mx-hub-portal:hover {
    transform: translateY(-6px);
    border-color: var(--neon-blue);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.2);
}

.mx-hub-portal:hover::after { opacity: 1; }

.mx-hub-portal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    position: relative;
    z-index: 1;
}

.mx-hub-portal--estados .mx-hub-portal-icon { background: rgba(0, 243, 255, 0.15); color: var(--neon-blue); }
.mx-hub-portal--ciudades .mx-hub-portal-icon { background: rgba(0, 255, 157, 0.12); color: var(--matrix-green); }
.mx-hub-portal--servicios .mx-hub-portal-icon { background: rgba(185, 103, 255, 0.15); color: var(--neon-purple); }

.mx-hub-portal-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.mx-hub-portal-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--stardust);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-portal-body p {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-portal-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mx-hub-portal-arrow {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--neon-blue);
    transition: transform 0.3s ease, background 0.3s ease;
}

.mx-hub-portal:hover .mx-hub-portal-arrow {
    transform: translateX(4px);
    background: rgba(0, 243, 255, 0.2);
}

.mx-hub-city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mx-hub-city {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.2rem;
    min-height: 128px;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 255, 157, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mx-hub-city::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--matrix-green), rgba(0, 243, 255, 0.35), transparent);
    opacity: 0.85;
}

.mx-hub-city:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 157, 0.45);
    box-shadow: 0 14px 36px rgba(0, 255, 157, 0.14);
}

.mx-hub-city-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--stardust);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.25;
}

.mx-hub-city-state {
    font-size: 0.72rem;
    color: var(--matrix-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mx-hub-city-focus {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.4;
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mx-hub-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mx-hub-service {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.2rem 1.15rem;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(185, 103, 255, 0.16);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 176px;
    position: relative;
    overflow: hidden;
}

.mx-hub-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), rgba(0, 243, 255, 0.35), transparent);
    opacity: 0.85;
}

.mx-hub-service:hover {
    transform: translateY(-4px);
    border-color: rgba(185, 103, 255, 0.45);
    box-shadow: 0 14px 36px rgba(185, 103, 255, 0.16);
}

.mx-hub-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 103, 255, 0.16);
    color: var(--neon-purple);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.mx-hub-service h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--stardust);
    line-height: 1.3;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-service p {
    margin: 0;
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mx-hub-service-cta {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-top: auto;
    padding-top: 0.35rem;
}

.mx-hub-region-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.mx-hub-region-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-region-pill:hover,
.mx-hub-region-pill.is-active {
    border-color: var(--neon-blue);
    color: var(--stardust);
    background: rgba(0, 243, 255, 0.12);
}

.mx-hub-state-group {
    margin-bottom: 2.25rem;
}

.mx-hub-state-group.is-hidden { display: none; }

.mx-hub-state-region {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-state-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mx-hub-state-pill {
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-state-pill:hover {
    border-color: var(--neon-blue);
    color: var(--stardust);
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-1px);
}

.mx-hub-state-pill.is-hidden { display: none; }

.mx-hub-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-card);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.08), rgba(185, 103, 255, 0.08));
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.mx-hub-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-hub-trust-item i { color: var(--neon-blue); }

.mx-hub-faq {
    position: relative;
    z-index: 2;
}

.container.mx-directory-hero {
    grid-template-columns: 1fr;
    min-height: auto;
}

.container.mx-directory-hero .content-section {
    max-width: 920px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
}

.container.mx-directory-hero .badge,
.container.mx-directory-hero .badge-mexico,
.container.mx-directory-hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.container.mx-directory-hero .hero-title {
    text-align: center;
}

.mx-directory {
    position: relative;
    z-index: 2;
    padding: 4rem 3rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
}

.mx-directory .section-title {
    margin-bottom: 1rem;
}

.mx-directory-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-directory-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.mx-directory-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 0;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.mx-directory-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple), var(--matrix-green));
    opacity: 0.7;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.mx-directory-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 14px 40px rgba(0, 243, 255, 0.14);
}

.mx-directory-card:hover::before {
    opacity: 1;
    width: 4px;
}

.mx-directory-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.18);
    color: var(--neon-blue);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mx-directory-card:hover .mx-directory-icon {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    border-color: rgba(0, 243, 255, 0.35);
}

.mx-directory-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mx-directory-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--stardust);
    line-height: 1.28;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-directory-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.45;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mx-directory-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.28);
    color: var(--stardust);
    transition: all 0.3s ease;
}

.mx-directory-card:hover .mx-directory-cta {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(185, 103, 255, 0.3));
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.25);
}

.mx-directory-cta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mx-directory-card:hover .mx-directory-cta i {
    transform: translateX(4px);
}

/* ============================================================
   TIPOGRAFÍA MÉXICO — alineada al HOME (Poiret One + Inter)
   ============================================================ */

body.mx-mexico .container.mx-directory-hero,
body.mx-mexico .container.mx-hub-hero-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
    width: 100%;
    max-width: var(--cw-shell-wide, 1540px);
    margin-inline: auto;
}

body.mx-mexico .container.mx-directory-hero .content-section,
body.mx-mexico .container.mx-hub-hero-wrap .content-section {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 3rem var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%)) 3.5rem;
    gap: 0;
}

/* Hero clonado del home: mismo inset que migas y cards */
body.mx-mexico:not(.page-home) .home-intro-bridge {
    max-width: var(--cw-shell-wide, 1540px);
    padding-inline: var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%));
    margin-inline: auto;
}

body.mx-mexico:not(.page-home) .home-hero-zone {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

body.mx-mexico:not(.page-home) .home-intro-bridge .content-section {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 1200px) {
    body.mx-mexico:not(.page-home) .home-intro-bridge .content-section {
        padding-left: 0;
        padding-right: 0;
    }
}

body.mx-mexico .container.mx-directory-hero .badge,
body.mx-mexico .container.mx-hub-hero-wrap .badge {
    margin-bottom: 1.25rem;
}

body.mx-mexico .container.mx-directory-hero .hero-title,
body.mx-mexico .container.mx-hub-hero-wrap .hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.28;
    padding-block: 0.05em 0.15em;
    overflow: visible;
    max-width: 900px;
}

body.mx-mexico .container.mx-directory-hero .badge-mexico,
body.mx-mexico .container.mx-hub-hero-wrap .badge-mexico {
    margin: 0 auto 1.5rem;
}

body.mx-mexico .container.mx-directory-hero .hero-subtitle,
body.mx-mexico .container.mx-hub-hero-wrap .hero-subtitle {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

body.mx-mexico .mx-hub {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 3.5rem;
}

body.mx-mexico .mx-directory .section-title {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.28;
    padding-block: 0.05em 0.15em;
    overflow: visible;
    margin-bottom: 1.25rem;
}

body.mx-mexico .mx-directory-subtitle,
body.mx-mexico .mx-hub-faq .section-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
    margin-bottom: 2.5rem;
}

body.mx-mexico .mx-hub-faq {
    padding: 4rem 3rem;
    max-width: 960px;
    margin: 0 auto 3rem;
}

body.mx-mexico .mx-hub-faq .faq-title {
    margin-bottom: 1rem;
}

body.mx-mexico .mx-hub-portal-body h3,
body.mx-mexico .mx-hub-service h3,
body.mx-mexico .mx-directory-body h3 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.65rem;
    color: var(--stardust);
}

body.mx-mexico .mx-hub-portal-body p,
body.mx-mexico .mx-hub-service p,
body.mx-mexico .mx-directory-body p,
body.mx-mexico .mx-hub-city-focus {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

body.mx-mexico .mx-hub-city {
    gap: 0.4rem;
    padding: 1.15rem 1.2rem;
    min-height: 128px;
}

body.mx-mexico .mx-hub-city-name {
    font-size: 1.02rem;
    line-height: 1.28;
}

body.mx-mexico .mx-hub-service {
    gap: 0.55rem;
    padding: 1.2rem 1.15rem;
    min-height: 176px;
}

body.mx-mexico .mx-hub-portal {
    gap: 1.25rem;
    min-height: 240px;
}

body.mx-mexico .mx-hub-block > .mx-hub-heading:first-child {
    margin-bottom: 0.75rem;
}

body.mx-mexico .mx-hub-block > .mx-hub-lead:first-of-type {
    margin-bottom: 2rem;
}

body.mx-mexico .mx-directory-body p {
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .mx-hub-portals {
        grid-template-columns: 1fr;
    }

    .mx-hub-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mx-hub-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mx-hub-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mx-directory-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.mx-mexico .container.mx-directory-hero .content-section,
    body.mx-mexico .container.mx-hub-hero-wrap .content-section {
        padding: 2.25rem 1.25rem 2.75rem;
    }

    body.mx-mexico .container.mx-directory-hero .hero-title,
    body.mx-mexico .container.mx-hub-hero-wrap .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    body.mx-mexico .mx-hub-faq {
        padding: 3rem 1.25rem;
    }

    body.mx-mexico .mx-hub-block-head {
        margin-bottom: 2rem;
    }

    .mx-hub {
        padding: 1rem 1.25rem 3.5rem;
    }

    .mx-hub-search-wrap {
        margin-bottom: 2.5rem;
    }

    .mx-hub-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mx-hub-portals {
        grid-template-columns: 1fr;
    }

    .mx-hub-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .mx-hub-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .mx-hub-city {
        min-height: 118px;
        padding: 1rem 0.95rem;
    }

    .mx-hub-service {
        min-height: 158px;
        padding: 1rem 0.95rem;
    }

    .mx-hub-service h3 {
        font-size: 0.88rem;
    }

    .mx-hub-service p {
        font-size: 0.76rem;
        -webkit-line-clamp: 2;
    }

    .mx-hub-block-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .mx-hub-trust {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mx-section-nav {
        padding-block: 0.55rem;
        gap: 0.4rem;
    }

    .mx-section-nav-cta {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        order: 10;
    }

    .mx-directory {
        padding: 3rem 1.25rem;
    }

    .mx-directory-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mx-directory-card {
        flex-wrap: nowrap;
        align-items: center;
        padding: 0.95rem 1rem;
        gap: 0.75rem;
    }

    .mx-directory-card:hover {
        transform: translateY(-3px);
    }

    .mx-directory-icon {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    .mx-directory-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mx-directory-cta {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        margin-top: 0;
        font-size: 0;
        gap: 0;
        flex-shrink: 0;
    }

    .mx-directory-cta i {
        font-size: 0.82rem;
        margin: 0;
    }

    .mx-directory-body h3 {
        font-size: 0.98rem;
    }

    .mx-directory-body p {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }
}

/* ============================================================
   DIRECTORIO GENERAL /indice/
   ============================================================ */

.site-directory-page #particles-js {
    opacity: 0.45;
}

.site-directory {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.5rem clamp(1.25rem, 3vw, 3rem) 5rem;
}

.site-directory-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.site-directory-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-blue);
    margin-bottom: 0.85rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-directory-title {
    margin: 0 0 0.75rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--stardust);
    line-height: 1.28;
    padding-block: 0.05em 0.15em;
    overflow: visible;
}

.site-directory-lead {
    margin: 0 auto;
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-directory-search {
    margin-bottom: 1.75rem;
}

.site-directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(10px);
}

.site-directory-toolbar .mx-directory-search {
    margin: 0;
    max-width: 420px;
}

.site-directory-count {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-directory-count strong {
    color: var(--neon-blue);
    font-weight: 700;
}

.site-directory-body {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
}

.site-directory-section {
    scroll-margin-top: 1.5rem;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.45);
}

.site-directory-section.is-hidden {
    display: none;
}

.site-directory-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-directory-section-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--stardust);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-directory-section-lead {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-directory-badge {
    flex-shrink: 0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.22);
}

.site-directory-group {
    margin-bottom: 1.25rem;
}

.site-directory-group:last-child {
    margin-bottom: 0;
}

.site-directory-group.is-hidden {
    display: none;
}

.site-directory-group-label,
.site-directory-collapse-summary span:first-child {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon-blue);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-directory-url-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.65rem;
}

.site-dir-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.72rem 0.85rem;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-dir-link:hover {
    border-color: rgba(0, 243, 255, 0.35);
    background: rgba(0, 243, 255, 0.06);
    transform: translateY(-1px);
}

.site-dir-link.is-hidden {
    display: none;
}

.site-dir-link-title {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-dir-link-path {
    font-size: 0.72rem;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    color: rgba(0, 243, 255, 0.65);
    word-break: break-all;
}

.site-directory-collapse {
    margin-bottom: 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.site-directory-collapse.is-hidden {
    display: none;
}

.site-directory-collapse-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.site-directory-collapse-summary::-webkit-details-marker {
    display: none;
}

.site-directory-collapse-summary span:first-child {
    margin: 0;
}

.site-directory-collapse-summary i {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease;
}

.site-directory-collapse[open] .site-directory-collapse-summary i {
    transform: rotate(180deg);
}

.site-directory-collapse .site-directory-group {
    padding: 0 1rem 1rem;
    margin: 0;
}

.site-directory-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.site-directory-empty.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .site-directory-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-directory-url-grid {
        grid-template-columns: 1fr;
    }

    .site-directory-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .site-directory-toolbar .mx-directory-search {
        max-width: none;
    }
}

/* ============================================================
   SERVICIO × GEO — módulo comercial local
   ============================================================ */

.mx-svc-geo {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.mx-svc-geo-pillar {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.45);
}

.mx-svc-geo-pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--svc-accent, var(--neon-blue));
    background: color-mix(in srgb, var(--svc-accent, #00f3ff) 14%, transparent);
    flex-shrink: 0;
}

.mx-svc-geo-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.mx-svc-geo-lead,
.mx-svc-geo-context {
    text-align: left;
    max-width: none;
}

.mx-svc-geo-context {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mx-svc-geo-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mx-svc-geo-benefit {
    padding: 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.mx-svc-geo-benefit i {
    color: var(--neon-blue);
    margin-bottom: 0.65rem;
}

.mx-svc-geo-benefit h3 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    color: var(--stardust);
}

.mx-svc-geo-benefit p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.mx-svc-geo-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mx-svc-geo-panel {
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.55);
}

.mx-svc-geo-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--stardust);
}

.mx-svc-geo-panel ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.55;
}

.mx-svc-geo-panel--accent {
    border-color: rgba(0, 243, 255, 0.18);
}

.mx-svc-geo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mx-svc-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mx-svc-links-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1.15rem 1.15rem 1rem;
    min-height: 148px;
    text-decoration: none;
    color: inherit;
    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;
}

.mx-svc-links-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), rgba(185, 103, 255, 0.4), transparent);
    opacity: 0.8;
}

.mx-svc-links-card:hover {
    border-color: rgba(0, 243, 255, 0.38);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 243, 255, 0.1);
}

.mx-svc-links-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--neon-blue);
    flex-shrink: 0;
    font-size: 1.05rem;
}

.mx-svc-links-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1;
}

.mx-svc-links-body strong {
    font-size: 0.94rem;
    line-height: 1.3;
    color: var(--stardust);
}

.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;
}

.mx-svc-links-arrow {
    margin-left: 0;
    margin-top: auto;
    align-self: flex-end;
    color: var(--neon-blue);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .mx-svc-geo-benefits,
    .mx-svc-geo-columns {
        grid-template-columns: 1fr;
    }

    .mx-svc-geo-pillar {
        flex-direction: column;
    }

    .mx-svc-links-grid,
    body.mx-mexico .mx-svc-links-grid.cards-grid-balanced {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem;
    }

    .mx-svc-links-card {
        min-height: 132px;
        padding: 1rem 0.95rem;
    }
}

@media (max-width: 520px) {
    .mx-svc-links-grid,
    body.mx-mexico .mx-svc-links-grid.cards-grid-balanced {
        grid-template-columns: 1fr !important;
    }
}

/* ── Páginas servicio × región: alinear módulo geo al shell de landings ── */
body.mx-service-landing #particles-js {
    pointer-events: none;
}

body.mx-service-landing .mx-svc-geo-wrap,
body.mx-service-landing .mx-svc-geo-tail,
body.mx-service-landing .mx-svc-final-wrap {
    position: relative;
    z-index: 2;
}

body.mx-service-landing .mx-svc-geo {
    width: 100%;
    max-width: var(--cw-shell-wide, 1540px);
    margin-inline: auto;
    padding-inline: var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%));
    box-sizing: border-box;
    margin-bottom: 0;
}

body.mx-service-landing .mx-svc-geo-wrap {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

body.mx-service-landing .hero-intro .badge-mexico {
    margin: 0.5rem auto 1.25rem;
    background: rgba(185, 103, 255, 0.15);
    border: 1.5px solid rgba(185, 103, 255, 0.6);
    color: #e6d4ff;
    box-shadow: 0 0 12px rgba(185, 103, 255, 0.4);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 50px;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

body.mx-service-landing .mx-svc-geo-actions .cta-button,
body.mx-service-landing .mx-svc-geo-actions .mx-svc-landing-link {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

body.mx-service-landing .mx-svc-geo-actions .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
}

/* Enlace secundario «Ver landing de…» — mismo lenguaje que CTA outline de landings */
body.mx-service-landing .mx-svc-landing-link,
body.mx-service-landing .mx-svc-landing-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.85rem 1.35rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--neon-blue, #00f3ff);
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.28);
    backdrop-filter: blur(8px);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

body.mx-service-landing .mx-svc-landing-link:hover,
body.mx-service-landing .mx-svc-landing-link:focus-visible {
    color: #fff;
    background: rgba(0, 243, 255, 0.14);
    border-color: rgba(0, 255, 157, 0.45);
    box-shadow: 0 6px 18px rgba(0, 243, 255, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

body.mx-service-landing .mx-svc-landing-link i {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

body.mx-service-landing .mx-svc-landing-link:hover i {
    transform: translateX(3px);
}

/* «Ver asesoría gratuita» al pie — sin morado ni subrayado de enlace visitado */
body.mx-service-landing .home-consult-link,
body.mx-service-landing .home-consult-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.mx-service-landing .home-consult-link:hover,
body.mx-service-landing .home-consult-link:focus-visible {
    color: var(--neon-blue, #00f3ff);
    text-decoration: none;
}

body.mx-service-landing .home-consult-link i {
    font-size: 0.72rem;
}

/* Cobertura y servicios relacionados */
body.mx-service-landing .mx-svc-related {
    padding: 2.5rem 0 3rem;
    max-width: var(--cw-shell-max, 1280px);
    margin: 0 auto;
}

body.mx-service-landing .mx-svc-related-title {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 400;
    text-align: center;
    letter-spacing: 1.5px;
    margin: 0 0 1.75rem;
    background: linear-gradient(135deg, var(--neon-blue, #00f3ff), var(--neon-purple, #b967ff), var(--matrix-green, #00ff9d));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.mx-service-landing .mx-svc-related-grid {
    max-width: none;
    width: 100%;
}

body.mx-service-landing .mx-svc-related .mx-svc-links-card {
    text-decoration: none;
    color: inherit;
}

body.mx-service-landing .mx-svc-related .mx-svc-links-card:visited {
    color: inherit;
}

body.mx-service-landing .mx-svc-related .mx-svc-links-card:hover .mx-svc-links-arrow {
    color: var(--neon-blue, #00f3ff);
    transform: translateX(3px);
}

body.mx-service-landing .mx-svc-related .mx-svc-links-arrow {
    transition: color 0.2s ease, transform 0.2s ease;
}

body.mx-service-landing .mx-svc-geo-tail {
    padding-top: 1rem;
}

body.mx-service-landing .mx-svc-geo-tail .faq-section {
    padding: 2.5rem 0 2rem;
    margin-bottom: 0;
}

body.mx-service-landing .mx-svc-faq h2 {
    margin-bottom: 0.65rem;
}

body.mx-service-landing .mx-svc-faq .section-label {
    text-align: center;
    display: block;
    width: 100%;
    margin: 0 auto 2.5rem;
    font-weight: 600;
    color: var(--neon-blue);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.mx-service-landing .mx-svc-final-wrap {
    padding-top: 0;
    padding-bottom: 2rem;
}

body.mx-service-landing .mx-svc-final-wrap .personal-consult-module {
    position: relative;
    z-index: 2;
}

body.mx-service-landing .home-consult-actions .cta-button {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
}

/* Páginas estado/ciudad: cards del home sin desbordar (sin .page-home / .home-intro-bridge) */
body.mx-mexico:not(.mx-service-landing) .cards-section.cards-section--bridge {
    width: 100%;
    max-width: var(--cw-shell-wide, 1540px);
    margin-inline: auto;
    margin-top: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(2rem, 4vw, 4rem) var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%));
    box-sizing: border-box;
}

/* Grid balanceado: N columnas según cantidad de tarjetas (sin fila de 1 sola) */
body.mx-mexico:not(.mx-service-landing) .cards-grid-balanced:not(.mx-svc-links-grid) {
    display: grid;
    grid-template-columns: repeat(var(--cards-cols-sm, 1), minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    max-width: var(--cw-shell-max, 1280px);
    margin-inline: auto;
    width: 100%;
}

body.mx-mexico:not(.mx-service-landing) .cards-section.cards-section--bridge .cards-grid-balanced {
    max-width: var(--cw-shell-wide, 1540px);
}

@media (min-width: 640px) {
    body.mx-mexico:not(.mx-service-landing) .cards-grid-balanced:not(.mx-svc-links-grid) {
        grid-template-columns: repeat(var(--cards-cols-md, var(--cards-cols, 1)), minmax(0, 1fr));
    }

    body.mx-mexico:not(.mx-service-landing) .mx-svc-links-grid.cards-grid-balanced {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1200px) {
    body.mx-mexico:not(.mx-service-landing) .cards-grid-balanced:not(.mx-svc-links-grid) {
        grid-template-columns: repeat(var(--cards-cols, 1), minmax(0, 1fr));
    }

    body.mx-mexico:not(.mx-service-landing) .mx-svc-links-grid.cards-grid-balanced {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

body.mx-mexico:not(.mx-service-landing) .cards-grid-balanced[data-cards="5"] .card {
    padding: clamp(1.25rem, 2vw, 2rem) clamp(1rem, 1.5vw, 1.5rem);
    min-height: clamp(300px, 28vw, 360px);
}

body.mx-mexico:not(.mx-service-landing) .cards-grid-balanced[data-cards="5"] .card h3 {
    font-size: clamp(1.1rem, 1.25vw, 1.45rem);
    margin-bottom: 1rem;
}

body.mx-mexico:not(.mx-service-landing) .cards-grid-balanced[data-cards="5"] .card p {
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

body.mx-mexico:not(.mx-service-landing) .mx-svc-links.cards-section--bridge .mx-svc-links-grid.cards-grid-balanced {
    max-width: var(--cw-shell-wide, 1540px);
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.mx-service-landing .mx-svc-related-grid.cards-grid-balanced {
    display: grid;
    grid-template-columns: repeat(var(--cards-cols-sm, 1), minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
}

@media (min-width: 640px) {
    body.mx-service-landing .mx-svc-related-grid.cards-grid-balanced {
        grid-template-columns: repeat(var(--cards-cols-md, var(--cards-cols, 1)), minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    body.mx-service-landing .mx-svc-related-grid.cards-grid-balanced {
        grid-template-columns: repeat(var(--cards-cols, 1), minmax(0, 1fr));
    }
}

body.mx-mexico:not(.mx-service-landing) .cards-section:not(.cards-section--bridge) {
    max-width: var(--cw-shell-wide, 1540px);
    margin-inline: auto;
    padding-inline: var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%));
    box-sizing: border-box;
}

body.mx-mexico:not(.mx-service-landing) .cards-section:not(.cards-section--bridge) .cards-grid-balanced {
    max-width: var(--cw-shell-wide, 1540px);
}

@media (max-width: 640px) {
    body.mx-mexico:not(.mx-service-landing) .cards-section.cards-section--bridge {
        padding-inline: clamp(1rem, 5vw, 1.25rem);
    }
}

/* ============================================================
   PÁGINAS GEO CORTAS — /mexico/jalisco/, /mexico/guadalajara/, etc.
   Secciones «Servicios digitales» y «Ciudades y servicios»
   ============================================================ */

body.mx-mexico.page-home .mx-geo-services,
body.mx-mexico.page-home .mx-geo-related {
    width: 100%;
    max-width: var(--cw-shell-wide, 1540px);
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.5rem) var(--cw-shell-pad-x, clamp(1rem, 4vw, 4%));
    box-sizing: border-box;
}

body.mx-mexico.page-home .mx-geo-services .section-subtitle,
body.mx-mexico.page-home .mx-geo-related .section-subtitle {
    margin: 0 0 1.5rem;
    max-width: 52ch;
    text-align: left;
    line-height: 1.55;
}

body.mx-mexico.page-home .mx-geo-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: var(--cw-shell-wide, 1540px);
    margin: 0 auto;
}

body.mx-mexico.page-home .mx-geo-services .mx-svc-links-card {
    min-height: 156px;
}

body.mx-mexico.page-home .mx-geo-related .mx-geo-link-card {
    min-height: 132px;
}

body.mx-mexico.page-home .mx-geo-related .mx-svc-links-icon {
    background: rgba(0, 255, 157, 0.1);
    border-color: rgba(0, 255, 157, 0.22);
    color: var(--matrix-green);
}

body.mx-mexico.page-home .mx-geo-related .mx-svc-links-card::before {
    background: linear-gradient(90deg, var(--matrix-green), rgba(0, 243, 255, 0.35), transparent);
}

body.mx-mexico.page-home .mx-geo-related .mx-svc-links-card:hover {
    border-color: rgba(0, 255, 157, 0.38);
    box-shadow: 0 12px 32px rgba(0, 255, 157, 0.1);
}

/* Bloque principal de 5 soluciones en páginas geo */
body.mx-mexico.page-home .cards-section--bridge .cards-container.cards-grid-balanced[data-cards="5"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    max-width: var(--cw-shell-wide, 1540px);
}

body.mx-mexico.page-home .cards-grid-balanced[data-cards="5"] .card {
    min-height: 0 !important;
    padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1rem, 1.5vw, 1.25rem) !important;
}

body.mx-mexico.page-home .cards-grid-balanced[data-cards="5"] .card h3 {
    font-size: clamp(1rem, 1.15vw, 1.2rem) !important;
    margin-bottom: 0.75rem !important;
}

body.mx-mexico.page-home .cards-grid-balanced[data-cards="5"] .card p {
    font-size: 0.88rem !important;
    margin-bottom: 1rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    body.mx-mexico.page-home .mx-geo-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.mx-mexico.page-home .cards-section--bridge .cards-container.cards-grid-balanced[data-cards="5"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body.mx-mexico.page-home .mx-geo-services,
    body.mx-mexico.page-home .mx-geo-related {
        padding: 1.75rem var(--cw-shell-pad-x, 1rem);
    }

    body.mx-mexico.page-home .mx-geo-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    body.mx-mexico.page-home .mx-geo-services .mx-svc-links-card,
    body.mx-mexico.page-home .mx-geo-related .mx-geo-link-card {
        min-height: 0;
        padding: 1rem 0.95rem;
    }

    body.mx-mexico.page-home .mx-svc-links-body strong {
        font-size: 0.88rem;
    }

    body.mx-mexico.page-home .mx-svc-links-body span {
        font-size: 0.76rem;
        -webkit-line-clamp: 2;
    }

    body.mx-mexico.page-home .cards-section--bridge .cards-container.cards-grid-balanced[data-cards="5"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    body.mx-mexico.page-home .cards-grid-balanced[data-cards="5"] .card {
        padding: 1rem 0.85rem !important;
    }

    body.mx-mexico.page-home .cards-grid-balanced[data-cards="5"] .card-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.05rem !important;
    }
}

@media (max-width: 520px) {
    body.mx-mexico.page-home .mx-geo-related .mx-geo-links-grid {
        grid-template-columns: 1fr;
    }
}
