.filtros-ciudad {
    margin-bottom: 15px;
}

.filtros-ciudad button {
    background: #eee;
    border: none;
    padding: 8px 15px;
    margin-right: 5px;
    border-radius: 20px;
    cursor: pointer;
}

.filtros-ciudad button.active {
    background: #E3051D;
    color: #fff;
}

#cards-sucursales {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
}

.card {
    min-width: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.card h4 {
    margin: 0 0 10px;
}

.acciones {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.acciones a {
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
}

.acciones a:last-child {
    background: #ff3b30;
}

.filtros-ciudad {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    position: absolute;
    left: 6%;
    top: 9%;
    z-index: 999;
}

.filtro {
    background: #eee;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtro.active {
    background: #ff2d2d;
    color: #fff;
}

.badge {
    background: #C0392B !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
}

.filtro:not(.active) .badge {
    background: #ccc;
    color: #333;
}

#card-detalle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all .3s ease;
}

#card-detalle.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#card-detalle h3 {
    margin: 0 0 8px;
    color: #000;
    leading-trim: both;
    text-edge: cap;
    font-family: "DIN Next LT Pro";
    font-size: 19.511px;
    font-style: normal;
    font-weight: 500;
}

#card-detalle .direccion{
    color: #797979;
    leading-trim: both;
    text-edge: cap;
    font-family: "DIN Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

#card-detalle .telefono{
    color: #797979;
    leading-trim: both;
    text-edge: cap;
    font-family: "DIN Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.estado {
    color: #1bbf4c;
    font-weight: bold;
    margin-bottom: 10px;
}

.botones {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
}

#card-detalle .btn-dark {
    background: #111;
    color: #fff;
    font-family: "DIN Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    padding: 7.317px 14.633px;
    text-transform: initial;
}

#card-detalle .btn-red {
    background: #ff4d4d;
    color: #fff;
    font-family: "DIN Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    padding: 7.317px 14.633px;
    text-transform: initial;
}