/* ============================================================
   style.css — Landing inversora (Institucional)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.bg-band { background: var(--band); }
.eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  margin: 0 0 1.1rem; display: inline-block;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .rule { width: 54px; height: 2px; background: var(--gold); margin: 1.1rem auto 0; }
.section-head .lead { margin-top: 1.1rem; font-size: var(--fs-lead); color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 2rem; font-size: 0.74rem; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--gold); color: #fff; }
.btn--solid:hover { background: var(--gold-deep); }
.btn--outline { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: #fff; }
.link-gold { color: var(--gold-deep); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; }
.link-gold:hover { color: var(--gold); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm); height: 70px;
}
.brand { display: flex; align-items: baseline; gap: 0.5em; line-height: 1; }
.brand__img { height: 38px; width: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.18em; color: var(--ink); font-weight: 600; }
.brand__sub { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.18em; color: var(--gold); font-weight: 600; }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); font-weight: 500; position: relative; padding-bottom: 3px;
}
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--gold); transition: width 0.35s var(--ease); }
.nav__menu a:hover::after { width: 100%; }
.nav__cta { flex-shrink: 0; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  max-width: var(--maxw); margin-inline: auto;
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 3rem;
}
.hero__title { font-size: var(--fs-hero); font-weight: 600; }
.hero__divider { width: 60px; height: 2px; background: var(--gold); margin: 1.5rem 0 1.4rem; }
.hero__subtitle { font-size: var(--fs-lead); max-width: 42ch; margin: 0 0 2rem; color: var(--ink-soft); }
.hero__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

/* Tarjeta de gráfica del hero */
.chart-card {
  background: var(--band); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 2rem 2.1rem; box-shadow: var(--shadow-md);
}
.chart-card__label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin: 0; }
.chart-card__value { font-family: var(--font-display); font-size: 2.3rem; color: var(--ink); font-weight: 600; margin: 0.35rem 0 0; }
.chart-card__note { font-size: 0.8rem; color: var(--ink-mute); margin: 0 0 1.4rem; }

/* ============================================================
   BANDA DE MÉTRICAS (navy)
   ============================================================ */
.stats { background: var(--ink); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: clamp(2rem, 4vw, 2.75rem) 1rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line-dark); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem); color: var(--gold-soft); font-weight: 600; }
.stat__label { font-size: 0.82rem; color: var(--on-dark-mute); letter-spacing: 0.02em; margin-top: 0.15rem; }

/* ============================================================
   ESTRATEGIAS (tarjetas)
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 3vw, 2rem); }
.strategy {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem 2rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.strategy:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.strategy__icon { width: 56px; height: 56px; border-radius: 8px; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; margin-bottom: 1.5rem; }
.strategy__icon svg { width: 28px; height: 28px; }
.strategy__title { font-size: 1.4rem; margin-bottom: 0.7rem; }
.strategy__text { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 1.4rem; }

/* ============================================================
   NOSOTROS (split)
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.split__body h2 { font-size: var(--fs-h2); margin-bottom: 1.2rem; }
.split__body > p { margin: 0 0 1.6rem; max-width: 48ch; }
.checklist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink); }
.checklist svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.aside-card {
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-md);
}
.aside-card__value { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); color: var(--gold-soft); font-weight: 600; line-height: 1; }
.aside-card__suffix { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-soft); margin-left: 0.3rem; }
.aside-card__text { color: var(--on-dark-mute); margin: 1rem 0 0; font-size: 0.98rem; max-width: 30ch; }
.aside-card__rule { width: 48px; height: 2px; background: var(--gold); margin: 1.5rem 0; }

/* ============================================================
   RENDIMIENTOS (barras)
   ============================================================ */
.perf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.perf-note { font-size: 0.78rem; color: var(--ink-mute); margin: 1.5rem 0 0; text-align: center; }

/* ---------- Gráficas SVG ---------- */
.line-chart, .bar-chart { width: 100%; height: auto; display: block; overflow: visible; }
.line-chart .grid { stroke: var(--line); stroke-width: 1; }
.line-chart .area { fill: var(--gold); opacity: 0.08; }
.line-chart .line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.line-chart .dot { fill: var(--ink); stroke: var(--gold); stroke-width: 2.5; }
.line-chart .lbl { fill: var(--ink-mute); font-family: var(--font-body); font-size: 11px; }
.is-visible .line-chart .line { animation: draw 1.8s var(--ease) 0.15s forwards; }

.bar-chart .baseline { stroke: var(--line-strong); stroke-width: 1; }
.bar-chart .bar { fill: var(--gold); transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform 0.9s var(--ease); }
.bar-chart .bar--peak { fill: var(--ink); }
.is-visible .bar-chart .bar { transform: scaleY(1); }
.bar-chart .val { fill: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.bar-chart .yr { fill: var(--ink-mute); font-family: var(--font-body); font-size: 12px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--band); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.4fr auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.contact__intro h2 { font-size: var(--fs-h2); margin-bottom: 0.5rem; }
.contact__intro p { margin: 0; color: var(--ink-soft); }
.contact__form { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.field { flex: 1 1 190px; }
.field input {
  width: 100%; padding: 1rem 1.1rem; font-family: inherit; font-size: 0.9rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input::placeholder { color: var(--ink-mute); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.contact__form .btn { flex: 1 1 150px; justify-content: center; }
.form-note { flex-basis: 100%; font-size: 0.75rem; color: var(--ink-mute); margin: 0.25rem 0 0; }
.contact__phone { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; transition: background 0.3s, color 0.3s; }
.contact__phone:hover { background: var(--gold); color: #fff; }
.contact__phone svg { width: 24px; height: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer__tagline { font-size: 0.9rem; color: var(--on-dark-mute); max-width: 30ch; margin-top: 1.1rem; line-height: 1.7; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem; font-weight: 700; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a, .footer__col li { font-size: 0.88rem; color: var(--on-dark-mute); }
.footer__col a:hover { color: var(--gold-soft); }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { width: 15px; height: 15px; color: var(--gold-soft); flex-shrink: 0; margin-top: 3px; }
.footer__socials { display: flex; gap: 0.6rem; margin-top: 0.25rem; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--on-dark); transition: background 0.3s, transform 0.3s; }
.footer__socials a:hover { background: var(--gold); transform: translateY(-3px); }
.footer__socials svg { width: 16px; height: 16px; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: 0.72rem; color: var(--on-dark-mute); }
.footer__legal { max-width: 60ch; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); z-index: 90;
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: 0.5; animation: wa-pulse 2.4s var(--ease) infinite; z-index: -1; }
