:root {
  --black: #050505;
  --charcoal: #111111;
  --dark-gray: #181818;
  --metal: #8e8e8e;
  --silver: #d9d9d9;
  --soft-white: #f5f5f5;
  --muted: #b8b8b8;
  --line: rgba(217, 217, 217, 0.16);
  --line-strong: rgba(217, 217, 217, 0.32);
  --glass: rgba(17, 17, 17, 0.74);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --container: min(1160px, calc(100% - 40px));
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217, 217, 217, 0.08), transparent 30rem),
    linear-gradient(135deg, #181818, #050505 58%);
  color: var(--soft-white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.9);
}

.nav-shell {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(217, 217, 217, 0.18));
}

.brand span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--soft-white);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--soft-white);
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(142, 142, 142, 0.08));
  color: var(--soft-white) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft-white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--soft-white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: min(760px, 86svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 104px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.97), rgba(5, 5, 5, 0.72) 46%, rgba(5, 5, 5, 0.52)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(142, 142, 142, 0.08), rgba(217, 217, 217, 0.02)),
    url("assets/hero-industrial.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 92px
    ),
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.86));
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
}

.logo-mark {
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

.logo-mark img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--silver);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  max-width: 820px;
  color: var(--soft-white);
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  color: var(--soft-white);
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--soft-white);
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-tagline {
  margin-bottom: 20px;
  max-width: 700px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--silver);
}

.hero-text,
.section-heading p,
.section-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(245, 245, 245, 0.7);
  background: linear-gradient(135deg, #ffffff, #8e8e8e, #d9d9d9);
  color: #050505;
  box-shadow: 0 14px 40px rgba(217, 217, 217, 0.12);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft-white);
}

.hero-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.82), rgba(5, 5, 5, 0.72));
  box-shadow: var(--shadow);
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-list div {
  padding: 16px 0 14px;
  border-top: 1px solid var(--line);
}

.trust-list strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, #8e8e8e, #d9d9d9);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-list span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.intro-band {
  padding: 22px 0;
  background: #080808;
  border-bottom: 1px solid var(--line);
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.benefit-strip article {
  min-height: 180px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.98), rgba(8, 8, 8, 0.98));
}

.benefit-strip span,
.service-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 800;
}

.benefit-strip h2 {
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.benefit-strip p,
.service-card p,
.value-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
  gap: 64px;
  align-items: start;
}

.section-copy h2 {
  margin-bottom: 24px;
}

.section-copy p {
  margin-bottom: 18px;
}

.business-note {
  padding-left: 18px;
  border-left: 2px solid var(--silver);
  color: var(--silver) !important;
}

.about-stack {
  display: grid;
  gap: 18px;
}

.visual-card,
.image-tile,
.sector-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, #181818, #050505);
}

.visual-card::before,
.image-tile::before,
.sector-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 40%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 14px
    );
}

.visual-card::after,
.image-tile::after,
.sector-visual::after {
  content: "Mundo Metalmecánico";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(245, 245, 245, 0.28);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-card img,
.image-tile img,
.sector-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.88;
  filter: contrast(1.04) saturate(1.04);
}

.visual-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
}

.visual-card figcaption span,
.visual-card figcaption strong {
  display: block;
}

.visual-card figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.visual-card figcaption strong {
  color: var(--soft-white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.value-grid article {
  padding: 22px;
  background: rgba(17, 17, 17, 0.98);
}

.value-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.services {
  background: #080808;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 268px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(24, 24, 24, 0.98), rgba(5, 5, 5, 0.98));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(217, 217, 217, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(24, 24, 24, 0.98), rgba(5, 5, 5, 0.98));
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.future-card {
  border-color: rgba(217, 217, 217, 0.25);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.image-tile {
  min-height: 220px;
}

.image-tile figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: var(--soft-white);
  font-weight: 800;
}

.sectors {
  overflow: hidden;
}

.sectors-layout {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  gap: 52px;
  align-items: center;
}

.sector-visual {
  min-height: 430px;
}

.sector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sector-pills span {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  font-weight: 800;
}

.contact {
  background:
    linear-gradient(135deg, rgba(24, 24, 24, 0.96), rgba(5, 5, 5, 0.98)),
    radial-gradient(circle at right, rgba(217, 217, 217, 0.08), transparent 28rem);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 18px;
}

.contact-actions {
  margin: 28px 0;
}

.contact-details {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  background: rgba(17, 17, 17, 0.94);
}

.contact-details dt {
  color: var(--silver);
  font-weight: 800;
}

.contact-details dd {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.62);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.button.full,
.form-status {
  grid-column: 1 / -1;
}

label {
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft-white);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 128px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(217, 217, 217, 0.64);
  box-shadow: 0 0 0 3px rgba(217, 217, 217, 0.08);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--silver);
}

.site-footer {
  background: #050505;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(220px, auto);
  gap: 36px;
  align-items: center;
  padding: 34px 0;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-brand span,
.footer-contact {
  display: grid;
}

.footer-brand small,
.footer-contact,
.footer-links {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-contact {
  gap: 4px;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .section {
    padding: 76px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px;
  }

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

  .hero {
    min-height: auto;
    padding-top: 84px;
  }

  .hero-grid,
  .split-layout,
  .sectors-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .benefit-strip,
  .service-grid,
  .image-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .brand span {
    max-width: 168px;
    white-space: normal;
    line-height: 1.1;
  }

  .hero {
    padding-bottom: 54px;
  }

  .logo-mark {
    width: 88px;
    height: 88px;
  }

  .logo-mark img {
    width: 74px;
    height: 74px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .benefit-strip,
  .service-grid,
  .image-row,
  .value-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .benefit-strip article {
    min-height: auto;
  }

  .split-layout {
    gap: 38px;
  }

  .visual-card,
  .sector-visual {
    min-height: 320px;
  }

  .image-tile {
    min-height: 190px;
  }

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
