/* JR Soluciones Integrales — palette taken from the logo: blue #0077BC + amber gold #E2A232 */
:root {
  --navy-950: #021526;
  --navy-900: #031d33;
  --navy-800: #04243d;
  --navy-700: #06365c;
  --blue: #0077bc;
  --blue-500: #1a8ad0;
  --blue-300: #6cbcec;
  --blue-100: #e3f2fb;
  --gold: #e2a232;
  --gold-600: #c98917;
  --gold-300: #f0c46e;
  --gold-100: #fcf1dc;
  --paper: #f3f7fa;
  --white: #ffffff;
  --ink: #0b2236;
  --muted: #587084;
  --line: rgba(4, 36, 61, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(3, 29, 51, 0.14);
  --shadow-lg: 0 30px 80px rgba(3, 29, 51, 0.28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) {
  html, body, main, .site-footer { overflow-x: clip; }
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.02; letter-spacing: .005em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-900); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* Scroll progress */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 4px; width: 0; z-index: 120;
  background: linear-gradient(90deg, var(--gold), var(--gold-300), var(--blue-300), var(--blue));
  box-shadow: 0 0 14px rgba(226, 162, 50, .7);
  transition: width .08s linear;
}

/* Topbar */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.82); font-size: .84rem; position: relative; z-index: 60; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar-list li, .topbar-list a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar-list .ico { color: var(--gold); }
.topbar-list a:hover { color: var(--gold-300); }
.topbar-wa { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy-900); background: var(--gold); padding: 4px 14px; border-radius: 999px; text-decoration: none; transition: transform .25s var(--ease), background .25s; }
.topbar-wa svg { width: 16px; height: 16px; }
.topbar-wa:hover { background: var(--gold-300); transform: translateY(-1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background .35s, box-shadow .35s, border-color .35s; }
.is-home .site-header { position: fixed; top: 40px; left: 0; right: 0; background: transparent; border-color: transparent; }
.is-home .site-header.is-solid { top: 0; background: rgba(255,255,255,.97); border-color: var(--line); box-shadow: 0 10px 30px rgba(3,29,51,.12); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; transition: min-height .35s; }
.is-solid .header-bar { min-height: 70px; }
.brand { display: inline-flex; align-items: center; background: var(--white); border-radius: 14px; padding: 8px 14px; box-shadow: 0 8px 24px rgba(3,29,51,.12); transition: transform .3s var(--ease), box-shadow .3s; }
.brand img { width: 196px; height: auto; }
.brand:hover { transform: translateY(-2px) rotate(-.6deg); }
.is-inner .brand, .is-solid .brand { box-shadow: none; padding-inline: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 999px; color: var(--navy-800); transition: color .25s; }
.is-home .site-header:not(.is-solid) .nav a:not(.nav-cta) { color: var(--white); }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav-cta { margin-left: 10px; background: var(--gold); color: var(--navy-900) !important; font-weight: 800 !important; padding: 11px 20px !important; box-shadow: 0 10px 24px rgba(226,162,50,.35); }
.nav-cta:hover { background: var(--gold-300); }
.nav-toggle { display: none; align-items: center; gap: 4px; flex-direction: column; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--navy-800); cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--body); font-weight: 800; font-size: .98rem; letter-spacing: .01em; text-decoration: none; padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transform: translate(var(--mx), var(--my)); transition: transform .25s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn svg { width: 19px; height: 19px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 14px 30px rgba(226,162,50,.38); }
.btn-gold:hover { background: var(--gold-300); box-shadow: 0 18px 40px rgba(226,162,50,.5); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 14px 30px rgba(0,119,188,.32); }
.btn-blue:hover { background: var(--blue-500); }
.btn-line { border-color: rgba(255,255,255,.7); color: var(--white); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-line:hover { background: var(--white); color: var(--navy-900); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--blue-100); }
.btn-wa { background: #1fae56; color: var(--white); }
.btn-wa:hover { background: #179748; }
.btn-block { width: 100%; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue); text-decoration: none; }
.more .ico { transition: transform .3s var(--ease); }
.more:hover .ico { transform: translateX(5px); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); background: rgba(2,21,38,.5); border: 1px solid rgba(226,162,50,.45); padding: 7px 15px; border-radius: 999px; backdrop-filter: blur(6px); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(226,162,50,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(226,162,50,.7); } 80%, 100% { box-shadow: 0 0 0 12px rgba(226,162,50,0); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--blue)); }
.lead { font-size: 1.12rem; color: var(--muted); }

/* HERO */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy-900); padding: 170px 0 120px; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-video { position: absolute; inset: -6% 0 0; width: 100%; height: 112%; object-fit: cover; transform: scale(1.08); will-change: transform; animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom { from { scale: 1; } to { scale: 1.08; } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(2,21,38,.94) 0%, rgba(3,29,51,.78) 38%, rgba(4,36,61,.32) 70%, rgba(0,119,188,.18) 100%),
  linear-gradient(0deg, rgba(2,21,38,.85) 0%, transparent 35%); }
.hero-grid, .page-hero-grid, .footer-blueprint { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(108,188,236,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(108,188,236,.09) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 75%); animation: gridPan 30s linear infinite; }
@keyframes gridPan { to { background-position: 64px 64px, 64px 64px; } }
.hero-emblem { position: absolute; right: -8vw; top: 50%; width: min(46vw, 620px); opacity: .3; translate: 0 -50%; animation: spin 80s linear infinite; pointer-events: none; mix-blend-mode: screen; filter: saturate(1.3); }
@keyframes spin { to { rotate: 360deg; } }
.hero-copy { position: relative; z-index: 2; max-width: 1220px; will-change: transform, opacity; }
.hero-copy h1 { max-width: 15ch; margin: 22px 0 22px; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.rotator { display: block; color: var(--gold); position: relative; min-height: 1.05em; }
.rotator-word { display: inline-block; position: relative; transition: transform .55s var(--ease), opacity .55s var(--ease), filter .55s; }
.rotator-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: linear-gradient(90deg, var(--gold), var(--blue-300)); border-radius: 4px; transform-origin: left; animation: underline 3.2s var(--ease) infinite; }
@keyframes underline { 0% { transform: scaleX(0); } 25%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }
.rotator-word.is-out { transform: translateY(-60%) rotateX(70deg); opacity: 0; filter: blur(6px); }
.rotator-word.is-in { transform: translateY(60%) rotateX(-70deg); opacity: 0; filter: blur(6px); }
.hero-copy .lead { color: rgba(255,255,255,.86); max-width: 640px; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-chips { list-style: none; padding: 0; margin: 42px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); transition: background .3s, transform .3s var(--ease), border-color .3s; }
.hero-chips .ico { color: var(--gold); }
.hero-chips a:hover { background: rgba(226,162,50,.2); border-color: var(--gold); transform: translateY(-3px); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.8); text-decoration: none; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue i { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee { background: var(--gold); color: var(--navy-900); overflow: hidden; padding: 18px 0; position: relative; z-index: 4; transform: skewY(-1.6deg); margin-top: -26px; box-shadow: 0 20px 40px rgba(3,29,51,.2); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--head); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.marquee b { color: var(--blue); font-size: 1.1rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 110px 0; position: relative; }
.paper { background: var(--paper); }
.section-head { max-width: 780px; margin-bottom: 54px; }
.section-head h2 { color: var(--navy-800); }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; perspective: 1200px; }
.svc-card { --gx: 50%; --gy: 50%; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 420px; padding: 30px 26px; border-radius: var(--radius-lg); text-decoration: none; color: var(--white); background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .45s var(--ease), box-shadow .45s; }
.svc-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .3; transform: scale(1.05); transition: opacity .6s, transform 1.2s var(--ease); }
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,29,51,.25) 0%, rgba(3,29,51,.92) 70%); }
.svc-glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(240,196,110,.28), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc-card:hover { box-shadow: var(--shadow-lg); }
.svc-card:hover .svc-bg { opacity: .55; transform: scale(1.14); }
.svc-card:hover .svc-glare { opacity: 1; }
.svc-num { font-family: var(--head); font-size: 4.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(240,196,110,.55); }
.svc-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--gold); color: var(--navy-900); box-shadow: 0 12px 26px rgba(226,162,50,.4); transform: translateZ(40px); transition: transform .5s var(--ease); }
.svc-ico .ico { width: 30px; height: 30px; }
.svc-card:hover .svc-ico { transform: translateZ(60px) rotate(-8deg) scale(1.06); }
.svc-card strong { margin-top: auto; font-family: var(--head); font-size: 1.85rem; text-transform: uppercase; line-height: 1.02; transform: translateZ(30px); }
.svc-card small { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.5; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--gold-300); font-size: .9rem; }
.svc-more .ico { transition: transform .3s var(--ease); }
.svc-card:hover .svc-more .ico { transform: translateX(6px); }

/* Intro split */
.intro-grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.intro-photo { position: relative; margin: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: transform .45s var(--ease); transform-style: preserve-3d; }
.intro-photo > img:first-child { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); }
.intro-photo::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.photo-badge { position: absolute; left: -24px; bottom: 30px; background: var(--navy-800); color: var(--white); padding: 18px 24px; border-radius: 18px; box-shadow: var(--shadow-lg); display: grid; transform: translateZ(50px); animation: float 6s ease-in-out infinite; }
.photo-badge strong { font-family: var(--head); font-size: 2rem; color: var(--gold); line-height: 1; text-transform: uppercase; }
.photo-badge span { font-size: .88rem; color: rgba(255,255,255,.8); }
@keyframes float { 50% { translate: 0 -10px; } }
.intro-emblem { position: absolute; right: -30px; top: -30px; width: 110px; animation: spin 24s linear infinite; filter: drop-shadow(0 10px 20px rgba(3,29,51,.3)); transform: translateZ(60px); }
.intro-body h2 { color: var(--navy-800); }
.ticks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; background: var(--white); padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.ticks li:hover { transform: translateY(-3px); border-color: var(--gold); }
.ticks .ico { color: var(--white); background: var(--blue); border-radius: 50%; padding: 4px; width: 24px; height: 24px; }
.intro-more { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; }

/* Stats */
.stats-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, var(--blue)); color: var(--white); padding: 84px 0; }
.stats-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(226,162,50,.35), transparent 65%); left: -180px; top: -320px; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { translate: 60vw 160px; } }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); transition: transform .35s var(--ease), background .35s; }
.stat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.stat-val { display: block; font-family: var(--head); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-card span { display: block; margin-top: 10px; font-weight: 600; color: rgba(255,255,255,.85); }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-line { position: absolute; left: 6%; right: 6%; top: 44px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.steps-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease); }
.steps.is-in .steps-line i { transform: scaleX(1); }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 10px 30px rgba(3,29,51,.06); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.step:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.step-num { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: var(--white); background: var(--blue); box-shadow: 0 0 0 8px var(--white), 0 0 0 10px var(--blue-100); transition: background .35s, transform .45s var(--ease); }
.step:hover .step-num { background: var(--gold); color: var(--navy-900); transform: rotate(-10deg) scale(1.08); }
.step h3 { color: var(--navy-800); }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Showcase rail */
.rail-wrap { padding: 100px 0 110px; background: var(--navy-900); color: var(--white); overflow: hidden; position: relative; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.rail-head .more { color: var(--gold-300); }
.rail-head .eyebrow { color: var(--blue-300); }
.rail { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rail-track { display: flex; gap: 20px; width: max-content; animation: rail 60s linear infinite; padding: 14px 0; }
.rail:hover .rail-track { animation-play-state: paused; }
@keyframes rail { to { transform: translateX(calc(-50% - 10px)); } }
.rail-item { position: relative; width: 340px; height: 420px; flex: none; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: zoom-in; background: var(--navy-700); transition: transform .5s var(--ease); }
.rail-item:nth-child(even) { margin-top: 40px; }
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.rail-item span { position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(3,29,51,.78); backdrop-filter: blur(8px); color: var(--white); font: 600 .88rem/1.35 var(--body); transform: translateY(12px); opacity: .9; transition: transform .45s var(--ease), background .45s; }
.rail-item:hover { transform: translateY(-8px) rotate(-1deg); }
.rail-item:hover img { transform: scale(1.1); filter: saturate(1.15); }
.rail-item:hover span { transform: translateY(0); background: rgba(226,162,50,.95); color: var(--navy-900); }

/* CTA */
.cta-band { position: relative; overflow: hidden; color: var(--white); padding: 120px 0; background: var(--navy-900); }
.cta-bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; opacity: .35; will-change: transform; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3,29,51,.96) 20%, rgba(0,119,188,.55)); z-index: 1; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { margin-top: 18px; }
.cta-inner p { color: rgba(255,255,255,.85); max-width: 560px; font-size: 1.1rem; }
.cta-inner .hero-actions { margin: 0; flex: none; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding: 120px 0 110px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -2%); } }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(2,21,38,.95) 25%, rgba(4,36,61,.6) 70%, rgba(0,119,188,.35)); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--white); clip-path: polygon(0 100%, 100% 30%, 100% 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { max-width: 18ch; margin-top: 20px; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 680px; }
.page-hero .lead a { color: var(--gold-300); font-weight: 700; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); transition: background .3s, transform .3s var(--ease); }
.jump .ico { color: var(--gold); }
.jump a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.jump a:hover .ico { color: var(--navy-900); }

/* About */
.prose h2 { color: var(--navy-800); }
.prose p { color: var(--muted); font-size: 1.06rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fact { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(3,29,51,.06); border-top: 4px solid var(--gold); transition: transform .45s var(--ease), box-shadow .45s; }
.fact:nth-child(even) { border-top-color: var(--blue); }
.fact:hover { box-shadow: var(--shadow); }
.fact span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--muted); }
.fact strong { display: block; margin-top: 8px; font-family: var(--head); font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; color: var(--navy-800); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { position: relative; overflow: hidden; padding: 44px 40px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: var(--white); box-shadow: var(--shadow); transition: transform .45s var(--ease); }
.mv-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; background: url("../img/emblema.png") center / contain no-repeat; opacity: .14; animation: spin 40s linear infinite; }
.mv-card--gold { background: linear-gradient(150deg, var(--gold-300), var(--gold-600)); color: var(--navy-900); }
.mv-tag { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 2.4rem; text-transform: uppercase; margin-bottom: 10px; }
.mv-card p { font-size: 1.12rem; margin: 0; position: relative; z-index: 1; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 30px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .45s var(--ease), background .35s, color .35s; }
.value-card:hover { background: var(--blue); color: var(--white); }
.value-card:hover p { color: rgba(255,255,255,.85); }
.value-num { font-family: var(--head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--gold); }
.value-card h3 { margin-top: 10px; }
.value-card p { margin: 0; color: var(--muted); }

/* Services page */
.service { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding: 50px 0; }
.service + .service { border-top: 1px dashed var(--line); }
.service--flip .service-media { order: 2; }
.service-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: visible; transition: transform .45s var(--ease); }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.service-media--brand { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: radial-gradient(circle at 30% 30%, var(--blue), var(--navy-900) 70%); box-shadow: var(--shadow-lg); display: grid; place-items: center; overflow: hidden; }
.service-media--brand::before { content: ""; position: absolute; inset: 0; background: url("../img/emblema.png") center / 70% no-repeat; opacity: .16; animation: spin 50s linear infinite; }
.brand-art { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 40px; background: var(--gold); color: var(--navy-900); box-shadow: 0 30px 60px rgba(0,0,0,.35); animation: float 5s ease-in-out infinite; }
.brand-art .ico { width: 80px; height: 80px; }
.service-index { position: absolute; top: -26px; right: 24px; font-family: var(--head); font-weight: 800; font-size: 5rem; line-height: 1; color: var(--gold); text-shadow: 0 10px 30px rgba(3,29,51,.25); }
.service-copy .svc-ico { margin-bottom: 20px; transform: none; }
.service-copy h2 { color: var(--navy-800); }
.pills { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: var(--blue-100); color: var(--navy-700); font-weight: 600; font-size: .9rem; transition: background .3s, transform .3s var(--ease); }
.pills li .ico { color: var(--blue); }
.pills li:hover { background: var(--gold-100); transform: translateY(-2px); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button { font: 700 .92rem var(--body); padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy-800); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.filters button:hover { border-color: var(--gold); transform: translateY(-2px); }
.filters button.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.gallery { columns: 3 300px; column-gap: 20px; }
.shot { position: relative; margin: 0 0 20px; break-inside: avoid; border-radius: 20px; overflow: hidden; cursor: zoom-in; box-shadow: 0 12px 34px rgba(3,29,51,.12); transition: transform .5s var(--ease), opacity .4s, box-shadow .5s; }
.shot img { width: 100%; transition: transform 1s var(--ease); }
.shot figcaption { position: absolute; inset: auto 0 0; padding: 50px 18px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: var(--white); background: linear-gradient(0deg, rgba(3,29,51,.92), transparent); transform: translateY(30%); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.shot figcaption span { font-weight: 700; line-height: 1.35; }
.shot figcaption small { flex: none; font-weight: 800; color: var(--navy-900); background: var(--gold); padding: 5px 11px; border-radius: 999px; }
.shot:hover, .shot:focus-visible { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.08); }
.shot:hover figcaption, .shot:focus-visible figcaption { transform: translateY(0); opacity: 1; }
.shot.is-hidden { display: none; }
.gallery-cta { margin-top: 50px; padding: 36px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy-800), var(--blue)); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gallery-cta p { margin: 0; font-size: 1.15rem; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.panel { background: var(--white); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-panel h2 { color: var(--navy-800); margin-bottom: 26px; }
#formulario { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fl { position: relative; display: block; }
.fl input, .fl textarea, .fl select { width: 100%; font: 500 1rem var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 14px; padding: 26px 16px 10px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; }
.fl textarea { min-height: 150px; resize: vertical; }
.fl select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.fl span { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 1rem; pointer-events: none; transition: transform .25s var(--ease), font-size .25s, color .25s, top .25s; }
.fl input:focus, .fl textarea:focus, .fl select:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 5px rgba(0,119,188,.1); }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span,
.fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span,
.fl-select span { top: 7px; font-size: .74rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-wrap { min-height: 78px; }
.note { color: var(--muted); font-size: .88rem; margin: 0; }
.form-ok, .form-error { border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; font-weight: 600; }
.form-ok { display: flex; gap: 10px; align-items: center; background: #e7f6ec; color: #17633a; animation: pop .6s var(--ease); }
.form-error { background: var(--gold-100); color: #7a4c00; border-left: 4px solid var(--gold); }
.form-error p { margin: 0 0 4px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.aside { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--white); border: 0; position: sticky; top: 100px; overflow: hidden; }
.aside::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; background: url("../img/emblema.png") center / contain no-repeat; opacity: .12; animation: spin 50s linear infinite; }
.aside .eyebrow { color: var(--gold-300); }
.aside h2 { margin-bottom: 24px; }
.aside-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.aside-item:last-of-type { border: 0; margin-bottom: 18px; }
.aside-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(226,162,50,.16); color: var(--gold); }
.aside-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.aside-item a, .aside-item span { color: var(--white); font-weight: 600; text-decoration: none; word-break: break-word; }
.aside-item a:hover { color: var(--gold-300); }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--navy-950); color: rgba(255,255,255,.78); padding: 90px 0 0; }
.footer-blueprint { mask-image: linear-gradient(180deg, #000, transparent); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.brand--chip { box-shadow: none; padding: 10px 16px; }
.brand--chip img { width: 190px; }
.footer-lead { margin-top: 22px; max-width: 440px; font-size: .95rem; }
.site-footer h2 { font-size: 1.4rem; color: var(--white); margin-bottom: 18px; }
.site-footer h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; background: var(--gold); border-radius: 3px; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 9px; transition: color .25s, transform .25s; }
.site-footer a:hover { color: var(--gold-300); transform: translateX(3px); }
.site-footer svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.footer-hours { display: flex; gap: 9px; align-items: center; }
.footer-base { position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding: 24px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(2,21,38,.94); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-frame { margin: 0; max-width: min(1100px, 92vw); text-align: center; transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.is-open .lightbox-frame { transform: scale(1); }
.lightbox-frame img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.lightbox-frame figcaption { margin-top: 16px; color: var(--white); font-weight: 600; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--navy-900); background: var(--gold); border-radius: 50%; transition: transform .25s var(--ease), background .25s; }
.lightbox-close { top: 22px; right: 22px; width: 50px; height: 50px; font-size: 2rem; line-height: 1; }
.lightbox-nav { top: 50%; width: 58px; height: 58px; margin-top: -29px; font-size: 2.4rem; line-height: 1; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold-300); transform: scale(1.08); }

/* WhatsApp float */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #1fae56; color: var(--white); box-shadow: 0 16px 36px rgba(31,174,86,.45); animation: waBob 3.2s ease-in-out infinite, waIn .8s 1s var(--ease) both; }
.wa-float svg { width: 34px; height: 34px; position: relative; z-index: 2; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: #1fae56; animation: waPulse 2.4s ease-out infinite; }
.wa-pulse--2 { animation-delay: 1.2s; }
.wa-tip { position: absolute; right: 78px; white-space: nowrap; background: var(--white); color: var(--navy-900); font-weight: 700; font-size: .9rem; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.wa-tip::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: var(--white); }
.wa-float:hover .wa-tip, .wa-float.is-tip .wa-tip { opacity: 1; transform: translateX(0); }
.wa-float:hover { animation-play-state: paused; }
@keyframes waPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
@keyframes waBob { 50% { translate: 0 -6px; } }
@keyframes waIn { from { transform: scale(0) rotate(-90deg); } }

/* Reveal animations */
.reveal { opacity: 0; transition: opacity .9s var(--ease) var(--d, 0ms), translate .9s var(--ease) var(--d, 0ms), scale .9s var(--ease) var(--d, 0ms), transform .45s var(--ease), box-shadow .45s, background .35s, color .35s, border-color .35s; translate: 0 46px; }
.reveal-left { translate: -70px 0; }
.reveal-right { translate: 70px 0; }
.reveal-scale { translate: 0 30px; scale: .88; }
.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }

/* Responsive */
@media (max-width: 1100px) {
  .svc-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .topbar-list .topbar-email { display: none; }
  .reveal-left { translate: -28px 0; }
  .reveal-right { translate: 28px 0; }
}
@media (max-width: 980px) {
  .site-header, .is-home .site-header.is-solid { backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100vh; height: 100dvh; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 100px 24px 24px; background: var(--navy-900); box-shadow: -30px 0 60px rgba(0,0,0,.3); transform: translateX(105%); transition: transform .45s var(--ease); z-index: 1; }
  .nav.is-open { transform: none; }
  .nav a, .is-home .site-header:not(.is-solid) .nav a:not(.nav-cta) { color: var(--white); font-size: 1.1rem; padding: 14px 16px; }
  .nav a[aria-current="page"] { color: var(--gold-300); }
  .nav-cta { margin: 14px 0 0; text-align: center; }
  .nav-toggle { position: relative; z-index: 2; }
  .intro-grid, .split, .service, .contact-grid, .mv-grid { grid-template-columns: 1fr; gap: 40px; }
  .service--flip .service-media { order: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .aside { position: relative; top: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-emblem { width: 80vw; right: -30vw; opacity: .1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .topbar-list .topbar-area { display: none; }
  .topbar-list { gap: 12px; white-space: nowrap; }
  .topbar-wa { padding: 4px 12px; font-size: .8rem; }
  .brand img { width: 160px; }
  .header-bar { min-height: 74px; }
  .hero { padding: 150px 0 110px; }
  .svc-grid, .values-grid, .steps, .facts, .ticks, .form-row { grid-template-columns: 1fr; }
  .svc-card { min-height: 340px; }
  .panel { padding: 26px 20px; }
  .rail-item { width: 260px; height: 330px; }
  .photo-badge { left: 12px; }
  .intro-emblem { right: -10px; width: 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox-nav { width: 46px; height: 46px; margin-top: -23px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-tip { display: none; }
  .captcha-wrap { transform: scale(.92); transform-origin: left top; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; scale: none; }
}
