/* Metalbloc Engenharia — hoja de estilos principal */

:root {
  --navy: #0a1024;
  --navy-2: #0d1b3e;
  --blue: #1d5cc8;
  --blue-soft: #7fa8ea;
  --blue-pale: #dbe4f4;
  --green: #25d366;
  --bg: #f4f6f9;
  --line: #e2e8f2;
  --muted: #5a6684;
  --head: 'Barlow Condensed', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --wrap: 1220px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy-2); }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.kicker {
  font-family: var(--head); font-size: 13px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--blue);
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .01em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 50px); text-transform: uppercase; line-height: 1.05; }
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 62ch; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 16, 36, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.hdr-in { display: flex; align-items: center; gap: 20px; padding: 12px 22px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
.brand span {
  font-family: var(--head); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; font-size: 15px; line-height: 1.15;
}
.brand small { display: block; color: var(--blue-soft); font-size: 11px; letter-spacing: .24em; }

.nav { display: flex; gap: 22px; margin-left: auto; font-family: var(--head); }
.nav a {
  color: var(--blue-pale); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.nav a:hover { color: #fff; }

.langs { display: flex; gap: 6px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.langs button {
  font-family: var(--head); font-size: 13px; letter-spacing: .12em;
  padding: 7px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: #9fb4d6; transition: background .2s, color .2s;
}
.langs button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.langs button:hover:not([aria-pressed="true"]) { color: #fff; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #06301a; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
}
.btn-wa:hover { color: #06301a; filter: brightness(1.06); }
.btn-wa::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #06301a; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,16,36,.96) 0%, rgba(10,16,36,.82) 45%, rgba(13,27,62,.62) 100%);
  z-index: 1;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-in { position: relative; z-index: 2; padding: clamp(70px, 11vw, 130px) 0 0; }
.hero .kicker { color: var(--blue-soft); display: flex; align-items: center; gap: 14px; }
.hero .kicker::before { content: ''; width: 56px; height: 2px; background: var(--blue-soft); }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px); line-height: .98;
  text-transform: uppercase; margin: 0 0 26px; max-width: 17ch;
}
.hero p { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: #c9d6ee; max-width: 56ch; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(46px, 7vw, 78px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 4px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
}
.btn-green { background: var(--green); color: #06301a; }
.btn-green:hover { color: #06301a; filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.18); }
.stats div { padding: 24px 26px; border-right: 1px solid rgba(255,255,255,.18); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--head); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 5px; }
.stats small { color: #a9bcdd; font-size: 13px; line-height: 1.45; display: block; }

.clients { background: var(--navy-2); color: #fff; padding: 16px 0; position: relative; z-index: 2; }
.clients .wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-family: var(--head); }
.clients em {
  font-style: normal; color: var(--blue-soft); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase;
}
.clients b { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.clients i { color: var(--blue); font-style: normal; }

/* ---------- Secciones ---------- */
section { padding: clamp(64px, 8vw, 104px) 0; }
.sec-white { background: #fff; }

.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.sectors { border: 1px solid var(--line); border-radius: 6px; margin-top: 30px; background: #fff; }
.sectors li {
  list-style: none; padding: 17px 22px; border-bottom: 1px solid var(--line);
  font-weight: 500; display: flex; align-items: center; gap: 14px;
}
.sectors li:last-child { border-bottom: 0; }
.sectors li::before { content: ''; width: 4px; height: 20px; background: var(--blue); border-radius: 2px; flex: 0 0 auto; }
.sectors { padding: 0; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic img { width: 100%; height: 210px; object-fit: cover; border-radius: 4px; }

/* ---------- Perfiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 46px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; text-align: left; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(10,16,36,.13); border-color: var(--blue-soft); }
.card[disabled] { cursor: default; opacity: 1; }
.card[disabled]:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card-img { position: relative; height: 190px; background: var(--navy); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.graphic {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 200%);
}
.card-img.graphic svg { width: 64px; height: 64px; stroke: var(--blue-soft); fill: none; stroke-width: 1.5; }
.badge-soon {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,16,36,.9); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--head); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 23px; text-transform: uppercase; margin-bottom: 10px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; flex: 1; }
.card-more {
  font-family: var(--head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.card-more::after { content: '→'; transition: transform .2s; }
.card:hover .card-more::after { transform: translateX(4px); }
.card-none { font-family: var(--head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9aa5bd; }

/* ---------- Por qué ---------- */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; margin-top: 46px; }
.reason { border-top: 3px solid var(--blue); padding-top: 22px; }
.reason b { font-family: var(--head); font-size: 42px; color: var(--blue-soft); display: block; line-height: 1; margin-bottom: 12px; }
.reason h3 { font-size: 20px; margin-bottom: 10px; }
.reason p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Galería ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 26px; }
.filters button {
  font-family: var(--head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; transition: .2s;
}
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--blue); color: var(--blue); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.grid figure { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: #dfe5ef; }
.grid button.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.grid img { width: 100%; height: 190px; object-fit: cover; transition: transform .4s; }
.grid button.shot:hover img { transform: scale(1.05); }
.grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 11px;
  background: linear-gradient(transparent, rgba(10,16,36,.86));
  color: #fff; font-size: 12.5px; font-weight: 500; pointer-events: none;
}
.gal-empty { padding: 40px 0; color: var(--muted); font-size: 15px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(4,7,18,.985); display: none; }
body.lb-open .float-wa { opacity: 0; pointer-events: none; }
.lb[open], .lb.on { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #fff; }
.lb-count { font-family: var(--head); letter-spacing: .16em; font-size: 14px; color: var(--blue-soft); }
.lb-fig { display: grid; place-items: center; padding: 0 16px; min-height: 0; }
.lb-fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }
.lb-cap { text-align: center; color: #c9d6ee; font-size: 14px; padding: 14px 20px 22px; }
.lb button {
  background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 20px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lb button:hover { background: rgba(255,255,255,.26); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---------- Contacto ---------- */
.sec-dark { background: var(--navy); color: #fff; }
.sec-dark h2 { color: #fff; }
.sec-dark .lead { color: #a9bcdd; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.people { display: grid; gap: 16px; }
.person { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 22px; }
.person h3 { font-size: 21px; margin-bottom: 4px; }
.person em { font-style: normal; color: var(--blue-soft); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--head); }
.person-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.person-links a { font-size: 14px; padding: 10px 16px; border-radius: 4px; }
.link-wa { background: var(--green); color: #06301a; font-weight: 600; }
.link-wa:hover { color: #06301a; }
.link-tel { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.link-tel:hover { background: rgba(255,255,255,.1); color: #fff; }
.hq { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 22px; font-size: 15px; line-height: 1.75; color: #c9d6ee; }
.hq b { font-family: var(--head); color: #fff; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; display: block; margin-bottom: 12px; }

footer { background: #060a18; color: #7f8db0; font-size: 13px; padding: 26px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: #06301a; font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.24);
  animation: pulse 2.4s infinite;
}
.float-wa:hover { color: #06301a; }
.float-wa::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #06301a; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.24), 0 0 0 0 rgba(37,211,102,.55); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.24), 0 0 0 14px rgba(37,211,102,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stats div:last-child { border-bottom: 0; }
}
@media (max-width: 780px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    padding: 8px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .nav.on { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
  .hdr-in { flex-wrap: wrap; position: relative; }
  .langs { order: 3; }
  .hdr .btn-wa { display: none; }
  .grid img { height: 155px; }
  .mosaic img { height: 150px; }
  .float-wa { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 14px; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
