/* RTS Power Systems — sitio 2026 (representación de Atlas Robots).
   Estilo tomado de atlas-robots.com: fondo claro, azul #307AB6, Plus Jakarta Sans. */

:root {
  --blue: #307ab6;
  --blue-600: #2669a0;
  --blue-700: #1d5584;
  --blue-50: #eef5fb;
  --ink: #12202d;
  --ink-2: #33414f;
  --muted: #5a6470;
  --line: #e6e9ee;
  --soft: #f5f7fa;
  --white: #ffffff;
  --navy: #0d1b2a;
  --navy-2: #13263a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 32, 45, .04), 0 12px 32px -12px rgba(18, 32, 45, .14);
  --shadow-lg: 0 2px 4px rgba(18, 32, 45, .04), 0 30px 60px -24px rgba(18, 32, 45, .28);
  --ease: cubic-bezier(.22, .7, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(48, 122, 182, .8); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(48, 122, 182, .9); }
.btn--ghost { color: var(--ink); border-color: #cfd6de; background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); height: 46px; padding: 0 22px; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); font-size: 15px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow[target] svg { width: 16px; height: 16px; }
.link-arrow[target]:hover svg { transform: translate(2px, -2px); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease), backdrop-filter .45s var(--ease);
}
.header.is-scrolled {
  --header-h: 64px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(18, 32, 45, .25);
}
.header__inner { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.brand img { height: 40px; width: auto; transition: height .45s var(--ease); }
.header.is-scrolled .brand img { height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .3s var(--ease); }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); }
.lang a { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; color: var(--muted); transition: background-color .3s, color .3s; }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.lang a:not([aria-current]):hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f3f6fa 0%, #fbfcfd 62%, #fff 100%); }
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -180px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(48, 122, 182, .16), rgba(48, 122, 182, .05) 55%, transparent 72%);
  animation: glow 12s var(--ease) infinite alternate;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(18, 32, 45, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 32, 45, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, #000 10%, transparent 75%);
}
@keyframes glow { from { transform: translateY(-50%) scale(1); opacity: .9; } to { transform: translateY(-46%) scale(1.08); opacity: 1; } }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; padding: 8px 16px 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.eyebrow img { height: 22px; width: auto; padding-right: 14px; border-right: 1px solid var(--line); }
.hero h1 { margin-top: 26px; font-size: clamp(40px, 5.2vw, 70px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 13ch; }
.hero__lead { margin-top: 22px; max-width: 34em; font-size: 19px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__media { position: relative; }
.hero__media img {
  width: 118%; max-width: none; margin-left: -6%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 20%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 20%); mask-composite: intersect;
}
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid #b8c2cc; border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 2.2s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; }
.price__from { font-size: 14px; color: var(--muted); font-weight: 500; }
.price strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price__brl { font-size: 15px; font-weight: 600; color: var(--blue); background: var(--blue-50); padding: 3px 10px; border-radius: 999px; }
.price--hero strong { font-size: 30px; }

/* Entrada de la portada (al cargar) */
.hero-in { opacity: 0; transform: translateY(22px); filter: blur(6px); animation: heroIn 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.hero-in--img { transform: translateX(40px) scale(.97); animation-duration: 1.6s; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Cifras ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.stat__num span { font-variant-numeric: tabular-nums; }
.stat__txt { margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 22ch; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--soft { background: var(--soft); }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section h2 { margin-top: 16px; font-size: clamp(32px, 3.9vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.section__lead { margin-top: 18px; font-size: 18.5px; color: var(--muted); max-width: 40em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); }
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* ---------- Células ---------- */
.cells { display: grid; gap: clamp(72px, 9vw, 130px); }
.cell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(32px, 6vw, 96px); scroll-margin-top: calc(var(--header-h) + 24px); }
.cell--flip .cell__media { order: 2; }
.cell__frame {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: radial-gradient(120% 90% at 50% 40%, #ffffff 0%, #f1f4f8 60%, #e9eef4 100%);
}
.cell__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(18, 32, 45, .05); pointer-events: none; }
.cell__frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.4s var(--ease-out); }
.cell:hover .cell__frame img { transform: scale(1.035); }
.cell__index { font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .06em; }
.cell__index span { color: #a7b0ba; font-weight: 500; }
.cell__title { margin-top: 12px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.cell__desc { margin-top: 16px; color: var(--muted); font-size: 17px; }
.specs { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15.5px; color: var(--ink-2); }
.specs li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); flex: none; }
.cell .link-arrow { margin-top: 24px; }

/* ---------- Catálogo 3D (oscuro) ---------- */
.section--dark { background: radial-gradient(1200px 600px at 80% 0%, #17324d 0%, var(--navy) 60%); color: #e8eef4; }
.section--dark h2 { color: #fff; }
.section--dark .section__lead { color: #a9b8c7; }
.section--dark .kicker { color: #7fb6e3; }
.expo {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .4s var(--ease), transform .6s var(--ease);
}
.expo:hover { border-color: rgba(127, 182, 227, .45); transform: translateY(-3px); }
.expo__img { overflow: hidden; }
.expo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.expo:hover .expo__img img { transform: scale(1.05); }
.expo__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.expo__t { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.expo__d { color: #a9b8c7; }
.expo .btn { align-self: flex-start; margin-top: 10px; }
.expo .btn svg { width: 16px; height: 16px; }
.cats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-family { margin-top: 44px; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.cat {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .6s var(--ease);
}
.cat:hover { background: rgba(255, 255, 255, .07); border-color: rgba(127, 182, 227, .4); transform: translateY(-4px); }
.cat__img { overflow: hidden; aspect-ratio: 1200 / 630; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cat:hover .cat__img img { transform: scale(1.06); }
.cat__code { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: rgba(13, 27, 42, .78); color: #fff; backdrop-filter: blur(6px); }
.cat__name { padding: 18px 20px 6px; font-weight: 700; color: #fff; font-size: 16.5px; line-height: 1.3; }
.cat__price { padding: 0 20px 12px; font-weight: 800; color: #fff; font-size: 15px; }
.cat__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cat__price span { font-weight: 600; color: #7fb6e3; font-size: 13.5px; }
.cat__price em { font-style: normal; font-weight: 500; color: #a9b8c7; font-size: 13.5px; margin-right: -4px; }
.cat__open { padding: 0 20px 20px; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #7fb6e3; }
.cat__open svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.cat:hover .cat__open svg { transform: translate(2px, -2px); }
.cat-note { margin-top: 20px; font-size: 14px; color: #8597a9; }

/* ---------- Proceso ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps__line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); overflow: hidden; }
.steps__line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), #6aa7d8); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) .2s; }
.steps.is-in .steps__line::after { transform: scaleX(1); }
.step { position: relative; padding-top: 80px; }
.step__n {
  position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 16px; color: var(--blue);
  transition: border-color .6s var(--ease), background-color .6s var(--ease), color .6s var(--ease);
  transition-delay: calc(var(--d, 0ms) + 500ms);
}
.steps.is-in .step__n { border-color: var(--blue); background: var(--blue); color: #fff; }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.steps__note { margin-top: 56px; padding: 22px 26px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue-700); font-weight: 600; max-width: 52em; }

/* ---------- Atlas ---------- */
.atlas { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.atlas__copy > p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid #dde3ea; }
.fact { padding: 20px 0 4px; }
.fact strong { display: block; font-size: clamp(28px, 2.8vw, 38px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.fact span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.atlas .link-arrow { margin-top: 30px; }
.atlas__card { background: #fff; border-radius: 24px; padding: clamp(30px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.atlas__logo { height: 46px; width: auto; }
.atlas__logo--rts { height: 54px; }
.atlas__x { display: block; margin: 16px 0; font-size: 26px; font-weight: 300; color: #a7b0ba; line-height: 1; }
.atlas__card h3 { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 20px; }
.atlas__card p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- Industrias ---------- */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ind { position: relative; padding: 30px 26px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .45s var(--ease); overflow: hidden; }
.ind::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.ind:hover { background: var(--soft); }
.ind:hover::before { transform: scaleX(1); }
.ind__n { font-size: 13px; font-weight: 700; color: #a7b0ba; letter-spacing: .06em; }
.ind h3 { margin-top: 18px; font-size: 19px; }
.ind p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Contacto ---------- */
.section--contact { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.data { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.data div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.data dt { font-size: 14px; color: var(--muted); }
.data dd { margin: 0; font-weight: 600; }
.data a { transition: color .3s; }
.data a:hover { color: var(--blue); }
.form { background: #fff; border-radius: 24px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); background: var(--soft);
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%235a6470' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(48, 122, 182, .14); }
.field.is-flash select { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(48, 122, 182, 0); } 30% { box-shadow: 0 0 0 5px rgba(48, 122, 182, .3); } }
.form__btn { justify-self: start; margin-top: 4px; }
.form__btn[disabled] { opacity: .7; cursor: progress; }
.form__status { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form__status.ok { color: #1f7a4d; }
.form__status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: #a9b8c7; padding: 64px 0 40px; font-size: 14.5px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 60px; }
.footer__brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { margin-top: 18px; max-width: 30em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-content: start; justify-content: flex-end; }
.footer__nav a { color: #dbe4ec; transition: color .3s; }
.footer__nav a:hover { color: #fff; }
.footer__legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; font-size: 13px; color: #8597a9; }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .reveal--img { transform: translateY(40px) scale(.98); clip-path: inset(8% 6% 8% 6% round var(--radius)); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out), clip-path 1.4s var(--ease-out), filter 1.2s var(--ease-out); }
.js .reveal--img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
[data-parallax] { will-change: translate; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px 24px 24px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(18, 32, 45, .3); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .burger { display: block; }
  .header__tools { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 640px; margin: 0 auto; }
  .hero__media img { width: 100%; margin: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cell, .cell--flip { grid-template-columns: 1fr; }
  .cell--flip .cell__media { order: 0; }
  .expo { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps__line { display: none; }
  .atlas, .contact { grid-template-columns: 1fr; }
  .inds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .header__inner { padding: 0 16px; }
  .header__cta { display: none; }
  .brand img { height: 34px; }
  .hero { padding-top: calc(var(--header-h) + 28px); min-height: auto; }
  .hero__lead { font-size: 17px; }
  .eyebrow { font-size: 12px; flex-wrap: wrap; border-radius: 16px; }
  .hero__scroll { display: none; }
  .btn { height: 50px; padding: 0 22px; }
  .stat { padding: 28px 12px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .inds { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .data div { grid-template-columns: 1fr; gap: 2px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}

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