/* Página para inversionistas: usa los tokens y componentes de ../landing.css */
.inv { background: var(--blue-bg); }

/* ===== Inicio ===== */
.inv-hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--pad) clamp(48px, 7vw, 96px); }
.inv-hero-in { width: 100%; max-width: 1440px; margin: 0 auto; }
.inv-tag { color: var(--muted); font-size: 15px; font-weight: 600; }
.inv-hero h1 { font-size: clamp(38px, 6.2vw, 104px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 13em; margin-top: 18px; text-wrap: balance; }
.inv-lead { font-size: clamp(17px, 1.5vw, 22px); color: var(--muted); max-width: 40em; margin-top: clamp(20px, 2.4vw, 32px); }
.inv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(40px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--card-border); }
.inv-stats div { display: flex; flex-direction: column-reverse; min-width: 0; }
.inv-stats dd { font-size: clamp(44px, 5.6vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.inv-stats dt { margin-top: 10px; color: var(--muted); font-size: clamp(14px, 1.1vw, 16px); max-width: 14em; }

/* ===== Respuesta al problema ===== */
.inv-answer { margin-top: clamp(56px, 7vw, 104px); }
.inv-answer > h3, .inv-two h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.025em; margin-bottom: clamp(24px, 3vw, 40px); }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== Mercado ===== */
.inv-market { background: var(--app-bg); }
.inv-market-in { max-width: 1440px; margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--pad); }
.inv-market-head h2 { font-size: clamp(34px, 4.6vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 14em; text-wrap: balance; }
.inv-market-head p { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); margin-top: 18px; max-width: 38em; }
.mk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.mk-controls { display: grid; gap: clamp(24px, 2.6vw, 36px); min-width: 0; }
.mk-segs { border: 0; display: grid; gap: 10px; min-width: 0; }
.mk-segs legend { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; margin-bottom: 12px; padding: 0; }
.mk-seg { position: relative; display: block; cursor: pointer; }
.mk-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.mk-seg > span {
  display: block; padding: 14px 16px 14px 52px; border: 1px solid var(--card-border); border-radius: 14px;
  color: var(--muted); font-size: 15px; line-height: 1.4;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.mk-seg > span::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--ghost); background: transparent center / 14px no-repeat;
  transition: background-color .16s ease, border-color .16s ease;
}
.mk-seg b { display: block; color: var(--text); font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mk-seg small { display: block; font-size: 13px; margin-top: 4px; }
.mk-seg small a { position: relative; z-index: 1; color: var(--accent-text); }
.mk-seg input:checked + span { border-color: var(--accent); background: rgba(37, 99, 235, .12); color: #d6d1c8; }
.mk-seg input:checked + span::before {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.mk-seg input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.inv-market .rng { --rng-on: #5b8dff; }
.mk-hint { color: var(--muted); font-size: 14px; margin-top: -12px; }
.mk-today { margin-top: 4px; }
.mk-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.mk-bar i { display: block; height: 100%; width: 0; min-width: 6px; border-radius: 3px; background: #c4d7ff; transition: width .2s var(--ease); }
.mk-today p { color: #c9d3ea; font-size: 15px; margin-top: 12px; }
.mk-context { color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); max-width: 52em; margin-top: clamp(40px, 5vw, 64px); }
.mk-context a, .mk-sources a { color: var(--accent-text); }
.mk-sources { margin-top: 20px; padding-left: 22px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.mk-sources a:hover { text-decoration: underline; }
.mk-foot { color: var(--muted); font-size: 13px; margin-top: 16px; max-width: 60em; }

/* ===== Valle de Aburrá ===== */
.vl .block-title { margin-bottom: 20px; }
.vl-lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 40em; }
.vl-bar { height: 14px; border-radius: 4px; background: var(--card-border); overflow: hidden; min-width: 0; }
.vl-bar i { display: block; height: 100%; width: var(--w); min-width: 4px; border-radius: 4px; background: var(--accent); opacity: var(--o, 1); transform-origin: left; transition: transform .9s var(--ease) calc(var(--i, 0) * 90ms); }
.vl.anim :is(.vl-funnel, .vl-segs):not(.in) .vl-bar i { transform: scaleX(0); }

.vl-funnel { list-style: none; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--card-border); }
.vl-funnel li { display: grid; grid-template-columns: minmax(0, 18em) minmax(0, 1fr) minmax(0, 8.5em); gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid var(--card-border); }
.vl-k h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; letter-spacing: -.015em; }
.vl-k p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.vl-n { font-size: clamp(28px, 3vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1; text-align: right; white-space: nowrap; }
.vl-n small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.vl-goal .vl-n { color: var(--accent-text); }
.vl-insight { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; max-width: 36em; margin-top: clamp(28px, 3.4vw, 44px); color: var(--muted); }
.vl-insight b { color: var(--text); font-weight: 700; }

.vl-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.vl-two h3 { font-size: clamp(21px, 2vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.vl-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 14px; margin-top: 10px; }
.vl-key { display: inline-flex; align-items: center; gap: 8px; }
.vl-key::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); opacity: .3; }
.vl-key-on::before { opacity: 1; }
.vl-segs ul { list-style: none; margin-top: 20px; border-top: 1px solid var(--card-border); }
.vl-segs li { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) 4.5em; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--card-border); font-size: 15px; }
.vl-segs li span { color: var(--muted); }
.vl-segs li.on span { color: var(--text); font-weight: 600; }
.vl-segs li b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.vl-segs .vl-bar { height: 10px; background: transparent; }
.vl-segs li { --o: .3; }
.vl-segs li.on { --o: 1; }
.vl-side { display: grid; gap: clamp(28px, 3vw, 40px); border-top: 1px solid var(--card-border); padding-top: clamp(20px, 2vw, 28px); }
.vl-side p { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); margin-top: 8px; }
.vl-foot { color: var(--muted); font-size: 13px; margin-top: clamp(40px, 5vw, 64px); max-width: 60em; }
.vl-foot a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Tracción ===== */
.inv-flag { margin-bottom: 0; align-items: start; }
.inv-facts { list-style: none; min-width: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.inv-facts li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.inv-facts b { display: block; font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; letter-spacing: -.015em; }
.inv-facts span { display: block; color: #c9d3ea; font-size: 16px; margin-top: 4px; }

/* ===== Modelo ===== */
.steps .inv-num { font-size: clamp(24px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.inv-why { margin-top: clamp(48px, 6vw, 88px); }
.inv-link { margin-top: 28px; }
.inv-link a, .inv-contact-alt a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.inv-link a { color: var(--accent-text); }

/* ===== Competencia ===== */
.inv-table { overflow-x: auto; border-top: 1px solid var(--card-border); }
.inv-table table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: clamp(15px, 1.1vw, 17px); }
.inv-table th, .inv-table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.inv-table thead th { font-size: 14px; font-weight: 600; color: var(--muted); }
.inv-table tbody th { font-weight: 600; }
.inv-table td { color: var(--muted); }
.inv-table td:last-child, .inv-table thead th:last-child { color: var(--text); font-weight: 700; }

/* ===== Plan ===== */
.inv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 88px); margin-top: clamp(56px, 7vw, 104px); }
.inv-list { list-style: none; border-top: 1px solid var(--card-border); }
.inv-list li { padding: 16px 0; border-bottom: 1px solid var(--card-border); color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.inv-list b { color: var(--text); font-weight: 700; }

/* ===== Contacto ===== */
.inv-contact { padding: clamp(88px, 12vw, 180px) var(--pad); }
.inv-contact-in { max-width: 1440px; margin: 0 auto; }
.inv-contact h2 { font-size: clamp(36px, 5.4vw, 92px); font-weight: 800; letter-spacing: -.04em; line-height: 1.03; max-width: 12em; text-wrap: balance; }
.inv-contact p { color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); max-width: 36em; margin-top: 22px; }
.inv-contact .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.inv-contact-alt { font-size: 15px !important; }

@media (max-width: 960px) {
  .mk, .inv-two, .vl-two { grid-template-columns: minmax(0, 1fr); }
  .vl-funnel li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .vl-funnel .vl-bar { grid-column: 1 / -1; grid-row: 2; }
  .vl-segs li { grid-template-columns: minmax(0, 1fr) 4.5em; row-gap: 6px; }
  .vl-segs .vl-bar { grid-column: 1 / -1; grid-row: 2; }
  .steps-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .inv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .inv .nav .btn-sm { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-bar i, .vl-bar i { transition: none; }
  .vl.anim :is(.vl-funnel, .vl-segs):not(.in) .vl-bar i { transform: none; }
}
