/* ============================================================
   Cactus Wealth Management — landing v3
   Manual de Identidad oficial · Wealth Management + Retiro + Vida
   Animaciones: typewriter, gradient shift, scroll-trigger, parallax
   ============================================================ */

/* The canonical Cactus tokens are the sole source for palette and type. */
@import url("../brand/cactus/tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--c-amarillo); color: var(--c-verde-deep); }
:focus-visible { outline: 2px solid var(--c-verde); outline-offset: 3px; border-radius: 3px; }
.section--dark :focus-visible, .foot :focus-visible { outline-color: var(--c-amarillo); }

.maatwork-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: currentColor;
}
.maatwork-link:hover { color: var(--c-coral-deep); }
.section--dark .maatwork-link:hover,
.foot .maatwork-link:hover { color: var(--c-amarillo); }

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

/* ============================================================
   BRAND PATTERN — estrellas 8 puntas
   ============================================================ */
.brand-stars {
  position: absolute; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.85'><line x1='20' y1='10' x2='60' y2='70'/><line x1='60' y1='10' x2='20' y2='70'/></g><g fill='%23f7cf47'><circle cx='40' cy='10' r='2'/><circle cx='40' cy='70' r='2'/><circle cx='10' cy='40' r='2'/><circle cx='70' cy='40' r='2'/></g></svg>");
  background-size: 80px 80px;
  background-repeat: repeat;
}
.brand-stars--dark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%2300675b' stroke-width='1' opacity='0.18'><line x1='20' y1='10' x2='60' y2='70'/><line x1='60' y1='10' x2='20' y2='70'/></g><g fill='%23f7cf47' opacity='0.7'><circle cx='40' cy='10' r='2'/><circle cx='40' cy='70' r='2'/><circle cx='10' cy='40' r='2'/><circle cx='70' cy='40' r='2'/></g></svg>");
}

/* Brand twinkle: estrellas con animacion de parpadeo */
.brand-stars--twinkle {
  position: absolute; pointer-events: none; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23f7cf47' stroke-width='1' opacity='0.6'><line x1='40' y1='20' x2='120' y2='140'/><line x1='120' y1='20' x2='40' y2='140'/></g><g fill='%23f7cf47'><circle cx='80' cy='20' r='2.5'/><circle cx='80' cy='140' r='2.5'/><circle cx='20' cy='80' r='2.5'/><circle cx='140' cy='80' r='2.5'/></g></svg>");
  background-size: 160px 160px;
  background-repeat: repeat;
  animation: twinkleDrift 24s linear infinite;
  opacity: .55;
}
@keyframes twinkleDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 160px 160px; }
}

/* Logo */
.brand-logo {
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-logo__mark {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--c-verde);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,103,91,.25);
}
.brand-logo__mark::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23f7cf47' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 27V8'/%3E%3Cpath d='M16 19h-5.5V13'/%3E%3Cpath d='M16 16h5.5V10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 25px 25px;
}
.brand-logo__word {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--c-verde);
  line-height: 1;
}
.brand-logo__word sup { font-size: 8px; opacity: .55; font-weight: 600; }
.brand-logo__tag {
  font-family: var(--f-sans);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--ink-mute);
  text-transform: lowercase;
  margin-top: 1px;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-verde);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow--invert { color: var(--c-amarillo); }
.eyebrow--coral { color: var(--c-coral-deep); }
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(236,115,86,.18);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(236,115,86,.18); }
  50% { box-shadow: 0 0 0 6px rgba(236,115,86,.0); }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease-spring), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .3s var(--ease-spring); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--c-verde);
  color: var(--c-amarillo);
  border-color: var(--c-verde);
}
.btn--primary:hover {
  background: var(--c-verde-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(247,207,71,.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s;
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--yellow {
  background: var(--c-amarillo);
  color: var(--c-verde);
  border-color: var(--c-amarillo);
}
.btn--yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(247,207,71,.4); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.btn--ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.45);
}
.btn--ghost-light:hover { background: white; color: var(--c-verde); border-color: white; transform: translateY(-1px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,242,.88);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled {
  background: rgba(251,248,242,.96);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__links { display: none; gap: 28px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500;
  position: relative;
  color: var(--ink);
  padding: 4px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-coral), var(--c-amarillo));
  transition: width .3s var(--ease-out);
}
.nav__links a:hover { color: var(--c-verde); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-current { color: var(--c-verde); }
.nav__links a.is-current::after { width: 100%; }
.nav__actions { display: none; gap: 8px; }
.nav__burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background .2s;
}
.nav__burger:hover { background: var(--bg-alt); }
.nav__burger span {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__drawer {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 24px 24px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  animation: slideDown .3s var(--ease-out);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav__drawer a {
  padding: 14px 4px;
  font-size: 18px; font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.nav__drawer .btn { margin-top: 14px; align-self: flex-start; }
.nav__drawer[hidden] { display: none; } /* respeta el atributo hidden (UA [hidden] queda pisado por display:flex) */

/* Barra de progreso de lectura — bajo el nav sticky */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; z-index: 51;
  background: linear-gradient(90deg, var(--c-coral), var(--c-amarillo));
  transform: scaleX(0); transform-origin: left;
  transition: transform .1s linear;
}

/* Botón volver-arriba (FAB) */
.to-top {
  position: fixed; z-index: 60;
  right: 20px; bottom: max(20px, env(safe-area-inset-bottom));
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-verde); color: var(--c-amarillo);
  border: 1.5px solid var(--c-verde);
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity .3s, transform .3s var(--ease-spring), visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-verde-deep); transform: translateY(-2px); }
.to-top svg { width: 18px; height: 18px; }
@media (min-width: 720px) {
  .to-top { right: 28px; bottom: max(28px, env(safe-area-inset-bottom)); width: 50px; height: 50px; }
}

/* ============================================================
   HERO — versión animada
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(247,207,71,.12), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(90,177,243,.08), transparent 60%),
    var(--bg);
}
.hero__pattern {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .3;
}
.hero__pattern-inner {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(70,70,70,.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  animation: patternDrift 30s linear infinite;
}
@keyframes patternDrift {
  to { background-position: 28px 28px; }
}
/* Gradient orb flotante */
.hero__orb {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}
.hero__orb--1 {
  top: -120px; right: -100px;
  background: radial-gradient(circle, var(--c-amarillo), transparent 60%);
}
.hero__orb--2 {
  bottom: -160px; left: -80px;
  background: radial-gradient(circle, var(--c-menta), transparent 60%);
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 880px;
}
.hero__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 8px 0 24px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-verde);
  display: inline-block;
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-verde);
  transform-origin: left;
  animation: underlineGrow 1.2s var(--ease-out) 1s both;
}
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Highlight 'actives' con gradiente animado */
.hero__title .hl {
  position: relative; display: inline-block;
  padding: .06em .22em .04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  margin-right: 10px;
  color: var(--c-verde-deep);
  background: linear-gradient(110deg,
    var(--c-amarillo) 0%, var(--c-amarillo) 35%,
    #ffe26e 50%, var(--c-amarillo) 65%, var(--c-amarillo) 100%);
  background-size: 220% 100%;
  background-position: 0% 0%;
  animation: hlShimmer 3.5s ease-in-out infinite;
  box-shadow: 0 2px 0 rgba(236,115,86,.25);
}
@keyframes hlShimmer {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: -100% 0%; }
}
.hero__title .hl::before {
  content: ''; position: absolute; left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: var(--c-coral);
  border-radius: 4px;
  animation: barGrow .8s var(--ease-spring) 0.4s both;
}
@keyframes barGrow {
  from { transform: translateY(-50%) scaleY(0); opacity: 0; }
  to   { transform: translateY(-50%) scaleY(1); opacity: 1; }
}

.hero__lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero__lede strong { color: var(--c-verde); font-weight: 600; }
.hero__lede em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-coral-deep);
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 32px;
}
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__chips li {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  color: var(--c-grafito);
  border: 1px solid var(--line-soft);
  transition: transform .2s, border-color .2s, color .2s;
}
.hero__chips li:hover { transform: translateY(-1px); border-color: var(--c-coral); color: var(--c-verde); }

/* Brief card — flotante, con barras animadas en secuencia */
.hero__card {
  display: block;
  position: relative; z-index: 2;
  margin: 40px auto 0;
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  max-width: 100%;
  transition: transform .5s var(--ease-spring), box-shadow .5s;
}

/* Scroll cue (arrow down) - solo desktop, esquina derecha del hero */
.hero__scroll-cue {
  display: none;
  position: absolute;
  left: 50%; bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-soft);
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  transition: color .2s, transform .4s var(--ease-spring);
  animation: scrollBounce 2.4s ease-in-out infinite;
}
.hero__scroll-cue svg { width: 14px; height: 20px; }
.hero__scroll-cue:hover { color: var(--c-coral); transform: translateX(-50%) translateY(2px); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
.hero__card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-3);
}
@media (min-width: 980px) {
  .hero__card { transform: rotate(-1.8deg); }
}

/* Cluster de cards del hero — varias juntas para dar vida */
.hero__cards {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 430px; margin: 40px auto 0;
}
.hero__cards .hero__card { margin: 0; }
@media (min-width: 980px) {
  .hero__cards { margin-top: 0; justify-self: center; align-self: center; }
}
.card__head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
}
.card__dot {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.card__dot:nth-child(1) { background: var(--c-coral); animation: dotBlink 1.6s ease infinite; }
.card__dot:nth-child(2) { background: var(--c-amarillo); animation: dotBlink 1.6s ease .3s infinite; }
.card__dot:nth-child(3) { background: var(--c-celeste); animation: dotBlink 1.6s ease .6s infinite; }
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
.card__title {
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.card__date {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.card__body { padding: 22px 22px 24px; }
.card__kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--c-coral-deep);
  margin: 0 0 10px;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.card__kicker::before { content: '▸'; font-size: 10px; }
.card__body .card__h3 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.card__body .card__h3 em {
  font-style: italic;
  color: var(--c-verde);
  font-weight: 400;
}
.card__copy {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 14px;
  margin: -4px 0 18px;
}
.card__actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-bottom: 18px;
}
.card__pdf {
  color: var(--c-verde);
  font-family: var(--f-mono);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.card__pdf:hover { color: var(--c-coral-deep); }
.card__foot {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.card__foot::before {
  content: '▸'; color: var(--c-coral); font-size: 10px;
}

/* ============================================================
   ACCESO AL BRIEF SEMANAL
   ============================================================ */
.ticker {
  position: relative;
  background: var(--ink);
  color: white;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ticker__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ticker__copy { min-width: 0; }
.ticker__eyebrow {
  margin: 0 0 4px;
  color: var(--c-amarillo);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ticker__date { margin: 0; color: rgba(255,255,255,.82); font-size: 14px; }
.ticker__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.ticker__link {
  color: white;
  font-family: var(--f-mono);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.ticker__link:hover { color: var(--c-amarillo); border-color: var(--c-amarillo); }

@media (max-width: 540px) {
  .ticker__inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .ticker__actions { gap: 18px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 60px 0; position: relative; overflow: hidden; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--c-verde);
  color: white;
  overflow: hidden;
}
.section--paper { background: var(--bg-paper); }
.section--ink {
  background: #0a221f;
  color: white;
}
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.section__head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-coral-deep);
}
.section--dark .section__head h2 em { color: var(--c-amarillo); }
.section__head p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.section--dark .section__head p { color: rgba(255,255,255,.78); }

/* ============================================================
   FIRMA A+ — subrayado-acento que se dibuja al revelar el header
   ============================================================ */
.section__head h2,
.allocation__title,
#contacto [data-reveal] h2 { position: relative; }
.section__head h2::after,
.allocation__title::after,
#contacto [data-reveal] h2::after {
  content: ''; position: absolute; left: 0; bottom: -10px;
  width: 56px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--c-coral), var(--c-amarillo));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s var(--ease-out) .2s;
}
.section__head.is-in h2::after,
.allocation.is-in .allocation__title::after,
#contacto [data-reveal].is-in h2::after { transform: scaleX(1); }
/* headers centrados → acento centrado */
.section__head--center h2::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.section__head--center.is-in h2::after { transform: translateX(-50%) scaleX(1); }
/* sección oscura → acento cálido sobre verde */
#contacto [data-reveal] h2::after { background: linear-gradient(90deg, var(--c-amarillo), var(--c-menta)); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; gap: 28px; }

/* ============================================================
   MANIFIESTO
   ============================================================ */
.manifest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.manifest__lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.manifest__lede strong {
  font-style: normal;
  font-weight: 700;
  color: var(--c-verde);
}
.manifest__lede em {
  font-style: italic;
  color: var(--c-coral-deep);
}
.manifest__sign {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 20px;
}
.manifest__sign::before {
  content: ''; display: block;
  width: 32px; height: 1px;
  background: var(--c-coral);
}
.frases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.frases__item {
  padding: 18px 20px;
  background: white;
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-coral);
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink);
  position: relative;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.frases__item:hover { transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.frases__item:nth-child(2) { border-left-color: var(--c-amarillo); }
.frases__item:nth-child(3) { border-left-color: var(--c-menta); }
.frases__item:nth-child(4) { border-left-color: var(--c-celeste); }
.frases__item:nth-child(5) { border-left-color: var(--c-lila); }
.frases__item:nth-child(6) { border-left-color: var(--c-rojo); }
.frases__item strong { color: var(--c-verde); font-weight: 600; }
.frases__item em { font-family: var(--f-serif); font-style: italic; color: var(--c-coral-deep); }

/* ============================================================
   SERVICIOS — 3 pilares (Advisory + Retiro + Vida)
   ============================================================ */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.card--service {
  position: relative;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  height: 100%;
  overflow: hidden;
}
.card--service::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c-verde);
  transition: width .3s var(--ease-spring);
}
.card--service:hover::before { width: 8px; }
.card--service:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
/* numeral fantasma editorial */
.card--service::after {
  content: attr(data-num);
  position: absolute; right: 6px; bottom: -38px;
  font-family: var(--f-serif); font-weight: 800;
  font-size: 188px; line-height: 1; letter-spacing: -.05em;
  color: var(--c-verde); opacity: .05;
  pointer-events: none; z-index: 0;
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.card--service:hover::after { opacity: .08; transform: translateY(-6px); }
.card--service > * { position: relative; z-index: 1; }
.card--service--retiro::after { color: #c9a52e; opacity: .1; }
.card--service--retiro:hover::after { opacity: .15; }
.card--service--vida::after { color: var(--c-menta); opacity: .09; }
.card--service--vida:hover::after { opacity: .14; }
.card--service__num {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-coral-deep);
  letter-spacing: .12em;
  font-weight: 500;
}
.card--service__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-coral-deep);
  margin-bottom: 12px;
  font-weight: 500;
}
.card--service h3 {
  font-family: var(--f-serif);
  font-size: 28px;
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -.015em;
}
.card--service h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-verde);
}
.card--service p {
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 15px;
}
.ticks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex-grow: 1; }
.ticks li {
  position: relative; padding-left: 26px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 14px; height: 9px;
  border-left: 2px solid var(--c-verde);
  border-bottom: 2px solid var(--c-verde);
  transform: rotate(-45deg);
  transition: transform .3s;
}
.card--service:hover .ticks li::before { transform: rotate(-45deg) scale(1.15); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.card--service--retiro::before { background: var(--c-amarillo); }
.card--service--vida::before { background: var(--c-menta); }
.card--service--retiro .ticks li::before { border-color: var(--c-amarillo); }
.card--service--vida .ticks li::before { border-color: var(--c-menta); }
.card--service__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--c-verde);
  border-bottom: 2px solid var(--c-amarillo);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap .2s, color .2s;
}
.card--service__link:hover { gap: 10px; }
.card--service--retiro .card--service__link { color: var(--c-amarillo); border-color: var(--c-amarillo); }
.card--service--vida .card--service__link { color: var(--c-menta); border-color: var(--c-amarillo); }

/* ============================================================
   FEED IG
   ============================================================ */
.feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.post {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
  color: white;
  transition: transform .3s var(--ease-spring);
}
.post::after {
  content: ''; position: absolute; left: -8px; bottom: -8px;
  width: 50%; height: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23ffffff' stroke-width='1.4' opacity='0.6'><line x1='20' y1='10' x2='60' y2='70'/><line x1='60' y1='10' x2='20' y2='70'/></g><g fill='%23f7cf47'><circle cx='40' cy='10' r='3'/><circle cx='40' cy='70' r='3'/><circle cx='10' cy='40' r='3'/><circle cx='70' cy='40' r='3'/></g></svg>");
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.post:hover::after { opacity: 1; }
.post__icon {
  width: 36px; height: 36px;
  margin-bottom: auto;
  opacity: .95;
  transition: transform .4s var(--ease-spring);
}
.post:hover .post__icon { transform: rotate(-8deg) scale(1.1); }
.post__icon svg { width: 100%; height: 100%; }
.post__headline {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.post__headline em {
  font-style: italic;
  font-weight: 400;
}
.post__aclaracion {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 12.5px;
  opacity: .8;
  margin: 0 0 8px;
}
.post__brand {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -.01em;
  margin-top: 4px;
}
.post__brand sup { font-size: 6px; opacity: .7; }
.post__cat {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  margin-top: 2px;
  opacity: .8;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
}
.post__cat::before { content: '▸'; font-size: 8px; }
.post--verde  { background: var(--c-verde); }
.post--amarillo { background: var(--c-amarillo); color: var(--c-verde); }
.post--amarillo::after { opacity: .25; }
.post--coral  { background: var(--c-coral); }
.post--lila   { background: var(--c-lila); }
.post--rojo   { background: var(--c-rojo); }
.post--celeste{ background: var(--c-celeste); }
.post--menta  { background: var(--c-menta); }
.post--grafito{ background: var(--c-grafito); }

.feed__cta {
  margin-top: 32px;
  text-align: center;
}
.feed__handle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.feed__handle::before, .feed__handle::after { content: '·'; color: var(--c-coral); }

/* ============================================================
   ASSET ALLOCATION WIDGET
   ============================================================ */
.allocation {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.allocation__head { display: flex; flex-direction: column; gap: 6px; }
.allocation__title {
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.1;
}
.allocation__title em { font-style: italic; color: var(--c-coral-deep); font-weight: 400; }
.allocation__sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.allocation__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
}
.allocation__chip {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--bg-alt);
  cursor: pointer;
  transition: all .2s;
}
.allocation__chip:hover { border-color: var(--c-verde); color: var(--c-verde); }
.allocation__chip.is-active {
  background: var(--c-verde);
  color: var(--c-amarillo);
  border-color: var(--c-verde);
}
.allocation__bar {
  display: flex;
  height: 56px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
}
.allocation__seg {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 13px;
  color: white;
  width: 0; /* grows via JS */
  transition: width 1.2s var(--ease-out), filter .2s;
  overflow: hidden;
  white-space: nowrap;
  cursor: default;
}
.allocation__seg:hover { filter: brightness(1.08); }
.allocation__seg + .allocation__seg { box-shadow: inset 2px 0 0 rgba(255,255,255,.3); }
.allocation__seg:nth-child(1) { background: var(--c-verde); }
.allocation__seg:nth-child(2) { background: var(--c-celeste); }
.allocation__seg:nth-child(3) { background: var(--c-amarillo); color: var(--c-verde-deep); }
.allocation__seg:nth-child(4) { background: var(--c-coral); }
.allocation__pct {
  display: block;
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.allocation__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.allocation__legend-item {
  display: flex; gap: 10px;
  align-items: flex-start;
}
.allocation__legend-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 6px;
}
.allocation__legend-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.allocation__legend-item span {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ============================================================
   METRICAS + BALANZ TRUST
   ============================================================ */
.metric {
  text-align: left;
  padding: 28px 24px;
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.metric:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.metric::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--c-verde);
}
.metric:nth-child(2)::before { background: var(--c-amarillo); }
.metric:nth-child(3)::before { background: var(--c-coral); }
.metric:nth-child(4)::before { background: var(--c-menta); }
.metric__num {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1;
  color: var(--c-verde);
  margin: 0 0 10px;
  letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: 4px;
}
.metric:nth-child(1) .metric__num,
.metric:nth-child(3) .metric__num { font-size: clamp(28px, 3.3vw, 42px); }
.metric__num-suffix { font-size: .5em; color: var(--ink-mute); font-weight: 500; }
.metric__lbl {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 14.5px;
  color: var(--ink);
}
.metric__sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}
.metric__sub a {
  color: var(--c-verde);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.metric__sub a:hover { color: var(--c-coral-deep); }
.trust {
  margin-top: 40px;
  padding: 22px 28px;
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.trust__lbl {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-mute); margin: 0;
  text-transform: uppercase; letter-spacing: .14em;
  font-weight: 500;
}
.trust__name {
  font-weight: 700; margin: 0;
  color: var(--c-verde);
  font-family: var(--f-serif);
  font-size: 18px;
}
.trust__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

/* ============================================================
   QUOTE + TESTIMONIAL CARROUSEL
   ============================================================ */
.quote {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.quote__mark {
  width: 48px;
  margin: 0 auto 16px;
  display: block;
  color: var(--c-verde);
}
.quote blockquote {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.quote blockquote strong {
  font-weight: 700;
  font-style: normal;
  color: var(--c-verde);
}
.quote blockquote em {
  font-style: italic;
  color: var(--c-coral-deep);
}
.quote figcaption {
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
}
.quote figcaption strong {
  color: var(--ink);
  font-weight: 600;
}
.quote figcaption::before {
  content: '— ';
  color: var(--c-coral);
  font-weight: 700;
}

/* Testimonial carousel */
.tcarousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.tcarousel__track {
  position: relative;
  min-height: 170px;
}
.tcarousel__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
/* entrante espera a que la saliente se desvanezca → sin solape de textos */
.tcarousel__slide.is-active {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .4s ease .28s, transform .4s ease .28s;
}
.tcarousel__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.tcarousel__dot {
  width: 24px; height: 3px;
  background: var(--line);
  border: 0; border-radius: 2px;
  cursor: pointer;
  transition: background .3s, width .3s;
}
.tcarousel__dot.is-active { background: var(--c-coral); width: 36px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.cta__inner {
  position: relative; z-index: 1;
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
.cta__inner h2 {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: white;
}
.cta__inner h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-amarillo);
}
.cta__lede {
  color: rgba(255,255,255,.85);
  max-width: 50ch;
  margin: 0 0 28px;
  font-size: 17px;
}
.cta__perks {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.cta__perk {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: padding .3s;
}
.cta__perk:hover { padding-left: 6px; }
.cta__perk-num {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-amarillo);
  letter-spacing: -.02em;
  min-width: 100px;
  line-height: 1;
}
.cta__perk-lbl {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  line-height: 1.45;
}
.cta__perk-lbl strong { color: white; font-weight: 600; }

.cta__card {
  background: white;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-2);
  position: relative;
}
.cta__card-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.cta__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-verde), var(--c-menta));
  display: grid; place-items: center;
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-amarillo);
  flex-shrink: 0;
  position: relative;
}
.cta__avatar::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 14px; height: 14px;
  background: var(--c-menta);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--c-menta);
  animation: pulse-status 2s ease infinite;
}
@keyframes pulse-status {
  0%, 100% { box-shadow: 0 0 0 2px var(--c-menta), 0 0 0 0 rgba(97,195,157,.6); }
  50%      { box-shadow: 0 0 0 2px var(--c-menta), 0 0 0 6px rgba(97,195,157,0); }
}
.cta__name {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}
.cta__role {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.cta__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--c-verde);
  font-weight: 600;
  margin-top: 4px;
}
.cta__status::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-menta);
}
.cta__links { display: flex; flex-direction: column; }
.cta__links a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  transition: color .15s, background .15s, padding .15s;
  border-radius: 6px;
}
.cta__links a:last-of-type { border-bottom: 0; }
.cta__links a:hover {
  color: var(--c-verde);
  background: var(--bg-alt);
  padding-left: 14px;
}
.cta__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-verde);
  color: var(--c-amarillo);
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: transform .3s var(--ease-spring);
}
.cta__links a:hover .cta__ico { transform: scale(1.1) rotate(8deg); }
.cta__ico svg { width: 16px; height: 16px; }
.cta__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap; gap: 8px;
}
.cta__foot-loc { display: inline-flex; align-items: center; gap: 6px; }
.cta__foot-loc::before { content: '◉'; color: var(--c-coral); font-size: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: #0a221f;
  color: rgba(255,255,255,.65);
  padding: 60px 0 28px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.foot__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative; z-index: 1;
}
.foot__brand-block { max-width: 360px; }
.foot__brand {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
}
.foot__brand .brand-logo__word { color: var(--c-amarillo); font-size: 24px; }
.foot__brand .brand-logo__tag { color: rgba(255,255,255,.5); }
.foot__pitch {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  margin: 0 0 16px;
}
.foot__socials { display: flex; gap: 10px; }
.foot__socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, border-color .2s, transform .3s var(--ease-spring);
}
.foot__socials a:hover {
  background: var(--c-amarillo);
  border-color: var(--c-amarillo);
  color: var(--c-verde);
  transform: translateY(-2px) rotate(-5deg);
}
.foot__socials svg { width: 16px; height: 16px; }
.foot__col h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-amarillo);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot__col ul { display: flex; flex-direction: column; gap: 10px; }
.foot__col a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  transition: color .15s, padding .2s;
}
.foot__col a:hover { color: var(--c-amarillo); padding-left: 4px; }
.foot__bottom {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  position: relative; z-index: 1;
}
.foot__small { margin: 0; line-height: 1.5; max-width: 80ch; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in {
  animation: fadeUp .8s var(--ease-out) both;
}
[data-reveal] { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* cascada escalonada de hijos (delays vía JS) */
[data-stagger] > * { opacity: 0; transform: translateY(26px) scale(.99); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-stagger].is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
}

/* Aurora respirando en la sección de contacto */
.section--dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 50% at 12% 18%, rgba(247,207,71,.16), transparent 62%),
    radial-gradient(50% 55% at 88% 92%, rgba(97,195,157,.20), transparent 62%);
  animation: auroraShift 16s ease-in-out infinite;
}
@keyframes auroraShift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .85; }
  50%      { transform: translate(2.5%, -2.5%) scale(1.1); opacity: 1; }
}

/* ============================================================
   FONDO VIVO — textura de marca a la deriva + orbes flotando
   en todas las secciones (no solo hero/ticker/contacto)
   ============================================================ */
/* el contenido siempre por encima de las capas decorativas */
.section > .container { position: relative; z-index: 1; }

/* textura de estrellas/cactus de marca, muy sutil, derivando */
.section:not(.section--dark)::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%2300675b' stroke-width='1' opacity='0.55'><line x1='40' y1='20' x2='120' y2='140'/><line x1='120' y1='20' x2='40' y2='140'/></g><g fill='%2300675b'><circle cx='80' cy='20' r='2.5'/><circle cx='80' cy='140' r='2.5'/><circle cx='20' cy='80' r='2.5'/><circle cx='140' cy='80' r='2.5'/></g></svg>");
  background-size: 160px 160px;
  background-repeat: repeat;
  opacity: .07;
  animation: twinkleDrift 36s linear infinite;
}

/* orbe blur de marca flotando detrás de las secciones claras */
.section:not(.section--dark)::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -140px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  filter: blur(90px); opacity: .08;
  background: radial-gradient(circle, var(--c-amarillo), transparent 60%);
  animation: orbFloat 24s ease-in-out infinite;
}
.section:not(.section--dark):nth-of-type(even)::after {
  top: auto; right: auto; bottom: -160px; left: -120px;
  background: radial-gradient(circle, var(--c-menta), transparent 60%);
  animation-duration: 28s; animation-delay: -10s;
}

/* el patrón de estrellas del footer también deriva (como el de contacto) */
.brand-stars--drift { animation: twinkleDrift 28s linear infinite; }

/* Logo mark — micro-interacción */
.brand-logo__mark { transition: transform .4s var(--ease-spring), box-shadow .3s; }
.brand-logo:hover .brand-logo__mark { transform: rotate(10deg) scale(1.06); box-shadow: 0 4px 14px rgba(0,103,91,.4); }

/* Float idle de la brief card (solo mobile, sin parallax JS) */
@media (max-width: 979px) {
  .hero__card { animation: cardFloat 6s ease-in-out infinite; }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 540px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .feed { grid-template-columns: repeat(3, 1fr); }
  .allocation { grid-template-columns: 1fr 1.2fr; gap: 48px; }
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: repeat(4, 1fr); }
  .frases { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .nav__burger { display: none; }
  .nav__links { display: inline-flex; }
  .nav__actions { display: inline-flex; }
  .nav__drawer { display: none !important; }
  .foot__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .allocation__legend { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 76px 0 88px;
  }
  .hero__inner { padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); min-width: 0; }
  .hero__card { margin-top: 0; justify-self: center; align-self: center; max-width: 430px; box-shadow: var(--shadow-2); }
  .hero__scroll-cue { display: inline-flex; }
  .cta__inner { grid-template-columns: 1.05fr 1fr; align-items: stretch; gap: 40px; }
  .cta__card { align-self: stretch; }
  .cta__inner > div { display: flex; flex-direction: column; justify-content: center; }
  .feed { grid-template-columns: repeat(4, 1fr); }
  .post__headline { font-size: 21px; }
  .manifest { grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
  .allocation { grid-template-columns: 1fr 1.5fr; }
}
@media (min-width: 1100px) {
  .hero__title { font-size: 100px; }
}
@media (max-width: 380px) {
  .hero__chips li { font-size: 11px; padding: 5px 10px; }
  .btn { padding: 12px 18px; font-size: 14px; }
}

/* ============================================================
   v4 · MÁS VIDA — capa de micro-motion adicional.
   Todo se apaga solo con prefers-reduced-motion (reset global arriba).
   ============================================================ */

/* Perspectiva para los tilts 3D (service cards + posts) */
.grid--3, .feed { perspective: 1000px; }

/* Botones magnéticos: el transform lo aplica JS, sólo preparamos GPU */
.btn--primary, .to-top { will-change: transform; }

/* Service cards: tilt 3D (JS) + glow al hover.
   transition re-declarada acá para ganarle a [data-stagger] > * (tilt ágil). */
.card--service {
  transform-style: preserve-3d; will-change: transform;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.card--service:hover { box-shadow: var(--shadow-2), 0 0 0 1px rgba(0,103,91,.06); }
.card--service__num { transition: transform .6s var(--ease-spring), color .3s; }
.card--service:hover .card--service__num { transform: translateY(-4px); }

/* Barra de acento de cada métrica: crece al revelarse la grilla */
.metric::before {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .9s var(--ease-spring);
}
.metrics.is-in .metric::before { transform: scaleY(1); }
.metrics.is-in .metric:nth-child(1)::before { transition-delay: .05s; }
.metrics.is-in .metric:nth-child(2)::before { transition-delay: .15s; }
.metrics.is-in .metric:nth-child(3)::before { transition-delay: .25s; }
.metrics.is-in .metric:nth-child(4)::before { transition-delay: .35s; }

/* Posts del feed: halo al hover */
.post { transition: transform .25s var(--ease-spring), box-shadow .3s; }
.post:hover { box-shadow: 0 20px 44px rgba(0,0,0,.20); }

/* Perks de contacto + trust: lift sutil */
.cta__perk, .trust { transition: transform .3s var(--ease-spring), box-shadow .3s; }
.cta__perk:hover { transform: translateY(-3px); }
.trust:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }

/* Frase del manifiesto: barra de acento que crece al hover */
.frases__item { position: relative; overflow: hidden; }
.frases__item::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--c-verde);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease-spring);
}
.frases__item:hover::after { transform: scaleY(1); }

/* Spotlight que sigue al cursor sobre la brief card del hero (var por JS) */
.hero__card::before {
  content: ''; position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, -20%),
    rgba(247,207,71,.18), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.hero__card:hover::before { opacity: 1; }

/* Brillo periódico que cruza el logo-mark */
.brand-logo__mark::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: markSheen 7s ease-in-out infinite;
}
@keyframes markSheen {
  0%, 72% { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}

/* Eyebrow dot del hero: latido de respiración además del pulse */
.hero .eyebrow__dot { animation: pulse 2s ease infinite, dotBreathe 4s ease-in-out infinite; }
@keyframes dotBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}

/* ============================================================
   FINAL VISUAL HARMONY PASS — deterministic alignment and spacing
   ============================================================ */
@media (min-width: 720px) { .to-top { display: none; } }

.section { scroll-margin-top: 96px; }
.scroll-progress { display: none; }
.section__head { margin-bottom: 40px; }
.grid { gap: 24px; }

.hero__orb { opacity: .26; }
.hero__title em::after { left: .04em; right: -.04em; }
.hero__title .hl { padding: .04em .20em .035em; }
.hero__title .hl::before { left: -7px; width: 3px; height: 78%; }
.hero__lede { max-width: 56ch; }
.hero__chips { padding-top: 20px; }
.hero__mini { min-height: 82px; animation: none; }

.frases__item {
  min-height: 112px;
  display: flex;
  align-items: center;
}

.feed { gap: 16px; }
.post { padding: 20px; }

.allocation { padding: 36px; gap: 36px; }
.allocation__chips { margin-top: 18px; }
.allocation__bar { width: 100%; }
.allocation__seg[data-key="liq"] { width: 20%; }
.allocation__seg[data-key="fx"] { width: 40%; }
.allocation__seg[data-key="eq"] { width: 25%; }
.allocation__seg[data-key="ar"] { width: 15%; }
.allocation__legend-dot { width: 12px; height: 12px; }

.metric { padding: 28px 26px; }
.metric__num {
  min-height: 56px;
  align-items: flex-end;
}
.metric:nth-child(4) .metric__num {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -.02em;
}
.trust {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 24px;
}
.trust__sub { margin: 0; max-width: 62ch; }

.cta__links { gap: 6px; }
.cta__links a {
  padding: 12px 14px;
  border: 1px solid transparent;
  background: rgba(250,248,239,.65);
}
.cta__links a:last-of-type { border-bottom-color: transparent; }

.foot { padding-bottom: 34px; }
.foot .brand-stars { opacity: .08 !important; }
.foot__top { gap: 42px; }
.foot__bottom { align-items: flex-start; gap: 36px; }
.foot__bottom .foot__small:last-child { text-align: right; max-width: 44ch; }

@media (min-width: 720px) {
  .foot__top { grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(140px, 1fr)); }
  .foot__bottom { align-items: flex-start; }
}

@media (min-width: 980px) {
  .hero { padding: 68px 0 104px; }
  .hero__cards { transform: translateY(-34px); }
  .allocation { grid-template-columns: minmax(280px, .9fr) minmax(520px, 1.35fr); }
}
