@font-face {
  font-family: "MTEC Neue";
  src: url("sitio_viejo/HelveticaNeueLTStd-Lt.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MTEC Neue";
  src: url("sitio_viejo/HelveticaNeueLTStd-Md.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --red: #f1281c;
  --red-deep: #ca160d;
  --ink: #111516;
  --panel: #171b1d;
  --panel-soft: #202527;
  --line: rgba(255, 255, 255, 0.3);
  --line-soft: rgba(255, 255, 255, 0.16);
  --text: #f3f4f2;
  --muted: #c6cbcb;
  --dark-muted: #1e2426;
  --paper: #f3f3f1;
  --max: 1428px;
  background: var(--ink);
  font-family: "MTEC Neue", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #15191a;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--red);
  background: #f7f7f4;
  color: #111;
  font-weight: 600;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #0d1213;
  z-index: -1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: block;
  width: 67px;
  height: 55px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  color: #fff;
  font-size: 2.06rem;
  line-height: 0.92;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 82px);
  font-size: 1.02rem;
  color: #fff;
}

.main-nav a {
  position: relative;
  padding: 8px 10px 12px;
  border: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav .is-active::after {
  transform: scaleX(1);
}

.main-nav .is-active {
  color: #ff4a40;
  border-color: rgba(241, 40, 28, 0.34);
  background: rgba(241, 40, 28, 0.08);
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: min(100% - 48px, var(--max));
  min-height: 394px;
  margin: 0 auto;
  padding: 22px 0 28px;
  display: grid;
  grid-template-columns: minmax(520px, 0.9fr) minmax(610px, 1.1fr);
  align-items: center;
  gap: 18px;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 14px;
  color: #f7f7f4;
  font-size: clamp(1.95rem, 2.45vw, 2.55rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1::after,
.section-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 18px;
  background: var(--red);
}

.hero-lead {
  margin: 0 0 14px;
  color: #f2f2f0;
  font-size: 1.06rem;
  line-height: 1.45;
}

.hero-body {
  max-width: 600px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  margin-bottom: 24px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.button-primary {
  border-color: var(--red);
}

.button-primary svg,
.button-primary:hover {
  color: var(--red);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-tagline {
  max-width: 520px;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  color: #f7f7f4;
  font-size: 1.06rem;
  line-height: 1.42;
}

.hero-tagline strong {
  color: var(--red);
  font-weight: 600;
}

.industrial-map {
  min-width: 0;
}

.industrial-map img {
  display: block;
  width: 100%;
  max-width: 805px;
  max-height: 420px;
  height: auto;
  margin-left: auto;
}

.role-band {
  display: grid;
  grid-template-columns: 84px minmax(240px, 300px) minmax(320px, 1fr) 116px minmax(330px, 420px);
  align-items: center;
  gap: 24px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 14px 28px;
  min-height: 116px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.04) 50%, rgba(255, 255, 255, 0)),
    var(--paper);
  color: #111;
}

.role-icon img,
.role-team img {
  display: block;
  max-width: 100%;
  height: auto;
}

.role-icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.role-team {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 28px;
  border-left: 1px solid rgba(0, 0, 0, 0.45);
}

.role-team img {
  width: 116px;
  max-width: none;
}

.role-band h2 {
  margin: 0;
  color: #111;
  font-size: clamp(1.24rem, 1.8vw, 1.45rem);
  line-height: 1.18;
  font-weight: 600;
}

.role-band p {
  margin: 0;
  color: #171717;
  font-size: 0.88rem;
  line-height: 1.43;
}

.role-note {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding-left: 0;
  font-size: 0.96rem !important;
  line-height: 1.35 !important;
  white-space: nowrap;
}

.content-grid {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 28px 0 22px;
  display: grid;
  grid-template-columns: minmax(590px, 1.35fr) minmax(250px, 0.5fr) minmax(360px, 0.8fr);
  gap: 28px;
}

.section-heading {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1;
}

.section-heading::after {
  width: 32px;
  height: 2px;
  margin-top: 8px;
}

.solutions-panel,
.trajectory-panel,
.products-panel {
  min-width: 0;
}

.trajectory-panel,
.products-panel {
  border-left: 1px solid var(--line-soft);
  padding-left: 28px;
}

.solutions-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(116px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: thin;
}

.solution-card,
.product-card,
.trajectory-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.solution-card {
  min-height: 238px;
  padding: 18px 12px 14px;
}

.solution-icon {
  display: block;
  width: 72px;
  height: 58px;
  margin-bottom: 20px;
  object-fit: contain;
  object-position: left center;
}

.solution-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.97rem;
  line-height: 1.18;
  font-weight: 600;
}

.solution-card p,
.trajectory-panel p,
.products-panel p,
.product-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.trajectory-panel {
  padding-left: 28px;
}

.trajectory-panel .section-heading {
  padding-top: 4px;
}

.trajectory-card {
  padding: 24px 24px 22px;
}

.years-calendar {
  display: inline-block;
  width: 72px;
  height: 84px;
  margin: 10px 12px 18px 0;
  object-fit: contain;
  object-position: left center;
}

.trajectory-lead {
  display: inline-block;
  width: calc(100% - 92px);
  vertical-align: top;
  margin-top: 24px;
}

.products-panel > p {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.product-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: thin;
}

.product-card {
  min-height: 148px;
  padding: 22px 18px 14px;
}

.product-logo {
  display: block;
  max-width: 100%;
  height: 44px;
  margin: 0 0 18px;
  object-fit: contain;
  object-position: left center;
}

.product-logo-mtecio {
  width: 190px;
  height: 64px;
  margin-top: 0;
  margin-bottom: 12px;
}

.product-logo-balcam {
  width: 176px;
  height: 58px;
}

.product-card p {
  min-height: 40px;
  margin-bottom: 10px;
}

.product-card a {
  display: block;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--red);
  font-size: 0.86rem;
}

.site-footer {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  min-height: 94px;
  padding: 16px 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 22px;
  border-top: 1px solid var(--line-soft);
}

.footer-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding-right: 22px;
  border-right: 1px solid var(--line-soft);
}

.footer-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.footer-icon {
  display: block;
  width: 50px;
  height: 54px;
  object-fit: contain;
  object-position: center;
}

.footer-item strong,
.footer-item a {
  display: block;
  color: #fff;
  font-size: 0.93rem;
  line-height: 1.24;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.35;
}

.footer-contact a:last-child {
  color: var(--red);
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 30px;
  }

  .main-nav {
    gap: 28px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .hero-text {
    padding-left: 0;
  }

  .industrial-map {
    max-width: 930px;
    margin: 0 auto;
  }

  .role-band {
    grid-template-columns: 74px minmax(220px, 0.6fr) 1fr;
  }

  .role-team {
    grid-column: 2 / -1;
    justify-content: flex-start;
    min-height: 0;
    padding-left: 0;
    border-left: 0;
  }

  .role-note {
    grid-column: 2 / -1;
    min-height: 0;
    white-space: normal;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solutions-panel {
    grid-column: 1 / -1;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    width: min(100% - 28px, var(--max));
    min-height: 78px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .brand {
    gap: 14px;
  }

  .brand-mark {
    width: 56px;
    height: 46px;
  }

  .brand-name {
    font-size: 1.8rem;
  }

  .brand-subtitle {
    font-size: 0.92rem;
  }

  .main-nav {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.94rem;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-content,
  .role-band,
  .content-grid,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .button {
    flex: 1 1 220px;
    justify-content: center;
  }

  .role-band {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px;
  }

  .role-note {
    grid-column: auto;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
    white-space: normal;
  }

  .role-team {
    grid-column: auto;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .trajectory-panel,
  .products-panel {
    border-left: 0;
    padding-left: 0;
  }

  .trajectory-panel {
    padding: 0 0 20px;
  }

  .product-cards {
    grid-auto-columns: minmax(220px, 78vw);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 0 0 18px;
  }

  .footer-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 1.48rem;
    line-height: 1.14;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .industrial-map {
    min-width: 0;
  }

  .hero-content {
    overflow-x: hidden;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .solutions-track {
    grid-auto-columns: minmax(150px, 70vw);
  }
}
