/* ============================================================
   Rabudo Investor · Estilos
   Paleta oscura, minimalista, con acento verde
   ============================================================ */

:root {
  --bg:        #0A0C0E;
  --bg-soft:   #101317;
  --surface:   #14181D;
  --surface-2: #1B2027;
  --line:      rgba(255,255,255,.08);
  --line-str:  rgba(255,255,255,.16);
  --text:      #F4F6F7;
  --muted:     #9BA3AC;
  --muted-2:   #6B747E;
  --accent:    #3DD68C;
  --accent-2:  #5EC5D6;
  --accent-3:  #8A93F0;
  --radius:    18px;
  --radius-sm: 12px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --maxw:      1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

.ta-r { text-align: right; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .1px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #06231a;
  box-shadow: 0 8px 30px -8px rgba(61,214,140,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(61,214,140,.6); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-str);
}
.btn--ghost:hover { background: rgba(255,255,255,.05); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,12,14,.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.3px;
}
.nav__brand-accent { color: var(--accent); }
.nav__mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: conic-gradient(from 140deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 20px -4px var(--accent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 15px;
  color: var(--muted);
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--line-str);
  margin-left: 8px;
}
.nav__cta:hover { background: var(--accent) !important; color: #06231a !important; border-color: var(--accent); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: float 14s ease-in-out infinite;
}
.hero__orb--1 { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(61,214,140,.55), transparent 70%); }
.hero__orb--2 { width: 480px; height: 480px; bottom: -160px; left: -100px; background: radial-gradient(circle, rgba(138,147,240,.45), transparent 70%); animation-delay: -6s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,-30px) scale(1.08); }
}

.hero__content { position: relative; z-index: 2; padding-top: 90px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line-str);
  border-radius: 100px;
}
.hero__title {
  font-size: clamp(48px, 9vw, 120px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 26px;
}
.hero__title span { display: block; }
.hero__title span:last-child {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--muted);
  max-width: 620px;
  font-weight: 400;
}
.hero__lead::before { content: "“"; color: var(--accent); font-weight: 700; }
.hero__lead::after { content: "”"; color: var(--accent); font-weight: 700; }
.hero__actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  max-width: 640px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; }

.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--line-str);
  border-radius: 100px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(14px)} }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: clamp(80px, 12vh, 150px) 0; position: relative; }
.section__eyebrow {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}
.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: 16px;
}
.section__sub { color: var(--muted); font-size: clamp(16px,2vw,19px); max-width: 620px; margin-bottom: 48px; }

/* ---------- Método ---------- */
.method { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method__headline {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  margin-bottom: 30px;
}
.method__headline span { display: block; }
.method__headline .serif { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: 0; }
.method__intro { font-size: clamp(19px,2.6vw,28px); line-height: 1.4; max-width: 780px; margin-bottom: 22px; }
.method__body { font-size: 18px; color: var(--muted); max-width: 720px; margin-bottom: 60px; }

.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .4s var(--ease), border-color .4s;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--line-str); }
.pillar__num { font-family: var(--serif); font-size: 32px; color: var(--accent); font-style: italic; }
.pillar h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 700; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ============================================================
   CARTERA
   ============================================================ */
.charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .4s;
}
.chart-card:hover { border-color: var(--line-str); }
.chart-card figcaption h3 { font-size: 19px; font-weight: 700; }
.chart-card figcaption p { color: var(--muted-2); font-size: 14px; margin-bottom: 18px; }

.donut { width: 100%; display: flex; justify-content: center; }
.donut svg { width: 190px; height: 190px; }
.donut__center-val { font-size: 26px; font-weight: 800; fill: var(--text); }
.donut__center-lbl { font-size: 11px; fill: var(--muted-2); letter-spacing: 1px; text-transform: uppercase; }
.donut__seg { transition: stroke-dashoffset 1.1s var(--ease); }

.legend { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.legend--dense { display: grid; grid-template-columns: 1fr; gap: 7px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend .l-name { color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .l-val { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Barras ---------- */
.bars {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  margin-bottom: 40px;
}
.bars__title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.bars__list { display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 60px; align-items: center; gap: 16px; }
.bar-row__label { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row__track { height: 10px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.bar-row__fill { height: 100%; width: 0; border-radius: 100px; transition: width 1.2s var(--ease); }
.bar-row__val { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Holdings ---------- */
.holdings {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
}
.holdings__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.holdings__head h3 { font-size: 20px; font-weight: 700; }
.holdings__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 100px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  cursor: pointer; transition: all .25s;
}
.chip:hover { color: var(--text); border-color: var(--line-str); }
.chip.is-active { background: var(--accent); color: #06231a; border-color: var(--accent); font-weight: 600; }

.holdings__table-wrap { overflow-x: auto; }
.holdings__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.holdings__table th {
  text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; padding: 0 14px 14px; border-bottom: 1px solid var(--line);
}
.holdings__table td { padding: 15px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.holdings__table tbody tr { transition: background .2s; }
.holdings__table tbody tr:hover { background: rgba(255,255,255,.025); }
.holdings__table tbody tr:last-child td { border-bottom: 0; }
.h-ticker { font-weight: 700; letter-spacing: .3px; }
.h-weight { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.g-tag {
  display: inline-block; padding: 3px 11px; border-radius: 100px; font-size: 12px; font-weight: 600;
}
.g-ALPHA { background: rgba(61,214,140,.14); color: var(--accent); }
.g-BETA  { background: rgba(94,197,214,.14); color: var(--accent-2); }
.g-GAMMA { background: rgba(138,147,240,.14); color: var(--accent-3); }

.portfolio__note { font-size: 13px; color: var(--muted-2); max-width: 720px; }

.charts--2 { grid-template-columns: repeat(2, 1fr); }
.holdings__count { font-size: 14px; color: var(--muted-2); }

/* ============================================================
   RENDIMIENTO
   ============================================================ */
.perf { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
}
.perf-card__head {
  display: flex; flex-wrap: wrap; gap: 30px 48px;
  padding-bottom: 26px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.perf-metric { display: flex; flex-direction: column; gap: 5px; }
.perf-metric__label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.perf-metric__val { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.perf-metric__val.pos { color: var(--accent); }
.perf-metric__val.neg { color: #e0808f; }
.perf-metric__sub { font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -.01em; }

.perf-chart { width: 100%; }
.perf-chart svg { width: 100%; height: auto; display: block; }
.pc-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.pc-zero { stroke: rgba(255,255,255,.18); stroke-width: 1; stroke-dasharray: 3 3; }
.pc-ylabel, .pc-xlabel { fill: var(--muted-2); font-size: 12px; font-family: var(--font); }
.pc-line { stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pc-dot { fill: var(--bg-soft); stroke: var(--accent); stroke-width: 2.5; }

/* Track record table extras */
.tr-name { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.mono { font-variant-numeric: tabular-nums; }
.mono em { color: var(--muted-2); font-style: normal; font-size: 12px; margin-left: 4px; }
.muted { color: var(--muted-2); }
.badge { display: inline-block; padding: 3px 11px; border-radius: 100px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--open { background: rgba(61,214,140,.14); color: var(--accent); }
.badge--closed { background: rgba(255,255,255,.07); color: var(--muted); }
.ret { font-weight: 700; font-variant-numeric: tabular-nums; }
.ret.pos { color: var(--accent); }
.ret.neg { color: #e0808f; }
.track__table { min-width: 720px; }

/* ============================================================
   FAQ
   ============================================================ */
.accordion { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s; }
.acc-item.is-open { border-color: var(--line-str); }
.acc-item__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 24px; font-size: 17px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit;
}
.acc-item__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.acc-item__icon::before, .acc-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent);
  transform: translate(-50%,-50%); transition: transform .3s var(--ease);
}
.acc-item__icon::before { width: 14px; height: 2px; }
.acc-item__icon::after { width: 2px; height: 14px; }
.acc-item.is-open .acc-item__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.acc-item__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-item__a p { padding: 0 24px 24px; color: var(--muted); font-size: 16px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.cform { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: 15px;
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,214,140,.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.cform__hint { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; min-height: 20px; }
.cform__hint.is-ok { color: var(--accent); }
.cform__hint.is-err { color: #e0808f; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: var(--bg-soft); }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 15px; transition: color .25s; }
.footer__links a:hover { color: var(--text); }

.disclaimer { padding: 34px 0; border-bottom: 1px solid var(--line); }
.disclaimer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2); margin-bottom: 14px; }
.disclaimer p { font-size: 13px; color: var(--muted-2); line-height: 1.7; max-width: 900px; margin-bottom: 12px; }
.disclaimer strong { color: var(--muted); }

.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 13px; color: var(--muted-2); }

/* ============================================================
   ANIMACIONES DE SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .charts { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 130px 1fr 52px; gap: 10px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,12,14,.96); backdrop-filter: blur(16px);
    padding: 16px 24px 24px; gap: 6px; border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open a { padding: 14px 16px; }
  .nav__cta { margin-left: 0; text-align: center; }
  .nav__burger { display: flex; }
  .hero__stats { grid-template-columns: repeat(2,1fr); gap: 26px 20px; }
  .cform__row { grid-template-columns: 1fr; gap: 0; }
  .cform { padding: 24px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}
