/* ==========================================================================
   Grupo MPR — main stylesheet
   ========================================================================== */

:root {
  --brand: #1ea7e0;
  --brand-600: #0f8cc4;
  --brand-2: #2fe0c7;
  --navy: #07111f;
  --navy-2: #0c1b2f;
  --navy-3: #13294a;
  --text: #142032;
  --muted: #5a6a80;
  --bg: #ffffff;
  --tint: #f2f6fa;
  --line: #e2e8f0;
  --on-dark: #e8f0f8;
  --on-dark-muted: #9fb2c8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(7, 17, 31, .18);
  --shadow-lg: 0 30px 60px -20px rgba(7, 17, 31, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 600; font-size: .95rem; padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap; font-family: inherit; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: var(--navy); box-shadow: 0 8px 24px -8px rgba(30, 167, 224, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(30, 167, 224, .75); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--brand-600); margin-top: 1rem; }
.text-link .ic { transition: transform .25s var(--ease); }
.text-link:hover .ic { transform: translateX(4px); }

.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 1rem; }
.dark .eyebrow, .hero .eyebrow { color: var(--brand-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(47, 224, 199, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 224, 199, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 224, 199, 0); } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); color: #fff; transition: transform .4s var(--ease), background .3s, box-shadow .3s, color .3s, height .3s; }
.site-header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); color: var(--text); box-shadow: 0 1px 0 var(--line); --header-h: 66px; }
.site-header.hide { transform: translateY(-100%); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { position: relative; width: 160px; height: 32px; flex-shrink: 0; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s; }
.brand-dark { opacity: 0; }
.scrolled .brand-light { opacity: 0; }
.scrolled .brand-dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; opacity: .9; transition: background .2s, opacity .2s; }
.nav-link:hover, .nav-link.active, .has-menu.open > .nav-link { opacity: 1; background: rgba(127, 160, 200, .14); }
.nav-link .chev { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.has-menu.open .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(127, 160, 200, .35); transition: border-color .2s; }
.lang-switch:hover { border-color: var(--brand); }

/* Mega menu */
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: min(960px, 92vw); background: #fff; color: var(--text); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 26px; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.mega::before { content: ''; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.has-menu:first-child .mega { left: 0; transform: translate(-25%, 8px); }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-menu:first-child.open .mega { transform: translate(-25%, 0); }
.mega-sm { width: 320px; padding: 12px; }
.mega-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 22px; }
.mega-title { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; transition: background .2s; }
.mega li a:hover { background: var(--tint); }
.mega li strong { display: block; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.mega li small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.mega-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(30, 167, 224, .1); color: var(--brand-600); flex-shrink: 0; }
.mega-ic .ic { width: 18px; height: 18px; }
.mega-promo { background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); color: var(--on-dark); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.mega-promo .eyebrow { margin-bottom: .6rem; color: var(--brand-2); }
.mega-promo-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: .4em; }
.mega-promo p { font-size: .9rem; color: var(--on-dark-muted); }
.mega-promo .btn { margin-top: auto; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle .ic { width: 28px; height: 28px; }
.nav-toggle .close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 75% 10%, var(--navy-3) 0%, var(--navy) 60%); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .75; }
.hero-glow { position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; background: radial-gradient(circle, rgba(30, 167, 224, .35), transparent 65%); z-index: -1; filter: blur(20px); animation: float 12s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate(-80px, 60px) scale(1.1); } }
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-home { min-height: min(100vh, 980px); min-height: min(100svh, 980px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.hero-page { padding: calc(var(--header-h) + 80px) 0 90px; }
.hero-page h1 { max-width: 900px; }
.hero-404 { min-height: 80vh; display: flex; align-items: center; }
.hero-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(30, 167, 224, .14); border: 1px solid rgba(30, 167, 224, .35); color: var(--brand-2); margin-bottom: 1.4rem; }
.hero-ic .ic { width: 30px; height: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--on-dark-muted); margin-bottom: 1.6rem; }
.crumbs a:hover { color: #fff; }

/* Hero dashboard mock */
.hero-visual { position: relative; }
.dash { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.hero-visual:hover .dash { transform: perspective(1200px) rotateY(0) rotateX(0); }
.dash-head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: var(--on-dark-muted); }
.dash-head span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dash-head em { margin-left: 10px; font-style: normal; color: var(--on-dark-muted); background: none; -webkit-text-fill-color: currentColor; }
.dash-body { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 26px; align-items: center; }
.ring { --v: 80; width: 130px; height: 130px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--navy-2) 78%, transparent 80% 100%), conic-gradient(var(--brand-2) calc(var(--v) * 1%), rgba(255, 255, 255, .1) 0); animation: ring 2.2s var(--ease) both .6s; }
@property --v { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes ring { from { --v: 0; } }
.ring strong { font-family: var(--display); font-size: 2.2rem; color: #fff; line-height: 1; }
.ring small { color: var(--on-dark-muted); font-size: .78rem; }
.dash-kpis { display: grid; gap: 16px; }
.dash-kpis div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .82rem; }
.dash-kpis small { color: var(--on-dark-muted); }
.dash-kpis strong { color: #fff; font-weight: 600; }
.dash-kpis strong.warn { color: var(--brand-2); }
.dash-kpis i { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.dash-kpis i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--grad); border-radius: 4px; animation: grow 1.8s var(--ease) both .8s; }
@keyframes grow { from { width: 0; } }
.spark { width: 100%; height: 70px; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) forwards 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--text); font-size: .82rem; font-weight: 600; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.chip .ic { color: var(--brand-600); }
.chip-a { top: -18px; left: -30px; animation-delay: -1s; }
.chip-b { bottom: 30px; right: -24px; }
.chip-b .ic { color: #10b981; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy-2); color: var(--on-dark-muted); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: '◆'; font-size: .55rem; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.tint { background: var(--tint); }
.section.dark { background: var(--navy); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-head.split .muted { font-size: 1.08rem; margin: 0; }

/* Stats */
.stats { padding: 70px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-num { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; margin-bottom: .3em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num small { font-size: .35em; font-weight: 600; margin-right: .2em; }
.stat-label { color: var(--muted); font-size: .95rem; margin: 0; max-width: 220px; }

/* Problems */
.problem-list { border-top: 1px solid var(--line); }
.problem { display: grid; grid-template-columns: 60px 1.2fr 1fr 40px; gap: 24px; align-items: center; padding: 28px 8px; border-bottom: 1px solid var(--line); position: relative; transition: padding .35s var(--ease); }
.problem::before { content: ''; position: absolute; inset: 0; background: var(--tint); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); z-index: -1; border-radius: 12px; }
.problem:hover::before { transform: scaleY(1); }
.problem:hover { padding-left: 20px; padding-right: 20px; }
.problem-n { font-family: var(--display); color: var(--brand-600); font-weight: 700; }
.problem-q { font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.3; }
.problem-a { display: flex; gap: 10px; color: var(--muted); align-items: flex-start; }
.problem-a .ic { color: var(--brand-600); margin-top: 3px; }
.problem-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s, transform .3s var(--ease); }
.problem:hover .problem-go { background: var(--navy); color: #fff; transform: rotate(-45deg); }

/* Pillars (sticky scroll layout) */
.pillars-layout { display: grid; grid-template-columns: 340px 1fr; gap: 70px; }
.sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.pillar-nav { list-style: none; padding: 0; margin: 2rem 0; border-left: 2px solid var(--line); }
.pillar-nav a { display: flex; gap: 14px; padding: 12px 18px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-weight: 600; transition: color .3s, border-color .3s; }
.pillar-nav a span { font-family: var(--display); font-size: .8rem; opacity: .7; padding-top: 2px; }
.pillar-nav a.active { color: var(--text); border-color: var(--brand); }
.pillar-block { padding-bottom: 70px; }
.pillar-block:last-child { padding-bottom: 0; }
.pillar-intro { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pillar-intro h3 { font-size: 1.6rem; }
.pillar-intro p { color: var(--muted); margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; isolation: isolate; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3, .card h4 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; }
.card-kicker { font-size: .78rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600) !important; margin-bottom: .5em; }
.card-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(30, 167, 224, .14), rgba(47, 224, 199, .14)); color: var(--brand-600); margin-bottom: 20px; transition: transform .4s var(--ease); }
.card-ic .ic { width: 24px; height: 24px; }
.card:hover .card-ic { transform: scale(1.08) rotate(-4deg); }
.card-link { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; color: var(--brand-600); }
.card-link .ic { transition: transform .25s var(--ease); }
.card:hover .card-link .ic, .service-card:hover .card-link .ic { transform: translateX(4px); }
/* Mouse-follow spotlight */
.spot::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 167, 224, .1), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps-line { position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: rgba(255, 255, 255, .1); }
.steps-line i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--s, 0)); transition: transform .2s linear; }
.step { position: relative; text-align: center; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--navy-2); border: 2px solid var(--brand); font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #fff; position: relative; z-index: 1; }
.step p { color: var(--on-dark-muted); font-size: .95rem; }

/* Services teaser */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; align-items: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card h3 { margin-bottom: .3em; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: .4em; }
.service-art, .service-visual { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; color: #fff; position: relative; overflow: hidden; }
.service-art .ic { width: 46px; height: 46px; stroke-width: 1.4; position: relative; z-index: 1; transition: transform .5s var(--ease); }
.service-card:hover .service-art .ic { transform: scale(1.15); }
.service-art::before, .service-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 50%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); }
.svc-engineering { background: linear-gradient(135deg, #0f8cc4, #13294a); }
.svc-consulting { background: linear-gradient(135deg, #13294a, #2fe0c7); }
.svc-support { background: linear-gradient(135deg, #1ea7e0, #0b6f8f); }
.svc-rnd { background: linear-gradient(135deg, #07111f, #1ea7e0); }

/* Why */
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.why-big { font-family: var(--display); font-weight: 800; font-size: clamp(9rem, 22vw, 18rem); line-height: .85; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.06em; }
.why-big sup { font-size: .4em; vertical-align: top; }
.why-list { display: grid; gap: 26px; }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.why-item .card-ic { margin: 0; }
.why-item p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--navy); padding: 0 0 90px; }
.section.dark + .cta-band { padding-top: 0; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 56px; border-radius: 28px; background: radial-gradient(600px 300px at 90% 0%, rgba(47, 224, 199, .25), transparent 60%), linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: var(--on-dark); position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: var(--on-dark-muted); margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
main > .section:last-of-type:not(.dark) + .cta-band, main > section:not(.dark) + .cta-band { background: linear-gradient(var(--bg) 50%, var(--navy) 50%); }

/* ---------- Detail pages ---------- */
.subnav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .4s var(--ease); }
body.header-visible .subnav { top: 66px; }
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; align-items: center; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: .92rem; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.subnav a:hover { color: var(--text); }
.subnav a.active { background: var(--navy); color: #fff; }
.subnav .subnav-cta { margin-left: auto; background: var(--grad); color: var(--navy); font-weight: 600; }
.overview-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.big-text { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.6; color: var(--text); }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.benefit { padding: 30px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; }
.benefit::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) .2s; }
.benefit.in::before { transform: scaleX(1); }
.benefit-n { font-family: var(--display); font-weight: 700; color: var(--brand-600); display: block; margin-bottom: 14px; }
.benefit p { color: var(--muted); margin: 0; }
.cap-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; transition: border-color .3s, transform .3s var(--ease); }
.check-list li:hover { border-color: var(--brand); transform: translateX(6px); }
.check-list li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: var(--navy); flex-shrink: 0; }
.check-list li span .ic { width: 16px; height: 16px; stroke-width: 2.6; }

/* Services page rows */
.service-rows { display: grid; gap: 90px; }
.service-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.service-row.flip .service-visual { order: 2; }
.service-visual { border-radius: 28px; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.service-visual .ic { width: 110px; height: 110px; stroke-width: 1; position: relative; z-index: 1; }
.service-row h2 a:hover { color: var(--brand-600); }
.lead-dark { font-size: 1.12rem; color: var(--muted); }
.mini-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 10px; }
.mini-list li { display: flex; gap: 10px; align-items: center; }
.mini-list .ic { color: var(--brand-600); stroke-width: 2.4; }

/* About */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; position: relative; display: grid; gap: 40px; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.timeline-line i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: 50% 0; transform: scaleY(var(--s, 0)); }
.tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; }
.tl-year { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; z-index: 1; white-space: nowrap; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; grid-column: 1; margin-right: 30px; }
.tl-item.right .tl-card { grid-column: 2; margin: 0 0 0 30px; }
.tl-card p { color: var(--muted); margin: 0; }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.office { padding: 34px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 8px; }
.office > .ic { width: 30px; height: 30px; color: var(--brand-2); margin-bottom: 8px; }
.office p { color: var(--on-dark-muted); }
.office a { display: inline-flex; gap: 8px; align-items: center; color: var(--on-dark); }
.office .text-link { color: var(--brand-2); }

/* Contact */
.hero-contact { padding-bottom: 180px; }
.contact-section { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: -130px; position: relative; z-index: 2; }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .98rem; color: var(--text); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--tint); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(30, 167, 224, .15); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; background: #fff5f5; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 22px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.check.invalid { color: #e5484d; }
.hp { position: absolute; left: -9999px; }
.form-alert { background: #fff5f5; color: #b42318; border: 1px solid #fecdca; border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: .92rem; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success p { font-size: 1.15rem; font-weight: 500; }
.success-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: var(--navy); margin-bottom: 20px; animation: pop .6s var(--ease); }
.success-ic .ic { width: 34px; height: 34px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(0); } }
.contact-aside { display: grid; gap: 16px; align-content: start; padding-top: 140px; }
.aside-title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 0; }
.contact-line { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, transform .3s var(--ease); }
.contact-line:hover { border-color: var(--brand); transform: translateY(-3px); }
.contact-line > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: var(--navy); }
.contact-line small { display: block; color: var(--muted); font-size: .8rem; }
.contact-line strong { font-weight: 600; word-break: break-all; }
.office-card { padding: 22px; background: var(--tint); border-radius: var(--radius-sm); }
.office-card h3 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.office-card h3 .ic { color: var(--brand-600); }
.office-card p { color: var(--muted); font-size: .92rem; margin-bottom: .6em; }
.office-card a { display: flex; gap: 8px; align-items: center; font-size: .92rem; margin-bottom: 4px; }
.office-card .text-link { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 80px 0 30px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-office { display: grid; gap: 2px; margin-bottom: 14px; }
.footer-office strong { color: var(--on-dark); font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

/* Floating buttons */
.wa-float, .to-top { position: fixed; right: 22px; z-index: 90; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; transition: transform .3s var(--ease), opacity .3s; }
.wa-float { bottom: 22px; width: 56px; height: 56px; background: #25d366; color: #fff; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }
.to-top { bottom: 90px; width: 44px; height: 44px; background: var(--navy); color: #fff; opacity: 0; transform: translateY(20px); pointer-events: none; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transform: translateY(20px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .pillars-layout { grid-template-columns: 1fr; gap: 30px; }
  .pillars-aside .sticky { position: static; }
  .pillar-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--navy); color: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: calc(var(--header-h) + 20px) 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease); }
  .nav-open .nav { transform: none; }
  .nav-open .site-header { color: #fff; background: transparent; box-shadow: none; }
  .nav-open .brand-light { opacity: 1; }
  .nav-open .brand-dark { opacity: 0; }
  .nav-open .nav-toggle .open { display: none; }
  .nav-open .nav-toggle .close { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.15rem; border-radius: 0; }
  .nav-link:hover, .nav-link.active, .has-menu.open > .nav-link { background: none; }
  .mega, .has-menu:first-child .mega { position: static; transform: none !important; width: auto; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; background: transparent; color: var(--on-dark); padding: 0 0 16px; }
  .has-menu.open .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; gap: 14px; }
  .mega-promo { display: none; }
  .mega-title { color: var(--brand-2); }
  .mega li a:hover { background: rgba(255, 255, 255, .06); }
  .mega li small { color: var(--on-dark-muted); }
  .mega-ic { background: rgba(30, 167, 224, .18); color: var(--brand-2); }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .nav-actions .btn, .lang-switch { justify-content: center; padding: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-head.split, .overview-grid, .cap-grid, .why-grid, .service-row, .cta-inner, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .cap-grid .sticky { position: static; }
  .service-row.flip .service-visual { order: 0; }
  .service-visual { aspect-ratio: 16 / 9; }
  .card-grid.cols-3, .service-grid, .office-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps-line { display: none; }
  .problem { grid-template-columns: 40px 1fr 40px; }
  .problem-a { grid-column: 2; grid-row: 2; }
  .problem-go { grid-column: 3; grid-row: 1 / 3; }
  .why-big { font-size: 8rem; }
  .contact-aside { padding-top: 0; }
  .cta-inner { padding: 36px 28px; }
  .timeline-line { left: 18px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 50px; }
  .tl-year { left: 18px; top: -14px; }
  .tl-card, .tl-item.right .tl-card { grid-column: 1; margin: 12px 0 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .card-grid, .card-grid.cols-3, .service-grid, .office-grid, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .service-card { grid-template-columns: 90px 1fr; gap: 18px; }
  .stats-grid { gap: 26px 16px; }
  .steps { grid-template-columns: 1fr; }
  .chip-a { left: 0; top: -24px; }
  .chip-b { right: 0; }
  .dash { transform: none; }
  .dash-body { grid-template-columns: 1fr; justify-items: center; }
  .dash-kpis { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 22px; }
  .cta-actions .btn { white-space: normal; }
}

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

.mega-all { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0 10px; font-weight: 600; font-size: .9rem; color: var(--brand-600); }
@media (max-width: 900px) { .mega-all { color: var(--brand-2); margin-top: 8px; } }
.card-grid > .card:only-child { grid-column: 1 / -1; max-width: 560px; }

/* ---------- Regional presence map ---------- */
.presence { overflow: hidden; background: radial-gradient(900px 600px at 80% 40%, rgba(30, 167, 224, .14), transparent 60%), var(--navy); }
.presence-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.presence-lead { color: var(--on-dark-muted); font-size: 1.08rem; }
.presence-count { display: flex; align-items: baseline; gap: 14px; margin: 1.6rem 0 1.2rem; }
.presence-count .stat-num { margin: 0; font-size: clamp(3rem, 6vw, 4.5rem); }
.presence-count p:last-child { margin: 0; color: var(--on-dark); font-weight: 600; }
.country-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.country-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 12px; border-radius: 10px; cursor: default; color: var(--on-dark); font-weight: 500; transition: background .2s, color .2s; outline: none; }
.country-list li small { flex-basis: 100%; padding-left: 20px; color: var(--brand-2); font-size: .76rem; font-weight: 600; }
.country-list li:hover, .country-list li:focus-visible, .country-list li.hl { background: rgba(30, 167, 224, .14); color: #fff; }
.cl-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(30, 167, 224, .2); }
.cl-dot.cl-dot-hq { background: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 224, 199, .25); }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .84rem; color: var(--on-dark-muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 14px; height: 14px; border-radius: 4px; }
.lg-client { background: linear-gradient(135deg, #1ea7e0, #2fe0c7); opacity: .75; }
.lg-office { border-radius: 50% !important; background: var(--brand-2); box-shadow: 0 0 0 3px rgba(47, 224, 199, .3); }

.map-wrap { margin: 0; position: relative; }
.latam-map { width: 100%; height: auto; max-height: 82vh; overflow: visible; }
.latam-map .country { fill: #13253d; stroke: #22395a; stroke-width: .8; transition: fill .4s, opacity .4s; }
.latam-map .country[data-country="united-states-of-america"] { opacity: .45; }
.latam-map .country.client { fill: url(#mapGrad); fill-opacity: .55; stroke: rgba(47, 224, 199, .6); cursor: pointer; }
.latam-map .country.client:hover, .latam-map .country.client.hl { fill-opacity: .9; }
.map-wrap.dim .country.client:not(.hl) { fill-opacity: .25; }
.map-arc { fill: none; stroke: url(#mapGrad); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; stroke-linecap: round; }
.map-wrap.in .map-arc { animation: arcDraw 1.4s var(--ease) forwards; animation-delay: calc(.6s + var(--i) * .14s); }
.map-arc.hl { stroke-width: 2.6; opacity: 1; }
@keyframes arcDraw { to { stroke-dashoffset: 0; } }
.pin { cursor: pointer; }
.pin-glow { opacity: 0; transition: opacity .3s; }
.pin-dot { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.pin-office .pin-dot { fill: var(--navy); stroke: var(--brand-2); stroke-width: 3; }
.pin-core { fill: var(--brand-2); }
.pin-pulse { fill: none; stroke: var(--brand-2); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pinPulse 2.4s ease-out infinite; animation-delay: calc(var(--i) * .27s); }
@keyframes pinPulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.pin-label { fill: #fff; font: 600 15px var(--display); paint-order: stroke; stroke: var(--navy); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.pin-office .pin-label { fill: var(--brand-2); }
.pin.hl .pin-glow { opacity: 1; }
.pin.hl .pin-dot { r: 8; }
.js .map-wrap .pin { opacity: 0; transform-box: fill-box; transition: opacity .5s var(--ease); transition-delay: calc(.3s + var(--i) * .1s); }
.js .map-wrap.in .pin { opacity: 1; }
.offices-section { padding-top: 0; }

@media (max-width: 900px) {
  .presence-grid { grid-template-columns: 1fr; gap: 30px; }
  .map-wrap { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .pin-label { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-arc { stroke-dashoffset: 0; }
  .js .map-wrap .pin { opacity: 1; }
}
