/* Enlaces legales: una sola sección, con la misma tipografía del pie. */
body .elementor-1309 .elementor-widget-text-editor a {
  font-size: inherit !important;
  line-height: inherit !important;
}

.mg-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.7;
}

.mg-footer-legal a {
  color: #fff;
}

.mg-footer-legal a:hover,
.mg-footer-legal a:focus-visible {
  color: #ffb71e;
}

/* El título queda dentro del banner desde el primer render, sin márgenes negativos. */
.mg-why-banner {
  display: flex;
  align-items: center;
  width: min(52rem, calc(100% - 16px));
  min-height: 144px;
  margin: 0 0 28px;
  padding: 30px clamp(24px, 7vw, 112px);
  border-right: 14px solid #ffb71e;
  border-bottom: 5px solid #ffb71e;
  border-radius: 0 999px 999px 0;
  background: #0c0c0b;
  box-shadow: 0 3px 8px rgb(0 0 0 / 16%);
}

.mg-why-banner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem);
  text-wrap: balance;
}

/* En el documento cada foto precede a su texto; escritorio conserva la alternancia. */
@media (min-width: 768px) {
  body .elementor-15 .mg-reason-row--image-right > .e-con-inner {
    flex-direction: row-reverse;
  }
}

/* El texto de presentación de Servicios mantiene un eje central. */
body .elementor-138 .elementor-element.elementor-element-6656e87,
body .elementor-138 .elementor-element.elementor-element-6656e87 p {
  text-align: center !important;
}

body .elementor-138 .elementor-element.elementor-element-6656e87 {
  width: 100%;
  max-width: 100%;
}

body .elementor-138 .elementor-element.elementor-element-6656e87 p {
  max-width: 70ch;
  margin-inline: auto;
}

/* Nosotros y Servicios comparten la fotografía y el tratamiento de Inicio. */
.elementor-136 .elementor-element.elementor-element-9770bef:not(.elementor-motion-effects-element-type-background),
.elementor-138 .elementor-element.elementor-element-a9beae0:not(.elementor-motion-effects-element-type-background) {
  background-image: none;
  background-color: #171613;
  overflow: hidden;
}

.elementor-136 .elementor-element.elementor-element-9770bef > .e-con-inner,
.elementor-138 .elementor-element.elementor-element-a9beae0 > .e-con-inner {
  position: relative;
  z-index: 1;
}

.elementor-138 .elementor-element.elementor-element-a9beae0 .mg-hero-photo img {
  object-position: center 35%;
}

.elementor-136 .elementor-element.elementor-element-9770bef .elementor-widget-social-icons,
.elementor-138 .elementor-element.elementor-element-a9beae0 .elementor-widget-social-icons {
  --grid-template-columns: repeat(3, auto);
  --grid-column-gap: 12px;
  --icon-size: 1.5rem;
}

.elementor-136 .elementor-element.elementor-element-0dd9e22,
.elementor-138 .elementor-element.elementor-element-6365d2e {
  --justify-content: flex-end;
  padding-bottom: 24px;
}

.mg-principles {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: 64px;
}

.mg-principles-copy {
  min-width: 0;
}

.mg-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.035em;
  color: #786332;
}

.mg-section-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: #c79929;
}

.mg-principles h2 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 1.1rem + 1.3vw, 2.25rem);
  line-height: 1.3;
  text-wrap: balance;
  color: #191916;
}

.mg-principles h2 span {
  color: #ad7e14;
}

.mg-principles-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
  color: #55534d;
}

.mg-principles .mg-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mg-values li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #e7e0cf;
  border-radius: 6px;
  background: #faf9f5;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #35342e;
}

.mg-values img {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.mg-principles-photo {
  position: relative;
  margin: 0;
}

.mg-principles-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #151411;
  border-radius: 12px;
  border-bottom: 6px solid #ffb71e;
}

.mg-about-cta {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  width: 100%;
  margin: 40px 0 48px;
  padding: 32px max(24px, calc((100% - 1120px) / 2));
  border-radius: 0;
  background: #171613;
  color: #f6f3ec;
}

.mg-about-cta img.mg-about-cta-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border-bottom: 4px solid #ffb71e;
}

.mg-about-cta h2 {
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(1.35rem, 1rem + 0.8vw, 1.7rem);
  line-height: 1.4;
  text-wrap: balance;
}

.mg-about-cta p {
  max-width: 62ch;
  margin: 0 0 20px;
  color: #d8d3c9;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.mg-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 7px;
  background: #ffb71e;
  color: #211b0d;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

body .mg-about-cta a.mg-cta-button {
  text-decoration: none;
}

.mg-cta-button:hover,
.mg-cta-button:focus-visible {
  background: #ffd171;
  color: #211b0d;
}

@media (max-width: 767px) {
  /* Las entradas laterales heredadas no deben desplazar el contenido móvil. */
  body .elementor .elementor-invisible {
    visibility: visible;
  }

  body .elementor .animated {
    animation: none !important;
  }

  body .elementor-15 .mg-reason-row {
    --content-width: 100%;
    padding: 0 20px 32px;
  }

  body .elementor-15 .mg-reason-row > .e-con-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0;
  }

  body .elementor-15 .mg-reason-row :is(.mg-reason-photo, .mg-reason-copy) {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  body .elementor-15 .mg-reason-row .elementor-widget-spacer {
    display: none;
  }

  body .elementor-15 .mg-reason-row .mg-reason-copy p {
    margin: 0;
  }

  body .elementor-15 .mg-reason-row .mg-reason-copy .mg-type-heading > .elementor-widget-container {
    margin: 0;
  }

  body .elementor-15 .mg-reason-row .mg-reason-copy .elementor-divider {
    padding-block: 0;
  }

  .mg-why-banner {
    min-height: 108px;
    margin-bottom: 20px;
    padding-block: 24px;
    border-right-width: 10px;
  }

  .elementor-136 .elementor-element.elementor-element-9770bef,
  .elementor-138 .elementor-element.elementor-element-a9beae0 {
    --flex-direction: column;
    --gap: 0px;
  }

  .mg-principles {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 40px);
    gap: 28px;
    padding-block: 36px;
  }

  .mg-principles .mg-values {
    gap: 8px;
  }

  .mg-values li {
    gap: 8px;
    padding: 10px 8px;
    font-size: 0.8125rem;
  }

  .mg-principles-photo img {
    aspect-ratio: 3 / 2;
    object-position: center;
  }

  .mg-about-cta {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin: 24px 0 32px;
    padding: 20px;
    gap: 22px;
  }

  .mg-about-cta img.mg-about-cta-photo {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 360px) {
  .mg-principles .mg-values {
    grid-template-columns: minmax(0, 1fr);
  }
}
