/* MR Ingeniería y Montajes Eléctricos
   Azul MR #4D90CD (del logo) · Marino #0A1A2B · Amarillo seguridad #F5B400 */
:root {
  --mr: #4D90CD;
  --mr-dark: #2F6FAE;
  --navy: #0A1A2B;
  --navy-2: #10263D;
  --accent: #F5B400;
  --ink: #0E1620;
  --muted: #5B6672;
  --line: #E3E7EC;
  --paper: #F3F5F8;
  --white: #fff;
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-text: "Barlow", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; font: 400 17px/1.65 var(--f-text); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--navy); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Botones */
.btn { --bg: var(--mr); --fg: #fff; --bd: var(--mr);
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border: 2px solid var(--bd); border-radius: 2px;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 700 15px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { --bg: var(--mr-dark); --bd: var(--mr-dark); transform: translateY(-2px); }
.btn--accent { --bg: var(--accent); --fg: var(--navy); --bd: var(--accent); }
.btn--accent:hover { --bg: #fff; --bd: #fff; --fg: var(--navy); }
.btn--ghost { --bg: transparent; --bd: rgba(255,255,255,.55); }
.btn--ghost:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.nav.is-solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav__in { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__iso { height: 38px; width: auto; }
.brand__iso--dark { display: none; }
.nav.is-solid .brand__iso--light { display: none; }
.nav.is-solid .brand__iso--dark { display: block; }
.brand__txt { font: 600 13px/1.15 var(--f-head); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) { text-decoration: none; font: 600 15px var(--f-head); letter-spacing: .12em; text-transform: uppercase; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; color: inherit; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; animation: kenburns 22s ease-out both; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,43,.55) 0%, rgba(10,26,43,.25) 35%, rgba(10,26,43,.85) 78%, var(--navy) 100%), linear-gradient(90deg, rgba(10,26,43,.7) 0%, rgba(10,26,43,0) 65%); }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__in { position: relative; padding-top: calc(var(--nav-h) + 60px); padding-bottom: 56px; }
.kicker { display: flex; align-items: center; gap: 14px; font: 600 14px var(--f-head); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.kicker__bar { width: 44px; height: 2px; background: var(--accent); }
.hero__title { font: 800 clamp(46px, 7.4vw, 104px)/.95 var(--f-head); text-transform: uppercase; letter-spacing: -.005em; max-width: 14ch; }
.hero__title em { font-style: normal; color: var(--mr); }
.hero__lead { margin: 26px 0 36px; max-width: 560px; font-size: 19px; color: rgba(255,255,255,.88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { position: relative; border-top: 1px solid rgba(255,255,255,.14); background: rgba(10,26,43,.65); backdrop-filter: blur(6px); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 800 clamp(38px, 4.6vw, 58px)/1 var(--f-head); color: #fff; }
.stat span { display: block; margin-top: 6px; font: 600 14px var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--mr); }

/* Secciones */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section--dark { background: var(--navy); color: #fff; }
.section--paper { background: var(--paper); }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 700 14px var(--f-head); letter-spacing: .26em; text-transform: uppercase; color: var(--mr-dark); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.eyebrow--light { color: var(--mr); }
.h2 { font: 800 clamp(36px, 4.8vw, 62px)/1 var(--f-head); text-transform: uppercase; letter-spacing: -.005em; }
.head { margin-bottom: 52px; max-width: 760px; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head--row .head__lead { max-width: 440px; margin: 0; }
.head--center { text-align: center; margin-left: auto; margin-right: auto; }
.head--center .eyebrow { justify-content: center; }
.head__lead { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section--dark .head__lead { color: rgba(255,255,255,.72); }

/* Empresa */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.about__badge { position: absolute; right: -24px; bottom: 36px; background: var(--accent); color: var(--navy); padding: 20px 26px; border-radius: var(--r); box-shadow: 0 24px 40px -16px rgba(0,0,0,.35); }
.about__badge b { display: block; font: 800 46px/1 var(--f-head); }
.about__badge span { font: 700 13px var(--f-head); letter-spacing: .16em; text-transform: uppercase; }
.about__copy > p { margin-top: 18px; color: #2c3742; }
.about__copy .h2 { margin-bottom: 8px; }
.pillars { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillars li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; }
.pillars li::before { content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 16px; border: 2px solid var(--mr); transform: rotate(45deg); }
.pillars h3 { font: 700 20px var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.pillars p { color: var(--muted); font-size: 16px; margin-top: 4px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,43,.15) 0%, rgba(10,26,43,.75) 55%, rgba(10,26,43,.96) 100%); transition: background .4s; }
.svc:hover img { transform: scale(1.06); }
.svc:hover::before { background: linear-gradient(180deg, rgba(47,111,174,.45) 0%, rgba(10,26,43,.85) 55%, rgba(10,26,43,.98) 100%); }
.svc__n { font: 700 14px var(--f-head); letter-spacing: .2em; color: var(--accent); }
.svc h3 { font: 800 28px/1.05 var(--f-head); text-transform: uppercase; margin: 8px 0 10px; }
.svc p { color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.55; }
.svc ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: 12.5px; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 3px 10px; color: rgba(255,255,255,.85); }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--navy); background: none; border-radius: 2px; padding: 9px 16px; font: 700 14px var(--f-head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; color: var(--navy); transition: background .2s, color .2s; }
.chip:hover { background: var(--paper); }
.chip.is-on { background: var(--navy); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.project { padding: 30px 32px 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 0 18px; }
.project:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.project[hidden] { display: none; }
.project__n { font: 800 34px/1 var(--f-head); color: var(--mr); }
.project__client { font: 700 13px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: var(--mr-dark); }
.project h3 { font: 700 24px/1.1 var(--f-head); text-transform: uppercase; margin: 6px 0 10px; }
.project p { color: var(--muted); font-size: 15.5px; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.project__tags span { font: 600 12px var(--f-head); letter-spacing: .12em; text-transform: uppercase; background: var(--paper); padding: 4px 10px; border-radius: 2px; }

/* Galería */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; break-inside: avoid; position: relative; }
.gallery img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery button:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .25s; border-radius: inherit; }
.gallery button:hover::after { box-shadow: inset 0 0 0 4px var(--accent); }

/* Trayectoria */
.history { background: var(--navy-2); color: #fff; padding: clamp(70px, 9vw, 110px) 0; overflow: hidden; }
.history__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.history__copy p:last-child { margin-top: 18px; color: rgba(255,255,255,.75); }
.history__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.history__strip button { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 4px; }
.history__strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(.6) contrast(1.05); transition: filter .4s, transform .6s; }
.history__strip button:hover img { filter: none; transform: scale(1.05); }

/* Equipo */
.team { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.team__copy > p { margin-top: 20px; color: #2c3742; }
.team__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); box-shadow: 0 40px 60px -30px rgba(10,26,43,.45); }
.practices { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.practices li { display: flex; align-items: center; gap: 10px; font: 700 18px var(--f-head); text-transform: uppercase; letter-spacing: .06em; background: var(--paper); padding: 14px 16px; border-radius: 4px; }
.practices__ico { color: var(--mr); font-size: 12px; }
.quote { margin: 30px 0 0; padding-left: 20px; border-left: 3px solid var(--accent); font: 500 italic 21px/1.4 var(--f-text); color: var(--navy); }

/* Clientes */
.clients { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 1000px; }
.clients li { background: #fff; display: grid; place-items: center; height: 130px; padding: 24px; }
.clients img { max-height: 54px; max-width: 150px; width: auto; filter: grayscale(1) opacity(.7); transition: filter .3s; }
.clients li:hover img { filter: none; }
.clients .txt { font: 800 30px var(--f-head); letter-spacing: .04em; color: #8a939c; transition: color .3s; }
.clients li:hover .txt { color: #c8102e; }

/* Liderazgo */
.lead-band { background: var(--mr); color: #fff; padding: clamp(56px, 7vw, 84px) 0; }
.lead-band__in { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.lead-band p { font-size: 20px; line-height: 1.55; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.offices { display: grid; gap: 16px; margin-top: 34px; }
.office { border: 1px solid var(--line); border-left: 4px solid var(--mr); padding: 20px 22px; border-radius: 4px; }
.office__tag { font: 700 12px var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--mr-dark); }
.office h3 { font: 700 22px var(--f-head); text-transform: uppercase; margin: 4px 0 6px; }
.office p { color: var(--muted); font-size: 16px; }
.office__map { display: inline-block; margin-top: 10px; font: 700 14px var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--mr-dark); text-decoration: none; }
.office__map:hover { color: var(--navy); }
.mail { display: inline-block; margin-top: 24px; font: 700 clamp(20px, 2.4vw, 26px) var(--f-head); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--navy); color: #fff; padding: clamp(24px, 4vw, 44px); border-radius: var(--r); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 13px var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--mr); }
.field input, .field textarea, .field select { font: 400 16px var(--f-text); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 3px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.field select option { color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }
.field textarea { resize: vertical; min-height: 120px; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form .btn { --bg: var(--accent); --bd: var(--accent); --fg: var(--navy); }
.form .btn:hover { --bg: #fff; --bd: #fff; }
.form__status { font-size: 15px; color: rgba(255,255,255,.8); }
.form__status.err { color: #ff9b9b; }
.form__status a { color: var(--accent); }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: 15px; }
.footer__in { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__logo { width: 180px; height: auto; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__h { font: 700 13px var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 14px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5,12,20,.95); display: flex; align-items: center; justify-content: center; padding: 60px 80px; }
.lb[hidden] { display: none; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb__close, .lb__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; cursor: pointer; }
.lb__close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 18px; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 32px; line-height: 1; }
.lb__prev { left: 16px; } .lb__next { right: 16px; }
.lb__close:hover, .lb__nav:hover { background: var(--mr); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .history__in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: var(--ink); padding: 8px var(--gutter) 24px; box-shadow: 0 20px 30px rgba(0,0,0,.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav__links .btn { margin-top: 18px; justify-content: center; }
  .nav:has(.is-open) { background: #fff; color: var(--ink); }
  .nav:has(.is-open) .brand__iso--light { display: none; }
  .nav:has(.is-open) .brand__iso--dark { display: block; }
  .stats__in { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .about, .team, .contact { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 4/3; }
  .about__badge { right: 12px; bottom: 12px; }
  .projects { grid-template-columns: 1fr; }
  .project, .project:nth-child(even) { padding: 26px 0; border-left: 0; }
  .lead-band__in { grid-template-columns: 1fr; gap: 16px; }
  .footer__in { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .brand__txt { display: none; }
  .services { grid-template-columns: 1fr; }
  .svc { min-height: 340px; }
  .clients { grid-template-columns: 1fr 1fr; }
  .clients li { height: 104px; padding: 18px; }
  .form { grid-template-columns: 1fr; }
  .practices { grid-template-columns: 1fr; }
  .history__strip { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery button { margin-bottom: 10px; }
  .lb { padding: 60px 12px; }
  .lb__nav { top: auto; bottom: 14px; transform: none; }
  .hero__title { font-size: clamp(42px, 12vw, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Circuito animado (hero) ===== */
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.circuit path { fill: none; }
.circuit__base path { stroke: rgba(77,144,205,.28); stroke-width: 1.5; }
.circuit__nodes circle { fill: var(--navy); stroke: rgba(77,144,205,.7); stroke-width: 2; }
.circuit__nodes .hot { fill: var(--accent); stroke: rgba(245,180,0,.4); stroke-width: 8; animation: hot 2.4s ease-in-out infinite; }
.circuit__nodes .box { fill: none; stroke: rgba(245,180,0,.6); stroke-width: 1.5; }
.circuit__flow use { fill: none; stroke: #7fc0ff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 70 1600; stroke-dashoffset: 1670; filter: drop-shadow(0 0 6px #4D90CD); animation: flow 5.5s linear infinite; animation-delay: var(--d); }
@keyframes flow { to { stroke-dashoffset: 0; } }
@keyframes hot { 50% { stroke-width: 14; stroke: rgba(245,180,0,.15); } }
@media (max-width: 860px) { .circuit { opacity: .55; } }

/* Fondo tipo plano técnico en servicios */
.section--dark { background-color: var(--navy); background-image: linear-gradient(rgba(77,144,205,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(77,144,205,.07) 1px, transparent 1px); background-size: 48px 48px; }

/* ===== Proceso ===== */
.process { padding: clamp(80px, 10vw, 120px) 0; background: var(--white); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--mr), var(--accent)); }
.steps li { position: relative; padding: 0 20px 0 0; }
.steps__n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 20px var(--f-head); box-shadow: 0 0 0 6px #fff; margin-bottom: 20px; transition: background .3s, transform .3s; }
.steps li:hover .steps__n { background: var(--mr); transform: scale(1.08); }
.steps h3 { font: 800 22px var(--f-head); text-transform: uppercase; letter-spacing: .03em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* ===== Industrias y presencia ===== */
.reach { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #163657 100%); color: #fff; padding: clamp(70px, 9vw, 110px) 0; }
.reach__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.reach__lead { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 18px; }
.industries { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.industries li { border: 1.5px solid rgba(255,255,255,.25); padding: 10px 18px; border-radius: 2px; font: 700 16px var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.industries .is-main { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.presence { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 30px; }
.presence__big { font: 700 22px var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.presence__big b { font-size: 64px; color: #fff; line-height: 1; margin-right: 8px; }
.presence__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 2px; }
.presence__list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.presence__list b { font-weight: 500; }
.presence__list span { font: 600 12px var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--mr); }
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--mr); box-shadow: 0 0 0 4px rgba(77,144,205,.25); }
.pin--hq { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,180,0,.25); animation: hot 2.4s ease-in-out infinite; }

/* ===== Sumate ===== */
.join { padding: 56px 0; background: var(--paper); border-top: 1px solid var(--line); }
.join__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.join .h2 { font-size: clamp(30px, 3.6vw, 44px); }
.join p:last-child { margin-top: 10px; color: var(--muted); max-width: 560px; }

@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--mr), var(--accent)); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 0; }
  .steps__n { grid-row: span 2; margin: 0; }
  .reach__in { grid-template-columns: 1fr; }
}
.clients img { max-height: 62px; filter: grayscale(1) opacity(.85); }
.clients .txt { font-size: 26px; text-transform: uppercase; color: #6f7a85; }
@media (max-width: 600px) { .hero__bg::after { background: linear-gradient(180deg, rgba(10,26,43,.7) 0%, rgba(10,26,43,.6) 50%, rgba(10,26,43,.92) 85%, var(--navy) 100%); } }

/* ===== Calidad y seguridad ===== */
.quality { background: var(--white); padding-top: clamp(70px, 8vw, 100px); }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .3s, transform .3s; }
.cert:hover { border-color: var(--mr); box-shadow: 0 24px 40px -24px rgba(10,26,43,.35); transform: translateY(-3px); }
.cert__badge { display: grid; place-items: center; text-align: center; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 18px/1 var(--f-head); letter-spacing: .04em; box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--mr); }
.cert__badge--hse { background: var(--accent); color: var(--navy); box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 6px var(--navy); font-size: 22px; }
.cert__badge--norm { background: var(--mr); box-shadow: inset 0 0 0 4px var(--mr), inset 0 0 0 6px #fff; }
.cert h3 { font: 800 22px var(--f-head); text-transform: uppercase; }
.cert p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.brands { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 22px 28px; background: var(--paper); border-radius: var(--r); }
.brands__label { font: 700 13px var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--mr-dark); }
.brands ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.brands li { font: 800 26px var(--f-head); letter-spacing: .02em; color: #48535e; }
@media (max-width: 1024px) { .certs { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .clients { grid-template-columns: 1fr 1fr; } .brands ul { gap: 18px; } .brands li { font-size: 20px; } }
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; background: none; border: 0; }
.clients li { flex: 0 0 25%; border: 1px solid var(--line); margin: -1px 0 0 -1px; }
@media (max-width: 860px) { .clients li { flex-basis: 33.333%; } }
@media (max-width: 600px) { .clients li { flex-basis: 50%; } }

/* Logo más grande en el menú (se achica un poco al bajar) */
:root { --nav-h: 92px; }
.brand { gap: 14px; }
.brand__iso { height: 62px; transition: height .3s; }
.brand__txt { font-size: 17px; letter-spacing: .1em; line-height: 1.12; }
.nav { transition: background .3s, box-shadow .3s, color .3s, height .3s; }
.nav.is-solid { height: 76px; }
.nav.is-solid .brand__iso { height: 48px; }
.nav.is-solid .brand__txt { font-size: 15px; }
@media (max-width: 860px) {
  :root { --nav-h: 76px; }
  .brand__iso { height: 50px; }
  .nav.is-solid { height: 68px; }
  .nav.is-solid .brand__iso { height: 42px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .nav__links { gap: 20px; }
  .nav__links a:not(.btn) { font-size: 14px; letter-spacing: .08em; }
  .brand__txt { font-size: 14px; }
}

/* ===== Clientes interactivos ===== */
.clients li { position: relative; cursor: default; overflow: hidden; transition: background .35s, box-shadow .35s, transform .35s, z-index 0s; outline: none; }
.clients li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.clients li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(77,144,205,.12), transparent 70%); opacity: 0; transition: opacity .35s; }
.clients img, .clients .txt { position: relative; transition: filter .35s, transform .45s cubic-bezier(.2,.7,.2,1), color .35s; }
.clients li:hover, .clients li:focus-visible, .clients li.is-lit { z-index: 2; background: #fff; box-shadow: 0 22px 40px -18px rgba(10,26,43,.35); transform: translateY(-4px); }
.clients li:hover::after, .clients li:focus-visible::after, .clients li.is-lit::after { transform: scaleX(1); }
.clients li:hover::before, .clients li:focus-visible::before, .clients li.is-lit::before { opacity: 1; }
.clients li:hover img, .clients li:focus-visible img, .clients li.is-lit img { filter: none; transform: scale(1.18); }
.clients li:hover .txt, .clients li:focus-visible .txt, .clients li.is-lit .txt { color: var(--c, var(--mr)); transform: scale(1.12); }
.clients li:hover img { transform: scale(1.22); }

/* Marcas con logos oficiales */
.brands { padding: 26px 32px; gap: 36px; }
.brands ul { align-items: center; gap: 20px; }
.brands li { display: grid; place-items: center; background: #fff; border-radius: 6px; padding: 18px 28px; height: 84px; box-shadow: 0 1px 0 var(--line); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.brands li:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 30px -16px rgba(10,26,43,.35); }
.brands img { height: 40px; width: auto; display: block; }
.brands li:first-child img { height: 44px; }
@media (max-width: 600px) { .brands li { padding: 12px 18px; height: 68px; } .brands img { height: 30px; } .brands li:first-child img { height: 34px; } }
.hero__lead { margin-bottom: 0; }

/* Portada: fotos reales que se alternan */
.hero__bg img { position: absolute; inset: 0; opacity: 0; object-position: center; animation: heroFade 21s infinite; }
.hero__bg img:nth-child(1) { animation-delay: 0s; }
.hero__bg img:nth-child(2) { animation-delay: 7s; }
.hero__bg img:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.12); }
  6%   { opacity: 1; }
  33%  { opacity: 1; }
  40%  { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}
.hero__bg img:first-child { opacity: 1; }
.about__media img { object-position: center 30%; }
.team__media img { aspect-ratio: 4/3; object-position: center 40%; }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none !important; opacity: 0; } .hero__bg img:first-child { opacity: 1; } }

/* Portada: 4 imágenes, 6 s cada una (la primera visible desde el inicio) */
.hero__bg img { animation: heroFade4 24s linear infinite; }
.hero__bg img:nth-child(1) { animation-delay: -1.5s; }
.hero__bg img:nth-child(2) { animation-delay: 4.5s; }
.hero__bg img:nth-child(3) { animation-delay: 10.5s; }
.hero__bg img:nth-child(4) { animation-delay: 16.5s; }
@keyframes heroFade4 {
  0%   { opacity: 0; transform: scale(1.1); }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1.01); }
}

/* Portada en celular: imagen en franja horizontal (nítida) + texto debajo */
@media (max-width: 760px) {
  .hero { min-height: 0; justify-content: flex-start; }
  .hero__bg { bottom: auto; height: calc(62vw + var(--nav-h)); min-height: 300px; }
  .hero__bg img { object-position: center; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(10,26,43,.55) 0%, rgba(10,26,43,.15) 30%, rgba(10,26,43,.35) 70%, var(--navy) 100%); }
  .hero__in { padding-top: calc(62vw + var(--nav-h) - 40px); padding-bottom: 36px; }
  @keyframes heroFade4 {
    0% { opacity: 0; transform: scale(1.04); } 6% { opacity: 1; } 25% { opacity: 1; }
    31% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); }
  }
  .circuit { height: calc(62vw + var(--nav-h)); bottom: auto; opacity: .45; }
  .hero__title { font-size: clamp(38px, 10.5vw, 54px); }
  .hero__lead { margin-top: 18px; font-size: 17px; }
}

/* Celular: fotos sin recortes exagerados */
@media (max-width: 760px) {
  .svc { min-height: 0; padding: 0; background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); }
  .svc img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; z-index: auto; }
  .svc::before { display: none; }
  .svc:hover img { transform: none; }
  .svc__n, .svc h3, .svc p, .svc ul { padding-left: 22px; padding-right: 22px; }
  .svc__n { display: block; margin-top: 20px; }
  .svc ul { padding-bottom: 24px; }
  .about__media img { aspect-ratio: 4/5; object-position: center 35%; }
}
