.location-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.location-bar__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30, 30, 36, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-600)
}

.location-bar__icon svg {
    width: 18px;
    height: 18px
}

.location-bar__sep {
    color: var(--gray-400);
    font-size: .8rem;
    opacity: .5
}

.loc-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.loc-label,
.loc-val {
    display: none;
}

.loc-select-wrap::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 10px;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform .2s
}

.loc-select-wrap:has(.loc-select:focus)::after,
.loc-select-wrap:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23e0007a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}

.loc-select {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid transparent;
    padding: 4px 18px 4px 2px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color .15s, color .15s;
    max-width: 200px
}

.loc-select:focus {
    outline: none;
    border-bottom-color: var(--fuchsia-400);
    color: var(--gray-900)
}

.loc-select:hover {
    border-bottom-color: rgba(224, 0, 122, .35);
    color: var(--gray-900)
}

#loc_dist {
    text-align: left;
}

@media(max-width:768px) {
    .loc-select {
        font-size: .74rem;
        max-width: 140px
    }
}

@media(max-width:480px) {
    .location-bar__icon {
        width: 30px;
        height: 30px
    }

    .location-bar__sep {
        display: none
    }

    .location-bar {
        gap: 5px
    }
}

@media (max-width: 600px) {
    .location-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-bottom: 2px;
        margin-bottom: 16px;
        align-items: center;
    }

    .location-bar::-webkit-scrollbar {
        display: none;
    }

    .location-bar__sep {
        display: none;
    }

    .loc-select-wrap {
        display: inline-flex;
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--gray-100);
        border-radius: var(--radius-sm);
        padding: 6px 28px 6px 10px;
        margin-right: 6px;
        flex-grow: 1;
        cursor: pointer;
    }

    .loc-select-wrap::after {
        top: auto;
        bottom: 11px;
        transform: none;
        right: 8px;
    }

    .loc-label {
        display: block;
        font-size: .6rem;
        color: var(--gray-400);
        margin-bottom: 1px;
    }

    .loc-select {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        max-width: none;
        padding: 0;
        border: none;
    }

    .loc-val {
        display: block;
        font-size: .7rem;
        font-weight: 700;
        color: var(--gray-800);
        white-space: nowrap;
        line-height: 1;
    }
}

@media(max-width: 480px) {
    .location-bar__icon {
        display: none;
    }
}

/* Enlaces SEO por ubicación: visibles, discretos y desplegables. */
.home-seo-locations {
    width: 100%;
    max-width: 1340px;
    margin: 34px auto 8px;
    padding: 22px 0 10px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.home-seo-locations__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 12px;
}

.home-seo-locations__header h2 {
    margin: 0;
    color: var(--gray-800);
    font-family: 'Outfit', sans-serif;
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.home-seo-locations__header p {
    max-width: 560px;
    margin: 0;
    color: var(--gray-500);
    font-size: .72rem;
    line-height: 1.5;
    text-align: right;
}

.home-seo-locations__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 34px;
}

.home-seo-locations__item {
    border-top: 1px solid var(--gray-150, #ededf0);
}

.home-seo-locations__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.home-seo-locations__row h2 {
    min-width: 0;
    margin: 0;
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
}

.home-seo-locations__row h2 a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color .16s ease;
}

.home-seo-locations__row h2 a:hover,
.home-seo-locations__row h2 a[aria-current='page'] {
    color: var(--fuchsia-600);
}

.home-seo-locations__row button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.home-seo-locations__row button:hover {
    background: var(--rose-50);
    color: var(--fuchsia-500);
}

.home-seo-locations__row button:focus-visible,
.home-seo-locations__row h2 a:focus-visible {
    outline: 2px solid var(--fuchsia-400);
    outline-offset: 2px;
}

.home-seo-locations__row button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.home-seo-locations__item.is-open .home-seo-locations__row button svg {
    transform: rotate(180deg);
}

.home-seo-locations__content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .22s ease, opacity .18s ease;
}

.home-seo-locations__content > div {
    min-height: 0;
    overflow: hidden;
}

.home-seo-locations__content p {
    margin: 0;
    padding: 0 38px 13px 0;
    color: var(--gray-500);
    font-size: .72rem;
    line-height: 1.55;
}

.home-seo-locations__item.is-open .home-seo-locations__content {
    grid-template-rows: 1fr;
    opacity: 1;
}

@media (max-width: 720px) {
    .home-seo-locations {
        margin-top: 28px;
        padding-top: 18px;
    }

    .home-seo-locations__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .home-seo-locations__header p { text-align: left; }
    .home-seo-locations__list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .home-seo-locations__content,
    .home-seo-locations__row button svg { transition: none; }
}
