/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { min-height: 100dvh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
svg { display: block; flex-shrink: 0; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============ TOKENS ============ */
:root {
  --teal: #1E809A;
  --teal-dark-1: #155E72;
  --teal-dark-2: #0D3D4A;
  --teal-light-1: #4FA8BE;
  --teal-light-2: #7FC4D3;
  --teal-light-3: #B8DFE9;
  --ice: #E0F3F8;
  --ink: #1A1A1A;
  --gray: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(13,61,74,0.06), 0 1px 3px rgba(13,61,74,0.08);
  --shadow-md: 0 8px 24px rgba(13,61,74,0.10);
  --shadow-lg: 0 24px 64px rgba(13,61,74,0.16);

  --container: 1200px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.5rem); font-weight: 500; }
p { color: var(--gray); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow--dark { color: var(--teal-light-1); }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head h2 { color: var(--ink); }
.section-head__sub { margin-top: 12px; font-size: 1.1rem; }

section { padding: 96px 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 220ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark-1); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,128,154,0.35); }
.btn--ghost { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn--ghost:hover { background: var(--ice); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============ ICONS ============ */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--teal);
  flex-shrink: 0;
}
.icon-badge svg { stroke: currentColor; stroke-width: 1.5; fill: none; }
.icon-badge--lg { width: 60px; height: 60px; border-radius: 16px; }

/* ============ REVEAL ANIMATION ============ */
/* Scoped to .js-anim (set by an inline head script) so content stays fully visible
   by default if JS fails or is blocked — animation is additive, never load-bearing.
   --i (set inline per element) staggers siblings inside a grid, capped so long grids don't drag. */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 640ms cubic-bezier(0.16,1,0.3,1), transform 640ms cubic-bezier(0.16,1,0.3,1);
  transition-delay: min(calc(var(--i, 0) * 70ms), 480ms);
}
html.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-light-1), var(--teal));
  z-index: 200;
  pointer-events: none;
}

/* ============ NAV ============ */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px 0;
  transition: padding 320ms cubic-bezier(0.16,1,0.3,1);
}
.nav-wrap.is-scrolled { padding-top: 8px; }
.nav {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 32px 8px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 320ms ease, background-color 320ms ease;
}
.nav-wrap.is-scrolled .nav { background: rgba(255,255,255,0.95); box-shadow: var(--shadow-md); }
.nav__logo img { height: 56px; width: auto; transition: height 320ms ease; }
.nav-wrap.is-scrolled .nav__logo img { height: 40px; }
.nav__links { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--ink); transition: color 150ms ease; }
.nav__links a:hover { color: var(--teal); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; padding: 6px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-width: 1120px;
  margin: 8px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}
.nav__mobile a { padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.nav__mobile a:hover { background: var(--ice); }
.nav__mobile .btn { margin-top: 8px; }
.nav__mobile.is-open { display: flex; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 128px 0 64px;
  overflow: clip;
}
.hero__mark {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 720px;
  height: 720px;
  background: url('../assets/isotipo.png') no-repeat center / contain;
  opacity: 0.07;
  transform: rotate(8deg);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% 40% -10%;
  background: radial-gradient(60% 60% at 75% 20%, var(--ice) 0%, rgba(224,243,248,0) 70%);
  z-index: -1;
}
.hero > .container { width: 100%; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  align-items: center;
  gap: 56px;
}
.hero__sub { font-size: 1.15rem; max-width: 46ch; margin-top: 20px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hero__proof { margin-top: 24px; font-size: 0.88rem; color: var(--gray); }

/* --- Hero dashboard mockup --- */
.hero__visual { position: relative; perspective: 1200px; min-width: 0; }
.frame {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.frame__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #FBFEFF;
}
.frame__dots { display: flex; gap: 6px; }
.frame__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.frame__search {
  flex: 1;
  background: var(--ice);
  color: var(--teal-dark-1);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.frame__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.frame__body { display: flex; }
.frame__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  background: #FBFEFF;
}
.frame__side-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--gray);
}
.frame__side-icon svg { stroke: currentColor; stroke-width: 1.5; fill: none; }
.frame__side-icon--active { background: var(--teal); color: var(--white); }
.frame__main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-width: 0; }
.kpi {
  background: var(--ice);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi__label { font-size: 0.68rem; color: var(--teal-dark-1); font-weight: 500; }
.kpi__value { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.kpi__delta { font-size: 0.65rem; color: var(--teal); }

.chart-card { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.chart-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; font-size: 0.72rem; font-weight: 600; margin-bottom: 8px; }
.chart-card__tag { color: var(--gray); font-weight: 400; font-size: 0.65rem; white-space: nowrap; }
.chart-svg { width: 100%; height: 64px; display: block; }

.agenda-card { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.agenda-row { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; }
.agenda-time { font-weight: 600; color: var(--ink); width: 40px; flex-shrink: 0; }
.agenda-name { flex: 1; min-width: 0; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 0.62rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; flex-shrink: 0; }
.badge--ok { background: #E3F5EC; color: #1B7A46; }
.badge--wait { background: #FEF3E2; color: #B4690E; }

/* ============ STATS ============ */
.stats { background: var(--ice); padding: 72px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 1.6rem + 1vw, 2.6rem); color: var(--teal); font-variant-numeric: tabular-nums; }
.stat__label { display: block; font-size: 0.88rem; color: var(--teal-dark-2); margin-top: 4px; }
.stats__caption { text-align: center; margin: 56px 0 28px; font-size: 0.85rem; color: var(--teal-dark-1); font-weight: 500; }

.logo-strip-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-strip {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  gap: 48px;
  animation: marquee 32s linear infinite;
}
.logo-strip-wrap:hover .logo-strip { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-strip span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal-dark-2);
  opacity: 0.45;
  filter: grayscale(1);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 200ms ease, filter 200ms ease;
}
.logo-strip span:hover { opacity: 1; filter: grayscale(0); }

/* ============ PAIN POINTS ============ */
.pains { background: var(--teal-dark-2); color: var(--white); }
.pains .section-head h2 { color: var(--white); }
.pains__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform 420ms cubic-bezier(0.16,1,0.3,1), border-color 420ms ease, box-shadow 420ms ease, background-color 420ms ease;
}
.pain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(127,196,211,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 380ms ease;
}
.pain-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(127,196,211,0.5);
  background-color: rgba(255,255,255,0.09);
  box-shadow: 0 24px 48px rgba(0,0,0,0.32), 0 0 0 1px rgba(127,196,211,0.15);
}
.pain-card:hover::before { opacity: 1; }
.pain-card p { position: relative; z-index: 1; color: rgba(255,255,255,0.82); font-size: 1rem; }
.pains .icon-badge {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.1);
  color: var(--teal-light-2);
  transition: transform 420ms cubic-bezier(0.34,1.56,0.64,1), background-color 300ms ease, color 300ms ease;
}
.pain-card:hover .icon-badge { transform: rotate(-8deg) scale(1.12); background: var(--teal-light-1); color: var(--teal-dark-2); }

/* ============ SOLUTION ============ */
.solution { background: var(--ice); }
.solution__inner { max-width: 720px; text-align: center; margin: 0 auto; }
.solution h2 { margin-bottom: 20px; }
.solution p { font-size: 1.15rem; color: var(--teal-dark-1);}

/* ============ PILLARS ============ */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.pillar:first-of-type { border-top: none; }
.pillar--rev .pillar__copy { order: 2; }
.pillar--rev .pillar__visual { order: 1; }
.pillar__copy p { margin-top: 16px; font-size: 1.05rem; }
.pillar__visual { display: flex; justify-content: center; }
.mini-frame {
  width: 100%;
  max-width: 420px;
  background: var(--ice);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.hce-card { background: var(--white); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-md); }
.hce-card__head { display: flex; align-items: center; gap: 12px; }
.hce-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 600; flex-shrink: 0; }
.hce-card__head strong { display: block; font-size: 0.92rem; }
.hce-card__head small { color: var(--gray); font-size: 0.72rem; }
.hce-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag { background: var(--ice); color: var(--teal-dark-1); font-size: 0.68rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.hce-timeline { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.hce-item { font-size: 0.78rem; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.hce-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

.agenda-week { background: var(--white); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-md); }
.agenda-week__head { display: grid; grid-template-columns: repeat(5,1fr); font-size: 0.68rem; color: var(--gray); font-weight: 500; text-align: center; margin-bottom: 8px; }
.agenda-week__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.slot { display: block; height: 20px; border-radius: 5px; background: var(--ice); }
.slot--full { background: var(--teal); }
.agenda-week__note { margin-top: 14px; font-size: 0.75rem; color: var(--teal-dark-1); display: flex; align-items: center; gap: 6px; }
.agenda-week__note svg { stroke: currentColor; stroke-width: 1.5; fill: none; }

.invoice-card { background: var(--white); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-md); }
.invoice-card__head { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 600; padding-bottom: 12px; border-bottom: 1px dashed var(--border); margin-bottom: 12px; }
.invoice-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gray); padding: 6px 0; }
.invoice-row--total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--ink); }

.report-card { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-md); }
.report-bars { display: flex; align-items: flex-end; gap: 10px; height: 90px; }
.report-bars span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--teal-light-1), var(--teal)); border-radius: 4px 4px 0 0; }
.report-callout { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.report-callout__num { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--teal); }
.report-callout__label { font-size: 0.78rem; color: var(--gray); }

/* Reusable small annotation line under any mini-frame card */
.mini-note { margin-top: 12px; font-size: 0.75rem; color: var(--teal-dark-1); display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
.mini-note svg { stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0; margin-top: 1px; }

.hce-files { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hce-file { display: flex; align-items: center; gap: 4px; background: var(--ice); color: var(--teal-dark-1); font-size: 0.68rem; font-weight: 500; padding: 4px 8px; border-radius: 6px; }
.hce-file svg { stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0; }

.portal-card { background: var(--white); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-md); }
.portal-card__head { display: flex; align-items: center; gap: 12px; }
.portal-card__head strong { display: block; font-size: 0.92rem; }
.portal-card__head small { color: var(--gray); font-size: 0.72rem; }
.portal-section { margin-top: 16px; }
.portal-label { font-size: 0.72rem; color: var(--gray); font-weight: 500; margin-bottom: 8px; }
.portal-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-slot { font-size: 0.75rem; font-weight: 500; color: var(--teal-dark-1); background: var(--ice); border-radius: 8px; padding: 8px 12px; }
.portal-slot--active { background: var(--teal); color: var(--white); }
.portal-file { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--gray); padding: 8px 0; border-top: 1px solid var(--border); }
.portal-file:first-of-type { border-top: none; }
.portal-file svg:first-child { stroke: var(--teal); stroke-width: 1.5; fill: none; flex-shrink: 0; }
.portal-file span { flex: 1; min-width: 0; }
.portal-file__dl { stroke: var(--gray); stroke-width: 1.5; fill: none; transform: rotate(90deg); flex-shrink: 0; }

.queue-card { background: var(--white); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-md); }
.queue-card__head { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--ink); padding-bottom: 12px; border-bottom: 1px dashed var(--border); margin-bottom: 16px; }
.queue-card__head svg { stroke: var(--teal); stroke-width: 1.5; fill: none; flex-shrink: 0; }
.queue-now { background: var(--ice); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.queue-now__label { font-size: 0.68rem; color: var(--teal-dark-1); font-weight: 500; }
.queue-now__ticket { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: var(--teal); }
.queue-now__name { font-size: 0.78rem; color: var(--teal-dark-2); }
.queue-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.queue-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--gray); padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.queue-ticket { font-family: var(--font-head); font-weight: 600; color: var(--ink); }

/* ============ MODULES ============ */
.modules { background: var(--ice); }
.modules__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module-card svg { stroke: var(--teal); stroke-width: 1.5; fill: none; flex-shrink: 0; }

/* ============ SPECIALTIES ============ */
.specialty__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.specialty-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  transition: transform 380ms cubic-bezier(0.16,1,0.3,1), border-color 380ms ease, box-shadow 380ms ease;
}
.specialty-card--active { border-color: var(--teal); box-shadow: var(--shadow-md); }
.specialty-card:not(.specialty-card--active):hover { transform: translateY(-6px); border-color: var(--teal-light-2); box-shadow: var(--shadow-md); }
.specialty-card h3 { margin: 18px 0 8px; }
.specialty__note { text-align: center; margin-top: 40px; font-size: 1.05rem; }
.specialty__note strong { color: var(--teal-dark-1); }

/* ============ STEPS ============ */
.steps { background: var(--white); }
.steps__track { position: relative; max-width: 760px; margin: 0 auto 8px; }
.steps__track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16.6667%;
  width: 66.6667%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--border);
  background-image: linear-gradient(to right, var(--teal-light-3) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
}
.steps__marks { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.step__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
}
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  transition: transform 380ms cubic-bezier(0.16,1,0.3,1), border-color 380ms ease, box-shadow 380ms ease;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--teal-light-2); box-shadow: var(--shadow-md); }
.step-card h3 { margin: 18px 0 8px; font-size: 1.1rem; }
.step-card > p { font-size: 0.9rem; margin-bottom: 20px; }
.step-card__list { display: flex; flex-direction: column; gap: 10px; }
.step-card__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--gray); }
.step-card__list svg { stroke: var(--teal); stroke-width: 2; fill: none; margin-top: 2px; flex-shrink: 0; }

/* ============ TESTIMONIALS ============ */
.testimonial-featured {
  background: var(--ice);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
}
.testimonial-featured p { font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; color: var(--teal-dark-2); line-height: 1.5; }
.testimonial-featured__by { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.testimonial-featured__by strong { display: block; font-size: 0.95rem; }
.testimonial-featured__by small { color: var(--gray); font-size: 0.82rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: transform 380ms cubic-bezier(0.16,1,0.3,1), box-shadow 380ms ease, border-color 380ms ease; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal-light-2); }
.testimonial-card p { color: var(--ink); font-size: 0.95rem; }
.testimonial-card__by { display: flex; align-items: center; gap: 12px; }
.testimonial-card__by strong { display: block; font-size: 0.88rem; }
.testimonial-card__by small { color: var(--gray); font-size: 0.78rem; }
.testimonial-card .avatar { width: 38px; height: 38px; font-size: 0.72rem; }

/* ============ WHY ============ */
.why { background: var(--ice); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; transition: transform 380ms cubic-bezier(0.16,1,0.3,1), box-shadow 380ms ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-card h3 { margin: 18px 0 8px; font-size: 1.1rem; }
.why-card p { font-size: 0.9rem; }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--border); transition: background-color 320ms ease; }
.faq-item.is-open { background: linear-gradient(90deg, rgba(30,128,154,0.05), transparent 60%); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 16px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  transition: transform 160ms ease;
}
.faq-item__q:active { transform: scale(0.994); }
.faq-item__q span { transition: color 280ms ease; }
.faq-item.is-open .faq-item__q span { color: var(--teal-dark-1); }
.faq-item__q svg { stroke: var(--teal); stroke-width: 1.5; fill: none; transition: transform 420ms cubic-bezier(0.34,1.56,0.64,1); flex-shrink: 0; }
.faq-item__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 440ms cubic-bezier(0.16,1,0.3,1);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner { overflow: hidden; }
.faq-item__a p {
  padding: 0 16px 22px;
  font-size: 0.98rem;
  max-width: 68ch;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 320ms ease 60ms, transform 320ms cubic-bezier(0.16,1,0.3,1) 60ms;
}
.faq-item.is-open .faq-item__a p { opacity: 1; transform: translateY(0); }

/* ============ FINAL CTA ============ */
.cta-final { background: var(--teal-dark-2); color: var(--white); }
.cta-final__inner { max-width: 640px; text-align: center; margin: 0 auto; }
.cta-final h2 { color: var(--white); margin-bottom: 16px; }
.cta-final p { color: rgba(255,255,255,0.78); font-size: 1.1rem; }
.cta-final__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.cta-final__contact { margin-top: 28px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ============ LEGAL PAGES ============ */
.legal { padding: 140px 0 96px; }
.legal-content { max-width: 760px; }
.legal-updated { font-size: 0.85rem; color: var(--gray); margin-bottom: 32px; }
.legal-content p { margin-bottom: 16px; font-size: 1rem; }
.legal-content h2 { color: var(--ink); margin: 40px 0 14px; font-size: 1.3rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content ul, .legal-content ol { padding-left: 1.4em; margin: 0 0 16px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 8px; color: var(--gray); }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--teal-dark-1); }
.legal-toc { background: var(--ice); border-radius: var(--radius-lg); padding: 24px 28px; margin: 8px 0 48px; }
.legal-toc h2 { margin: 0 0 12px; font-size: 1rem; font-family: var(--font-head); font-weight: 600; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc li { margin-bottom: 6px; color: var(--teal-dark-2); }
.legal-toc a { color: var(--teal-dark-1); font-weight: 500; text-decoration: none; }
.legal-toc a:hover { color: var(--teal); text-decoration: underline; }

/* ============ FOOTER ============ */
.footer { background: var(--white); border-top: 1px solid var(--border); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer__brand img { height: 100px; margin-bottom: 16px; }
.footer__brand p { font-size: 0.88rem; max-width: 32ch; }
.footer__col h4 { font-family: var(--font-head); font-size: 0.85rem; margin-bottom: 16px; color: var(--ink); }
.footer__col a { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--gray); padding: 6px 0; }
.footer__col a:hover { color: var(--teal); }
.footer__col a svg { stroke: currentColor; stroke-width: 1.5; fill: none; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--gray);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--teal); }

/* ============ WHATSAPP FAB ============ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 180ms ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .pillar, .pillar--rev { grid-template-columns: 1fr; }
  .pillar__copy, .pillar--rev .pillar__copy { order: 1; }
  .pillar__visual, .pillar--rev .pillar__visual { order: 2; }
  .modules__grid { grid-template-columns: repeat(2, 1fr); }
  .specialty__grid, .why__grid, .testimonial__grid, .steps__grid { grid-template-columns: 1fr 1fr; }
  .pains__grid { grid-template-columns: 1fr 1fr; }
  .steps__track { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1156px) {
  section { padding: 64px 0; }
  .hero { padding: 104px 0 48px; }
  .legal { padding: 112px 0 64px; }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav { justify-content: space-between; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .modules__grid { grid-template-columns: 1fr; }
  .specialty__grid, .why__grid, .testimonial__grid, .pains__grid, .steps__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn, .cta-final__actions .btn { width: 100%; }
  .hero__ctas, .cta-final__actions { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .testimonial-featured { padding: 28px; }
  .testimonial-featured p { font-size: 1.1rem; }
  .kpi-row { grid-template-columns: 1fr; }
}

/* ---- Small phones down to 320px ---- */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  section { padding: 48px 0; }
  .hero { padding: 96px 0 40px; }
  .legal { padding: 100px 0 48px; }
  .legal-toc { padding: 20px 20px; }
  .hero__sub { font-size: 1.02rem; }
  .hero__proof { font-size: 0.8rem; }
  .nav-wrap { padding: 10px 12px 0; }
  .nav-wrap.is-scrolled { padding-top: 8px; }
  .nav { padding: 8px 8px 8px 16px; gap: 10px; }
  .nav__logo img, .nav-wrap.is-scrolled .nav__logo img { height: 56px; }
  .frame__side { display: none; }
  .frame__main { padding: 14px; }
  .kpi { padding: 10px; }
  .stats__grid { gap: 20px 12px; }
  .stat__num { font-size: 1.7rem; }
  .stats__caption { margin: 40px 0 20px; }
  .logo-strip { gap: 32px; }
  .pain-card, .why-card, .testimonial-card, .step-card { padding: 20px; }
  .testimonial-featured { padding: 18px; }
  .testimonial-featured p { font-size: 0.98rem; }
  .specialty-card { padding: 22px; }
  .module-card { padding: 14px 16px; }
  .footer__brand img { height: 56px; }
  .whatsapp-fab { width: 48px; height: 48px; bottom: 16px; right: 16px; }
}
