/* ── About card ──────────────────────────────────────────── */
.about-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    height: 460px;
    background-color: transparent;
}
.about-carousel {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.8s ease;
    z-index: 0;
}
.about-card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}
.about-card-logo {
    position: absolute;
    bottom: 16px;
    right: 16px;
    max-width: 140px;
    z-index: 2;
}

/* ── Branch carousel (fotos internas de cada sucursal) ───── */
.branch-carousel {
    position: relative;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .branch-carousel { height: 220px; }
}
.branch-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.branch-carousel img.is-active {
    opacity: 1;
}

/* ── Slider horizontal de sucursales ─────────────────────── */
.sucursales-slider-outer {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (min-width: 768px) {
    .sucursales-track { align-items: stretch; }
    .sucursales-card .card { height: 100%; }
}
.sucursales-track-wrapper {
    overflow: hidden;
    flex: 1;
}
.sucursales-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sucursales-card {
    flex-shrink: 0;
}
.sucursales-nav {
    background: var(--tonny-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
}
.sucursales-nav:hover:not(:disabled) { background: var(--tonny-dark-green); }
.sucursales-nav:disabled { opacity: 0.25; cursor: default; }
.sucursales-counter {
    display: none;
}
@media (max-width: 767px) {
    .sucursales-counter {
        display: inline-block;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--tonny-green);
        min-width: 36px;
        text-align: center;
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .sucursales-slider-outer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .sucursales-track-wrapper {
        flex: 0 0 100%;
        order: 1;
    }
    .sucursales-nav,
    .sucursales-counter {
        order: 2;
    }
    .sucursales-track { gap: 0; }
}
