/* =========================================
   SUCURSALES HOME — Figma spec (Sept 2026)
   ========================================= */

/* --- Section --- */
.sucursales-section {
    background: rgba(83, 83, 83, 0.08);
    padding: 72px 0;
}

.sucursales-container {
    max-width: 1320px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Header --- */
.sucursales-header {
    padding: 0 12px 16px;
}

.sucursales-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: #535353;
    margin: 0;
}

/* --- Mobile badge --- */
.sucursales-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.sucursales-badge {
    display: inline-flex;
    align-items: center;
    padding: 11.3px 22.7px;
    border-radius: 1132px;
    background: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 17px;
    color: #EC6011;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Desktop horizontal scroll grid --- */
.sucursales-scroll {
    display: none; /* hidden by default (mobile) — carousel handles mobile */
}

@media (min-width: 992px) {
    .sucursales-scroll {
        display: grid;
        grid-template-columns: repeat(4, 285px);
        justify-content: center;
        gap: 20px;
        padding: 24px 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }
}

.sucursales-scroll::-webkit-scrollbar {
    display: none;
}

.sucursales-scroll:active {
    cursor: grabbing;
}

/* --- Card --- */
.sucursales-card {
    flex: 0 0 285px;
    width: 285px;
    background: #FFFFFF;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.16);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sucursales-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- Card image --- */
.sucursales-card-img {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.sucursales-card-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Card body --- */
.sucursales-card-body {
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sucursales-card-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
    color: #FF7A00;
    margin: 0 0 12px;
}

.sucursales-divider {
    border: none;
    border-top: 1px solid rgba(93, 100, 111, 0.3);
    margin: 0;
}

/* --- Info rows --- */
.sucursales-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    flex: 1;
}

.sucursales-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sucursales-info-icon {
    flex-shrink: 0;
    width: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(83, 83, 83, 0.6);
    font-size: 15px;
    padding-top: 2px;
}

.sucursales-info-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #535353;
}

/* --- "Cómo llegar" button --- */
.sucursales-btn-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7.34px;
    margin-top: 14px;
    padding: 7.16px 21.86px;
    background: rgba(83, 83, 83, 0.65);
    color: #FFFFFF;
    border: none;
    border-radius: 45.93px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14.7px;
    line-height: 22px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: center;
}

.sucursales-btn-maps:hover {
    background: rgba(83, 83, 83, 0.85);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.sucursales-btn-maps:focus-visible {
    outline: 2px solid #FF7A00;
    outline-offset: 2px;
}

.sucursales-btn-maps i {
    font-size: 14px;
}

/* --- "Ver todas" CTA --- */
.sucursales-cta {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.sucursales-btn-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7.8px 47.8px;
    border: 1px solid #FF7A01;
    border-radius: 50px;
    background: transparent;
    color: #FF7A01;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.sucursales-btn-all:hover {
    background: #FF7A01;
    color: #FFFFFF;
}

.sucursales-btn-all:focus-visible {
    outline: 2px solid #FF7A01;
    outline-offset: 2px;
}

.sucursales-btn-all i {
    font-size: 13px;
}

/* --- Mobile carousel controls --- */
.sucursales-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
}

.sucursales-arrows {
    display: flex;
    gap: 16px;
}

.sucursales-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #212529;
}

.sucursales-arrow-prev {
    background: rgba(255, 122, 0, 0.4);
}

.sucursales-arrow-next {
    background: #FF7A00;
    color: #FFFFFF;
}

.sucursales-arrow:active {
    transform: scale(0.92);
}

/* Indicators */
.sucursales-indicators {
    display: flex;
    gap: 8px;
}

.sucursales-indicators button {
    width: 25px;
    height: 8px;
    border-radius: 10px;
    border: 1px solid var(--brand-orange, #FF7A00);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sucursales-indicators button.active {
    width: 50px;
    background: var(--brand-orange, #FF7A00);
    border-color: var(--brand-orange, #FF7A00);
}

/* =========================================
   SUCURSALES HOME — Mobile overrides
   ========================================= */
@media (max-width: 991.98px) {
    .sucursales-section {
        padding: 48px 0;
    }

    .sucursales-heading {
        font-size: 27.9px;
        line-height: 33px;
        color: #000000;
    }

    /* Carousel shows one card at a time */
    .sucursales-card {
        margin: 0 auto;
        max-width: 340px;
        width: calc(100vw - 48px);
    }
}
