/* ==========================================================
   Fapmelsa — Soluciones en Altura
   Hoja de estilos principal (sin frameworks)
   ========================================================== */

/* Fuentes (autoalojadas, licencia SIL OFL) */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0a1a2b;
  --navy-2: #112a42;
  --navy-3: #1b3a57;
  --blue: #00a3e0;        /* azul del logo */
  --blue-d: #0088c9;
  --accent: #ff6a13;      /* naranja de seguridad */
  --accent-d: #e5560a;
  --wa: #1fae55;
  --ink: #0f1b27;
  --text: #2c3a48;
  --muted: #5d6d7c;
  --line: #e2e8ee;
  --tint: #f2f5f8;
  --white: #fff;

  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 6px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(10, 26, 43, .06), 0 8px 24px -8px rgba(10, 26, 43, .14);
  --shadow-lg: 0 24px 60px -20px rgba(10, 26, 43, .35);
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --sec: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.05; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r); }
.skip:focus { left: 8px; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-d);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent); }
.eyebrow--light { color: #7fd3f4; }
.section__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; text-transform: uppercase; }
.section__sub { color: var(--muted); max-width: 60ch; margin: 14px 0 0; font-size: 18px; }
.fine { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r); border: 2px solid transparent;
  font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--lg { padding: 15px 28px; font-size: 18px; }
.btn--sm { padding: 7px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-d); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-3); }
.btn--outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline-dark { border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17924a; }
.btn--wa .ico { width: 1.3em; height: 1.3em; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-d); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico, a:hover > .link-arrow .ico { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.22); color: #cfe2f1; background: transparent;
  font-weight: 600; font-size: 15px; transition: all .2s;
}
.chip small { background: rgba(255,255,255,.14); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.chip:hover { border-color: #fff; color: #fff; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--navy); color: #b7c7d6; font-size: 14px; }
.topbar__in { display: flex; gap: 28px; align-items: center; justify-content: flex-end; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item:first-child { margin-right: auto; }
.topbar__item .ico { color: var(--blue); }
.topbar a:hover { color: #fff; }
.topbar__phones i { font-style: normal; opacity: .4; margin: 0 4px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(10,26,43,.25); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 52px; height: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b { font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: .04em; color: var(--navy); }
.brand__txt small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-d); font-weight: 600; margin-top: 4px; }
.brand--light .brand__txt b { color: #fff; }
.brand--light .brand__txt small { color: #7fd3f4; }

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  display: block; padding: 8px 12px; font-family: var(--f-head); font-weight: 700; font-size: 18px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink); position: relative;
}
.nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }
.header__call { display: none; }
.burger { display: none; background: none; border: 0; padding: 8px; color: var(--navy); }
.burger .ico { width: 30px; height: 30px; }
.burger .ico--close { display: none; }

@media (max-width: 1080px) {
  .topbar__item:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .header__call { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--navy); font-weight: 700; }
  .header__call .ico { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--accent); color: #fff; }
  .header__call span { display: flex; flex-direction: column; line-height: 1.15; }
  .header__call small { font-weight: 500; color: var(--muted); font-size: 12px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 60; margin: 0;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 96px 28px 28px;
    background: var(--navy); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; box-shadow: var(--shadow-lg);
  }
  .nav ul { flex-direction: column; }
  .nav ul a { color: #fff; font-size: 24px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav ul a::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  body.menu-open .nav { transform: none; visibility: visible; transition: transform .3s ease; }
  body.menu-open .burger { position: fixed; right: var(--gut); top: 18px; z-index: 70; color: #fff; }
  body.menu-open .burger .ico--open { display: none; }
  body.menu-open .burger .ico--close { display: block; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(5,12,20,.55); z-index: 55; }
}
@media (max-width: 720px) {
  .topbar__item:last-child { display: none; }
  .topbar { font-size: 13px; }
  .header__call span { display: none; }
  .brand__txt b { font-size: 22px; }
  .brand img { width: 44px; }
}
@media (max-width: 400px) { .topbar__phones a:nth-of-type(3), .topbar__phones i:nth-of-type(2) { display: none; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--sec); }
.section--flush { padding-top: 32px; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #c4d3e0; }
.section--dark .section__title { color: #fff; }
.section__head { margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #c4d3e0;
  background:
    linear-gradient(115deg, rgba(10,26,43,1) 45%, rgba(10,26,43,.0) 46%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px),
    var(--navy-2);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero__title { color: #fff; font-size: clamp(56px, 9vw, 112px); font-weight: 800; text-transform: uppercase; line-height: .9; margin-bottom: 24px; }
.hero__title span { color: var(--blue); position: relative; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-bottom: 32px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-family: var(--f-head); font-size: clamp(30px, 3.4vw, 42px); color: #fff; line-height: 1; }
.hero__facts span { font-size: 14px; color: #8ea6bb; }

.hero__media { position: relative; margin: 0; padding-left: 46px; }
.hero__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.ruler { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; display: flex; flex-direction: column; justify-content: space-between; border-right: 2px solid var(--accent); padding-right: 8px; }
.ruler span { position: relative; font-family: var(--f-head); font-weight: 700; font-size: 13px; color: #8ea6bb; text-align: right; line-height: 1; }
.ruler span::after { content: ""; position: absolute; right: -10px; top: 50%; width: 8px; height: 2px; background: var(--accent); }
.ruler span:first-child { color: var(--accent); }
.ruler span:first-child::before { content: "m"; font-size: 10px; position: absolute; right: 0; top: -14px; }
.hero__tag {
  position: absolute; left: 20px; bottom: 24px; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--muted); padding: 12px 18px 12px 12px; border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 14px;
}
.hero__tag .ico { width: 40px; height: 40px; padding: 9px; background: var(--accent); color: #fff; border-radius: var(--r); }
.hero__tag span { display: flex; flex-direction: column; line-height: 1.25; }
.hero__tag b { font-family: var(--f-head); font-size: 22px; color: var(--ink); text-transform: uppercase; }

@media (max-width: 900px) {
  .hero { background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px), var(--navy); }
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__media img { aspect-ratio: 4/3.6; }
}

/* ---------- Marcas ---------- */
.brands { border-bottom: 1px solid var(--line); }
.brands__in { display: flex; align-items: center; gap: 32px; padding-block: 26px; }
.brands__in p { margin: 0; flex: none; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-size: 14px; }
.brands ul { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brands img { height: 46px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .65; transition: .25s; }
.brands li:hover img { filter: none; opacity: 1; }
@media (max-width: 720px) {
  .brands__in { flex-direction: column; gap: 16px; }
  .brands ul { justify-content: center; gap: 16px 28px; }
  .brands img { height: 34px; }
}

/* ---------- Tipos ---------- */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type {
  position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.type:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.type__ico { position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); background: var(--tint); color: var(--blue-d); }
.type img { width: 78%; aspect-ratio: 1; object-fit: contain; margin: 10px auto 18px; transition: transform .35s; }
.type:hover img { transform: scale(1.05); }
.type h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; }
.type__model { color: var(--muted); font-size: 15px; margin: 6px 0 16px; }
.type .link-arrow { margin-top: auto; }
@media (max-width: 1000px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .types { grid-template-columns: 1fr 1fr; gap: 12px; }
  .type { padding: 14px; }
  .type__ico { display: none; }
  .type img { width: 90%; margin: 0 auto 10px; }
  .type h3 { font-size: 18px; }
  .type__model { font-size: 13px; margin: 4px 0 10px; }
  .type .link-arrow { font-size: 14px; }
}

/* ---------- Por altura ---------- */
.heights__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.heights__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hcard { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.hcard:hover { transform: translateY(-4px); border-color: rgba(255,106,19,.6); }
.hcard__img { aspect-ratio: 4/3.4; background: #fff; overflow: hidden; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; }
.hcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.hcard__label { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #8ea6bb; }
.hcard__m { margin: 0 0 10px; font-family: var(--f-head); font-weight: 800; font-size: 64px; line-height: 1; color: #fff; }
.hcard__m small { font-size: 28px; color: var(--accent); margin-left: 2px; }
.hcard ul { margin-bottom: 16px; font-size: 15px; }
.hcard ul a { color: #c4d3e0; }
.hcard ul a:hover { color: #fff; text-decoration: underline; }
.hcard .link-arrow { margin-top: auto; color: var(--blue); }
@media (max-width: 560px) {
  .heights__grid { grid-template-columns: 1fr; gap: 12px; }
  .hcard { flex-direction: row; }
  .hcard__img { aspect-ratio: auto; width: 38%; flex: none; }
  .hcard__body { padding: 14px 16px; }
  .hcard__m { font-size: 48px; }
  .hcard ul { font-size: 14px; margin-bottom: 10px; }
}
.heights__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.heights__contact p { margin: 0; color: #fff; font-weight: 600; }
.heights__contact a { display: inline-flex; align-items: center; gap: 8px; color: #c4d3e0; font-weight: 600; }
.heights__contact a .ico { color: var(--accent); }
.heights__contact a:hover { color: #fff; }

/* ---------- Servicios (home) ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.svc__img { aspect-ratio: 4/3; overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .svc__img img { transform: scale(1.06); }
.svc__body { position: relative; padding: 22px; }
.svc { position: relative; }
.svc__n { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--accent); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 20px; line-height: 1; padding: 8px 10px; border-radius: var(--r); }
.svc h3 { display: flex; gap: 10px; align-items: flex-start; font-size: 22px; text-transform: uppercase; margin-bottom: 10px; }
.svc h3 .ico { color: var(--blue-d); margin-top: 2px; }
.svc p { font-size: 15.5px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Proyectos (home) ---------- */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.proj { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj:hover img { transform: scale(1.06); }
.proj figcaption { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(5,14,24,.9)); color: #fff; display: flex; flex-direction: column; line-height: 1.2; }
.proj b { font-family: var(--f-head); font-size: 19px; text-transform: uppercase; }
.proj span { font-size: 13px; color: #b7c7d6; }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .projects { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Nosotros (home) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__mision { font-size: 18px; margin: 20px 0 24px; }
.about__mision b { color: var(--ink); }
.checks { display: grid; gap: 10px; margin-bottom: 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.about__map { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__map iframe { width: 100%; height: 420px; border: 0; }
.about__addr { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; background: var(--navy); color: #c4d3e0; padding: 14px 18px; border-radius: var(--r); font-size: 14.5px; }
.about__addr .ico { color: var(--accent); width: 26px; height: 26px; }
.about__addr span { display: flex; flex-direction: column; }
.about__addr b { color: #fff; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__map iframe { height: 340px; } }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 18px, transparent 18px 36px); }
.cta__in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.cta .eyebrow { color: #fff; } .cta .eyebrow::before { background: var(--navy); }
.cta__title { color: #fff; font-size: clamp(32px, 4vw, 50px); font-weight: 800; text-transform: uppercase; }
.cta__sub { margin: 14px 0 0; font-size: 18px; color: #fff3ea; }
.cta__contact { background: var(--navy); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 8px; box-shadow: var(--shadow-lg); }
.cta__phone { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 30px; color: #fff; line-height: 1.2; }
.cta__phone .ico { color: var(--accent); width: 24px; height: 24px; }
.cta__phone:hover { color: var(--blue); }
.cta__mail { display: flex; align-items: center; gap: 12px; color: #c4d3e0; margin: 4px 0 14px; word-break: break-all; }
.cta__mail .ico { color: var(--accent); }
.cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta__btns .btn { flex: 1; }
@media (max-width: 900px) { .cta__in { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #07131f; color: #93a7b9; font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.footer__brand p { margin: 20px 0; max-width: 34ch; }
.footer__h { color: #fff; font-size: 20px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer__list { display: grid; gap: 8px; }
.footer__list a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .ico { color: var(--accent); margin-top: 4px; }
.footer__contact--dark { color: var(--text); margin: 20px 0 28px; }
.footer__contact--dark a:hover { color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: #fff; transition: .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; }
.footer__bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; border-radius: 99px; padding: 12px 20px 12px 14px; font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(31,174,85,.7); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float .ico { width: 28px; height: 28px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; right: 14px; bottom: 14px; } }

/* ---------- Páginas internas ---------- */
.page-hero {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #c4d3e0; padding-block: clamp(40px, 6vw, 72px);
}
.page-hero--slim { padding-block: 18px; }
.page-hero__title { color: #fff; font-size: clamp(42px, 6vw, 72px); font-weight: 800; text-transform: uppercase; margin: 10px 0 14px; }
.page-hero__sub { max-width: 62ch; font-size: 18px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #8ea6bb; }
.crumbs a:hover { color: #fff; }
.crumbs span:not(:last-child) { opacity: .5; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.cat-block { scroll-margin-top: 90px; }
.cat-block + .cat-block { padding-top: 0; }
.cat-block__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cat-block__head p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }
.cat-block__ico { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r); background: var(--accent); color: #fff; }
.cat-block__ico .ico { width: 28px; height: 28px; }

.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.eq-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: box-shadow .25s, transform .25s; }
.eq-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.eq-card__media { position: relative; background: linear-gradient(180deg, #fff 60%, var(--tint)); padding: 18px; }
.eq-card__media img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .35s; }
.eq-card:hover .eq-card__media img { transform: scale(1.05); }
.eq-card__h { position: absolute; top: 14px; right: 14px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 4px 10px; font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.eq-card__h b { font-size: 24px; margin-right: 1px; }
.eq-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.eq-card__brand { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-d); font-weight: 700; }
.eq-card__title { font-size: 26px; text-transform: uppercase; margin: 4px 0 8px; }
.eq-card__title a:hover { color: var(--accent); }
.eq-card__body p { font-size: 15px; color: var(--muted); }
.eq-card__actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Detalle de equipo */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.gallery__main { background: linear-gradient(180deg, #fff, var(--tint)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main img.is-photo { object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: var(--tint); opacity: .7; transition: .2s; }
.gallery__thumbs button.is-on, .gallery__thumbs button:hover { border-color: var(--accent); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { position: sticky; top: 100px; }
.product__title { font-size: clamp(40px, 5vw, 60px); font-weight: 800; text-transform: uppercase; }
.product__lead { font-size: 19px; margin: 14px 0 24px; }
.product__pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.product__pills li { display: flex; gap: 10px; align-items: center; background: var(--tint); border-radius: var(--r); padding: 12px; }
.product__pills .ico { color: var(--accent); width: 26px; height: 26px; }
.product__pills span { display: flex; flex-direction: column; font-weight: 700; color: var(--ink); line-height: 1.2; font-size: 15px; }
.product__pills small { font-weight: 500; color: var(--muted); font-size: 12px; }
.product__h { font-size: 24px; text-transform: uppercase; margin-bottom: 12px; }
.specs { margin: 0; border-top: 2px solid var(--navy); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.product__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.product__call { margin-top: 16px; color: var(--muted); font-size: 15px; }
.product__call a { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product__info { position: static; } }
@media (max-width: 480px) { .product__pills { grid-template-columns: 1fr; } .product__btns .btn { width: 100%; } }

/* Servicios */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature--rev .feature__copy { order: 2; }
.feature__n { font-family: var(--f-head); font-weight: 800; font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); display: block; margin-bottom: 8px; }
.feature__copy > p { margin: 18px 0 22px; font-size: 17.5px; }
.mosaic { display: grid; gap: 10px; }
.mosaic img, .mosaic a { border-radius: var(--r); overflow: hidden; display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic--three { grid-template-columns: 1.2fr 1fr; grid-template-rows: 220px 220px; }
.mosaic--three > :first-child { grid-row: span 2; }
.mosaic--six { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
.mosaic--six > :first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--rev .feature__copy { order: 0; }
  .mosaic--three { grid-template-rows: 180px 180px; }
  .mosaic--six { grid-auto-rows: 120px; }
}
.andamios { display: flex; gap: 24px; align-items: center; padding: 32px; border: 2px dashed var(--line); border-radius: var(--r-lg); }
.andamios p { margin: 8px 0 0; color: var(--muted); }
.andamios .btn { margin-left: auto; }
@media (max-width: 720px) { .andamios { flex-direction: column; align-items: flex-start; } .andamios .btn { margin-left: 0; } }

/* Proyectos */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.pcard { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pcard__img { position: relative; display: block; aspect-ratio: 4/3.6; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard__img:hover img { transform: scale(1.05); }
.pcard__count { position: absolute; right: 12px; bottom: 12px; background: rgba(10,26,43,.85); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.pcard__body { padding: 18px 20px; }
.pcard__body h2 { font-size: 26px; text-transform: uppercase; }
.pcard__body p { display: flex; gap: 6px; align-items: center; margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.pcard__body .ico { color: var(--accent); }
.video-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.video-block p { margin: 16px 0 24px; }
.video-block video { width: 100%; max-width: 340px; justify-self: center; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 800px) { .video-block { grid-template-columns: 1fr; } }

/* Nosotros */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: #fff; border-radius: var(--r-lg); padding: 28px 24px; border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.value > .ico { width: 36px; height: 36px; color: var(--blue-d); margin-bottom: 14px; }
.value h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.brands-big { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brands-big li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; place-items: center; }
.brands-big img { max-height: 70px; width: auto; }
@media (max-width: 800px) { .brands-big { grid-template-columns: repeat(2, 1fr); } }

/* Contacto */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 14px; }
.cbox { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cbox__ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r); background: var(--tint); color: var(--accent); }
.cbox__ico .ico { width: 24px; height: 24px; }
.cbox h2 { font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.cbox p { margin: 0 0 4px; }
.cbox a:not(.link-arrow):hover { color: var(--accent); }
.contact__form { background: var(--tint); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); scroll-margin-top: 100px; }
.contact__lead { color: var(--muted); margin: 10px 0 24px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,163,224,.15); }
.field__err { color: #c62828; font-size: 13.5px; font-weight: 500; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 20px; }
.alert--ok { background: #e7f7ec; color: #1b5e20; border: 1px solid #b7e2c2; }
.alert--ok .ico { width: 24px; height: 24px; flex: none; }
.alert--err { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c2; }
.map-full iframe { width: 100%; height: 380px; border: 0; filter: grayscale(.2); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__form { order: -1; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* 404 */
.notfound { text-align: center; }
.notfound__code { font-family: var(--f-head); font-weight: 800; font-size: clamp(120px, 20vw, 220px); line-height: .9; color: transparent; -webkit-text-stroke: 3px var(--accent); margin: 0; }
.notfound .hero__btns { justify-content: center; margin-top: 24px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5,12,20,.94); display: grid; place-items: center; padding: 56px 16px; }
.lb img { max-width: min(1100px, 100%); max-height: 100%; object-fit: contain; border-radius: var(--r); }
.lb button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lb button:hover { background: var(--accent); }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .ico { width: 24px; height: 24px; }

/* ---------- Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.product > *, .feature > *, .about > *, .contact > *, .cta__in > *, .video-block > * { min-width: 0; }
