/* Sistema tipográfico compartido por las cuatro páginas de la firma.
   Las reglas !important sustituyen los estilos particulares del export de Elementor. */
:root {
  --mg-font-heading: "Merriweather", Georgia, serif;
  --mg-font-body: "Merriweather Sans", "Segoe UI", sans-serif;
  --mg-type-display: clamp(1.9rem, 1.45rem + 1.2vw, 2.65rem);
  --mg-type-heading: clamp(1.4rem, 1.15rem + 0.7vw, 1.8rem);
}

html {
  font-size: 100%;
}

body,
body.elementor-kit-5 {
  font-family: var(--mg-font-body);
  font-size: 1rem;
  line-height: 1.7;
  --e-global-typography-primary-font-family: "Merriweather";
  --e-global-typography-secondary-font-family: "Merriweather";
  --e-global-typography-text-font-family: "Merriweather Sans";
  --e-global-typography-accent-font-family: "Merriweather Sans";
}

body .elementor .elementor-widget,
body .elementor :is(.elementor-icon-list-text, .elementor-button),
body :is(.hfe-nav-menu a, .hfe-menu-toggle, .chaty-widget, .chaty-tooltip),
body #wpforms-1152 :is(label, input, textarea, select, button, em, .wpforms-confirmation-container-full) {
  font-family: var(--mg-font-body) !important;
}

body :is(.chaty-form, .chaty-whatsapp-form, .chaty-agent-data, .chaty-whatsapp-message, .chaty-whatsapp-message p),
body :is(.chaty-whatsapp-field, .chaty-contact-input) :is(input, textarea, select, button) {
  font-family: var(--mg-font-body) !important;
}

body .elementor .elementor-widget-text-editor {
  font-size: 1.0625rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.75 !important;
  letter-spacing: normal !important;
  text-align: start !important;
}

body .elementor .elementor-widget-text-editor p {
  max-inline-size: 65ch;
  line-height: inherit;
  text-align: inherit;
  text-wrap: pretty;
}

body :is(h1, h2, h3, h4, h5, h6),
body .elementor :is(.mg-type-display, .mg-type-heading, .mg-type-footer-heading) {
  font-family: var(--mg-font-heading) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em !important;
  text-align: start !important;
}

body .elementor .mg-type-display {
  font-size: var(--mg-type-display) !important;
  line-height: 1.24 !important;
}

body .elementor .mg-type-heading {
  font-size: var(--mg-type-heading) !important;
}

body .elementor .mg-type-footer-heading {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

body .elementor :is(.mg-type-display, .mg-type-heading, .mg-type-footer-heading) :is(p, h1, h2, h3, h4, span, strong) {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-wrap: balance;
}

body .elementor .mg-type-eyebrow {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.025em !important;
}

body .elementor .mg-type-lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem) !important;
  line-height: 1.65 !important;
}

body .elementor-1309 .elementor-widget-text-editor:not(.mg-type-footer-heading) {
  font-size: 0.875rem !important;
  line-height: 1.7 !important;
  overflow-wrap: anywhere;
}

body .elementor :is(.elementor-button, .hfe-nav-menu a) {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.01em;
}

body .elementor .elementor-button {
  height: auto;
  white-space: normal;
}

body .elementor .elementor-icon-list-text {
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

body #wpforms-1152 :is(input, textarea, select, button) {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

body #wpforms-1152 :is(label, em) {
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
}

body #wpforms-1152 label {
  font-weight: 600 !important;
}

body #wpforms-1152 button {
  height: auto;
  font-weight: 600;
  white-space: normal;
}

body .elementor-136 .elementor-element.elementor-element-82cc901 td {
  font-family: var(--mg-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 767px) {
  body .elementor .elementor-widget-text-editor:not(.mg-type-display, .mg-type-heading, .mg-type-footer-heading, .mg-type-eyebrow, .mg-type-lead) {
    font-size: 1rem !important;
  }

  body .elementor-1309 .elementor-widget-text-editor:not(.mg-type-footer-heading) {
    font-size: 0.875rem !important;
  }

  body .elementor-136 .elementor-element.elementor-element-82cc901 td {
    font-size: 0.8125rem;
  }
}
