.juancito-sucursales {

  width: 100%;

  margin: 0 auto;

  padding: 0;

  box-sizing: border-box;

}



.juancito-sucursales,
.juancito-sucursales * {
  box-sizing: border-box;
}



.juancito-title {

  text-align: center;

  font-weight: 800;

  letter-spacing: .3px;

  margin: 0 0 14px 0;

  font-size: 18px;

}



.juancito-controls {

  display: flex;

  gap: 12px;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  margin-bottom: 12px;

}




.juancito-search input {

  width: min(560px, 92vw);

  padding: 12px 14px;

  border-radius: 12px;

  border: 1px solid #e5e7eb;

  outline: none;

  background: #fff;

}

.juancito-card .juancito-featured {
  display: none;
}


.juancito-featured-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  text-transform: uppercase;
}



.juancito-tabs {

  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  justify-content: flex-start;

  margin-bottom: 16px;

}


.juancito-tab {
  appearance: none;
  border: 1px solid #dbe5ff;
  background: #f3f7ff;
  color: #0a47a5;
  padding: 7px 25px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, background .12s ease;
  min-width: 190px;
  font-size: 13px;
}




.juancito-tab:active {
  transform: scale(.98);
}

.juancito-tab.is-active {

  background: #0a47a5;

  border-color: #0a47a5;

  color: #fff;

}

.juancito-tab:hover {
  background-color: #0a47a5 !important;
  color: #fff;
  text-decoration: none;
}




.juancito-grid {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;

}

@media (max-width: 980px) {

  .juancito-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .juancito-controls {
    justify-content: center !important;
  }

}


@media (min-width: 767px) {

  .juancito-search {
    width: 85%;
  }

  #juancitoBuscar {
    width: 100%;
    padding: 7px 15px;
  }
}

@media (max-width: 620px) {

  .juancito-grid {
    grid-template-columns: 1fr;
  }

  .juancito-tabs {

    justify-content: center;

  }

  .juancito-tab {
    appearance: none;
    border: 1px solid #dbe5ff;
    background: #f3f7ff;
    color: #1f4bb8;
    padding: 2% 7%;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .08s ease, background .12s ease;
    min-width: 165px;
    font-size: 13px;
  }

}



.juancito-card {

  background: #fff;

  border: 1px solid #e8eef8;

  border-radius: 14px;

  padding: 14px 14px 12px 14px;

  box-shadow: 0 6px 20px rgba(10, 35, 90, .06);

  position: relative;

}



.juancito-card.is-featured {

  border-color: #1f4bb8;

  box-shadow: 0 10px 26px rgba(31, 75, 184, .14);

}



.juancito-card-title {

  display: flex;

  gap: 10px;

  align-items: center;

  margin-bottom: 10px;

}



.juancito-icon {

  width: 26px;

  height: 26px;

  display: none;

  align-items: center;

  justify-content: center;

  border-radius: 10px;

  background: #f1f5ff;

  border: 1px solid #dbe5ff;

  font-size: 15px;

}



.juancito-name {
  font-weight: 700;
  color: #0A47A5;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0px;
  flex: 1;
  font-family: 'Montserrat';
}



.juancito-badge {

  font-size: 11px;

  font-weight: 900;

  padding: 6px 10px;

  border-radius: 999px;

  background: #111827;

  color: #fff;

}

.juancito-badge-hidden {
  display: none;
}



.juancito-row {

  display: flex;

  gap: 8px;

  align-items: flex-start;

  margin-bottom: 8px;

  font-size: 13px;

  color: #334155;

}

.juancito-ico {
  width: 20px;
  line-height: 1.2;
}



.juancito-link {

  color: #1f4bb8;

  text-decoration: none;

  font-weight: normal;

}

.juancito-link:hover {
  text-decoration: underline;
}



.juancito-map {

  display: inline-block;

  margin-top: 8px;

  font-size: 12px;

  font-weight: 900;

  color: #0f172a;

  text-decoration: none;

  border: 1px solid #e5e7eb;

  padding: 8px 10px;

  border-radius: 10px;

}

.juancito-map:hover {
  background: #f8fafc;
}



.juancito-empty {

  text-align: center;

  margin-top: 14px;

  color: #475569;

  font-weight: 700;

}



.juancito-sr {

  position: absolute;

  left: -9999px;

  width: 1px;

  height: 1px;

  overflow: hidden;

}

.juancito-map-box { margin-top: 10px; }

/* Mini mapa embebido */
.juancito-map-embed {
  width: 100%;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.juancito-map-embed iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
}


@media (max-width: 620px) {
  .juancito-map-embed iframe {
    height: 180px;
  }
}