/* Helpi Finance Consulting — sitio estático */
:root {
  --navy: #0f102e;
  --navy-2: #171a44;
  --navy-3: #0a0b22;
  --gold: #b8945f;
  --gold-2: #cfae7a;
  --gold-soft: #e3d0ae;
  --white: #ffffff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.012em;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
img, svg { display: block; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Navegación esmerilada ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.site-header.scrolled {
  background: rgba(15, 16, 46, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(227, 208, 174, .14);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { opacity: 0; transform: translateY(-4px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
.site-header.scrolled .brand { opacity: 1; transform: none; pointer-events: auto; }
.brand img { height: 36px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.nav > a { font-size: 14px; color: rgba(255,255,255,.86); text-decoration: none; transition: color .2s; }
.nav > a:hover { color: #fff; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(227,208,174,.35);
}
.lang-switch a {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  padding: 4px 11px; border-radius: 999px; color: rgba(255,255,255,.7);
}
.lang-switch a[aria-current="page"] { background: var(--gold); color: var(--navy); }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 24px 150px; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 44%, rgba(64, 66, 140, .38) 0%, rgba(15,16,46,0) 70%),
    radial-gradient(120% 90% at 50% 120%, #07081c 0%, rgba(7,8,28,0) 60%),
    var(--navy);
}
.hero-logo { width: min(560px, 78vw); height: auto; }
.hero-tag {
  margin-top: 46px; color: var(--gold-2);
  font-size: clamp(12px, 1.5vw, 19px); font-weight: 400;
  letter-spacing: .58em; padding-left: .58em; text-transform: uppercase;
}
.hero-rule { width: 64px; height: 1px; margin: 30px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-place {
  position: absolute; left: 0; right: 0; bottom: 56px;
  font-size: 13px; font-weight: 500; letter-spacing: .6em; padding-left: .6em;
  text-transform: uppercase; color: rgba(255,255,255,.88);
}

/* Entrada orquestada de la portada */
.js .hero-logo, .js .hero-tag, .js .hero-rule, .js .hero-place { opacity: 0; }
.js.loaded .hero-logo { animation: rise 1.4s cubic-bezier(.2,.7,.2,1) .1s forwards; }
.js.loaded .hero-tag { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) .6s forwards; }
.js.loaded .hero-rule { animation: fade 1.2s ease 1s forwards; }
.js.loaded .hero-place { animation: fade 1.4s ease 1.2s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Secciones ---------- */
.section { padding: 130px 0; }
.section.gray { background: var(--gray); }
.eyebrow { color: var(--gold); font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.display {
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; font-weight: 600;
  letter-spacing: -0.028em; color: var(--ink);
}
.lede { margin-top: 24px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--muted); letter-spacing: -0.01em; }
.lede + .lede { margin-top: 16px; }
.section-head { margin-bottom: 64px; }

/* Declaración principal */
.statement-sec { padding: 150px 0 140px; }
.statement {
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.1; font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink); max-width: 21ch; margin: 0 auto;
}
.statement .soft { color: #86868b; }

/* Botones */
.actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line-light:hover { background: #fff; color: var(--navy); }

/* ---------- Mosaico ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; border-radius: var(--radius); padding: 40px 38px 42px;
  background: var(--gray); overflow: hidden;
}
.section.gray .tile { background: var(--white); }
.tile.span-2 { grid-column: span 2; }
.tile .icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 26px; }
.tile h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.tile p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.tile .fine { margin-top: 18px; font-size: 14px; line-height: 1.5; }

.tile.dark, .section.gray .tile.dark {
  background:
    radial-gradient(80% 90% at 85% 0%, rgba(184,148,95,.22) 0%, rgba(184,148,95,0) 60%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 70%);
  color: #fff;
}
.tile.dark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(227,208,174,.16);
}
.tile.dark p { color: rgba(255,255,255,.72); }
.tile.dark h3 { color: #fff; }
.tile .big {
  font-size: clamp(72px, 9vw, 124px); line-height: .95; font-weight: 600; letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 24px;
}

/* Cuentas */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair .tile { padding: 56px 52px 54px; min-height: 440px; display: flex; flex-direction: column; }
.pair .tile h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 18px; }
.pair .tile p { font-size: 18px; }
.pair .tile .fine { font-size: 14px; margin-top: auto; padding-top: 28px; }

/* Servicios complementarios */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.checks li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gray); border-radius: 22px; padding: 28px 28px 30px;
  font-size: 17px; line-height: 1.45; color: var(--ink);
}
.checks svg { flex: none; width: 26px; height: 26px; color: var(--gold); }

/* Nosotros */
.stats { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 38px 30px; text-align: center; }
.stat strong {
  display: block; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #c9a56f 0%, #9c7a47 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact {
  padding: 140px 0; color: #fff; text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(184,148,95,.16) 0%, rgba(184,148,95,0) 60%),
    var(--navy);
}
.contact .display { color: #fff; }
.contact .lede { color: rgba(255,255,255,.66); }
.contact-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.glass {
  border-radius: 24px; padding: 30px 30px 32px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(227,208,174,.16);
}
.glass dt { font-size: 14px; color: var(--gold-2); margin-bottom: 10px; }
.glass dd { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.glass dd a { text-decoration: none; }
.glass dd a:hover { color: var(--gold-soft); }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,.5); padding: 56px 0 64px; font-size: 12.5px; line-height: 1.6; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-top img { height: 40px; width: auto; }
.foot-top nav { display: flex; gap: 26px; }
.foot-top nav a { color: rgba(255,255,255,.66); text-decoration: none; font-size: 13px; }
.foot-top nav a:hover { color: #fff; }
.site-footer p { max-width: 110ch; }
.site-footer .copy { margin-top: 18px; color: rgba(255,255,255,.38); }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(15,16,46,.35);
  transition: transform .25s;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-logo, .js .hero-tag, .js .hero-rule, .js .hero-place { opacity: 1; transform: none; transition: none; animation: none; }
  .site-header, .brand, .btn, .wa { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 88px 0; }
  .statement-sec { padding: 100px 0 96px; }
  .contact { padding: 96px 0; }
  .nav > a { display: none; }
  .bento, .pair, .checks, .stats, .contact-grid { grid-template-columns: 1fr; }
  .tile.span-2 { grid-column: auto; }
  .tile { padding: 32px 28px 34px; }
  .pair .tile { padding: 40px 30px; min-height: 0; }
  .hero-place { bottom: 44px; font-size: 11px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
