:root {
  --gb-paper: #f4f2eb;
  --gb-ink: #292d27;
  --gb-muted: #6e7269;
  --gb-accent: #2557a8;
  --gb-accent-dark: #1d4688;
  --gb-line: #d9d9ce;
  --bs-body-font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --bs-body-color: var(--gb-ink);
  --bs-body-bg: var(--gb-paper);
  --bs-border-radius: 0;
}

html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #dce7f9; color: var(--gb-ink); }
a { color: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gb-accent); outline-offset: 5px; }
.site-container { max-width: 1328px; padding-right: 40px; padding-left: 40px; }
.skip-link { position: fixed; z-index: 2000; left: 20px; top: -80px; padding: 12px 20px; background: var(--gb-ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--gb-paper); border-bottom: 1px solid var(--gb-line); }
.navbar { min-height: 100px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--gb-ink); text-decoration: none; }
.brand:hover { color: var(--gb-accent); }
.brand-logo { position: relative; display: block; overflow: hidden; width: 222px; aspect-ratio: 1467 / 342; }
/* Encuadre de los márgenes transparentes; el archivo original se conserva intacto. */
.brand-logo img { position: absolute; top: 0; left: 0; width: 126.4485%; height: auto; max-width: none; transform: translate(-10.4582%, -29.8824%); }
.navbar-nav { gap: 23px; }
.navbar .nav-link { position: relative; color: var(--gb-muted); font-size: 13px; font-weight: 500; padding: 10px 0 !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--gb-ink); }
.navbar .nav-link.active::after { content: ""; position: absolute; bottom: 2px; left: 0; width: 17px; height: 2px; background: var(--gb-accent); }
.btn { min-height: 50px; padding: 14px 23px; font-size: 13px; font-weight: 600; border-radius: 0; }
.nav-contact { min-height: 44px; padding: 10px 18px; border-color: var(--gb-ink); }
.btn-brand { background: #2557a8; border-color:#2557a8; color: #fff; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--gb-accent-dark); border-color: var(--gb-accent-dark); color: #fff; }
.btn-brand:active { background: var(--gb-accent-dark) !important; color: white !important; }
.hero { padding: 44px 0 55px; }
.hero-layout { min-height: 584px; }
.hero-copy { padding: 48px 45px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; line-height: 1.7; }
.hero .eyebrow { margin-bottom: 31px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(50px, 5.2vw, 76px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin-bottom: 26px; }
h1 span, .contact-copy h2 span { color: #2557a8; }
.hero-description { max-width: 390px; font-size: 16px; line-height: 1.8; color: var(--gb-muted); margin-bottom: 30px; }
.hero-actions { align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 24px; padding: 5px 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--gb-accent); }
.hero-actions .text-link { font-size: 11px; gap: 12px; }
.hero-footnote { margin-top: auto; padding-top: 42px; }
.hero-footnote p { font-size: 12px; color: var(--gb-muted); line-height: 1.7; margin: 0; }
.hero-footnote strong { color: var(--gb-ink); font-weight: 500; }
.hero-visual { position: relative; padding-left: 7px; }
.hero-figure { position: relative; height: 100%; min-height: 584px; margin: 0; overflow: hidden; background: #b6b6b6; }
.hero-figure > img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center; }
.hero-visual--team { align-self: center; }
.hero-figure.hero-figure--team { width: 100%; height: auto; min-height: 0; overflow: visible; background: transparent; }
.hero-figure--team > img { position: static; display: block; width: 100%; height: auto; object-fit: contain; }
.hero-figure figcaption { position: absolute; bottom: 34px; left: 32px; z-index: 1; color: white; font-size: 12px; line-height: 1.8; }
.hero-figure--team figcaption { position: static; color: var(--gb-muted); font-size: 11px; margin-top: 13px; }
.principles-strip { border-top: 1px solid var(--gb-line); border-bottom: 1px solid var(--gb-line); padding: 24px 0; }
.principles-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.principles-strip span { font-size: 13px; font-weight: 500; }
.section-space { padding: 103px 0; }
.section-label { margin-bottom: 27px; }
.about-section .section-label { margin-top: 10px; }
h2 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -.035em; font-weight: 500; }
.muted-title { color: #82867a; }
.body-copy { font-size: 14px; line-height: 1.9; color: var(--gb-muted); }
.about-intro { margin-bottom: 9px; }
.about-bottom { border-top: 1px solid var(--gb-line); padding-top: 30px; margin-top: 30px; }
.about-bottom .body-copy { max-width: 340px; }
.business-section { background: #eaece3; }
.section-heading { margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; }
.section-aside { max-width: 320px; margin-bottom: 0; }
.business-layout { border-top: 1px solid #ccd0c3; padding-top: 27px; }
.business-tabs { padding-right: 54px; }
.business-tab { display: flex; align-items: center; width: 100%; padding: 25px 0; background: none; border: none; border-bottom: 1px solid #ccd0c3; text-align: left; color: #6a7063; }
.business-tab.active { color: var(--gb-ink); }
.business-tab.active .tab-name { font-weight: 600; }
.business-tab .tab-name { font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.business-tab:hover .tab-name { color: var(--gb-accent); }
.business-content { padding-left: 16px; }
.business-panel[hidden] { display: none; }
.business-image { position: relative; height: 260px; background: #a5a5a5; overflow: hidden; }
.business-image > img { width: 100%; height: 100%; object-fit: cover; }
.company-logo { position: relative; display: block; flex-shrink: 0; width: 112px; aspect-ratio: 1; overflow: hidden; background: #fff; }
.company-logo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.company-logo--mexico-inmuebles { background: transparent; }
.company-logo--mic { width: 176px; aspect-ratio: 2; background: #051f28; }
/* Encuadre del fondo vacío de MIC; el PNG original no se modifica. */
.company-logo--mic > img { width: 152.8774%; height: auto; max-width: none; transform: translate(-17.2786%, -33.323%); }
.company-logo--dmi { background: #fec814; }
.company-logo--legion { width: 176px; aspect-ratio: 1080 / 350; background: #071c31; }
/* El logo blanco de Legión se muestra sobre fondo oscuro, sin los márgenes transparentes. */
.company-logo--legion > img { height: auto; transform: translateY(-34.2593%); }
.division-logo { position: absolute; top: 24px; right: 24px; }
.business-panel-title { max-width: 490px; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; font-weight: 500; margin: 23px 0 12px; }
.business-panel .body-copy { max-width: 475px; margin: 0 0 13px; }
.ecosystem { border-top: 1px solid #ccd0c3; padding-top: 40px; margin-top: 60px; }
.ecosystem h3, .new-project h3, .growth-roadmap h3 { font-size: 30px; line-height: 1.2; letter-spacing: -.04em; font-weight: 500; margin-bottom: 0; }
.ecosystem-flow { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 1px solid #ccd0c3; }
.ecosystem-flow li { padding: 24px 0; }
.ecosystem-heading { min-height: 90px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.ecosystem-heading .company-logo { width: 72px; }
.ecosystem-heading .company-logo--mic { width: 148px; }
.ecosystem-flow strong { display: block; font-size: 20px; letter-spacing: -.025em; font-weight: 500; }
.ecosystem-flow p { font-size: 13px; line-height: 1.7; color: var(--gb-muted); margin: 9px 0 0; }
.ecosystem-support { display: flex; align-items: center; gap: 20px; font-size: 13px; line-height: 1.8; color: var(--gb-muted); padding: 20px 0 0; }
.ecosystem-support .company-logo { width: 80px; }
.ecosystem-support > p { margin-bottom: 0; }
.ecosystem-support strong { color: var(--gb-ink); font-weight: 600; margin-right: 9px; }
.new-project { background: var(--gb-ink); color: var(--gb-paper); margin-top: 40px; padding: 34px 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.new-project .eyebrow { color: #c5c9bd; font-size: 9px; }
.new-project p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: #c5c9bd; }
.project-identity { display: flex; align-items: center; gap: 23px; }
.project-identity > div { min-width: 0; }
.project-identity .company-logo { width: 176px; }
.purpose-cards { margin-top: 29px; }
.purpose-card { border-top: 1px solid var(--gb-line); padding: 30px 0 0; height: 100%; }
.purpose-card .eyebrow { color: var(--gb-accent); margin-bottom: 26px; }
.purpose-card h3 { font-size: 26px; font-weight: 500; line-height: 1.4; letter-spacing: -.03em; margin-bottom: 27px; }
.purpose-card .body-copy { margin-bottom: 0; }
.growth-roadmap { border-top: 1px solid var(--gb-line); margin-top: 55px; padding-top: 40px; }
.growth-roadmap .eyebrow { color: var(--gb-accent); font-size: 9px; }
.growth-priorities { display: flex; flex-wrap: wrap; gap: 8px 17px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 10px; color: var(--gb-muted); }
.roadmap-stages { list-style: none; padding: 0; margin: 35px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.roadmap-stages li { border-top: 2px solid var(--gb-line); padding-top: 18px; }
.roadmap-stages strong { display: block; font-size: 23px; font-weight: 500; letter-spacing: -.03em; color: var(--gb-accent); margin-bottom: 8px; }
.roadmap-stages span { font-size: 12px; color: var(--gb-muted); }
.approach-section { background: var(--gb-ink); color: var(--gb-paper); }
.approach-heading h2 { margin-bottom: 24px; }
.approach-heading h2 span { color: #b2b8a6; }
.approach-heading .body-copy { color: #bac0b1; margin-bottom: 25px; }
.approach-heading .text-link:hover { color: #93b4eb; }
.value-item { padding: 29px 0; border-top: 1px solid #545a4e; }
.value-item:last-child { border-bottom: 1px solid #545a4e; }
.value-item h3 { font-size: 23px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.value-item p { color: #bac0b1; font-size: 14px; line-height: 1.8; margin-bottom: 0; max-width: 420px; }
.contact-section { padding-bottom: 110px; }
.contact-copy h2 { font-size: clamp(44px, 4.5vw, 63px); margin-bottom: 23px; }
.form-label { font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.form-label span:not(.optional) { color: var(--gb-accent); }
.form-label .optional { color: var(--gb-muted); font-weight: 400; }
.form-control, .form-select { border: none; border-bottom: 1px solid #b9bdaf; padding: 8px 0 13px; font-size: 14px; background-color: transparent; color: var(--gb-ink); min-height: 44px; }
.form-control:focus, .form-select:focus { background-color: transparent; border-color: var(--gb-accent); box-shadow: 0 2px 0 var(--gb-accent); }
.form-select { padding-right: 30px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-note { font-size: 10px; line-height: 1.8; color: var(--gb-muted); margin-bottom: 21px; }
.invalid-feedback { font-size: 11px; }
.contact-result { border: 1px solid var(--gb-line); padding: 22px; }
.site-footer { border-top: 1px solid var(--gb-line); padding-top: 43px; }
.footer-top { padding-bottom: 38px; }
.footer-top > p { font-size: 13px; color: var(--gb-muted); line-height: 1.8; }
.footer-bottom { padding: 21px 0; border-top: 1px solid var(--gb-line); }
.footer-bottom small { font-size: 10px; color: var(--gb-muted); }

@media (min-width: 1600px) { .site-container { max-width: 1440px; } .hero-layout, .hero-figure { min-height: 645px; } .hero-copy { padding-top: 60px; } }
@media (max-width: 1199.98px) {
  .site-container { padding-right: 30px; padding-left: 30px; }
  .navbar-nav { gap: 18px; }
  .hero-copy { padding-right: 22px; padding-top: 35px; }
  .hero-layout, .hero-figure { min-height: 560px; }
  .hero .eyebrow { font-size: 10px; }
  .hero-actions { gap: 12px !important; }
  .hero-actions .text-link { padding-top: 8px; }
  .business-tabs { padding-right: 30px; }
}
@media (max-width: 991.98px) {
  .navbar { min-height: 84px; }
  .navbar-collapse { padding: 20px 0; }
  .navbar-nav { gap: 9px; margin-bottom: 22px; }
  .navbar-toggler { border: 0; padding-right: 0; }
  .hero { padding-top: 16px; }
  .hero-copy { padding: 35px 0 34px; }
  h1 { font-size: clamp(50px, 7.5vw, 72px); }
  .hero-description { max-width: 410px; }
  .hero-footnote { display: none; }
  .hero-visual { padding-left: 0; }
  .hero-figure { min-height: 480px; }
  .hero-figure > img { object-position: center 56%; }
  .section-space { padding: 75px 0; }
  .business-tabs { padding-right: 0; }
  .business-content { padding: 30px 0 0; }
  .business-image { height: 340px; }
}
@media (max-width: 575.98px) {
  html { scroll-padding-top: 90px; }
  .site-container { padding-right: 23px; padding-left: 23px; }
  .navbar { min-height: 78px; }
  .brand-logo { width: 185px; }
  .hero { padding-top: 7px; padding-bottom: 47px; }
  .hero-copy { padding-top: 27px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .04em; margin-bottom: 24px; }
  h1 { font-size: clamp(44px, 11.5vw, 58px); margin-bottom: 21px; }
  .hero-description { font-size: 14px; max-width: 290px; margin-bottom: 25px; }
  .hero-actions { gap: 12px 20px !important; }
  .btn { padding: 13px 19px; font-size: 12px; }
  .hero-figure { min-height: 365px; }
  .hero-figure figcaption { left: 23px; bottom: 32px; font-size: 11px; }
  .principles-strip { padding: 19px 0; }
  .principles-strip .container { gap: 12px 18px; }
  .principles-strip span { font-size: 11px; }
  .section-space { padding: 60px 0; }
  h2 { font-size: 36px; }
  .about-bottom { margin-top: 20px; padding-top: 22px; }
  .section-label { margin-bottom: 20px; }
  .section-heading { margin-bottom: 30px; }
  .business-tab { padding: 22px 0; }
  .business-tab .tab-name { font-size: 22px; }
  .business-image { height: 245px; }
  .business-panel-title { font-size: 23px; }
  .ecosystem { margin-top: 40px; padding-top: 30px; }
  .ecosystem-flow { grid-template-columns: 1fr; gap: 0; }
  .ecosystem-flow li { padding: 23px 0; }
  .ecosystem-flow li + li { border-left: none; border-top: 1px solid #ccd0c3; }
  .new-project { padding: 27px 23px; grid-template-columns: 1fr; gap: 22px; }
  .project-identity { align-items: flex-start; flex-direction: column; }
  .purpose-card { padding: 27px 0 0; }
  .purpose-card h3 { font-size: 23px; }
  .growth-roadmap { margin-top: 40px; padding-top: 30px; }
  .roadmap-stages { grid-template-columns: 1fr; gap: 23px; }
  .value-item h3 { font-size: 22px; }
  .contact-copy h2 { font-size: 47px; }
  .footer-top { row-gap: 25px !important; }
  .footer-top > p { margin: 0; }
  .footer-top .text-link { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
