/* Bubols · Distribuidores, ciudades y ficha de aliado. Spec: diseño.pen 18/19/20. */
.bal, .bal-profile { --bal-navy: #1D2847; --bal-cream: #FFFFFF; --bal-line: #E3E7F0; --bal-yellow: #FDD743; --bal-g1: #3D476B; --bal-g2: #5A628A; --bal-g3: #8A8FA3; --bal-pad: max(80px, calc((100% - 1280px) / 2)); font-family: Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal *, .bal-profile * { box-sizing: border-box; }
.bal a, .bal-profile a { text-decoration: none; }
.bal svg, .bal-profile svg { display: block; flex: none; }
.bal-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bal :focus-visible, .bal-profile :focus-visible { outline: 2px solid var(--bal-navy); outline-offset: 2px; }
.elementor-widget-bubols-allies-directory, .elementor-widget-bubols-ally-profile { width: 100%; }

/* Hero */
.bal-hero { display: flex; flex-direction: column; gap: 16px; padding: 16px var(--bal-pad) 44px; background: var(--bal-cream); }
.bal-eyebrow { margin: 0; font: 900 13px/18px Nunito, system-ui, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #EB7D30; }
.bal .bal-hero h1 { margin: 0; max-width: 900px; font: 900 48px/1.08 Nunito, system-ui, sans-serif; letter-spacing: -.8px; color: var(--bal-navy); }
.bal-lead { max-width: 840px; font: 600 16.5px/1.55 Nunito, system-ui, sans-serif; color: var(--bal-g1); }
.bal-lead p { margin: 0 0 12px; }
.bal-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bal-search__field { flex: 0 1 560px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--bal-navy); border-radius: 999px; background: #fff; }
.bal-search__field svg { width: 18px; height: 18px; }
.bal-search input[type="search"] { flex: 1; min-width: 0; height: 20px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font: 700 14.5px/20px Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal-search input::placeholder { color: var(--bal-g3); opacity: 1; }
.bal-search__go, .bal-search__near { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 900 14.5px/20px Nunito, system-ui, sans-serif; cursor: pointer; }
.bal-search__go { background: var(--bal-yellow); color: var(--bal-navy); }
.bal-search__near { background: var(--bal-navy); color: #fff; }
.bal-search__near svg { width: 17px; height: 17px; color: var(--bal-yellow); }
.bal-search__near:disabled { opacity: .6; cursor: progress; }
.bal-near-msg { margin: 0; font: 700 14px/1.4 Nunito, system-ui, sans-serif; color: #E01950; }

/* Map */
.bal-map-wrap { padding: 8px var(--bal-pad) 24px; background: var(--bal-cream); }
.bal-map { position: relative; z-index: 0; height: 380px; overflow: hidden; border: 1.5px solid var(--bal-line); border-radius: 26px; background: #FFFFFF; }
.bal-map__note { margin: 10px 0 0; font: 600 12.5px/1.4 Nunito, system-ui, sans-serif; color: var(--bal-g3); }
.bal-pop__title { font: 900 14px/1.3 Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.leaflet-popup-content p { margin: 4px 0 0; font: 600 13px/1.3 Nunito, system-ui, sans-serif; color: var(--bal-g2); }

/* Department chips */
.bal-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--bal-pad) 56px; background: var(--bal-cream); }
.bal-others .bal-chips { padding: 0; background: transparent; }
.bal-dept { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 15px; border: 1.5px solid var(--bal-line); border-radius: 999px; background: #fff; font: 800 13px/18px Nunito, system-ui, sans-serif; color: var(--bal-navy); transition: filter .15s; }
.bal-dept:hover { filter: brightness(.96); }
.bal-dept b { padding: 2px 7px; border-radius: 999px; background: var(--bal-cream); font: 900 11.5px/16px Nunito, system-ui, sans-serif; }
.bal-dept.is-active { background: var(--bal-navy); color: #fff; }
.bal-dept.is-active b { background: var(--bal-yellow); color: var(--bal-navy); }

/* Results + cards */
.bal-results { display: flex; flex-direction: column; gap: 22px; padding: 72px var(--bal-pad); background: #fff; }
.bal-results__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.bal .bal-results h2, .bal .bal-online h2, .bal .bal-faq h2, .bal .bal-others h2, .bal .bal-band h2 { margin: 0; font: 900 36px/1.1 Nunito, system-ui, sans-serif; letter-spacing: -.5px; color: var(--bal-navy); }
.bal-count { margin: 0; font: 700 15px/20px Nunito, system-ui, sans-serif; color: var(--bal-g2); }
.bal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bal-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1.5px solid var(--bal-line); border-radius: 22px; background: #fff; }
.bal-card__logo, .bal-profile__logo { display: flex; align-items: center; justify-content: center; width: 110px; height: 56px; overflow: hidden; border-radius: 10px; background: var(--bal-bg, var(--bal-cream)); font: 900 22px/1 Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal-card__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bal .bal-card__name { margin: 0; font: 900 19px/1.2 Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal-card__name a { color: inherit; }
.bal-chip { align-self: flex-start; display: inline-flex; padding: 5px 12px; border-radius: 999px; background: #60BFD1; font: 900 11.5px/16px Nunito, system-ui, sans-serif; letter-spacing: .4px; color: var(--bal-navy); }
.bal-chip--city { background: #FDD743; }
.bal-card__data { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.bal-card__data p { margin: 0; font: 600 14px/1.4 Nunito, system-ui, sans-serif; color: var(--bal-g1); }
.bal-card__phone, .bal-card__phone a { font-weight: 700; color: var(--bal-g1); }
.bal-card__btns, .bal-profile__btns { display: flex; flex-wrap: wrap; gap: 9px; }
.bal-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 18px; border: 1.5px solid transparent; border-radius: 999px; font: 900 14.5px/20px Nunito, system-ui, sans-serif; text-align: center; transition: filter .15s; }
.bal-btn:hover { filter: brightness(.94); }
.bal-btn--wa { background: #25D366; color: #fff; }
.bal-btn--ghost { border-color: var(--bal-navy); background: transparent; color: var(--bal-navy); }
.bal-btn--yellow { flex: none; background: var(--bal-yellow); color: var(--bal-navy); }
.bal-btn--navy { flex: none; background: var(--bal-navy); color: #fff; }
.bal-pager { display: flex; justify-content: center; }
.bal-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; margin: 0 3px; padding: 0 12px; border: 1.5px solid var(--bal-line); border-radius: 999px; font: 800 14px/1 Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal-pager .page-numbers.current { border-color: var(--bal-navy); background: var(--bal-navy); color: #fff; }
.bal-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border: 1.5px solid var(--bal-line); border-radius: 24px; background: #FDD743; }
.bal-empty h3 { margin: 0 0 6px; font: 900 22px/1.25 Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal-empty p { margin: 0; font: 600 15px/1.5 Nunito, system-ui, sans-serif; color: var(--bal-g1); }

/* Bands */
.bal-band, .bal-online { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 56px var(--bal-pad); }
.bal-band { background: var(--bal-navy); }
.bal .bal-band h2 { font-size: 32px; color: #fff; }
.bal-band p { margin: 8px 0 0; font: 600 15.5px/1.5 Nunito, system-ui, sans-serif; color: #C3CBE8; }
.bal-online { background: #FDD743; }
.bal .bal-online h2 { font-size: 32px; }
.bal-online p { margin: 8px 0 0; font: 600 15.5px/1.5 Nunito, system-ui, sans-serif; color: var(--bal-g1); }
.bal-faq { padding: 72px var(--bal-pad); background: #FFFFFF; }
.bal-faq__list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin-top: 18px; }
.bal-faq details { border: 1.5px solid var(--bal-line); border-radius: 16px; background: #fff; }
.bal-faq summary { padding: 18px 22px; font: 900 16px/1.35 Nunito, system-ui, sans-serif; cursor: pointer; color: var(--bal-navy); }
.bal-faq details p { margin: 0; padding: 0 22px 20px; font: 600 15px/1.55 Nunito, system-ui, sans-serif; color: var(--bal-g1); }
.bal-others { display: flex; flex-direction: column; gap: 16px; padding: 56px var(--bal-pad); background: #fff; }
.bal .bal-others h2 { font-size: 28px; }

/* Single ally */
.bal-profile { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 40px; width: 100%; }
.bal-profile__data { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.bal-profile__logo { width: 180px; height: 96px; border-radius: 18px; background: #E01950; font-size: 38px; }
.bal-profile__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bal-profile h1 { margin: 0; font: 900 44px/1.1 Nunito, system-ui, sans-serif; letter-spacing: -.6px; color: var(--bal-navy); }
.bal-profile__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bal-profile__desc { margin: 0; font: 600 16.5px/1.55 Nunito, system-ui, sans-serif; color: var(--bal-g1); }
.bal-info { display: flex; flex-direction: column; gap: 11px; width: 100%; padding: 24px; border: 1.5px solid var(--bal-line); border-radius: 20px; background: #fff; }
.bal-info__row { display: flex; gap: 11px; }
.bal-info__row svg { width: 18px; height: 18px; margin-top: 2px; color: #1F408D; }
.bal-info__row small { display: block; font: 900 11.5px/1.3 Nunito, system-ui, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: var(--bal-g3); }
.bal-info__row p { margin: 2px 0 0; font: 700 15px/1.4 Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal-info__row a { color: inherit; }
.bal-profile__btns .bal-btn { flex: 0 1 auto; padding-inline: 24px; }
.bal-profile__map { min-height: 440px; border-radius: 26px; }
.bal-profile__map .bal-map { height: 440px; }
.bal-profile__map--link { display: flex; align-items: center; justify-content: center; gap: 9px; border: 1.5px solid var(--bal-line); background: #FFFFFF; font: 800 15px/20px Nunito, system-ui, sans-serif; color: var(--bal-navy); }
.bal-profile__map--link svg { width: 22px; height: 22px; }

@media (max-width: 1023px) {
	.bal, .bal-profile { --bal-pad: 40px; }
	.bal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bal-profile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.bal, .bal-profile { --bal-pad: 20px; }
	.bal .bal-hero h1, .bal-profile h1 { font-size: 34px; }
	.bal .bal-results h2, .bal .bal-faq h2 { font-size: 26px; }
	.bal .bal-band h2, .bal .bal-online h2 { font-size: 24px; }
	.bal-hero { padding-bottom: 28px; }
	.bal-map { height: 300px; }
	.bal-profile__map .bal-map, .bal-profile__map { height: 300px; min-height: 0; }
	.bal-results, .bal-faq { padding-block: 40px; }
	.bal-band, .bal-online, .bal-others { padding-block: 36px; }
	.bal-grid { grid-template-columns: minmax(0, 1fr); }
	.bal-search__field { flex-basis: 100%; }
	.bal-search__go, .bal-search__near, .bal-band .bal-btn, .bal-online .bal-btn, .bal-empty .bal-btn { flex: 1 1 100%; justify-content: center; }
}
