/* =========================================================
   ISTEM Ingeniería y Servicios Técnicos — Hoja de estilos v2
   Diseño moderno, responsive y accesible.
   ========================================================= */

:root {
  --navy-950: #06111f;
  --navy-900: #0b1b2e;
  --navy-800: #10263f;
  --navy-700: #183553;
  --cyan-500: #00b7ff;
  --cyan-600: #0098d9;
  --cyan-100: #e0f6ff;
  --orange-500: #ff7a1a;
  --wa: #25d366;
  --wa-dark: #128c4a;

  --ink: #0f1c2b;
  --ink-soft: #4a5a6c;
  --muted: #7a8898;
  --line: #e3e9f0;
  --bg: #f5f8fb;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 27, 46, .06);
  --shadow: 0 10px 30px rgba(11, 27, 46, .10);
  --shadow-lg: 0 24px 60px rgba(11, 27, 46, .18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Sora", "Inter", system-ui, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--cyan-500); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000; font-weight: 600; }
.skip-link:focus { top: 12px; }

section { position: relative; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy-900); color: #cfdbe8; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Encabezados de sección */
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--cyan-500); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.section--dark .section-head p { color: #a9bbcd; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan-500); color: var(--navy-950); box-shadow: 0 8px 24px rgba(0, 183, 255, .35); }
.btn--primary:hover { background: #33c6ff; box-shadow: 0 12px 30px rgba(0, 183, 255, .45); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); }
.btn--wa:hover { background: #1fbe5a; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-950); color: #a9bbcd; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a:hover { color: #fff; }
.topbar__group { display: flex; gap: 22px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; color: var(--cyan-500); }
.badge-live { display: inline-flex; align-items: center; gap: 7px; color: #d6f3ff; font-weight: 600; }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 27, 46, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s, background .25s;
}
.header.is-scrolled { background: rgba(6, 17, 31, .97); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 66px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-title); color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.brand__text span { color: #8fa6bd; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  position: relative; display: block; padding: 10px 14px; border-radius: 10px;
  color: #c9d6e3; font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--cyan-500); }
.nav__cta { margin-left: 10px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15);
  background: transparent; color: #fff; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 88vh, 820px);
  display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy-900);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 17, 31, .94) 0%, rgba(6, 17, 31, .78) 42%, rgba(6, 17, 31, .35) 100%),
    linear-gradient(0deg, rgba(6, 17, 31, .7) 0%, transparent 35%);
}
.hero__inner { padding: 80px 0 120px; max-width: 720px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  background: rgba(0, 183, 255, .12); border: 1px solid rgba(0, 183, 255, .35); border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: #bfeeff; margin-bottom: 22px;
}
.hero__kicker b { background: var(--cyan-500); color: var(--navy-950); border-radius: 999px; padding: 3px 10px; font-size: .75rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 .hl { color: var(--cyan-500); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c9d6e3; max-width: 600px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__rotator { display: block; min-height: 1.2em; color: var(--cyan-500); }
.hero__rotator span { display: inline-block; animation: rot-in .6s var(--ease); }
@keyframes rot-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero__dots { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); display: none; }

.stats {
  position: relative; z-index: 5; margin-top: -64px;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 28px 26px; display: flex; gap: 16px; align-items: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-100); color: var(--cyan-600); flex: none; }
.stat__icon svg { width: 26px; height: 26px; }
.stat strong { display: block; font-family: var(--font-title); font-size: 1.6rem; line-height: 1.1; color: var(--navy-900); }
.stat span { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; display: block; }

/* ---------- Marquee de socios ---------- */
.logos-strip { padding: 56px 0 8px; }
.logos-strip p { text-align: center; color: var(--muted); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 54px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.marquee__track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__text p { color: var(--ink-soft); font-size: 1.04rem; }
.about__list { display: grid; gap: 14px; margin: 26px 0 32px; }
.about__list li { display: flex; gap: 14px; align-items: flex-start; }
.check { width: 28px; height: 28px; border-radius: 50%; background: var(--cyan-100); color: var(--cyan-600); display: grid; place-items: center; flex: none; margin-top: 1px; }
.check svg { width: 16px; height: 16px; }
.about__list strong { display: block; color: var(--ink); }
.about__list span { color: var(--ink-soft); font-size: .95rem; }
.about__media { position: relative; }
.about__card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.3;
  background: radial-gradient(circle at 30% 20%, #1c4a73 0%, var(--navy-900) 60%);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.about__card::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.about__card img { position: relative; width: 62%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.about__badge {
  position: absolute; left: -18px; bottom: 32px; background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; max-width: 280px;
}
.about__badge .stat__icon { width: 46px; height: 46px; background: #ffe9d9; color: var(--orange-500); }
.about__badge strong { display: block; font-family: var(--font-title); }
.about__badge span { font-size: .85rem; color: var(--ink-soft); line-height: 1.3; display: block; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--cyan-500); transition: width .4s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { width: 100%; }
.service__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--cyan-100); display: grid; place-items: center; margin-bottom: 20px; transition: background .3s; }
.service__icon img { width: 38px; height: 38px; object-fit: contain; }
.service:hover .service__icon { background: #c9efff; }
.service h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.service__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--cyan-600); font-size: .92rem; margin-top: 8px; }
.service__link svg { width: 16px; height: 16px; transition: transform .2s; }
.service:hover .service__link svg { transform: translateX(4px); }
.service--cta { background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); border-color: transparent; color: #cfdbe8; }
.service--cta h3 { color: #fff; }
.service--cta p { color: #a9bbcd; }
.service--cta .service__icon { background: rgba(37, 211, 102, .15); color: var(--wa); }
.service--cta .service__icon svg { width: 32px; height: 32px; }
.service--cta .service__link { color: var(--wa); }
.service__tag { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #e8fbef; color: var(--wa-dark); padding: 4px 10px; border-radius: 999px; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(0, 183, 255, .5) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); border: 2px solid var(--cyan-500); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; position: relative;
  box-shadow: 0 0 0 8px var(--navy-900);
}
.step h3 { font-size: 1.1rem; }
.step p { color: #a9bbcd; font-size: .95rem; }

/* ---------- Industrias ---------- */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.industry {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; isolation: isolate;
  box-shadow: var(--shadow-sm); background: var(--navy-800);
}
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.industry::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 17, 31, 0) 30%, rgba(6, 17, 31, .92) 100%); transition: background .3s; }
.industry:hover img { transform: scale(1.08); }
.industry:hover::after { background: linear-gradient(180deg, rgba(0, 120, 170, .15) 0%, rgba(6, 17, 31, .95) 100%); }
.industry__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px; }
.industry h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.industry span { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: #bfeeff; font-weight: 500; }
.industry span svg { width: 15px; height: 15px; transition: transform .2s; }
.industry:hover span svg { transform: translateX(4px); }
.center-cta { text-align: center; margin-top: 40px; }

/* ---------- Socios ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.partners > .partner { flex: 0 1 calc((100% - 40px) / 3); }
.partner {
  display: flex; flex-direction: column; gap: 14px; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  color: inherit; width: 100%;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner__logo { height: 70px; display: flex; align-items: center; }
.partner__logo img { max-height: 64px; max-width: 170px; object-fit: contain; }
.partner h3 { font-size: 1.05rem; margin: 0; }
.partner p { color: var(--ink-soft); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.partner__more { color: var(--cyan-600); font-weight: 600; font-size: .9rem; margin-top: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--cyan-100); color: #006f9e; }

/* ---------- Dialog (modales) ---------- */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, 100% - 32px); max-height: calc(100dvh - 48px);
  box-shadow: var(--shadow-lg); color: var(--ink);
}
dialog.modal::backdrop { background: rgba(6, 17, 31, .65); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal__body { padding: 32px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg);
  display: grid; place-items: center; color: var(--ink); z-index: 2;
}
.modal__close:hover { background: var(--line); }
.modal__close svg { width: 18px; height: 18px; }
.modal__logo { max-height: 70px; max-width: 200px; object-fit: contain; margin-bottom: 18px; }
.modal h3 { font-size: 1.35rem; }
.modal p { color: var(--ink-soft); }
.modal__label { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.modal__img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--bg); }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900) 0%, #0c3a5e 60%, #006f9e 100%);
  padding: clamp(36px, 6vw, 64px); color: #d6e6f5;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(0, 183, 255, .12); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.cta-band p { margin: 0; color: #b9cde0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__cards { display: grid; gap: 14px; margin-top: 8px; }
.contact-card {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--cyan-500); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--cyan-100); color: var(--cyan-600); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__icon--wa { background: #e3f9eb; color: var(--wa-dark); }
.contact-card__icon--tg { background: #e2f1fb; color: #229ed9; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contact-card strong { font-weight: 600; color: var(--ink); word-break: break-word; }

.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.form-card > p { color: var(--ink-soft); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcfe; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-500); background: #fff; box-shadow: 0 0 0 4px rgba(0, 183, 255, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #e5484d; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); grid-column: 1 / -1; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan-600); flex: none; }
.consent a { color: var(--cyan-600); text-decoration: underline; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.form-actions .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: #e7f8ee; color: #0f6b35; }
.form-status.is-error { display: block; background: #fdecec; color: #a4262c; }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #8fa6bd; padding: 72px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--cyan-500); }
.footer__brand img { height: 72px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 320px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #cfdbe8; transition: background .2s, color .2s; }
.footer__social a:hover { background: var(--cyan-500); color: var(--navy-950); }
.footer__social svg { width: 20px; height: 20px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--cyan-500); flex: none; margin-top: 4px; }
.footer__bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.wa-widget .wa-fab { pointer-events: auto; }
.wa-fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .25s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 34px; height: 34px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: wa-pulse 2.4s infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-fab__badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: #ff3b30; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.wa-bubble {
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow); font-size: .92rem; max-width: 240px;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .35s, transform .35s;
}
.wa-bubble.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-panel {
  width: min(340px, calc(100vw - 40px)); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.96); transform-origin: bottom right; pointer-events: none; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.wa-panel.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
.wa-panel__head { background: var(--wa-dark); color: #fff; padding: 18px 20px; display: flex; gap: 12px; align-items: center; }
.wa-panel__avatar { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.wa-panel__avatar img { width: 40px; }
.wa-panel__head strong { display: block; font-size: 1rem; }
.wa-panel__head span { font-size: .8rem; opacity: .9; display: flex; align-items: center; gap: 6px; }
.wa-panel__head span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9ff5c0; }
.wa-panel__close { margin-left: auto; background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.wa-panel__close svg { width: 16px; height: 16px; }
.wa-panel__body { padding: 18px; background: #ece5dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d9cfc4'/%3E%3C/svg%3E"); }
.wa-panel__msg { background: #fff; padding: 12px 14px; border-radius: 0 12px 12px 12px; font-size: .92rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); margin-bottom: 14px; }
.wa-options { display: grid; gap: 8px; }
.wa-option {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border-radius: 12px; font-size: .92rem; font-weight: 500;
  border: 1px solid transparent; transition: border-color .2s, transform .2s;
}
.wa-option:hover { border-color: var(--wa); transform: translateX(3px); }
.wa-option span { font-size: 1.1rem; }
.wa-panel__foot { padding: 12px 18px; font-size: .78rem; color: var(--muted); text-align: center; background: #fff; }

.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 1400; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--navy-900); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Animaciones de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* =========================================================
   Páginas internas (catálogo / privacidad)
   ========================================================= */
.page-hero { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: #c9d6e3; padding: clamp(48px, 7vw, 84px) 0 clamp(80px, 10vw, 110px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: #8fa6bd; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a:hover { color: #fff; }
.page-hero .container > * { position: relative; z-index: 1; }

.catalog-toolbar {
  position: relative; z-index: 5; margin-top: -56px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px; display: grid; gap: 18px;
}
.toolbar-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px; align-items: end; }
.search { position: relative; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 46px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--cyan-500); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-chip small { opacity: .7; font-weight: 500; margin-left: 4px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 34px 0 18px; flex-wrap: wrap; color: var(--ink-soft); }
.results-bar strong { color: var(--ink); }
.link-reset { background: none; border: 0; color: var(--cyan-600); font-weight: 600; padding: 0; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; padding-bottom: 80px; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); text-align: left; padding: 0; color: inherit; width: 100%;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product__media { position: relative; aspect-ratio: 4 / 3; background: #f0f4f8; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__brand { position: absolute; top: 12px; left: 12px; background: rgba(11, 27, 46, .88); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__cat { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-600); }
.product h3 { font-size: 1.08rem; margin: 0; }
.product__model { font-size: .9rem; color: var(--ink-soft); }
.product__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; font-weight: 600; color: var(--cyan-600); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty svg { width: 56px; height: 56px; color: var(--muted); margin: 0 auto 12px; }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; min-height: 330px; }
@keyframes sk { to { background-position: -200% 0; } }

.legal { max-width: 820px; margin: -56px auto 0; position: relative; z-index: 5; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(28px, 5vw, 56px); margin-bottom: 80px; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1em; }
.legal li { padding-left: 26px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-500); }

.legal__subtitle { font-family: var(--font-title); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.legal ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; margin: 0 0 1em; }
.legal ol li { padding-left: 4px; }
.legal ol li::before { display: none; }
.legal a { color: var(--cyan-600); }
.legal__download { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal__download .btn { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__link { padding: 10px 10px; font-size: .9rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar__group--secondary { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: 12px 16px 24px; border-top: 1px solid rgba(255, 255, 255, .08);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav__link.is-active::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .nav__cta { margin: 16px 0 0; }
  .brand img { height: 52px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about, .contact, .cta-band { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; margin-inline: auto; width: 100%; }
  .about__badge { left: 12px; }
  .cta-band__actions { justify-content: flex-start; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .partners > .partner { flex-basis: calc((100% - 20px) / 2); }
  .toolbar-row { grid-template-columns: 1fr 1fr; }
  .toolbar-row .search { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .brand__text span { display: none; }
  .hero { min-height: auto; }
  .hero__inner { padding: 64px 0 110px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat__icon { width: 42px; height: 42px; }
  .stat strong { font-size: 1.3rem; }
  .services { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .industry { aspect-ratio: 4 / 5; }
  .industry__body { padding: 16px 14px; }
  .industry h3 { font-size: 1.02rem; }
  .process { grid-template-columns: 1fr; }
  .partners > .partner { flex-basis: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .toolbar-row { grid-template-columns: 1fr; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-inline: -4px; padding-inline: 4px; scrollbar-width: none; }
  .filter-chip { flex: none; }
  .modal__body { padding: 26px 20px; }
  .wa-widget { right: 14px; bottom: 14px; }
  .to-top { left: 14px; bottom: 14px; }
  .about__badge { position: relative; left: 0; bottom: 0; margin: -40px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
