/* Fonts cargadas via <link> en el <head> — no usar @import (bloquea render) */

:root {
  --green:        #2DC76D;
  --green-dark:   #1FA855;
  --green-dim:    rgba(45,199,109,0.11);
  --green-border: rgba(45,199,109,0.28);
  --black:        #0D1117;
  --ink:          #111827;
  --white:        #FFFFFF;
  --mint:         #F2FAF5;
  --gray-100:     #E8EEF0;
  --gray-200:     #D1DAE0;
  --gray-400:     #9CA8B5;
  --gray-500:     #6B7A8D;
  --gray-700:     #374151;
  --display:      'Syne', sans-serif;
  --body:         'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #07090F; }
img { user-select: none; -webkit-user-select: none; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2.5rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; margin-left: calc(1rem + 2px); }
.nav-logo img { height: 28px; width: auto; display: block; object-fit: contain; margin-top: 2px; }
.nav-logo-text {
  font-family: var(--display); font-size: 1.7rem; font-weight: 800;
  letter-spacing: -.03em; line-height: 1; text-decoration: none;
}
.logo-tax  { color: var(--green); }
.logo-dify { color: var(--black); }

.nav-links { display: flex; gap: .25rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: .875rem; font-weight: 500;
  padding: .45rem .85rem;
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.nav-links a:hover  { color: var(--black); background: var(--mint); }
.nav-links a.active { color: var(--green-dark); background: var(--green-dim); font-weight: 600; }

.nav-cta {
  background: var(--green); color: var(--white);
  padding: .6rem 1.4rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s;
  height: 36px;
  display: inline-flex; align-items: center;
  line-height: 1;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
footer { background: #07090F; padding: 1rem 2.5rem; }
.foot-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.foot-logo { display: flex; align-items: center; text-decoration: none; }
.foot-logo img { height: 40px; width: auto; display: block; }
.foot-logo-text { font-family: var(--display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; }
.foot-tax  { color: var(--green); }
.foot-dify { color: var(--white); }
.foot-social { display: flex; align-items: center; justify-content: center; gap: .6rem; order: 3; }
.foot-social-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: none; color: rgba(255,255,255,.4); transition: color .2s, background .2s; }
.foot-ig:hover { color: #E1306C; border-color: #E1306C; background: rgba(225,48,108,.1); }
.foot-tt:hover { color: #69C9D0; border-color: #69C9D0; background: rgba(105,201,208,.1); }
.foot-yt:hover { color: #FF0000; border-color: #FF0000; background: rgba(255,0,0,.1); }
.foot-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; order: 2; }
.foot-links a { text-decoration: none; font-size: .82rem; color: rgba(255,255,255,.35); transition: color .2s; }
.foot-links a:hover { color: rgba(255,255,255,.7); }
.foot-copy  { font-size: .78rem; color: rgba(255,255,255,.35); order: 1; }

/* ── LAYOUT HELPERS ── */
.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: 6rem 2.5rem; }
.section.mint  { background: var(--mint); }
.section.white { background: var(--white); }
.section.dark  { background: var(--black); position: relative; overflow: hidden; }
.page-top { padding-top: 68px; }

.eyebrow {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: .65rem;
}
.sh {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 900; letter-spacing: -.03em;
  color: var(--black); margin-bottom: .75rem; line-height: 1.08;
  -webkit-text-stroke: 0.4px currentColor;
  -webkit-font-smoothing: antialiased;
}
.sh.white { color: var(--white); }
.sh-serif { font-family: 'Urbanist', sans-serif; font-style: normal; font-weight: 900; color: var(--green); letter-spacing: -.03em; -webkit-text-stroke: 0.4px var(--green); }
.sp {
  font-size: .95rem; color: var(--gray-500);
  max-width: 520px; margin-bottom: 2.75rem; line-height: 1.7;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--green); color: var(--white);
  padding: .875rem 2rem; border-radius: 10px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(45,199,109,.28);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,199,109,.38); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--green-border); color: var(--green-dark);
  padding: .825rem 1.75rem; border-radius: 10px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--green); background: var(--green-dim); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--gray-700); font-size: .95rem; font-weight: 600;
  text-decoration: none; transition: color .2s, gap .2s;
}
.btn-ghost:hover { color: var(--black); gap: .7rem; }

/* ── GRIDS ── */
.grid2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1.5px solid var(--gray-100);
  border-radius: 16px; padding: 2rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(45,199,109,.1); border-color: var(--green-border); }
.card.mint-bg { background: var(--mint); border-color: var(--green-border); }

/* ── STATS BAR ── */
.stats-bar { background: var(--black); padding: 3rem 2.5rem; }
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2rem; text-align: center; align-items: start;
}
.stat-n { font-family: 'Urbanist', sans-serif; font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; -webkit-text-stroke: 0.4px currentColor; color: var(--white); line-height: 1; margin-bottom: .4rem; display: flex; align-items: baseline; gap: .3rem; justify-content: center; animation: statFloat 3.5s ease-in-out infinite; }
.stat-suf { font-family: 'Urbanist', sans-serif; font-size: 1rem; font-weight: 900; color: var(--white); letter-spacing: -.02em; }
.stat-n { will-change: transform; }
.stat-l { font-size: .82rem; color: rgba(255,255,255,.4); }
@keyframes statFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes statFloatStrong {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.stat-n--strong { animation-name: statFloatStrong; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--mint);
  padding: 4rem 2.5rem 3.25rem;
  border-bottom: 1px solid var(--green-border);
}
.page-hero .wrap { display: flex; flex-direction: column; }
.page-hero .eyebrow { margin-bottom: .55rem; }
.page-hero h1 {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 900; letter-spacing: -.03em;
  color: var(--black); line-height: 1.08; margin-bottom: 1rem;
  -webkit-text-stroke: 0.4px currentColor;
}
.page-hero h1 em { color: var(--green); }
.page-hero p { font-size: .95rem; color: var(--gray-500); max-width: 540px; line-height: 1.7; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── CTA GLOW ── */
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 25% 50%, rgba(45,199,109,.18) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 50%, rgba(45,199,109,.1) 0%, transparent 55%);
}
.cta-center { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto; }
.cta-sub { font-size: 1rem; color: rgba(255,255,255,.5); margin-bottom: 2.5rem; line-height: 1.8; }

/* ── BADGE ── */
.badge-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-dim); border: 1px solid var(--green-border);
  color: var(--green-dark); padding: .45rem 1rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700; margin-bottom: 1.75rem;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ── NAV RIGHT ── */
.nav-right { display: flex; align-items: center; gap: .75rem; }

/* ── HAMBURGER ── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 6px;
  border-radius: 8px; transition: background .2s;
}
.nav-burger:hover { background: var(--mint); }
.nav-burger span {
  display: block; height: 2px; background: var(--black);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; top: 72px; z-index: 98;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 2rem 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; width: 100%; max-width: 320px; }
.mobile-menu ul li { border-bottom: 1px solid var(--gray-100); }
.mobile-menu ul li:first-child { border-top: 1px solid var(--gray-100); }
.mobile-menu ul a {
  display: block; padding: 1.1rem 0;
  font-size: 1.15rem; font-weight: 600; color: var(--black);
  text-decoration: none; transition: color .2s;
}
.mobile-menu ul a:hover { color: var(--green-dark); }
.mobile-menu .btn-primary { width: 100%; max-width: 320px; justify-content: center; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  /* nav */
  nav { padding: 0 1.25rem; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links { display: none; }
  .mobile-menu { display: flex; }

  /* layout */
  .section { padding: 3.5rem 1.25rem; }
  .page-hero { padding: 4rem 1.25rem 3rem; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
  .foot-inner { flex-direction: column; gap: .25rem; text-align: center; padding: 0; }
  .foot-links { justify-content: center; column-gap: 1rem; row-gap: .15rem; }
  .foot-copy { font-size: .7rem; }
  .cta-sub { font-size: .88rem; }
  .sh { font-size: clamp(1.55rem, 7vw, 1.85rem); }
  .sp { margin-bottom: 2rem; }

  /* overflow safety */
  *, *::before, *::after { max-width: 100%; }
  img, video, svg { max-width: 100%; height: auto; }

  /* service cards: always show title + link on mobile */
  .svc-body h3 { margin-bottom: .85rem !important; }
  .svc-body p  { opacity: 1 !important; transform: translateY(0) !important; }
  .svc-lnk     { opacity: 1 !important; transform: translateY(0) !important; }
}

@media (max-width: 480px) {
  .stat-n { font-size: 2rem; }
  /* ensure wrap has padding if used outside sections */
  .wrap { padding-left: 1rem; padding-right: 1rem; }
}
