/* SMAB adjustments, loaded after the theme's stylesheets. */

/* Practice-area icons: one size for every imagebox slot (the demo's
   per-widget CSS sized each slot for its original icon; these selectors
   outrank it). */
.elementor .elementor-element.elementor-widget-gt3-core-imagebox .gt3-core-imagebox-wrapper .gt3-core-imagebox-img.smab-icon {
  width: 40px !important;
  max-width: 40px !important;
  margin-bottom: 14px !important;
}
.elementor .elementor-element.elementor-widget-gt3-core-imagebox .gt3-core-imagebox-wrapper .gt3-core-imagebox-img.smab-icon img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  object-position: center bottom;
}

/* Practice-area grid: every box in a row as tall as the tallest one. */
.elementor-widget-wrap:has(> .smab-equal) {
  align-content: stretch !important;
}
.elementor-widget.smab-equal > .elementor-widget-container {
  height: 100%;
}

/* Header logo: the firm's SM&C logo set in the site's fonts. Everything is
   sized in em, so the font-size below scales the whole logo. */
.logo_container .smab-logo {
  font-size: 16.5px;
  width: max-content;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}
/* Low specificity on purpose: the theme's rules decide which logo variant
   (default / sticky / mobile / tablet) is shown. */
.smab-logo {
  display: inline-block;
}
.smab-logo > span {
  display: block;
}
.smab-logo__amp {
  display: inline;
}
.smab-logo__mark {
  font-family: "Libre Baskerville", serif;
  font-size: 2.35em;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.smab-logo__amp {
  font-size: 0.55em;
  margin: 0 0.04em;
  vertical-align: 0.35em;
}
.smab-logo__name {
  font-family: "Libre Baskerville", serif;
  font-size: 0.72em;
  padding: 0.3em 0 0.25em;
  margin-top: 0.3em;
  border-top: 1px solid;
  border-bottom: 1px solid;
}
.smab-logo__tag {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.5em;
  letter-spacing: 0.62em;
  margin: 0.55em -0.62em 0 0; /* offset the trailing letter-spacing */
}
/* Over the home hero. */
.smab-logo--light { color: #ffffff; }
.smab-logo--light .smab-logo__amp { color: #43b1e7; }
.smab-logo--light .smab-logo__name { border-color: rgba(67, 177, 231, 0.6); }
.smab-logo--light .smab-logo__tag { color: #abc3e1; }
/* On the white headers. */
.smab-logo--dark { color: #051c2c; }
.smab-logo--dark .smab-logo__amp { color: #1d40ca; }
.smab-logo--dark .smab-logo__name { border-color: rgba(29, 64, 202, 0.45); }
.smab-logo--dark .smab-logo__tag { color: #1d40ca; }
.header_side_container .logo_container:has(.smab-logo) {
  max-width: none;
}
.sticky_header .logo_container .smab-logo {
  font-size: 14.3px;
}
@media only screen and (max-width: 1200px) {
  .logo_container .smab-logo { font-size: 14.3px; }
}
@media only screen and (max-width: 767px) {
  .logo_container .smab-logo,
  .sticky_header .logo_container .smab-logo { font-size: 12.1px; }
}

/* Footer logo. */
.smab-logo--footer {
  font-size: 18.7px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

/* "CONSULTA CON UN ABOGADO EXPERTO" buttons (hero, inner header, footer): a
   rounded button in slate blue (#324264), Roboto, WhatsApp icon. Lighting
   gives it relief: a lighter top half and gloss (::before), a bright top rim
   and a darker bottom inside, and a solid darker "edge" below it. Hovering
   lifts it slightly; pressing pushes it down onto the edge. */
.smab-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  background-color: #324264 !important;
  background-image: linear-gradient(180deg, #4a5f8c 0%, #3a4d78 48%, #324264 52%, #283653 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 4px 0 #1c263b,
    0 8px 18px rgba(5, 28, 44, 0.35);
  font-family: "Roboto", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  text-decoration: none;
  transform: translateY(0);
  transition: filter 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.smab-cta::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 8%;
  right: 8%;
  height: 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.smab-cta > * {
  position: relative;
}
.smab-cta:hover,
.smab-cta:focus-visible {
  color: #ffffff !important;
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3),
    0 5px 0 #1c263b,
    0 10px 22px rgba(5, 28, 44, 0.4),
    0 0 14px rgba(67, 177, 231, 0.25);
}
.smab-cta:active {
  filter: brightness(0.95);
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 #1c263b,
    0 2px 6px rgba(5, 28, 44, 0.3);
}
.smab-cta:active::before {
  opacity: 0.4;
}
.smab-cta .fa-whatsapp {
  font-size: 1.35em;
  line-height: 1;
  margin: 0 !important;
}
.main_footer .smab-cta.gt3_button_bottom {
  width: auto;
  max-width: 100%;
  font-size: 14px;
  line-height: 22px;
  padding: 13px 28px;
  /* The theme's side margins (43px, 36px on small screens) were sized for
     its shorter label and push this one past the footer's edge. */
  margin: 0;
}
@media only screen and (max-width: 1199px) {
  .main_footer .smab-cta.gt3_button_bottom {
    white-space: normal;
    text-align: center;
  }
}
/* Inner header: a button inside the header row instead of a full-height block. */
.gt3_header_builder .smab-cta.gt3_header_button {
  height: auto;
  line-height: 22px;
  font-size: 14px;
  padding: 13px 28px;
  margin: 0 24px 4px;
}
@media only screen and (max-width: 1366px) {
  .gt3_header_builder .smab-cta.gt3_header_button {
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 11px 18px;
    margin: 0 12px 4px;
  }
}
/* Phones: the label wraps onto two lines to fit beside the logo. */
@media only screen and (max-width: 767px) {
  .gt3_header_builder .smab-cta.gt3_header_button {
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.03em;
    white-space: normal;
    text-align: left;
    max-width: 190px;
    border-radius: 22px !important;
    padding: 7px 16px;
    margin: 0 10px 4px;
  }
}

/* Phones, inner pages: the header's top row (logo + contact button) is a bit
   taller than the theme's 52px so the larger logo has room. */
@media only screen and (max-width: 767px) {
  .gt3_header_builder__section--top__mobile:has(.smab-logo) .gt3_header_builder__section-container {
    height: 64px;
  }
}

/* "Quiénes somos": space between the paragraphs under the headline. */
.elementor-widget-text-editor p.smab-lead {
  margin-bottom: 0.8em;
}

/* Section headline added above a text block, matching the theme's h3
   headlines (e.g. "Tu aliado estratégico en soluciones legales."). */
.elementor-widget-text-editor h3.smab-heading {
  font-family: "Libre Baskerville", serif;
  font-size: 24px;
  line-height: 36px;
  font-weight: 400;
  letter-spacing: -0.6px;
  color: inherit;
  margin: 0 0 16px;
}

/* Inner header: the Santiago address wraps onto two lines instead of
   widening the header row. */
.gt3_header_builder .smab-header-address p {
  white-space: normal;
  max-width: 270px;
  line-height: 18px;
}

/* Cloudflare Turnstile widget above the contact form's submit button
   (components/theme/Cf7Form.tsx). */
.smab-captcha {
  margin: 0 0 20px;
  min-height: 65px;
}

/* Home, "Nuestro compromiso": the Santiago skyline photo (image-7.jpg, from
   scripts/smab/compromiso-photo.ts). On narrow screens keep Gran Torre
   Costanera in view instead of the centre of the city. */
/* The quote is static (no carousel dots): keep the space the dots took so
   the section stays balanced. */
.elementor-1740 .elementor-element-cbf1afa .gt3_testimonial {
  padding-bottom: 50px;
}
@media (max-width: 767px) {
  .elementor-1740 .elementor-element.elementor-element-cbf1afa:not(.elementor-motion-effects-element-type-background) {
    background-position: 80% center !important;
  }
}

/* "Nuestro equipo" sections with fewer cards than the row holds
   (scripts/smab/localize.ts ourTeam): centre them. */
.smab-team-center .module_team ul.item_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Temporarily disabled home page links (components/theme/LinkGate.tsx):
   look unchanged but don't react to the pointer. */
a.smab-link-off {
  pointer-events: none !important;
  cursor: default !important;
}
