/* =========================================================
   SERCOFI · Servicios Contables y Fiscales
   ========================================================= */
:root {
  --pink: #e4007c;
  --pink-600: #c4006b;
  --pink-700: #9e0056;
  --pink-50: #fff0f7;
  --pink-100: #fde1ef;
  --ink: #15131c;
  --ink-2: #2a2733;
  --night: #120f18;
  --night-2: #1d1925;
  --muted: #625f6e;
  --line: #ebe8f0;
  --bg: #faf8fb;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(21, 19, 28, .06);
  --shadow: 0 18px 50px -12px rgba(21, 19, 28, .16);
  --shadow-pink: 0 14px 36px -10px rgba(228, 0, 124, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(228, 0, 124, .45); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background .25s, box-shadow .3s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: var(--shadow-pink); overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s var(--ease) infinite 2s;
}
.btn--primary:hover { background: var(--pink-600); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--pink-50); }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--pink), #ff5fb0);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  transition: top .4s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--container) - 48px + 32px);
  margin: 0 auto; padding: 10px 10px 10px 22px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s, background .4s;
}
.nav.is-scrolled { top: 8px; }
.nav.is-scrolled .nav__inner { background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px -10px rgba(21,19,28,.18); }
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-size: .95rem;
  transition: background .25s, color .25s;
}
.nav__links a:hover, .nav__links a.is-active { background: var(--pink-50); color: var(--pink-700); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .35s var(--ease), background .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Section basics ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pink); font-weight: 500; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
.h2 em { font-style: normal; color: var(--pink); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--1 { width: 520px; height: 520px; background: #ffc2e1; top: -140px; right: -80px; animation: drift1 18s ease-in-out infinite alternate; }
.blob--2 { width: 420px; height: 420px; background: #e9defd; bottom: -120px; left: -120px; animation: drift2 22s ease-in-out infinite alternate; }
.blob--3 { width: 260px; height: 260px; background: #ffd9ec; top: 40%; left: 38%; opacity: .4; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(21,19,28,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(21,19,28,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(-80px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(90px, -50px) scale(1.08); } }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm); font-size: .88rem; color: var(--ink-2);
}
.hero__badge b { background: var(--pink); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 500; font-size: .78rem; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); font-weight: 500; margin: 22px 0 22px; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--pink); position: relative; white-space: nowrap; }
.hero h1 .accent svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .35em; overflow: visible; }
.hero h1 .accent path { stroke: var(--pink); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s var(--ease) 1.1s forwards; opacity: .55; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.rotator { display: inline-grid; vertical-align: bottom; height: 1.6em; overflow: hidden; color: var(--ink); font-weight: 500; }
.rotator span { grid-area: 1 / 1; transform: translateY(100%); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.rotator span.is-in { transform: none; opacity: 1; }
.rotator span.is-out { transform: translateY(-100%); opacity: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero__trust { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-left: -12px; background: #222; }
.avatars img:first-child { margin-left: 0; }
.hero__trust p { font-size: .92rem; color: var(--muted); line-height: 1.4; }
.hero__trust strong { color: var(--ink); display: block; font-weight: 500; }

.hero__visual { position: relative; aspect-ratio: 1 / 1.08; max-width: 540px; justify-self: end; width: 100%; }
.hero__frame {
  position: absolute; inset: 6% 6% 0 10%;
  border-radius: 260px 260px var(--radius) var(--radius);
  background: radial-gradient(120% 80% at 50% 0%, #3a1029 0%, var(--night) 60%);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero__frame::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 30%, rgba(228,0,124,.45), transparent 70%);
  animation: glow 6s ease-in-out infinite alternate;
}
@keyframes glow { to { opacity: .5; transform: scale(1.1); } }
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.02); }
.hero__ring {
  position: absolute; inset: 0 0 6% 4%; border-radius: 280px 280px 28px 28px;
  border: 1.5px dashed rgba(228, 0, 124, .35);
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.float {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px; box-shadow: var(--shadow);
  padding: 14px 16px;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-12px); } }
.float--chart { left: -6%; top: 16%; width: 220px; animation-delay: -1s; }
.float--chart small { color: var(--muted); font-size: .75rem; display: block; }
.float--chart .num { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; margin: 2px 0; }
.float--chart .up { color: #12a150; font-size: .78rem; font-weight: 500; }
.float--chart svg { width: 100%; height: 56px; margin-top: 6px; overflow: visible; }
.chart-line { fill: none; stroke: var(--pink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2s var(--ease) 1.2s forwards; }
.chart-area { fill: url(#gradArea); opacity: 0; animation: fade 1s ease 2.2s forwards; }
.chart-dot { fill: var(--pink); opacity: 0; animation: fade .4s ease 3s forwards, pulse-dot 2s ease-in-out 3.2s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse-dot { 50% { transform: scale(1.5); } }

.float--check { right: -2%; top: 46%; display: flex; gap: 12px; align-items: center; animation-delay: -3s; }
.float--check .ic { width: 40px; height: 40px; border-radius: 12px; background: #e6f7ee; color: #12a150; display: grid; place-items: center; flex-shrink: 0; }
.float--check .ic svg { width: 22px; height: 22px; }
.float--check .ic path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s var(--ease) 2s forwards; }
.float--check strong { display: block; font-weight: 500; font-size: .92rem; }
.float--check span { font-size: .78rem; color: var(--muted); }

.float--time { left: 2%; bottom: 8%; display: flex; gap: 10px; align-items: center; animation-delay: -4.5s; background: var(--ink); color: #fff; border-color: transparent; }
.float--time .live { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.float--time span { font-size: .85rem; }

/* ---------- Marquee ---------- */
.marquee { padding: 22px 0; background: var(--ink); color: #fff; overflow: hidden; transform: rotate(-1.2deg); margin: 20px -20px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 1.15rem; white-space: nowrap; }
.marquee__item::after { content: "✦"; color: var(--pink); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  transform-style: preserve-3d;
  container-type: inline-size;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(228, 0, 124, .1), transparent 45%);
}
.svc:hover { box-shadow: var(--shadow); border-color: var(--pink-100); }
.svc:hover::before { opacity: 1; }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.08); }
.svc__icon {
  position: absolute; left: 20px; top: calc(75cqw - 24px); z-index: 3;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--pink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-pink);
  transition: transform .5s var(--ease);
}
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.06); }
.svc__icon svg { width: 24px; height: 24px; }
.svc__body { padding: 36px 22px 24px; display: flex; flex-direction: column; flex: 1; position: relative; }
.svc__body h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; }
.svc__body p { color: var(--muted); font-size: .95rem; }
.svc__list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; font-size: .9rem; }
.svc__list li { display: flex; gap: 8px; align-items: flex-start; }
.svc__list li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--pink-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4007c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.svc__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--pink-700); font-weight: 500; text-decoration: none; font-size: .95rem; }
.svc__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc__link:hover svg { transform: translateX(4px); }

/* ---------- Why (dark band) ---------- */
.why { background: var(--night); color: #fff; border-radius: 36px; margin: 0 16px; overflow: hidden; }
.why .lead { color: rgba(255,255,255,.65); }
.why__bg { position: absolute; inset: 0; background: url("../img/Puzzle2.webp") center / cover no-repeat; opacity: .14; mix-blend-mode: screen; }
.why__glow { position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; background: radial-gradient(circle, rgba(228,0,124,.35), transparent 65%); animation: drift1 16s ease-in-out infinite alternate; }
.why .container { position: relative; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); }
.why__item { padding: 36px 28px 8px 0; border-right: 1px solid rgba(255,255,255,.1); }
.why__item + .why__item { padding-left: 28px; }
.why__item:last-child { border-right: 0; }
.why__item .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(228,0,124,.15); color: #ff6ab8; margin-bottom: 22px; }
.why__item .ic svg { width: 26px; height: 26px; }
.why__item h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
.why__item p { color: rgba(255,255,255,.62); font-size: .95rem; }

/* ---------- Process ---------- */
.process__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process__line { position: absolute; top: 31px; left: 32px; right: 32px; height: 2px; background: var(--line); overflow: hidden; }
.process__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--pink), #ff5fb0); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step__num {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 500;
  background: #fff; border: 2px solid var(--line); color: var(--muted);
  transition: background .5s var(--ease), border-color .5s, color .5s, transform .5s var(--ease), box-shadow .5s;
}
.step.is-lit .step__num { background: var(--pink); border-color: var(--pink); color: #fff; transform: scale(1.06); box-shadow: var(--shadow-pink); }
.step h3 { font-size: 1.15rem; font-weight: 500; margin: 22px 0 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px;
  transition: transform .4s var(--ease), border-color .3s;
}
.value:hover { transform: translateY(-4px); border-color: var(--pink-100); }
.value strong { display: block; font-weight: 500; margin-bottom: 4px; color: var(--pink-700); }
.value span { font-size: .85rem; color: var(--muted); line-height: 1.45; display: block; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 4 / 5; isolation: isolate; }
.member img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease), filter .6s; }
.member::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 15, 24, .92) 85%); z-index: 1; transition: background .6s var(--ease); }
.member:hover img, .member:focus-within img { transform: scale(1.06); filter: blur(2px) brightness(.6); }
.member:hover::after, .member:focus-within::after { background: linear-gradient(180deg, rgba(18,15,24,.35) 0%, rgba(18,15,24,.95) 60%); }
.member__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; z-index: 2; }
.member__role { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #ff6ab8; }
.member h3 { font-size: 1.35rem; font-weight: 500; margin: 6px 0 2px; }
.member__edu { font-size: .88rem; color: rgba(255,255,255,.7); }
.member__bio { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.member__bio > div { overflow: hidden; }
.member__bio p { font-size: .9rem; color: rgba(255,255,255,.82); padding-top: 14px; }
.member:hover .member__bio, .member:focus-within .member__bio { grid-template-rows: 1fr; }
.member__links { display: flex; gap: 8px; margin-top: 16px; }
.member__links a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; transition: background .25s, transform .3s var(--ease);
}
.member__links a:hover { background: var(--pink); transform: translateY(-2px); }
.member__links svg { width: 18px; height: 18px; }

/* ---------- Diagnóstico section ---------- */
.diag { background: linear-gradient(180deg, var(--bg), #fff 40%); }
.diag__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.diag__aside { position: sticky; top: 120px; }
.diag__perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.diag__perks li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.diag__perks .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--pink-50); color: var(--pink); display: grid; place-items: center; flex-shrink: 0; }
.diag__perks svg { width: 18px; height: 18px; }
.diag__contact { margin-top: 32px; padding: 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.diag__contact a { color: var(--pink-700); font-weight: 500; text-decoration: none; }

/* ---------- CTA band ---------- */
.cta { margin: 0 16px; border-radius: 36px; overflow: hidden; color: #fff; background: var(--night); }
.cta__bg { position: absolute; inset: 0; background: url("../img/Puzzle2.webp") center / cover no-repeat; opacity: .55; transform: scale(1.1); will-change: transform; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(18,15,24,.95) 25%, rgba(18,15,24,.5) 65%, rgba(158,0,86,.45)); }
.cta .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 500; max-width: 640px; }
.cta p { color: rgba(255,255,255,.75); margin-top: 12px; font-size: 1.1rem; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer p, .footer li { color: var(--muted); font-size: .95rem; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--pink); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--pink); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .6);
  transform: scale(0); transition: transform .5s var(--ease);
}
.wa-fab.is-visible { transform: scale(1); }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ring 2.4s ease-out infinite; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-fab__tip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: .85rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.wa-fab:hover .wa-fab__tip { opacity: 1; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.reveal--left { transform: translateX(-40px); }
.js .reveal.reveal--scale { transform: scale(.94); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js .split.is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__item { padding: 32px 24px 24px 0 !important; border-right: 0; }
  .why__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .why__item:nth-child(even) { padding-left: 24px !important; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; gap: 2px; padding: 12px;
    background: #fff; border-radius: 24px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transform-origin: top center;
    transition: opacity .3s, transform .4s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 18px; font-size: 1.05rem; }
  .nav__toggle { display: inline-flex; }
  .nav { left: 12px; right: 12px; }
  .hero { padding-top: 130px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { justify-self: center; max-width: 460px; }
  .process__steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process__line { display: none; }
  .about__top { grid-template-columns: 1fr; gap: 32px; }
  .team { grid-template-columns: 1fr 1fr; }
  .diag__grid { grid-template-columns: 1fr; gap: 40px; }
  .diag__aside { position: static; }
  .section { padding: 96px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav__inner { padding: 8px 8px 8px 16px; }
  .nav__logo img { height: 36px; }
  .nav__cta .btn--sm { display: none; }
  .hero { padding: 116px 0 56px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero__sub { font-size: 1.05rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float--chart { width: 180px; left: -2%; top: 8%; padding: 10px 12px; }
  .float--chart .num { font-size: 1.2rem; }
  .float--chart svg { height: 40px; }
  .float--check { right: -2%; padding: 10px 12px; }
  .float--check .ic { width: 34px; height: 34px; }
  .services__grid, .why__grid, .team, .process__steps, .footer__grid { grid-template-columns: 1fr; }
  .why__item { border-right: 0 !important; padding: 28px 0 0 !important; }
  .values { grid-template-columns: 1fr 1fr; }
  .why, .cta { margin: 0 8px; border-radius: 26px; }
  .member { aspect-ratio: 4 / 4.6; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .cta .container { padding-top: 64px; padding-bottom: 64px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .wa-fab { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* Touch devices: show team bios without hover */
@media (hover: none) {
  .member .member__bio { grid-template-rows: 1fr; }
  .member::after { background: linear-gradient(180deg, transparent 15%, rgba(18,15,24,.94) 62%); }
}

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