/* Aptos Narrow is selected first by the site when installed on the device. */

@font-face {
  font-family: "Bastidas Roboto Condensed";
  src: url("fonts/roboto-semicondensed-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bastidas Roboto Condensed";
  src: url("fonts/roboto-semicondensed-latin-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* The firm's corporate palette and type. Native Elementor widgets retain their content. */
:root {
  --bbl-brand-blue: #0b2d6b;
  --bbl-brand-night: #071d45;
  --bbl-brand-champagne: #d4af7c;
  --bbl-brand-deep-gold: #b8935a;
  --bbl-brand-ivory: #f7f5ef;
  --bbl-brand-graphite: #263238;
  --bbl-brand-gray: #5e6875;
  --bbl-brand-line: #d9dde3;
  --bbl-brand-sans: "Aptos Narrow", "Bastidas Roboto Condensed", "Arial Narrow", "Aptos", Arial, sans-serif;
  --bbl-brand-font: var(--bbl-brand-sans);
}

/* Scope the theme tokens to the public design and keep Elementor's own interface independent. */
body :is(.bbl-section, .bbl-hero, .bbl-site-header, .bbl-site-footer) {
  --wdtFontTypo_Base: var(--bbl-brand-sans);
  --wdtFontTypo_Alt: var(--bbl-brand-sans);
  --wdtFontTypo_AltFont: var(--bbl-brand-sans);
  --wdtPrimaryColor: var(--bbl-brand-blue);
  --wdtSecondaryColor: var(--bbl-brand-night);
  font-family: var(--bbl-brand-sans);
}
body .bbl-section {
  --bbl-ink: var(--bbl-brand-blue);
  --bbl-body: var(--bbl-brand-graphite);
  --bbl-rule: var(--bbl-brand-line);
}

#header .bbl-site-header.elementor-section,
#header-wrapper.bbl-pinned-nav > #header {
  background-color: #fff;
}
#header-wrapper.bbl-pinned-nav.bbl-nav-scrolled > #header {
  box-shadow: none;
  border-bottom: 1px solid var(--bbl-brand-line);
}
#header .bbl-site-header .bbl-header-logo .wdt-logo-container,
.bbl-site-footer .bbl-footer-logo .wdt-logo-container {
  box-sizing: content-box;
  padding-block: 10px;
}
#header .bbl-site-header .menu-container > .wdt-primary-nav > li > a,
#header .bbl-site-header .bbl-primary-navigation .sub-menu a,
.mobile-menu .bbl-nav-areas .sub-menu a {
  color: var(--bbl-brand-blue);
  font-family: var(--bbl-brand-sans);
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}
#header .bbl-site-header .menu-container > .wdt-primary-nav > .bbl-nav-contacto > a:is(:hover, :focus-visible) {
  color: #fff;
  background: var(--bbl-brand-blue);
}
#header .bbl-site-header .wdt-header-menu .wdt-primary-nav > .bbl-nav-areas > ul.sub-menu {
  border-color: var(--bbl-brand-line);
  border-top-color: var(--bbl-brand-deep-gold);
  box-shadow: none;
}
#header .bbl-site-header .bbl-nav-areas .sub-menu a:is(:hover, :focus-visible) {
  background: var(--bbl-brand-ivory);
  color: var(--bbl-brand-night);
}

/* The video remains visible on the portrait side. The blue field belongs to the copy column. */
body.home .bbl-hero > .elementor-background-overlay {
  background: var(--bbl-brand-ivory) !important;
  opacity: .58 !important;
}
.bbl-hero .bbl-hero-copy {
  isolation: isolate;
  z-index: 1;
}
.bbl-hero .bbl-hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -110vh calc(-1 * clamp(16px, 1.8vw, 32px)) -110vh -100vw;
  background: var(--bbl-brand-blue);
  pointer-events: none;
}
body.home .bbl-hero .bbl-hero-copy :is(.wdt-heading-holder, .wdt-button-holder) {
  text-align: left !important;
}
body.home .bbl-hero .wdt-slider-2-heading-style h1,
body.home .bbl-hero .wdt-slider-2-heading-style h1 span {
  font-family: var(--bbl-brand-sans) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #fff !important;
  text-shadow: none;
  letter-spacing: -.036em;
}
body.home .bbl-hero .wdt-slider-2-heading-style h1 {
  font-size: clamp(42px, 4.25vw, 73px);
  line-height: 1.04;
}
body.home .bbl-hero .elementor-element-a1b4e2a .wdt-heading-subtitle-wrapper,
body.home .bbl-hero .elementor-element-a1b4e2a .wdt-heading-subtitle-wrapper span {
  color: var(--bbl-brand-champagne) !important;
  font-family: var(--bbl-brand-sans);
  font-weight: 700;
}
body.home .bbl-hero .elementor-element-f0552f7 .wdt-heading-content-wrapper,
body.home .bbl-hero .elementor-element-f0552f7 .wdt-heading-content-wrapper p {
  color: #fff !important;
  font-family: var(--bbl-brand-sans);
}
body.home .bbl-hero .elementor-element-d99032e a.wdt-button {
  background: var(--bbl-brand-champagne) !important;
  color: var(--bbl-brand-night) !important;
  border: 1px solid var(--bbl-brand-champagne) !important;
  box-shadow: none !important;
  font-family: var(--bbl-brand-sans);
}
body.home .bbl-hero .elementor-element-d99032e a.wdt-button:is(:hover, :focus-visible) {
  background: #fff !important;
  border-color: #fff !important;
}
body.home .bbl-hero .elementor-element-d99032e a.wdt-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
body.home .bbl-hero .elementor-element-d99032e a.wdt-button::before,
body.home .bbl-hero .elementor-element-d99032e a.wdt-button::after {
  display: none;
}
body.home .bbl-hero .elementor-element-d99032e .wdt-button-text,
body.home .bbl-hero .elementor-element-d99032e .wdt-button-text span,
body.home .bbl-hero .elementor-element-d99032e .wdt-button-icon {
  font-family: var(--bbl-brand-sans);
  font-weight: 700;
  color: var(--bbl-brand-night) !important;
}
body.home .bbl-hero .elementor-element-d99032e .wdt-button-icon svg {
  color: var(--bbl-brand-night);
  fill: currentColor;
}
.bbl-hero .bbl-hero-portrait.elementor-widget figure.wp-caption > figcaption {
  color: var(--bbl-brand-blue);
  border-color: var(--bbl-brand-deep-gold);
  background: rgb(247 245 239 / 95%);
  box-shadow: none;
  font-family: var(--bbl-brand-sans);
  font-size: clamp(16px, 1.3vw, 23px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.22;
}

body.home .bbl-section .bbl-heading .elementor-heading-title,
body.home .bbl-section .bbl-heading .elementor-heading-title a,
body.home .bbl-clients .bbl-clients-title h2 {
  color: var(--bbl-ink);
  font-family: var(--bbl-brand-sans);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.025em;
  text-shadow: none;
}
body.home .bbl-section .bbl-heading h2.elementor-heading-title,
body.home .bbl-clients .bbl-clients-title h2 {
  font-size: clamp(33px, 3.6vw, 59px);
  line-height: 1.1;
}
body.home .bbl-section .bbl-heading h3.elementor-heading-title {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.17;
}
body.home .bbl-section .bbl-copy,
body.home .bbl-section .bbl-copy p,
body.home .bbl-clients .bbl-clients-intro,
body.home .bbl-clients .bbl-clients-intro p {
  font-family: var(--bbl-brand-sans);
  color: var(--bbl-body);
}
body.home .bbl-firm .bbl-copy p:first-child { color: var(--bbl-brand-blue); }
body.home .bbl-firm .bbl-generations-icon .elementor-icon {
  background: transparent;
  border-color: var(--bbl-brand-deep-gold);
  color: var(--bbl-brand-blue);
}
.bbl-firm .bbl-generations-icon .elementor-icon svg,
.bbl-areas .bbl-area-symbol .elementor-icon svg { fill: currentColor; }
.bbl-firm .bbl-generations-icon .elementor-icon-wrapper::after,
.bbl-firm .bbl-heading h2::before,
.bbl-contact .bbl-heading h2::before { background-color: var(--bbl-brand-deep-gold); }
.bbl-firm .bbl-copy,
.bbl-contact .bbl-contact-links { border-color: var(--bbl-brand-line); }

.bbl-areas .bbl-area:has(.bbl-area-symbol) {
  background: #fff;
  border-color: var(--bbl-brand-line);
  border-top-color: var(--bbl-brand-deep-gold);
}
.bbl-areas .bbl-area:has(.bbl-area-symbol):is(:hover, :focus-within) {
  background: var(--bbl-brand-ivory);
  border-top-color: var(--bbl-brand-blue);
  box-shadow: none;
}
body.home .bbl-areas .bbl-area-symbol .elementor-icon,
.bbl-areas .bbl-area .bbl-heading h3 a::after {
  color: var(--bbl-brand-blue);
}
.bbl-areas .bbl-area .bbl-heading h3 a:focus-visible {
  outline-color: var(--bbl-brand-blue);
}
body.home .bbl-section.bbl-partners {
  --bbl-ink: #fff;
  --bbl-body: #fff;
  background: var(--bbl-brand-blue);
}
body.home .bbl-partners .bbl-profile { border-color: var(--bbl-brand-champagne); }
body.home .bbl-partners .bbl-profile .bbl-heading h3.elementor-heading-title {
  color: var(--bbl-brand-champagne);
}
body.home .bbl-partners .bbl-partner-watermark { opacity: .10; }
.bbl-clients button.bbl-marquee-toggle { color: var(--bbl-brand-gray); }
.bbl-clients button.bbl-marquee-toggle:hover { background: var(--bbl-brand-ivory); color: var(--bbl-brand-blue); }

body .bbl-site-footer.elementor-section {
  background: var(--bbl-brand-night);
  border-top-color: var(--bbl-brand-champagne);
}
body .bbl-site-footer .bbl-footer-grid .bbl-footer-logo .wdt-logo-container img[src*="bbl-logo-horizontal-negativo"] {
  filter: none;
}
body .bbl-site-footer .bbl-footer-grid .bbl-footer-heading .elementor-heading-title,
body .bbl-site-footer .bbl-footer-reading-title .elementor-heading-title {
  font-family: var(--bbl-brand-sans);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.015em;
}
body .bbl-site-footer :is(.bbl-footer-text, .bbl-footer-reading, .bbl-footer-line) {
  font-family: var(--bbl-brand-sans);
}

/* Use the square mark at avatar size when the widget is set to the firm's logo. */
#egwalpWidget .egwalp-avatar.is-logo {
  content: url("media/bbl-icono-512.png");
  object-fit: contain;
  padding: 0;
}

@media (max-width: 900px) {
  .bbl-hero .bbl-hero-copy::before {
    inset: -65px -100vw -18px;
  }
  body.home .bbl-hero .bbl-hero-copy > .elementor-widget-wrap {
    justify-content: flex-start !important;
  }
  body.home .bbl-hero .wdt-slider-2-heading-style h1 { font-size: clamp(35px, 6.6vw, 53px); }
}
@media (max-width: 600px) {
  #header .bbl-site-header .bbl-header-logo .wdt-logo-container { padding-block: 5px; }
  .bbl-hero .bbl-hero-portrait.elementor-widget figure.wp-caption > figcaption {
    font-size: clamp(13px, 3.55vw, 17px);
  }
}

/* Native Elementor practice pages and related reading. */
.bbl-service {
  --service-ink: #0b2d6b;
  --service-gold: #b8935a;
  --service-rule: #d9dde3;
  --service-serif: var(--bbl-brand-font, "Aptos Narrow", "Arial Narrow", Arial, sans-serif);
  font-family: var(--service-serif);
  color: #263238;
}
.bbl-service .bbl-service-title h1.elementor-heading-title,
.bbl-service .bbl-service-subtitle h2.elementor-heading-title,
.bbl-service-contact .bbl-service-contact-title h2,
.bbl-service .bbl-service-contents p,
.bbl-service .bbl-service-reading p {
  font-family: var(--service-serif);
  font-weight: 700;
  font-style: normal;
  color: var(--service-ink);
  letter-spacing: -.015em;
}
.bbl-service .bbl-service-title h1.elementor-heading-title {
  font-size: clamp(39px, 4.3vw, 68px);
  line-height: 1.06;
}
.bbl-service .bbl-service-contents p,
.bbl-service .bbl-service-reading p { font-size: clamp(21px, 1.65vw, 25px); }
.bbl-service .bbl-service-contents li { border-color: var(--service-rule); }
.bbl-service :is(.bbl-service-intro, .bbl-service-copy),
.bbl-service :is(.bbl-service-intro, .bbl-service-copy) p {
  font-family: var(--service-serif);
  color: #263238;
}
.bbl-service .bbl-service-crumbs,
.bbl-service .bbl-service-crumbs :is([aria-hidden], [aria-current]) { color: #5e6875; }
.bbl-service :is(.bbl-service-crumbs, .bbl-service-contents, .bbl-service-reading, .bbl-service-source) a,
.bbl-service .bbl-service-crumbs a:visited { color: var(--service-ink); }
.bbl-service-contact { background: #0b2d6b; }
.bbl-service-contact .bbl-service-contact-title h2 { color: #fff; }
.bbl-service .bbl-service-button .elementor-button {
  background: #d4af7c;
  color: #071d45;
  border-color: #d4af7c;
  font-family: var(--service-serif);
  font-weight: 700;
  box-shadow: none;
}
.bbl-service .bbl-service-button .elementor-button:is(:hover, :focus-visible) {
  background: #fff;
  color: #071d45;
  border-color: #fff;
}
.bbl-service .bbl-service-button .elementor-button:focus-visible { outline-color: #fff; }

/* The editorial template serves both single posts and legal notices. */
.bbl-editorial,
.bbl-blog-intro,
.bbl-publication-feed,
.bbl-contact .bbl-contact-widget {
  font-family: var(--bbl-brand-font, "Aptos Narrow", "Arial Narrow", Arial, sans-serif);
  color: #263238;
}
.bbl-editorial :is(h1, h2, h3, h4),
.bbl-blog-intro h1,
:is(.bbl-publication-feed, body.blog, body.date) .tpl-blog-holder .entry-title :is(h2, h3, h4),
:is(.bbl-publication-feed, body.blog, body.date) .tpl-blog-holder .entry-title :is(h2, h3, h4) a {
  font-family: var(--bbl-brand-font, "Aptos Narrow", "Arial Narrow", Arial, sans-serif);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.015em;
  color: #0b2d6b;
}
.bbl-editorial h1 { font-size: clamp(36px, 4.4vw, 62px); }
.bbl-editorial header { border-color: #b8935a; }
.bbl-editorial nav { flex-wrap: wrap; }
.bbl-editorial nav,
.bbl-editorial .bbl-editorial__byline { color: #5e6875; }
.bbl-editorial__kicker,
.bbl-publication-feed .bbl-blog-archive > span { font-weight: 700; color: #0b2d6b; }
.bbl-editorial__body :is(p, li),
.bbl-blog-intro p,
:is(.bbl-publication-feed, body.blog, body.date) .tpl-blog-holder .entry-body p {
  font-family: var(--bbl-brand-font, "Aptos Narrow", "Arial Narrow", Arial, sans-serif);
  color: #263238;
}
.bbl-publication-feed .bbl-blog-archive { border-color: #d9dde3; }
.bbl-publication-feed .bbl-blog-archive a,
.bbl-editorial a { color: #0b2d6b; }
.bbl-publication-feed .tpl-blog-holder .entry-title a:is(:hover, :focus-visible) {
  color: #071d45;
  text-decoration: underline;
  text-underline-offset: .16em;
}

/* Preserve the native controls and feedback used by the contact form. */
.bbl-contact .bbl-contact-widget {
  background: #fff;
  border-color: #d9dde3;
  border-top-color: #b8935a;
  box-shadow: none;
}
.bbl-contact .bbl-contact-links { border-color: #d9dde3; }
.bbl-contact .bbl-heading h2::before { background-color: #b8935a; }
.bbl-contact-form label,
.bbl-contact-widget .bbl-contact-actions button,
.bbl-contact-form .bbl-contact-result { font-weight: 700; }
.bbl-contact-form small,
.bbl-contact-form label:not(.bbl-contact-consent) > span { color: #5e6875; }
.bbl-contact-widget .bbl-contact-form :is(input:not([type=checkbox]), textarea) {
  border-color: #5e6875;
  box-shadow: none;
}

/* Both controls are native widgets inside the existing ByLaw hero column. */
body.home .bbl-hero .wdt-heading-holder .wdt-heading-subtitle-wrapper {
  margin-inline: 0 auto;
}
body.home .bbl-hero .elementor-element-4a4edbe > .elementor-widget-wrap {
  justify-content: flex-start !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
body.home .bbl-hero .elementor-element-4a4edbe :is(.elementor-element-d99032e, .bbl-hero-socios-link) {
  width: auto !important;
  max-width: 100%;
  margin: 0;
}
body.home .bbl-hero .elementor-element-4a4edbe .elementor-widget-container {
  text-align: left !important;
}
body.home .bbl-hero .elementor-element-d99032e a.wdt-button,
body.home .bbl-hero .bbl-hero-socios-link a.elementor-button {
  box-sizing: border-box;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72em 1.05em;
  border-radius: 0;
  font-family: var(--bbl-brand-font);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}
body.home .bbl-hero .bbl-hero-socios-link .elementor-button-text { text-transform: none; }
body.home .bbl-hero .bbl-hero-socios-link a.elementor-button {
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
}
body.home .bbl-hero .bbl-hero-socios-link a.elementor-button:is(:hover, :focus-visible) {
  background: #fff;
  color: var(--bbl-brand-blue);
}
body.home .bbl-hero .bbl-hero-socios-link a.elementor-button:focus-visible {
  outline: 2px solid var(--bbl-brand-champagne);
  outline-offset: 4px;
}
