:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --steel: #8da9c4;
  --ink: #222222;
  --muted: #4a5563;
  --bg: #ffffff;
  --bg-alt: #f2f5f8;
  --line: #d9e1ea;
  --accent: #c8102e;
  --wa: #0f7a3f;
  --wa-hover: #0b6233;
  --radius: 10px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Lato", Calibri, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover, .btn--wa:focus-visible { background: var(--wa-hover); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #fff; color: var(--navy); }
.btn--sm { padding: .5em 1.1em; }
.btn--block { width: 100%; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand__tag { font-size: .8rem; font-weight: 700; color: var(--accent); border-left: 1px solid var(--line); padding-left: 10px; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.menu a:not(.btn):hover { color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn__bar, .menu-btn__bar::before, .menu-btn__bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); content: ""; transition: transform .2s;
}
.menu-btn__bar { top: 21px; }
.menu-btn__bar::before { left: 0; top: -7px; }
.menu-btn__bar::after { left: 0; top: 7px; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero__media {
  position: absolute; inset: 0;
  background: url("https://www.nmbsplicesleeve.com/wp/wp-content/themes/splice_theme/assets/img/index/slider03_pc.jpg") center/cover no-repeat;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,37,69,.95) 0%, rgba(11,37,69,.85) 45%, rgba(11,37,69,.45) 100%);
}
.hero__inner { position: relative; padding: 110px 20px 120px; max-width: var(--wrap); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { font-size: 1.2rem; font-weight: 300; max-width: 60ch; }
.hero .lead--small { font-size: 1.05rem; font-weight: 400; color: #dbe6f1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.eyebrow { font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: .6em; }
.hero .eyebrow, .eyebrow--light { color: #ffb3bf; }

/* Cifras */
.facts { background: var(--navy-2); color: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.15); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-size: 1.9rem; font-weight: 900; }
.fact span { font-size: .95rem; color: #dbe6f1; }

/* Secciones */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #e6eef6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 780px; margin-bottom: 44px; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }
.note { font-size: .9rem; color: var(--muted); margin-top: 18px; }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.split--rev { grid-template-columns: 1fr 1.4fr; margin-bottom: 0; align-items: center; }
.split__media { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--bg-alt); border-radius: var(--radius); padding: 24px; }
.split__media img { margin: auto; max-height: 320px; object-fit: contain; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 62px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 1.1rem;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin-bottom: .8em; }
.card--product { display: flex; flex-direction: column; }
.card--product img { height: 150px; width: 100%; object-fit: contain; margin-bottom: 18px; }
.card--product .link { margin-top: auto; }
.std { font-size: .9rem; }
.std strong { color: var(--ink); }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.link { font-weight: 700; color: var(--navy-2); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.link:hover { color: var(--accent); }
.links-inline { display: flex; flex-wrap: wrap; gap: 14px 22px; }

.video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.video { margin: 0; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-weight: 700; margin-top: 10px; }

.mortar {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; margin-top: 36px;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 28px;
}
.mortar img { max-height: 200px; margin: auto; }
.mortar p { color: var(--muted); }

/* Ingeniería */
.engineer { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.engineer__text > p { font-size: 1.1rem; font-weight: 300; }
.service { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.service li { border-top: 2px solid rgba(255,255,255,.2); padding-top: 12px; color: #cfdceb; }
.service strong { display: block; color: #fff; }
.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; position: sticky; top: 96px; }
.contact-card__label { font-weight: 700; color: var(--accent); font-size: .9rem; margin-bottom: .3em; }
.contact-card__name { font-size: 1.5rem; font-weight: 900; color: var(--navy); line-height: 1.2; }
.contact-card__txt { color: var(--muted); }

.cip-img { max-height: 340px; margin: auto; }

/* Documentos */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.docs__group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.docs__group ul { list-style: none; margin: 0; padding: 0; }
.docs__group li { border-top: 1px solid var(--line); }
.docs__group li:first-child { border-top: 0; }
.docs__group a { display: block; padding: 10px 22px 10px 0; text-decoration: none; color: var(--ink); position: relative; }
.docs__group a::after { content: "↗"; position: absolute; right: 0; top: 10px; color: var(--accent); font-weight: 700; }
.docs__group a:hover { color: var(--accent); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }

/* Proyectos */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(11,37,69,.9)); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
.timeline li { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; color: var(--muted); }
.timeline span { display: block; font-size: 1.4rem; font-weight: 900; color: var(--navy); }

/* Directo de fábrica */
.card--accent { border-top: 4px solid var(--accent); }

/* Caso de éxito */
.section--dark .section__head p.case__lead { color: #cfdceb; }
.case { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.case__chart { display: grid; gap: 26px; background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 30px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.bar__label { grid-column: 1 / -1; color: #cfdceb; font-size: .95rem; }
.bar__track { display: block; height: 18px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 999px; }
.bar__fill--base { width: 100%; background: #8da9c4; }
.bar__fill--mid { width: 50%; background: #dbe6f1; }
.bar__fill--win { width: 22.2%; background: #2fbf71; }
.bar__val { color: #fff; font-size: 1.15rem; font-weight: 900; white-space: nowrap; }
.case__facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case__facts li { border-top: 2px solid rgba(255,255,255,.2); padding-top: 10px; color: #fff; }
.case__facts strong { display: block; font-size: .8rem; color: #ffb3bf; }
.case__text > p { color: #cfdceb; font-size: 1.05rem; }
.case__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.case__photos figure { margin: 0; }
.case__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.case__photos figcaption { font-weight: 700; color: #fff; margin-top: 10px; }

/* Cotizar */
.quote { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.quote .steps { margin: 24px 0; }
.quote .contact-card { border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,37,69,.08); }
.quote__note { color: var(--muted); font-size: 1.05rem; }

/* CTA final */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 72px 0; }
.cta__inner { text-align: center; max-width: 760px; }
.cta h2 { color: #fff; }
.cta p { color: #dbe6f1; font-size: 1.1rem; margin-bottom: 26px; }

/* Pie */
.footer { background: #07182e; color: #b7c6d6; font-size: .9rem; padding: 36px 0 90px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; }
.footer a { color: #fff; }

/* Botón flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float:hover { background: var(--wa-hover); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3, .docs { grid-template-columns: 1fr 1fr; }
  .engineer { grid-template-columns: 1fr; gap: 36px; }
  .contact-card { position: static; max-width: 460px; }
  .case, .quote { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 1200px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none;
  }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; }
}
@media (max-width: 1060px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact { border-top: 1px solid rgba(255,255,255,.15); }
  .split, .split--rev { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 72px 16px 80px; }
  .hero .lead { font-size: 1.08rem; }
  .cards--3, .cards--4, .docs, .video-row, .service, .timeline, .case__photos { grid-template-columns: 1fr; }
  .mortar { grid-template-columns: 1fr; text-align: left; }
  .brand__tag { display: none; }
  .fact strong { font-size: 1.5rem; }
  .case__facts { grid-template-columns: 1fr; }
  .case__chart { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
