/* ============================================================
   PERSI CONSULTORES — v3 · Quantitative
   Bright, modern fintech. Numbers as the visual language.
   Brand teal #00959b committed throughout.
   ============================================================ */

:root {
  /* Brand — original Persi teal #00959b */
  --teal:        #00959b;
  --teal-deep:   #007278;
  --teal-soft:   #e6f4f5;
  --teal-mist:   #f3fafb;
  --teal-line:   #b8dde0;

  /* Neutrals — warm-cool ink on paper */
  --paper:       #fafaf7;
  --paper-warm:  #f4f3ee;
  --surface:     #ffffff;
  --surface-raised: #ffffff;

  --ink:         #0d1418;        /* primary text */
  --ink-soft:    #2c3640;        /* secondary text */
  --ash:         #5b6671;        /* muted */
  --ash-light:   #8a949e;        /* hint */
  --rule:        #e2e1da;        /* hairlines */
  --rule-soft:   #ecebe4;

  /* Functional accents */
  --pos:         #1e9b5a;        /* gain · for positive deltas */
  --pos-soft:    #e7f5ed;
  --neg:         #c83a3a;
  --amber:       #c8841a;        /* warm secondary accent */

  /* Type */
  --display: "Manrope", "Helvetica Neue", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing */
  --container: 1320px;
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);

  /* Motion */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "cv11", "tnum";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--teal); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Mono utilities */
.mono { font-family: var(--mono); font-feature-settings: "tnum", "zero", "ss01"; letter-spacing: -0.01em; }
.tnum { font-feature-settings: "tnum", "zero"; }

.tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.kbd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 4px;
  color: var(--ink-soft);
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(250, 250, 247, 0.85);
  border-bottom: 1px solid var(--rule);
}
.nav-ticker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.nav-ticker .ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 50s linear infinite;
  padding-left: 100%;
}
.nav-ticker .ticker-track span { color: rgba(255, 255, 255, 0.7); }
.nav-ticker .ticker-track strong { color: var(--teal); font-weight: 500; }
.nav-ticker .ticker-track em { color: var(--paper); font-style: normal; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
}
.nav-brand img {
  height: 60px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 200ms var(--ease-quart);
  position: relative;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -24px;
  height: 2px;
  background: var(--teal);
}
.nav-cta {
  font-size: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 200ms var(--ease-quart), transform 200ms var(--ease-quart);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-cta:hover { background: var(--teal); transform: translateY(-1px); }

.nav-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 28px; height: 28px;
    align-items: stretch; justify-content: center;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); }
  .mobile-open .nav-mobile { display: block; }
  .nav-mobile {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem var(--gutter);
  }
  .nav-mobile a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 16px;
  }
  .nav-mobile a:last-child { border-bottom: none; }
}

/* ============== HERO ============== */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: 0.35em;
  background: var(--teal);
  opacity: 0.22;
  z-index: -1;
}
.hero h1 strong { color: var(--teal); font-weight: 600; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--teal); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 149, 155, 0.18);
  animation: dot-pulse 1.8s var(--ease-quart) infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 149, 155, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 149, 155, 0.06); }
}

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  font-size: 14.5px;
  font-weight: 500;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 220ms var(--ease-quart);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  border-color: var(--rule);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow { transition: transform 220ms var(--ease-expo); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Hero stat dashboard */
.hero-dash {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
  position: relative;
  box-shadow: 0 2px 0 var(--rule-soft);
}
.hero-dash::before {
  content: "Q3 · 2026 / VISTA EJECUTIVA";
  position: absolute;
  top: -10px; left: 1.25rem;
  background: var(--paper);
  padding: 0 0.6rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ash);
}
.dash-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px dotted var(--rule);
}
.dash-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-row:first-child { padding-top: 0; }
.dash-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ash);
}
.dash-label .label-num {
  color: var(--ink);
  margin-right: 0.4rem;
  font-weight: 500;
}
.dash-value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dash-value .delta {
  font-size: 0.7em;
  color: var(--pos);
  background: var(--pos-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.dash-spark {
  height: 32px;
  width: 80px;
}
.dash-spark path { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dash-spark .spark-area { fill: rgba(0, 149, 155, 0.08); stroke: none; }

/* ============== SECTIONS ============== */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.section-alt { background: var(--surface); border-block: 1px solid var(--rule); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink .section-lede { color: rgba(250, 250, 247, 0.72); }
.section-ink .tag { color: var(--teal); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  align-items: end;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}
.section-head h2 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 22ch;
}
.section-head h2 em { font-style: normal; color: var(--teal); }
.section-head .section-lede {
  grid-column: 2;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 1.25rem;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 0.75rem; }
  .section-head .section-num { border-top: none; padding-top: 0; }
  .section-head .section-lede { grid-column: 1; }
}

/* ============== STATEMENT (P&L style ledger) ============== */
.statement {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.statement-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.4rem;
  position: relative;
}
.statement-row + .statement-row { border-top: 1px solid var(--rule-soft); }
.statement-row .row-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.08em;
}
.statement-row .row-title {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.statement-row .row-leader {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--rule);
  letter-spacing: 0.5em;
  margin-inline: 0.5rem;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.statement-row .row-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.statement-row .row-desc {
  grid-column: 2 / -1;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 70ch;
}
.statement-row.row-totals {
  border-top: 2px solid var(--ink) !important;
  margin-top: 1rem;
  padding-top: 1.5rem;
}
.statement-row.row-totals .row-title { font-weight: 600; }
.statement-row.row-totals .row-meta { color: var(--ink); font-size: 1.1rem; }
.statement-row .title-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .statement-row { grid-template-columns: 40px 1fr; }
  .statement-row .row-meta { grid-column: 2; margin-top: 0.25rem; }
  .statement-row .row-leader { display: none; }
}

/* ============== SPLIT ============== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 1.25rem; line-height: 1.65; max-width: 60ch; }
.split-img {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  background: var(--teal-mist);
  border: 1px solid var(--rule);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* Quote callout */
.quote {
  background: var(--teal);
  color: #fff;
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -1rem; left: 1rem;
  font-size: 12rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.12);
  font-weight: 400;
}
.quote p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
  position: relative;
  max-width: 50ch;
}
.quote-cap {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 1.5rem;
  opacity: 0.78;
}

/* ============== METRIC CARDS (numbers showcase) ============== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 880px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 180px;
  justify-content: space-between;
}
.metric .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric .label .badge {
  font-size: 10px;
  background: var(--pos-soft);
  color: var(--pos);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.metric .value {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.metric .value sup { font-size: 0.4em; color: var(--teal); margin-left: 0.1em; vertical-align: super; }
.metric .sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ============== VALUES CHART ============== */
.values-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: end;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) { .values-chart { grid-template-columns: repeat(3, 1fr); } }
.bar {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: filter 240ms var(--ease-quart);
  cursor: default;
}
.bar:hover { filter: brightness(1.08); }
.bar .bar-label {
  position: absolute;
  bottom: -28px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ash);
}
.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
}
@media (max-width: 720px) { .values-list { grid-template-columns: repeat(2, 1fr); } }
.values-list .v {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.values-list .v .vnum {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
}

/* ============== CLIENTS ============== */
.clients {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  background: var(--paper-warm);
  border-block: 1px solid var(--rule);
  overflow: hidden;
}
.clients-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  padding-inline: var(--gutter);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  gap: 1rem;
  flex-wrap: wrap;
}
.clients-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}
.clients-head h2 em { font-style: normal; color: var(--teal); }
.clients-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ash);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marquee {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: marquee 38s linear infinite;
}
.clients:hover .marquee { animation-play-state: paused; }
.marquee-cell {
  flex: 0 0 auto;
  width: 200px;
  height: 100px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 200ms var(--ease-quart), transform 200ms var(--ease-quart);
}
.marquee-cell:hover { border-color: var(--teal); transform: translateY(-2px); }
.marquee-cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 240ms var(--ease-quart);
}
.marquee-cell:hover img { filter: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ============== CTA ============== */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 600;
  max-width: 22ch;
  color: var(--paper);
}
.cta-band h2 em { color: var(--teal); font-style: normal; }
.cta-band p {
  margin-top: 0.85rem;
  color: rgba(250, 250, 247, 0.7);
  font-size: 1rem;
  max-width: 50ch;
}
.cta-band .btn-primary { background: var(--teal); }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 149, 155, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

/* ============== FOOTER ============== */
footer {
  background: var(--paper-warm);
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { max-width: 36ch; }
.footer-brand img { height: 72px; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }
footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ash);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
footer ul a {
  font-size: 0.92rem;
  color: var(--ink);
  transition: color 180ms;
}
footer ul a:hover { color: var(--teal); }
.footer-base {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
@media (max-width: 560px) { .footer-base { flex-direction: column; gap: 0.5rem; } }

/* ============== WHATSAPP FLOAT ============== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: var(--teal);
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0, 149, 155, 0.32), 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 240ms var(--ease-expo);
}
.wa-float:hover { transform: scale(1.08); background: var(--teal-deep); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  opacity: 0.5;
  animation: pulse 2.4s var(--ease-expo) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============== PAGE HEAD ============== */
.page-head {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}
.page-head .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ash);
  margin-bottom: 1.25rem;
}
.page-head .crumbs span { color: var(--teal); }
.page-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-weight: 600;
  max-width: 18ch;
}
.page-head h1 em { color: var(--teal); font-style: normal; }
.page-head .lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
}

/* ============== SERVICE DETAIL ============== */
.service-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  transition: border-color 220ms var(--ease-quart), box-shadow 220ms var(--ease-quart);
}
.service-card:hover {
  border-color: var(--teal-line);
  box-shadow: 0 4px 24px rgba(0, 149, 155, 0.06);
}
@media (max-width: 880px) { .service-card { grid-template-columns: 1fr; } }
.service-card .meta-col { display: flex; flex-direction: column; gap: 1.25rem; }
.service-card .num {
  font-family: var(--mono);
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--teal);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.service-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.service-card .body p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 64ch;
}
.service-card .body ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dotted var(--rule);
}
@media (max-width: 560px) { .service-card .body ul { grid-template-columns: 1fr; } }
.service-card .body li {
  font-size: 0.92rem;
  color: var(--ink);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.45;
}
.service-card .body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 600;
}
.service-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--teal-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

/* ============== FAQ ============== */
.faq {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 1.5rem 1.75rem;
  gap: 1rem;
  transition: background 200ms var(--ease-quart);
}
.faq-q:hover { background: var(--teal-mist); }
.faq-q .plus {
  font-family: var(--mono);
  color: var(--teal);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 280ms var(--ease-quart);
  font-weight: 400;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease-expo);
  color: var(--ink-soft);
}
.faq-a-inner { padding: 0 1.75rem 1.5rem; line-height: 1.65; max-width: 70ch; }
.faq-item.open .faq-a { max-height: 600px; }

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
form.contact-form { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash);
}
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  transition: border-color 200ms var(--ease-quart), box-shadow 200ms var(--ease-quart);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 149, 155, 0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ash);
  text-transform: uppercase;
}
.contact-info-block { padding-block: 1rem; border-bottom: 1px dotted var(--rule); }
.contact-info-block:last-child { border-bottom: none; }
.contact-info-block .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ash);
  margin-bottom: 0.35rem;
}
.contact-info-block .value {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-info-block .value a:hover { color: var(--teal); }
.contact-info-block .value.mono { font-family: var(--mono); font-size: 1rem; }

/* Map */
.map-block {
  height: 360px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.map-block iframe { width: 100%; height: 100%; border: 0; }

/* Placeholder */
.placeholder {
  border: 1px dashed var(--rule);
  background: var(--teal-mist);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
}
.placeholder .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.placeholder p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; font-size: 0.95rem; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-quart), transform 700ms var(--ease-quart);
}
.reveal.in { opacity: 1; transform: none; }

/* Form success */
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--pos-soft);
  color: var(--pos);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.spacer-md { height: 4rem; }
.spacer-lg { height: 6rem; }

/* ============== HOMEPAGE REFINEMENT / SERVICE-FIRST HERO ============== */
.nav-whatsapp {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}
.nav-whatsapp:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper); }

.hero {
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.hero-kicker {
  margin: 0 0 1.4rem;
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(3rem, 6.1vw, 5.75rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  max-width: 12ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 strong { color: var(--teal-deep); font-weight: 700; }
.hero h1 .underline { display: inline; }
.hero h1 .underline::after { display: none; }
.hero-lede { max-width: 51ch; margin-bottom: 2.15rem; line-height: 1.65; }
.hero-actions { align-items: center; gap: 1.5rem; }
.hero .btn { border-radius: 3px; min-height: 3.2rem; }
.text-link {
  color: var(--teal-deep);
  font-size: 0.96rem;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding: 0.35rem 0;
}
.text-link:hover { color: var(--ink); }
.text-link span { display: inline-block; margin-left: 0.3rem; transition: transform 180ms var(--ease-quart); }
.text-link:hover span { transform: translateX(3px); }

/* Persi en línea: one clear paid entry point, not another service-card grid. */
.online-advisory {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  background: var(--teal-mist);
  border-block: 1px solid var(--rule);
}
.online-advisory-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(22rem, 1.2fr);
  gap: clamp(2rem, 9vw, 9rem);
  align-items: start;
}
.online-advisory-intro h2 { margin: 0.85rem 0 0; max-width: 10ch; }
.online-advisory-detail { padding-top: 0.2rem; }
.online-advisory-lede {
  max-width: 54ch;
  margin: 0 0 1.75rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.online-advisory-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.25rem;
  align-items: baseline;
  margin: 0 0 1.75rem;
  padding-block: 1rem;
  border-block: 1px solid color-mix(in oklch, var(--teal-deep) 30%, var(--rule));
  color: var(--teal-deep);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.online-advisory-meta strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: none;
  white-space: nowrap;
}
.online-advisory .btn { border-radius: 3px; }
.online-advisory-note { margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }

.service-index {
  min-height: 31rem;
  padding: 1.5rem 1.65rem;
  border-top: 2px solid var(--ink);
  background-color: var(--ink);
  background-image: url("assets/persi-team-consultation.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-index-title {
  margin: 0 0 0.6rem;
  color: rgba(250, 250, 247, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.service-index ol { list-style: none; margin: 0; padding: 0; max-width: 58%; }
.service-index li { border-top: 1px solid rgba(250, 250, 247, 0.36); }
.service-index li:last-child { border-bottom: 1px solid rgba(250, 250, 247, 0.36); }
.service-index a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  color: var(--paper);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.25;
}
.service-index a:hover { color: #d3f4ef; }
.service-index a span {
  color: #9ee4da;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  padding-top: 0.12rem;
}

/* Turn the former dashboard-like number row into a quiet service promise. */
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.metric {
  min-height: 0;
  padding: 1.25rem 1.25rem 1.25rem 0;
  background: transparent;
  border-top: 1px solid var(--rule);
}
.metric + .metric { padding-left: 1.25rem; }
.metric .value, .metric .label .badge { display: none; }
.metric .label { color: var(--teal-deep); margin-bottom: 0.75rem; }
.metric .sub { font-size: 0.92rem; line-height: 1.55; }

.cta-band {
  min-height: 24rem;
  border-radius: 0;
  background-color: var(--ink);
  background-image: url("assets/persi-client-meeting.png");
  background-position: center;
  background-size: cover;
  grid-template-columns: 1fr minmax(17rem, 0.9fr);
  align-items: end;
}
.cta-band::before {
  inset: 0;
  width: auto;
  height: auto;
  background: linear-gradient(90deg, rgba(25, 31, 31, 0.08) 0%, rgba(25, 31, 31, 0.22) 44%, rgba(25, 31, 31, 0.9) 74%, rgba(25, 31, 31, 0.97) 100%);
}
.cta-band > div, .cta-band > a { position: relative; z-index: 1; grid-column: 2; }
.cta-band > a { justify-self: start; }
.cta-band .btn-primary { border-radius: 3px; background: var(--teal); }
.cta-band .btn-primary:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { max-width: 14ch; }
  .service-index { max-width: 44rem; min-height: 26rem; }
}
@media (max-width: 720px) {
  .nav-whatsapp { display: none; }
  .hero { padding-block: 3.25rem 3rem; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.35rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero .btn { width: 100%; justify-content: center; }
  .online-advisory-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .online-advisory-intro h2 { max-width: 13ch; }
  .online-advisory-meta { grid-template-columns: 1fr auto; gap: 0.5rem 1rem; }
  .online-advisory-meta span:last-child { grid-column: 1 / -1; }
  .online-advisory .btn { width: 100%; justify-content: center; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(odd) { padding-right: 0.75rem; }
  .metric:nth-child(even) { padding-left: 0.75rem; }
  .service-index { padding: 1.25rem; background-position: 62% center; }
  .service-index ol { max-width: 72%; }
  .cta-band { min-height: 31rem; grid-template-columns: 1fr; background-position: 31% center; }
  .cta-band::before { background: linear-gradient(180deg, rgba(25, 31, 31, 0.1) 0%, rgba(25, 31, 31, 0.9) 58%, rgba(25, 31, 31, 0.98) 100%); }
  .cta-band > div, .cta-band > a { grid-column: 1; }
}
@media (max-width: 430px) {
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric + .metric, .metric:nth-child(odd), .metric:nth-child(even) { padding-inline: 0; }
}

/* Full-bleed people-at-work hero. */
.hero {
  min-height: clamp(38rem, 82vh, 52rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background-color: var(--ink);
  background-image: url("assets/persi-team-consultation.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 28, 0.67);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: block; }
.hero-copy { max-width: 43rem; }
.hero-kicker { color: #b5ece4; }
.hero h1 { color: var(--paper); max-width: 13ch; }
.hero h1 strong { color: #a9e9df; }
.hero-lede { color: rgba(250, 250, 247, 0.86); max-width: 49ch; }
.hero .btn-primary { background: #b5ece4; color: var(--ink); border-color: #b5ece4; }
.hero .btn-primary:hover { background: var(--paper); border-color: var(--paper); }
.hero .text-link { color: var(--paper); }
.hero .text-link:hover { color: #b5ece4; }

@media (max-width: 720px) {
  .hero { min-height: 42rem; background-position: 62% center; }
  .hero::before { background: rgba(20, 28, 28, 0.73); }
}

/* The navigation belongs to the opening image, not above it. */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom-color: rgba(250, 250, 247, 0.28);
  backdrop-filter: none;
  transition: background 220ms var(--ease-quart), backdrop-filter 220ms var(--ease-quart), border-color 220ms var(--ease-quart);
}
.nav-brand img { filter: brightness(0) invert(1); }
.nav-links a, .nav-links a.active { color: rgba(250, 250, 247, 0.86); }
.nav-links a:hover { color: var(--paper); }
.nav-links a.active::after { background: #b5ece4; }
.nav-whatsapp { background: rgba(181, 236, 228, 0.95); border-color: #b5ece4; color: var(--ink); }
.nav-whatsapp:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.nav.is-scrolled {
  position: fixed;
  background: rgba(250, 250, 247, 0.96);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(14px);
}
.nav.is-scrolled .nav-brand img { filter: none; }
.nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav.is-scrolled .nav-links a.active, .nav.is-scrolled .nav-links a:hover { color: var(--ink); }
.nav.is-scrolled .nav-links a.active::after { background: var(--teal); }
.nav.is-scrolled .nav-whatsapp { background: var(--teal); border-color: var(--teal); color: var(--paper); }

@media (max-width: 880px) {
  .nav-toggle span { background: var(--paper); }
  .nav.is-scrolled .nav-toggle span { background: var(--ink); }
  .mobile-open .nav { background: var(--ink); border-bottom-color: rgba(250, 250, 247, 0.22); }
  .mobile-open .nav-mobile { background: var(--ink); border-bottom-color: rgba(250, 250, 247, 0.22); }
  .mobile-open .nav-mobile a { color: var(--paper); border-bottom-color: rgba(250, 250, 247, 0.18); }
}

/* A service list should read like a service list, not a dashboard. */
.section-num {
  padding-top: 0;
  border-top: 0;
  color: var(--teal-deep);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}
.statement {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.statement-row {
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.statement-row + .statement-row { border-top: 1px solid var(--rule); }
.statement-row .row-num {
  color: var(--teal-deep);
  font-size: 0.78rem;
  padding-top: 0.35rem;
}
.statement-row .title-box { display: block; }
.statement-row .row-title { display: block; font-size: clamp(1.28rem, 2.2vw, 1.8rem); }
.statement-row .row-leader { display: none; }
.statement-row .row-meta {
  grid-column: 2;
  margin-top: 0.65rem;
  color: var(--teal-deep);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.statement-row .row-desc {
  grid-column: 2;
  margin-top: 0.55rem;
  max-width: 62ch;
}
.statement-row.row-totals { border-top: 1px solid var(--ink) !important; padding-top: 1.75rem; }
.statement-row.row-totals .row-meta { font-size: 0.82rem; color: var(--ink); }

@media (max-width: 560px) {
  .statement-row { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; }
}

/* Values borrow the clarity of a financial statement without inventing data. */
.values-report {
  border-top: 2px solid var(--ink);
}
.values-report-head,
.value-report-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 6vw, 7rem);
}
.values-report-head {
  padding: 0.9rem 0;
  color: var(--ash);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.value-report-row {
  border-top: 1px solid var(--rule);
  padding: clamp(1.25rem, 2vw, 1.75rem) 0;
  align-items: baseline;
}
.value-report-row strong {
  color: var(--teal-deep);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
}
.value-report-row p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 58ch;
}
.firm-overview .section-head { margin-bottom: 2.25rem; }
.firm-overview .metrics { margin-top: 0; }

@media (max-width: 620px) {
  .values-report-head { display: none; }
  .value-report-row { grid-template-columns: 1fr; gap: 0.45rem; }
}
