/* ============================================================
   M&J INGENIERÍA Y CONTRATISTAS GENERALES E.I.R.L.
   Capa de personalización sobre la plantilla Mistri.
   Paleta, componentes y ajustes responsive.
   ============================================================ */

/* ---------- Tipografía local (Prompt) ---------- */
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url("../fonts/prompt-latin-ext-300.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 300;
  font-display: optional;
  src: url("../fonts/prompt-latin-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("../fonts/prompt-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("../fonts/prompt-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("../fonts/prompt-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("../fonts/prompt-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/prompt-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/prompt-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/prompt-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/prompt-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url("../fonts/prompt-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Prompt";
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url("../fonts/prompt-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset y base mínima (sustituye el CSS demo no utilizado) ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  display: inline-block;
  color: var(--mj-dark);
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-right: auto;
  margin-left: auto;
}

.mt-3 {
  margin-top: 16px;
}

.mt-5 {
  margin-top: 48px;
}

/* ---------- Variables corporativas ---------- */
:root {
  --prompt: "Prompt", sans-serif;
  --primary-color: #ffb719;
  --secondary-color: #101a20;
  --sub-bg: #f1f3f4;
  --heading-color: #101a20;
  --paragraph: #4c5a62;
  --span: #6f7a80;
  --border: #d9dedf;
  --white: #ffffff;
  --black: #000000;
  --transition: all 0.3s ease-in-out;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  --mj-dark: #101a20;
  --mj-petrol: #17262f;
  --mj-yellow: #ffb719;
  --mj-orange: #f59b17;
  --mj-white: #ffffff;
  --mj-gray: #f1f3f4;
  --mj-text: #4c5a62;
  --mj-muted: #b8c2c7;
  --mj-line: rgba(16, 26, 32, 0.12);
  --mj-line-light: rgba(255, 255, 255, 0.14);
  --mj-success: #2e8b57;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--prompt);
  color: var(--mj-text);
  background-color: var(--mj-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--mj-dark);
  font-family: var(--prompt);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.04;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  font-weight: 700;
}

h3 {
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1.25;
  font-weight: 600;
}

p {
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--mj-dark);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  color: var(--mj-dark);
  background-color: var(--mj-yellow);
}

::-webkit-scrollbar-thumb {
  background-color: var(--mj-yellow);
}

:focus-visible {
  outline: 3px solid var(--mj-yellow);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 112px 0;
}

.mj-light {
  background: var(--mj-gray);
}

.mj-dark {
  position: relative;
  background-color: var(--mj-dark);
  color: #dce3e6;
  overflow: hidden;
}

.mj-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

.mj-dark .section-header h2,
.mj-dark h1,
.mj-dark h2,
.mj-dark h3,
.mj-dark h4 {
  color: var(--mj-white);
}

.mj-dark p {
  color: #c4ced2;
}

.mj-dark .container,
.mj-dark .mj-hero__inner {
  position: relative;
  z-index: 1;
}

.mj-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.mj-section-head .section-header {
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 42px;
}

.section-header h5,
.mj-eyebrow {
  color: #8a5300;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 16px;
}

.mj-dark .section-header h5,
.mj-dark .mj-eyebrow,
.mj-hero .mj-eyebrow {
  color: var(--mj-yellow);
}

.section-header h2 {
  max-width: 850px;
  text-transform: none;
}

.section-header p {
  max-width: 720px;
  margin-top: 20px;
}

.section-header.text-center h2,
.section-header.text-center p {
  margin-right: auto;
  margin-left: auto;
}

.mj-lead {
  font-size: 18px;
  line-height: 1.75;
  color: #5d6a71;
}

.mj-dark .mj-lead {
  color: #d3dcdf;
}

.mj-kicker-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mj-kicker-line::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--mj-yellow);
}

.mj-muted {
  color: #7c888e;
}

.mj-note {
  font-size: 13px;
  line-height: 1.7;
  color: #5f6c73;
}

.mj-dark .mj-note {
  color: #9eabb0;
}

/* Accesibilidad */
.mj-skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-weight: 700;
  border-radius: 2px;
  transition: var(--transition);
}

.mj-skip-link:focus {
  top: 14px;
}

/* ---------- Botones ---------- */
.mj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-family: var(--prompt);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.mj-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mj-btn:hover {
  background: #ffc94d;
  color: var(--mj-dark);
  transform: translateY(-2px);
  box-shadow: none;
}

.mj-btn:hover i {
  transform: translateX(4px);
}

.mj-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--mj-white);
}

.mj-btn--outline:hover {
  background: var(--mj-white);
  border-color: var(--mj-white);
  color: var(--mj-dark);
  box-shadow: none;
}

.mj-btn--dark {
  background: var(--mj-dark);
  color: var(--mj-white);
}

.mj-btn--dark:hover {
  background: var(--mj-petrol);
  color: var(--mj-yellow);
}

.mj-btn--ghost-dark {
  background: transparent;
  border-color: rgba(16, 26, 32, 0.22);
  color: var(--mj-dark);
}

.mj-btn--ghost-dark:hover {
  background: var(--mj-dark);
  color: var(--mj-white);
  border-color: var(--mj-dark);
}

.mj-btn--sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 11px;
}

.mj-btn--whatsapp {
  background: #128143;
  color: #fff;
}

.mj-btn--whatsapp:hover {
  background: #0f7a3f;
  color: #fff;
}

.mj-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mj-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mj-link-arrow i {
  color: var(--mj-orange);
  transition: transform 0.3s ease;
}

.mj-link-arrow:hover {
  color: var(--mj-orange);
}

.mj-link-arrow:hover i {
  transform: translateX(5px);
}

/* ---------- Header ---------- */
.mj-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(10, 18, 23, 0.9), rgba(10, 18, 23, 0.64));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mj-header.is-scrolled {
  background: rgba(10, 18, 23, 0.98);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.mj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 26px;
}

.mj-logo {
  flex: 0 0 auto;
  line-height: 0;
}

.mj-logo img {
  width: clamp(150px, 16vw, 194px);
  height: auto;
}

.mj-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-left: auto;
}

.mj-nav a {
  position: relative;
  display: inline-block;
  padding: 32px 0;
  color: #eef2f4;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
}

.mj-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 24px;
  height: 2px;
  background: var(--mj-yellow);
  transition: right 0.3s ease;
}

.mj-nav a:hover,
.mj-nav a.is-active {
  color: var(--mj-yellow);
}

.mj-nav a:hover::after,
.mj-nav a.is-active::after {
  right: 0;
}

.mj-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.mj-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eef2f4;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.mj-header__phone i {
  color: var(--mj-yellow);
  font-size: 15px;
}

.mj-header__phone:hover {
  color: var(--mj-yellow);
}

.mj-header__cta {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 11px;
}

.mj-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.mj-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--mj-white);
  transition: var(--transition);
}

.mj-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mj-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mj-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.mj-hero {
  position: relative;
  overflow: hidden;
  padding: 136px 0 88px;
  background: #0b1419;
  color: var(--mj-white);
}

.mj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.mj-hero::after {
  content: "M&J";
  position: absolute;
  right: 24px;
  bottom: -84px;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  font-size: 260px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.mj-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: start;
  gap: clamp(36px, 6vw, 84px);
}

.mj-hero__content {
  padding: 8px 0;
}

.mj-hero h1 {
  max-width: 780px;
  color: var(--mj-white);
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 1.05;
  font-weight: 700;
}

.mj-hero h1 span {
  color: var(--mj-yellow);
}

.mj-hero__text {
  max-width: 630px;
  margin-top: 24px;
  color: #cad4d8;
  font-size: 18px;
  line-height: 1.75;
}

.mj-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mj-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.mj-hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
  color: #e7edef;
  font-size: 13px;
  line-height: 1.35;
}

.mj-hero__badge:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.mj-hero__badge i {
  color: var(--mj-yellow);
  font-size: 19px;
}

.mj-hero__badge strong {
  display: block;
  color: var(--mj-white);
  font-size: 18px;
  line-height: 1.15;
}

.mj-hero__media {
  position: relative;
  min-width: 0;
  margin-top: 12px;
}

.mj-hero__frame {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 183, 25, 0.46);
}

.mj-hero__frame::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 82px;
  height: 82px;
  border-top: 2px solid var(--mj-yellow);
  border-right: 2px solid var(--mj-yellow);
}

.mj-hero__frame::after {
  content: "";
  position: absolute;
  left: -12px;
  bottom: -12px;
  width: 82px;
  height: 82px;
  border-left: 2px solid var(--mj-yellow);
  border-bottom: 2px solid var(--mj-yellow);
}

.mj-hero-swiper {
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-hero-slide {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.mj-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-hero-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 74px 28px 25px;
  background: linear-gradient(transparent, rgba(8, 14, 18, 0.94));
}

.mj-hero-slide__caption span {
  display: block;
  color: var(--mj-yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mj-hero-slide__caption strong {
  display: block;
  margin-top: 6px;
  color: var(--mj-white);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.mj-hero__controls {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -25px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.mj-hero__arrows {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.mj-hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(11, 20, 25, 0.8);
  color: var(--mj-white);
  cursor: pointer;
  transition: var(--transition);
}

.mj-hero__arrow:hover {
  border-color: var(--mj-yellow);
  background: var(--mj-yellow);
  color: var(--mj-dark);
}

.mj-hero__pagination {
  color: var(--mj-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.mj-hero__pagination .swiper-pagination-current {
  color: var(--mj-yellow);
  font-size: 18px;
}

/* ---------- Cinta de especialidades ---------- */
.mj-ribbon {
  overflow: hidden;
  background: var(--mj-yellow);
  color: var(--mj-dark);
}

.mj-ribbon__track {
  display: flex;
  width: max-content;
  animation: mj-marquee 32s linear infinite;
}

.mj-ribbon__group {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  white-space: nowrap;
}

.mj-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  color: var(--mj-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mj-ribbon span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mj-dark);
}

@keyframes mj-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Introducción / Nosotros ---------- */
.mj-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.mj-media-stack {
  position: relative;
  padding: 0 22px 34px 0;
}

.mj-media-stack::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 0;
  left: 26px;
  border: 1px solid rgba(255, 183, 25, 0.6);
  z-index: 0;
}

.mj-media-stack__image {
  position: relative;
  z-index: 1;
  height: 530px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-media-stack__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-media-stack__caption {
  position: absolute;
  z-index: 2;
  right: -20px;
  bottom: 0;
  max-width: 310px;
  padding: 22px 24px;
  border-left: 3px solid var(--mj-yellow);
  background: var(--mj-dark);
  color: var(--mj-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.mj-media-stack__caption strong {
  display: block;
  color: var(--mj-yellow);
  font-size: 28px;
  line-height: 1.1;
}

.mj-media-stack__caption span {
  display: block;
  margin-top: 5px;
  color: #d6dfe2;
  font-size: 13px;
  line-height: 1.5;
}

.mj-intro__body p + p {
  margin-top: 16px;
}

.mj-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 26px 0 30px;
}

.mj-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--mj-dark);
  font-size: 14px;
  line-height: 1.55;
}

.mj-check-list i {
  margin-top: 4px;
  color: var(--mj-orange);
}

.mj-dark .mj-check-list li {
  color: #dde5e8;
}

.mj-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---------- Indicadores ---------- */
.mj-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-stat {
  padding: 28px 24px;
  border-right: 1px solid var(--mj-line);
}

.mj-stat:last-child {
  border-right: 0;
}

.mj-stat strong {
  display: block;
  color: var(--mj-dark);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.mj-stat strong span {
  color: var(--mj-orange);
}

.mj-stat small {
  display: block;
  margin-top: 9px;
  color: #59676e;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Servicios destacados ---------- */
.mj-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mj-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mj-white);
  border: 1px solid rgba(16, 26, 32, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mj-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.mj-feature-card__image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.mj-feature-card:hover .mj-feature-card__image img {
  transform: scale(1.04);
}

.mj-feature-card__number {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 36px;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mj-feature-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 26px 26px;
}

.mj-feature-card__body h3 {
  margin-bottom: 12px;
}

.mj-feature-card__body h3 a {
  color: var(--mj-dark);
}

.mj-feature-card__body h3 a:hover {
  color: var(--mj-orange);
}

.mj-feature-card__body p {
  flex: 1;
  color: #637077;
  font-size: 14px;
  line-height: 1.7;
}

.mj-feature-card__body .mj-link-arrow {
  margin-top: 22px;
}

/* ---------- Proyecto destacado ---------- */
.mj-project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  gap: 0;
  background: var(--mj-petrol);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mj-project-feature__media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.mj-project-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-project-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(23, 38, 47, 0.62));
}

.mj-project-feature__stamp {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(10, 18, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.mj-project-feature__stamp i {
  color: var(--mj-yellow);
}

.mj-project-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 56px);
  color: #dce5e8;
}

.mj-project-feature__body h2 {
  color: #fff;
  font-size: clamp(28px, 2.75vw, 40px);
}

.mj-project-feature__body h2 span {
  color: var(--mj-yellow);
}

.mj-project-feature__body p {
  color: #c6d1d6;
}

.mj-project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mj-project-meta div span {
  display: block;
  color: #91a0a7;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mj-project-meta div strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.mj-project-meta div strong em {
  color: var(--mj-yellow);
  font-style: normal;
}

/* ---------- Diferenciadores ---------- */
.mj-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mj-value-card {
  padding: 34px 28px;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
  transition: var(--transition);
}

.mj-value-card:hover {
  border-color: var(--mj-yellow);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.mj-value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: rgba(255, 183, 25, 0.15);
  color: var(--mj-orange);
  font-size: 23px;
}

.mj-value-card h3 {
  margin-bottom: 12px;
}

.mj-value-card p {
  color: #69767d;
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- ISO ---------- */
.mj-iso {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.mj-iso__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-iso__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--mj-dark);
  color: var(--mj-yellow);
  font-size: 20px;
}

.mj-iso__item strong {
  display: block;
  color: var(--mj-dark);
  font-size: 16px;
  line-height: 1.2;
}

.mj-iso__item > div span {
  display: block;
  margin-top: 4px;
  color: #59676e;
  font-size: 12px;
  line-height: 1.4;
}

.mj-dark .mj-iso__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
}

.mj-dark .mj-iso__item strong {
  color: #fff;
}

.mj-dark .mj-iso__item > div span {
  color: #aebbc0;
}

/* ---------- CTA ---------- */
.mj-cta {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto;
  padding: 72px clamp(32px, 5vw, 64px);
  overflow: hidden;
  background-color: var(--mj-dark);
  color: #fff;
}

.mj-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 23, 0.96) 0%, rgba(10, 18, 23, 0.78) 56%, rgba(10, 18, 23, 0.46) 100%);
}

.mj-cta--center::before {
  background: rgba(10, 18, 23, 0.82);
}

.mj-cta .container {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 0;
}

.mj-cta h2 {
  max-width: 760px;
  color: var(--mj-white);
  font-size: clamp(30px, 3.5vw, 48px);
}

.mj-cta h2 span {
  color: var(--mj-yellow);
}

.mj-cta p {
  max-width: 620px;
  margin-top: 18px;
  color: #d2dcdf;
}

.mj-cta .mj-actions {
  margin-top: 30px;
}

.mj-cta--center {
  text-align: center;
}

.mj-cta--center h2,
.mj-cta--center p {
  margin-left: auto;
  margin-right: auto;
}

.mj-cta--center .mj-actions {
  justify-content: center;
}

/* ---------- Banners de página ---------- */
.mj-page-banner {
  position: relative;
  padding: 218px 0 104px;
  background-color: var(--mj-dark);
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}

.mj-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 14, 19, 0.95) 0%, rgba(8, 14, 19, 0.8) 48%, rgba(8, 14, 19, 0.38) 100%);
}

.mj-page-banner--nosotros {
  background-image: url("../img/fondos/banner-nosotros.webp");
}

.mj-page-banner--servicios {
  background-image: url("../img/fondos/banner-servicios.webp");
}

.mj-page-banner--proyectos {
  background-image: url("../img/fondos/banner-proyectos.webp");
}

.mj-page-banner--contacto {
  background-image: url("../img/fondos/banner-contacto.webp");
}

.mj-page-banner--condoruma {
  background-image: url("../img/proyectos/condoruma/condoruma-portada.webp");
}

.mj-page-banner--condoruma::before {
  background: linear-gradient(90deg, rgba(8, 14, 19, 0.95) 0%, rgba(8, 14, 19, 0.74) 58%, rgba(8, 14, 19, 0.38) 100%);
}

.mj-page-banner h1 {
  max-width: 950px;
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
}

.mj-page-banner p {
  max-width: 680px;
  margin-top: 18px;
  color: #d3dde1;
  font-size: 17px;
}

.mj-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: #d4dde0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mj-breadcrumb a {
  color: var(--mj-yellow);
}

.mj-breadcrumb a:hover {
  color: #fff;
}

.mj-breadcrumb i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
}

.mj-breadcrumb span {
  color: #d4dde0;
}

/* ---------- Nosotros ---------- */
.mj-about-media {
  position: relative;
}

.mj-about-media__main {
  height: 520px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-about-media__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-about-media__small {
  position: absolute;
  right: -18px;
  bottom: -42px;
  width: 44%;
  border: 8px solid var(--mj-white);
  box-shadow: var(--shadow);
}

.mj-about-media__small img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.mj-about-copy {
  padding-left: 26px;
}

.mj-about-copy p + p {
  margin-top: 16px;
}

.mj-about-copy .mj-check-list {
  grid-template-columns: 1fr;
}

.mj-mission-vision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.mj-mv-card {
  position: relative;
  padding: 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--mj-petrol);
}

.mj-mv-card--yellow {
  border-color: rgba(255, 183, 25, 0.55);
  background: rgba(255, 183, 25, 0.06);
}

.mj-mv-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 20px;
}

.mj-mv-card h3 {
  color: #fff;
  font-size: 22px;
}

.mj-mv-card p {
  margin-top: 14px;
  color: #c9d3d7;
  font-size: 15px;
  line-height: 1.8;
}

.mj-safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
}

.mj-safety-image {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.mj-safety-image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.mj-safety-image__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 18px 20px;
  background: rgba(9, 17, 22, 0.84);
  border-top: 2px solid var(--mj-yellow);
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  backdrop-filter: blur(6px);
}

.mj-safety-list {
  margin-top: 30px;
}

.mj-safety-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mj-safety-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mj-safety-list__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 16px;
}

.mj-safety-list h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 17px;
}

.mj-safety-list p {
  color: #b7c3c8;
  font-size: 14px;
  line-height: 1.7;
}

.mj-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mj-sector {
  padding: 28px 24px;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
  text-align: center;
}

.mj-sector i {
  display: block;
  margin-bottom: 15px;
  color: var(--mj-orange);
  font-size: 27px;
}

.mj-sector strong {
  display: block;
  color: var(--mj-dark);
  font-size: 15px;
  line-height: 1.4;
}

.mj-commitment {
  padding: 64px 56px;
  border-left: 4px solid var(--mj-yellow);
  background: var(--mj-petrol);
  color: #fff;
}

.mj-commitment h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
}

.mj-commitment p {
  max-width: 900px;
  margin-top: 16px;
  color: #cdd7da;
}

.mj-commitment .mj-kicker-line {
  margin-bottom: 16px;
  color: var(--mj-yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Servicios ---------- */
.mj-services-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: end;
  gap: 42px;
}

.mj-services-intro .section-header {
  margin-bottom: 0;
}

.mj-services-intro__aside {
  padding-left: 30px;
  border-left: 1px solid var(--mj-line);
}

.mj-services-intro__aside p {
  color: #5d6a71;
}

.mj-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.mj-mini-list span {
  padding: 7px 11px;
  border: 1px solid var(--mj-line);
  color: #4d5a61;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mj-services-list {
  display: grid;
  gap: 42px;
}

.mj-service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-service-row:nth-child(even) {
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
}

.mj-service-row:nth-child(even) .mj-service-row__media {
  order: 2;
}

.mj-service-row:nth-child(even) .mj-service-row__body {
  order: 1;
}

.mj-service-row__media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.mj-service-gallery {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.mj-service-gallery .mj-gallery {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.mj-service-row:hover .mj-service-row__media img {
  transform: scale(1.03);
}

.mj-service-row__num {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 42px;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 14px;
  font-weight: 700;
}

.mj-service-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.mj-service-row__body h2 {
  font-size: clamp(26px, 2.8vw, 36px);
}

.mj-service-row__body > p {
  margin-top: 14px;
  color: #5f6d74;
  font-size: 15px;
}

.mj-scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 24px 0 28px;
}

.mj-scope-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #45535a;
  font-size: 13px;
  line-height: 1.55;
}

.mj-scope-list i {
  margin-top: 4px;
  color: var(--mj-orange);
  font-size: 10px;
}

.mj-service-row__body .mj-actions {
  margin-top: auto;
}

.mj-services-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding: 24px 28px;
  background: var(--mj-gray);
  border-left: 3px solid var(--mj-yellow);
}

.mj-services-footer p {
  margin: 0;
  color: #55636a;
  font-size: 14px;
}

/* ---------- Proyectos ---------- */
.mj-feature-project {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-feature-project__media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-feature-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mj-feature-project__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 17, 22, 0.64));
}

.mj-feature-project__label {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mj-feature-project__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

.mj-feature-project__body h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.mj-feature-project__body > p {
  margin-top: 16px;
  color: #606e75;
}

.mj-feature-project__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 24px 0;
  padding: 22px 0;
  border-top: 1px solid var(--mj-line);
  border-bottom: 1px solid var(--mj-line);
}

.mj-feature-project__meta span {
  display: block;
  color: #8a969b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mj-feature-project__meta strong {
  display: block;
  margin-top: 4px;
  color: var(--mj-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.mj-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mj-project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
  transition: var(--transition);
}

.mj-project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.mj-project-card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mj-project-card:hover .mj-project-card__image img {
  transform: scale(1.035);
}

.mj-project-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(8, 14, 19, 0.82);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.mj-project-card__tag i {
  color: var(--mj-yellow);
}

.mj-project-card__tag--real {
  background: var(--mj-yellow);
  color: var(--mj-dark);
}

.mj-project-card__tag--real i {
  color: var(--mj-dark);
}

.mj-project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 26px 28px;
}

.mj-project-card__body .mj-kicker {
  color: #8a5300;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mj-project-card__body h3 {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.3;
}

.mj-project-card__body p {
  margin-top: 10px;
  color: #6a777d;
  font-size: 13px;
  line-height: 1.7;
}

.mj-project-card__body .mj-link-arrow {
  margin-top: auto;
  padding-top: 18px;
}

.mj-transparency {
  display: flex;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid rgba(16, 26, 32, 0.12);
  background: #fbf7eb;
}

.mj-transparency i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #a46a00;
  font-size: 20px;
}

.mj-transparency p {
  color: #5e5d55;
  font-size: 13px;
  line-height: 1.7;
}

.mj-transparency strong {
  color: var(--mj-dark);
}

/* ---------- Ficha de proyecto ---------- */
.mj-project-summary {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 30px 32px;
  background: var(--mj-white);
  border-top: 3px solid var(--mj-yellow);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.mj-project-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mj-project-summary__grid div {
  border-right: 1px solid var(--mj-line);
}

.mj-project-summary__grid div:last-child {
  border-right: 0;
}

.mj-project-summary__grid span {
  display: block;
  color: #5f6b72;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mj-project-summary__grid strong {
  display: block;
  margin-top: 6px;
  color: var(--mj-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.mj-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: start;
  gap: clamp(34px, 5vw, 60px);
}

.mj-detail-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 40px);
}

.mj-detail-copy h3 {
  margin-top: 34px;
  margin-bottom: 12px;
}

.mj-detail-copy p + p {
  margin-top: 14px;
}

.mj-detail-aside {
  position: sticky;
  top: 112px;
  padding: 30px;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-detail-aside h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.mj-detail-aside ul {
  border-top: 1px solid var(--mj-line);
}

.mj-detail-aside li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mj-line);
  font-size: 12px;
}

.mj-detail-aside li span {
  color: #5f6b72;
}

.mj-detail-aside li strong {
  color: var(--mj-dark);
  font-weight: 500;
  text-align: right;
}

.mj-detail-aside .mj-btn {
  width: 100%;
  margin-top: 20px;
}

.mj-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.mj-status-card {
  padding: 24px;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-status-card--complete {
  border-top: 3px solid #2e8b57;
}

.mj-status-card--pending {
  border-top: 3px solid var(--mj-orange);
}

.mj-status-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mj-status-card h3 {
  font-size: 15px;
  margin-bottom: 0;
}

.mj-status-card__tag {
  padding: 4px 8px;
  background: #e9f5ee;
  color: #216c44;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mj-status-card--pending .mj-status-card__tag {
  background: #fff2de;
  color: #9a5b00;
}

.mj-status-card p {
  color: #647178;
  font-size: 12px;
  line-height: 1.65;
}

.mj-progress {
  height: 7px;
  margin-top: 16px;
  background: #e8ecee;
  overflow: hidden;
}

.mj-progress span {
  display: block;
  height: 100%;
  background: #2e8b57;
}

.mj-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #5f6c73;
  font-size: 10px;
  font-weight: 500;
}

.mj-progress-label span {
  color: #5f6c73;
}

.mj-progress-label strong {
  color: var(--mj-dark);
}

.mj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mj-gallery-item {
  position: relative;
  display: block;
  height: 330px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.mj-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 14, 19, 0.88));
  transition: background 0.3s ease;
}

.mj-gallery-item:hover img {
  transform: scale(1.04);
}

.mj-gallery-item__caption {
  position: absolute;
  left: 18px;
  right: 48px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.mj-gallery-item__icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 12px;
}

.mj-gallery-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--mj-line);
  background: var(--mj-gray);
}

.mj-gallery-note i {
  margin-top: 3px;
  color: #a46a00;
}

.mj-gallery-note p {
  color: #55636a;
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- Contacto ---------- */
.mj-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: 28px;
}

.mj-contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 46px);
  background: var(--mj-dark);
  color: #fff;
}

.mj-contact-card::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 183, 25, 0.3);
  border-radius: 50%;
}

.mj-contact-card .mj-eyebrow {
  color: var(--mj-yellow);
}

.mj-contact-card h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
}

.mj-contact-card > p {
  margin-top: 14px;
  color: #c1ccd0;
  font-size: 14px;
}

.mj-contact-list {
  margin-top: 30px;
}

.mj-contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mj-contact-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mj-contact-list__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 15px;
}

.mj-contact-list div > span {
  display: block;
  color: #93a1a7;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mj-contact-list__icon i {
  color: var(--mj-dark);
  font-size: 15px;
}

.mj-contact-list a,
.mj-contact-list strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mj-contact-list a:hover {
  color: var(--mj-yellow);
}

.mj-contact-card .mj-actions {
  margin-top: 28px;
}

.mj-contact-card__ruc {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9dabb0;
  font-size: 11px;
}

.mj-contact-card__ruc strong {
  color: var(--mj-yellow);
}

.mj-form-card {
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-form-card h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}

.mj-form-card > p {
  margin-top: 8px;
  color: #5c696f;
  font-size: 13px;
}

.mj-form {
  margin-top: 26px;
}

.mj-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mj-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mj-field--full {
  grid-column: 1 / -1;
}

.mj-field label {
  color: var(--mj-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mj-field label .mj-required {
  color: #b0492f;
}

.mj-field input,
.mj-field select,
.mj-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfd6d9;
  border-radius: 0;
  background: #fff;
  color: var(--mj-dark);
  font-family: var(--prompt);
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.25s ease;
}

.mj-field textarea {
  min-height: 140px;
  resize: vertical;
}

.mj-field input::placeholder,
.mj-field textarea::placeholder {
  color: #9aa4a9;
}

.mj-field input:focus,
.mj-field select:focus,
.mj-field textarea:focus {
  outline: none;
  border-color: var(--mj-orange);
  box-shadow: none;
}

.mj-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.mj-form__status {
  flex: 1 1 240px;
  color: #5f6c73;
  font-size: 11px;
  line-height: 1.55;
}

.mj-form__status a {
  color: #a45c00;
  font-weight: 600;
  text-decoration: underline;
}

.mj-form-fallback {
  margin-top: 22px;
  padding: 20px;
  border-left: 3px solid var(--mj-orange);
  background: #fff8ec;
}

.mj-form-fallback h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.mj-form-fallback p {
  color: #5f5c54;
  font-size: 12px;
  line-height: 1.65;
}

.mj-form-fallback__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

[hidden] {
  display: none !important;
}

.mj-map {
  height: 420px;
  background: #dce4e7;
}

.mj-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(98%);
}



/* ---------- Mini galería del proyecto destacado ---------- */
.mj-project-thumbs {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--mj-line);
  background: var(--mj-white);
}

.mj-project-thumbs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.mj-project-thumbs__head h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mj-project-thumbs__head p {
  color: #5a676d;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.mj-project-thumbs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mj-project-thumb {
  position: relative;
  display: block;
  height: 104px;
  overflow: hidden;
  background: var(--mj-petrol);
}

.mj-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.mj-project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 19, 0.06) 40%, rgba(8, 14, 19, 0.8));
}

.mj-project-thumb span {
  position: absolute;
  left: 9px;
  bottom: 7px;
  z-index: 2;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mj-project-thumb i {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 9px;
}

.mj-project-thumb:hover img {
  transform: scale(1.06);
}

@media screen and (max-width: 767px) {
  .mj-project-thumbs__head {
    display: block;
  }

  .mj-project-thumbs__head p {
    margin-top: 5px;
    text-align: left;
  }

  .mj-project-thumbs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-project-thumb {
    height: 120px;
  }
}

/* ---------- Ubicación / domicilio fiscal ---------- */
.mj-location {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  background: var(--mj-petrol);
  color: #fff;
}

.mj-location::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

.mj-location .container {
  position: relative;
  z-index: 1;
}

.mj-location__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.mj-location__copy {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mj-location__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--mj-yellow);
  color: var(--mj-dark);
  font-size: 27px;
}

.mj-location .mj-eyebrow {
  padding-bottom: 8px;
  color: var(--mj-yellow);
}

.mj-location h2 {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
}

.mj-location p {
  margin-top: 4px;
  color: #b9c6cb;
  font-size: 14px;
}

.mj-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

@media screen and (max-width: 991px) {
  .mj-location__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 575px) {
  .mj-location {
    padding: 40px 0;
  }

  .mj-location__copy {
    align-items: flex-start;
    gap: 16px;
  }

  .mj-location__icon {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .mj-location__actions {
    width: 100%;
    flex-direction: column;
  }

  .mj-location__actions .mj-btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.mj-footer {
  position: relative;
  overflow: hidden;
  background: var(--mj-dark);
  color: #9eabb0;
}

.mj-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 25, 0.5), transparent);
}

.mj-footer__main {
  padding: 84px 0 54px;
}

.mj-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
}

.mj-footer__logo img {
  width: 196px;
  height: auto;
  margin-bottom: 20px;
}

.mj-footer__brand p {
  max-width: 350px;
  color: #98a6ac;
  font-size: 13px;
  line-height: 1.8;
}

.mj-footer h3 {
  margin-bottom: 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mj-footer__links li + li {
  margin-top: 10px;
}

.mj-footer__links a,
.mj-footer__contact a,
.mj-footer__contact span {
  color: #9fadb2;
  font-size: 13px;
  line-height: 1.65;
}

.mj-footer__links a:hover,
.mj-footer__contact a:hover {
  color: var(--mj-yellow);
}

.mj-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mj-footer__contact li + li {
  margin-top: 13px;
}

.mj-footer__contact i {
  margin-top: 4px;
  color: var(--mj-yellow);
  font-size: 12px;
}

.mj-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.mj-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: #dfe6e8;
  font-size: 13px;
  transition: var(--transition);
}

.mj-footer__social a:hover {
  background: var(--mj-yellow);
  border-color: var(--mj-yellow);
  color: var(--mj-dark);
}

.mj-footer__bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #829197;
  font-size: 11px;
}

.mj-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.mj-footer__bottom a {
  color: #bdc8cc;
}

.mj-footer__bottom a:hover {
  color: var(--mj-yellow);
}

.mj-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128143;
  color: #fff;
  font-size: 25px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
}

.mj-whatsapp-float:hover {
  background: #0f7a3f;
  color: #fff;
  transform: translateY(-3px) scale(1.03);
}

/* ---------- Ajustes de componentes Mistri reutilizados ---------- */
.mj-dark .section-header h5,
.mj-cta .mj-eyebrow {
  color: var(--mj-yellow);
}

.section-header h5.wow,
.mj-eyebrow.wow {
  visibility: visible;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1199px) {
  .container {
    max-width: 1020px;
  }

  .mj-header__inner {
    min-height: 78px;
  }

  .mj-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 14px 24px 24px;
    background: rgba(10, 18, 23, 0.99);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
  }

  .mj-nav.is-open {
    display: flex;
  }

  .mj-nav a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
  }

  .mj-nav a::after {
    display: none;
  }

  .mj-header__phone {
    display: none;
  }

  .mj-menu-toggle {
    display: block;
  }

  .mj-header__cta {
    display: none;
  }

  .mj-hero {
    padding-top: 118px;
  }

  .mj-hero::after {
    font-size: 210px;
  }

  .mj-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-feature-card:last-child {
    grid-column: 1 / -1;
  }

  .mj-feature-card:last-child .mj-feature-card__image {
    height: 300px;
  }

  .mj-value-grid {
    gap: 18px;
  }

  .mj-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  }

  .mj-footer__brand {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 991px) {
  .container {
    max-width: 740px;
  }

  .section-padding {
    padding: 82px 0;
  }

  .mj-hero {
    padding: 108px 0 72px;
  }

  .mj-hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .mj-hero h1 {
    max-width: 720px;
  }

  .mj-hero__media {
    max-width: 680px;
    width: 100%;
  }

  .mj-hero-swiper,
  .mj-hero-slide {
    height: 460px;
  }

  .mj-hero__badges {
    gap: 0;
  }

  .mj-hero__badge {
    flex: 1 1 33.333%;
    padding: 10px 16px;
  }

  .mj-hero__badge:first-child {
    padding-left: 0;
  }

  .mj-hero__badge:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mj-intro__grid,
  .mj-safety-grid,
  .mj-services-intro,
  .mj-detail-grid,
  .mj-contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .mj-media-stack {
    max-width: 680px;
  }

  .mj-about-copy {
    padding-left: 0;
  }

  .mj-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-stat:nth-child(2) {
    border-right: 0;
  }

  .mj-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--mj-line);
  }

  .mj-project-feature,
  .mj-feature-project {
    grid-template-columns: 1fr;
  }

  .mj-project-feature__media {
    min-height: 430px;
  }

  .mj-project-feature__media::after {
    background: linear-gradient(180deg, transparent 50%, rgba(23, 38, 47, 0.7));
  }

  .mj-feature-project__media {
    min-height: 430px;
  }

  .mj-value-grid,
  .mj-iso {
    grid-template-columns: 1fr;
  }

  .mj-value-grid {
    gap: 16px;
  }

  .mj-value-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 20px;
    align-items: start;
  }

  .mj-value-card__icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .mj-value-card h3,
  .mj-value-card p {
    grid-column: 2;
  }

  .mj-mission-vision {
    grid-template-columns: 1fr;
  }

  .mj-about-media__main {
    height: 460px;
  }

  .mj-about-media__small {
    right: 12px;
    bottom: -34px;
  }

  .mj-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-service-row,
  .mj-service-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .mj-service-row .mj-service-row__media,
  .mj-service-row:nth-child(even) .mj-service-row__media {
    order: 1;
    min-height: 360px;
  }

  .mj-service-row .mj-service-row__body,
  .mj-service-row:nth-child(even) .mj-service-row__body {
    order: 2;
  }

  .mj-project-grid {
    grid-template-columns: 1fr;
  }

  .mj-project-card__image {
    height: 330px;
  }

  .mj-project-summary {
    margin-top: -36px;
  }

  .mj-project-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-project-summary__grid div:nth-child(2) {
    border-right: 0;
  }

  .mj-detail-aside {
    position: static;
  }

  .mj-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .mj-footer__brand {
    grid-column: 1 / -1;
  }

  .mj-page-banner {
    padding: 190px 0 82px;
  }
}

@media screen and (max-width: 767px) {
  .container {
    max-width: 560px;
  }

  .section-padding {
    padding: 68px 0;
  }

  .mj-section-head {
    display: block;
    margin-bottom: 30px;
  }

  .mj-section-head .mj-link-arrow {
    margin-top: 18px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .mj-hero {
    padding: 96px 0 58px;
  }

  .mj-hero::after {
    display: none;
  }

  .mj-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .mj-hero__text {
    font-size: 16px;
  }

  .mj-hero-swiper,
  .mj-hero-slide {
    height: 380px;
  }

  .mj-hero__frame {
    padding: 8px;
  }

  .mj-hero__controls {
    left: 16px;
    right: 16px;
    bottom: -20px;
  }

  .mj-hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .mj-hero__badge {
    flex: 1 1 100%;
    padding: 12px 0;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mj-hero__badge:last-child {
    border-bottom: 0;
  }

  .mj-btn {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 12px;
  }

  .mj-media-stack {
    padding-right: 12px;
    padding-bottom: 26px;
  }

  .mj-media-stack__image {
    height: 390px;
  }

  .mj-media-stack__caption {
    right: -8px;
    max-width: 280px;
  }

  .mj-stats {
    grid-template-columns: 1fr;
  }

  .mj-stat {
    border-right: 0;
    border-bottom: 1px solid var(--mj-line);
  }

  .mj-stat:last-child {
    border-bottom: 0;
  }

  .mj-feature-grid {
    grid-template-columns: 1fr;
  }

  .mj-feature-card:last-child {
    grid-column: auto;
  }

  .mj-feature-card__image,
  .mj-feature-card:last-child .mj-feature-card__image {
    height: 250px;
  }

  .mj-project-feature__body {
    padding: 30px 24px;
  }

  .mj-project-feature__media {
    min-height: 340px;
  }

  .mj-project-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mj-feature-project__media {
    min-height: 330px;
  }

  .mj-feature-project__body {
    padding: 30px 24px;
  }

  .mj-feature-project__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mj-iso__item {
    padding: 18px;
  }

  .mj-cta {
    width: calc(100% - 28px);
    margin: 48px auto;
    padding: 56px 24px;
  }

  .mj-page-banner {
    padding: 160px 0 66px;
  }

  .mj-page-banner h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .mj-about-media__main {
    height: 380px;
  }

  .mj-about-media__small {
    width: 46%;
    border-width: 5px;
  }

  .mj-about-media__small img {
    height: 140px;
  }

  .mj-safety-image,
  .mj-safety-image img {
    min-height: 380px;
  }

  .mj-commitment {
    padding: 38px 26px;
  }

  .mj-services-intro__aside {
    padding-left: 0;
    border-left: 0;
  }

  .mj-service-row__media {
    min-height: 300px;
  }

  .mj-service-row__body {
    padding: 28px 22px;
  }

  .mj-scope-list {
    grid-template-columns: 1fr;
  }

  .mj-service-row__body .mj-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mj-service-row__body .mj-actions .mj-btn {
    width: 100%;
  }

  .mj-project-card__image {
    height: 260px;
  }

  .mj-project-summary {
    padding: 24px;
  }

  .mj-project-summary__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mj-project-summary__grid div {
    border-right: 0;
    border-bottom: 1px solid var(--mj-line);
    padding-bottom: 12px;
  }

  .mj-project-summary__grid div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .mj-status-grid {
    grid-template-columns: 1fr;
  }

  .mj-gallery-grid {
    grid-template-columns: 1fr;
  }

  .mj-gallery-item {
    height: 280px;
  }

  .mj-form__grid {
    grid-template-columns: 1fr;
  }

  .mj-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mj-form__actions .mj-btn {
    width: 100%;
  }

  .mj-form__status {
    flex: auto;
  }

  .mj-sector-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mj-sector {
    padding: 22px 14px;
  }

  .mj-footer__main {
    padding: 60px 0 40px;
  }

  .mj-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mj-footer__brand {
    grid-column: auto;
  }

  .mj-footer__bottom .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .mj-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

@media screen and (max-width: 480px) {
  .mj-logo img {
    width: 142px;
  }

  .mj-header__inner {
    min-height: 72px;
    gap: 12px;
  }

  .mj-nav {
    max-height: calc(100vh - 72px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .mj-hero {
    padding-top: 88px;
  }

  .mj-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mj-hero__actions .mj-btn {
    width: 100%;
  }

  .mj-hero-swiper,
  .mj-hero-slide {
    height: 330px;
  }

  .mj-hero-slide__caption {
    padding: 56px 18px 18px;
  }

  .mj-hero-slide__caption strong {
    font-size: 17px;
  }

  .mj-stats {
    margin-top: 40px;
  }

  .mj-stat {
    padding: 22px 18px;
  }

  .mj-media-stack__image {
    height: 320px;
  }

  .mj-media-stack__caption {
    right: 0;
    max-width: 250px;
    padding: 16px 18px;
  }

  .mj-project-feature__media {
    min-height: 280px;
  }

  .mj-page-banner {
    padding-top: 140px;
  }

  .mj-about-media__main {
    height: 320px;
  }

  .mj-about-media__small {
    position: relative;
    right: auto;
    bottom: auto;
    width: 72%;
    margin: -20px 0 0 auto;
    border-width: 4px;
  }

  .mj-about-media__small img {
    height: 120px;
  }

  .mj-safety-image,
  .mj-safety-image img {
    min-height: 300px;
  }

  .mj-sector-grid {
    grid-template-columns: 1fr;
  }

  .mj-footer__logo img {
    width: 170px;
  }

  .mj-gallery-item {
    height: 240px;
  }

  .mj-map {
    height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .mj-ribbon__track {
    animation: none;
  }
}

/* Ajuste de tipografía heredada del template */
.mj-hero .wow,
.mj-page-banner .wow {
  visibility: visible;
}

.mj-project-card__body .mj-link-arrow,
.mj-feature-project__body .mj-btn,
.mj-project-feature__body .mj-btn {
  align-self: flex-start;
}

/* Lightbox por encima del header y del botón flotante */
.mfp-bg, .mfp-wrap {
  z-index: 3000;
}

/* CTA con mapa de fondo */
.mj-cta--redes {
  background: linear-gradient(115deg, #101a20 0%, #1d333f 60%, #24404e 100%);
}

.mj-cta--redes::before {
  background: linear-gradient(90deg, rgba(10, 18, 23, 0.92) 0%, rgba(10, 18, 23, 0.5) 60%, rgba(10, 18, 23, 0.12) 100%);
}

.mj-cta--redes::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/fondos/map.png") center / cover no-repeat;
  filter: invert(1);
  opacity: 0.22;
}

/* Listado de servicios y rejilla de tres proyectos */
.mj-services-list {
  margin-top: 58px;
}

.mj-project-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media screen and (max-width: 1199px) {
  .mj-project-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mj-project-grid--three .mj-project-card:last-child {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .mj-services-list {
    margin-top: 40px;
  }

  .mj-project-grid--three {
    grid-template-columns: 1fr;
  }

  .mj-project-grid--three .mj-project-card:last-child {
    grid-column: auto;
  }
}

/* Corrección de variable y animación de entrada */
.mj-status-card--pending {
  border-top-color: var(--mj-orange);
}

.mj-reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .mj-reveal--pending {
  opacity: 0;
  transform: translateY(24px);
}

.mj-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .mj-reveal--pending {
    opacity: 1;
    transform: none;
  }
}

@media screen and (max-width: 480px) {
  .mj-contact-list a,
  .mj-contact-list strong {
    font-size: 13px;
  }
}

/* Formulario de contacto: estados de envío y protección antispam */
.mj-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.mj-form__status.is-success {
  color: #067647;
  font-weight: 600;
}

.mj-form__status.is-error {
  color: #b42318;
  font-weight: 600;
}

.mj-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.mj-form-notice {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--mj-orange);
  background: #fff8ec;
  color: #4d4a43;
  font-size: 13px;
  line-height: 1.6;
}

.mj-form-notice--ok {
  border-left-color: #067647;
  background: #ecfdf3;
  color: #05603a;
}

.mj-form-notice--error {
  border-left-color: #b42318;
  background: #fef3f2;
  color: #912018;
}
