.site-logo { display: block; width: clamp(132px, 13vw, 160px); height: auto; }
.hero-accent { color: #82e894; }
.brand, .footer-logo-link { text-decoration: none; }
.header > .container > .row { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 5%; }
.hero-text-wrapper { min-width: 0; }
.hero-text-wrapper h1 { margin: 0; }
.header-sub p { max-width: 32em; }
.store-wrapper { gap: .8em; flex-wrap: wrap; }
.account-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  white-space: nowrap;
}
.account-action > svg { width: 1.15em; height: 1.15em; flex: none; }
.store-wrapper .account-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; height: auto; padding: .85em 1.45em;
  background: #82e894; color: #111; border: 1px solid #82e894;
  border-radius: .8em; font: 700 1.125em/1.2 Larsseit, sans-serif; text-decoration: none;
}
.store-wrapper .account-button:first-child { border-color: #8d9992; background: transparent; color: white; }
.store-wrapper .account-button:hover { background: #b4f3c4; color: #101810; }
.bg-green .account-button { background: #101810; border-color: #101810; color: #fff; }
.bg-green .account-button:first-child { color: #101810; border-color: #101810; }
a:focus-visible, button:focus-visible { outline: 3px solid #3999ff; outline-offset: -3px; }
.market-panel {
  width: 100%; max-width: 490px; justify-self: center; padding: clamp(20px, 3vw, 42px);
  background: linear-gradient(145deg, #19261e, #111713 80%); border: 1px solid #425047;
  box-shadow: 0 30px 80px #0005; border-radius: 24px; color: #f0f6f1; text-align: left;
}
.panel-top, .quote-heading, .chart-axis, .watch-row { display: flex; align-items: center; justify-content: space-between; gap: .7em; }
.panel-top { padding-bottom: 1em; border-bottom: 1px solid #38473c; font-size: 1.06em; }
.panel-top span { color: #a8eab4; font-size: .78em; }
.quote-heading { margin-top: 1.5em; }
.quote-heading small, .quote-heading b { display: block; }
.quote-heading small { color: #addbb8; font-size: .66em; letter-spacing: .13em; }
.quote-heading b { margin-top: .25em; font-size: 1.3em; }
.quote-heading > span, .chart-axis, .watch-row span:last-child { color: #bac9bf; font-size: .82em; }
.quote-price { margin: .55em 0; font-size: 2.25em; font-weight: 700; letter-spacing: -.04em; }
.quote-price small { font-size: .43em; letter-spacing: 0; color: #d5ded7; }
.market-chart { display: block; width: 100%; }
.chart-axis { margin: .5em 0 1.5em; }
.watch-row { padding-top: .85em; margin-top: .65em; border-top: 1px solid #344038; font-size: .95em; }
.watch-row strong { flex: 0 0 3.5em; color: #9fe5ac; }
.watch-row span:nth-child(2) { flex: 1; }
#mercados .card { flex: 1 1 0; min-width: 0; }
#mercados .card > .txt-sm { font-size: min(1.05em, 1rem); }
.instrument-icon { display: inline-grid; place-items: center; width: 2.25em; height: 2.25em; margin-bottom: 1.4em; border-radius: 30%; background: #def6e5; color: #245738; font-size: 1.45em; font-weight: 700; }
#materias-primas .instrument-icon { background: #e6edf7; color: #3b536e; }
#metales .instrument-icon { background: #f5ead0; color: #745921; }
#criptomonedas .instrument-icon { background: #fff0df; color: #89480d; }
.data-figure { padding: clamp(24px, 3.5vw, 52px); margin: 0; background: #f4f8f4; }
.data-figure figcaption { font-size: 1.65em; font-weight: 700; line-height: 1.2; color: #15251b; }
.data-figure p { margin: .5em 0 1.75em; color: #476051; }
.allocation-bar { display: grid; grid-template-columns: 45fr 25fr 20fr 10fr; gap: 3px; height: 1.5em; margin-bottom: 1em; }
.allocation-bar i { background: #285b3b; }
.allocation-bar i:nth-child(2) { background: #5e9770; }
.allocation-bar i:nth-child(3) { background: #82c98f; }
.allocation-bar i:last-child { background: #afdfb7; }
.data-list { margin: 0; }
.data-list div { display: flex; justify-content: space-between; gap: 1em; padding: .85em 0; border-bottom: 1px solid #d1ded4; }
.data-list dd { font-weight: 700; margin: 0; text-align: right; }
.order-example small { display: block; margin-top: 1em; color: #476051; }
.topic-label { font-size: .95em; font-weight: 700; color: #366a45; }
#cartera .data-list > div { align-items: center; }
#cartera dt, #guia .topic-label { display: flex; align-items: center; gap: .65em; }
.finance-icon {
  box-sizing: border-box;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 9px;
  background: #def6e5;
  color: #245738;
}
.finance-icon.icon-metals { background: #f5ead0; color: #745921; }
.finance-icon.icon-commodities { background: #e6edf7; color: #3b536e; }
.finance-icon.icon-crypto { background: #fff0df; color: #89480d; }
#guia .finance-icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
.slider-item .slider-text { line-height: 1.55; margin: .8em 0 0; }
#cuenta .store-wrapper { justify-content: center; margin-bottom: 2px; }
@media (max-width: 991px) and (min-width: 768px) {
  .nav-link-wrapper { gap: 1.25em; }
}
@media (max-width: 767px) {
  .header > .container > .row { grid-template-columns: 1fr; gap: 2.5em; }
  .hero-text-wrapper { margin: auto; }
  .store-wrapper { justify-content: center; gap: .65em; }
  .market-panel { width: min(100%, 410px); }
  .store-wrapper .account-button { min-height: 44px; font-size: 1em; padding: .85em 1.2em; }
}

.site-footer {
  background: #101713;
  color: #dee7e1;
  font: 400 16px/1.55 Larsseit, sans-serif;
  text-align: left;
}
.footer-inner {
  max-width: 1248px;
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 80px) clamp(20px, 5vw, 64px) 0;
}
.footer-columns { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer h2 { margin: 0 0 16px; color: #a2e6b1; font-size: 17px; line-height: 1.4; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a[href]:hover { color: #b2f0be; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact > a { display: inline-block; }
.footer-contact .site-logo { width: 176px; }
.footer-contact address { display: grid; gap: 10px; margin: 22px 0 0; font-style: normal; }
.footer-contact address > * { display: flex; align-items: baseline; gap: 10px; width: fit-content; }
.footer-contact svg { width: 17px; height: 17px; flex: none; align-self: flex-start; margin-top: 4px; fill: none; stroke: #8cce9a; stroke-width: 1.6; stroke-linejoin: round; }
.footer-documents { color: #b1bfb5; }
.footer-bottom {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(32px, 4.5vw, 64px); border-top: 1px solid #39453c;
  padding-block: 20px; color: #b1bfb5; font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 767px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; }
}

.nav-link-wrapper > .nav-link[aria-current="page"] { color: #82e894; }
.section-page { background: #f6f8f6; }
.section-page .navbar { position: relative; background: #101713; }
.section-width { width: min(90%, 1160px); margin-inline: auto; }
.section-intro { padding: clamp(40px, 6vw, 90px) 0; background: #101713; color: #fff; }
.section-intro h1 { margin: 0; color: #82e894; font-size: clamp(40px, 5vw, 70px); line-height: 1.08; }
.section-intro p, .section-contents p { margin: 16px 0 0; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; }
.section-intro p { max-width: 55ch; color: #deebe2; }
.section-contents { padding-block: clamp(32px, 6vw, 80px); color: #283b30; }
.section-grid, .section-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); }
.section-card, .section-detail { padding: clamp(22px, 3vw, 42px); background: white; border: 1px solid #d9e4dc; border-radius: 16px; }
.section-card h2, .section-detail h2 { margin: 0; color: #17231a; font-size: clamp(24px, 2.7vw, 36px); line-height: 1.18; }
.section-card .instrument-icon, .section-card .topic-label { margin: 0 0 18px; }
.section-detail { align-items: center; }
.section-detail .data-figure { border-radius: 12px; }
.section-detail p + h2 { margin-top: 28px; }
@media (max-width: 767px) {
  .section-grid, .section-detail { grid-template-columns: 1fr; }
  .section-detail .data-figure { padding: 16px; }
}

.quote-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 1.4em;
  color: #bac9bf;
  font-size: .85em;
  line-height: 1.5;
}

/* Match the homepage navigation scale on wide screens. */
@media (min-width: 1280px) {
  .navbar { font-size: 16px; }
}
.section-intro > .section-width {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
.visual-panel, .lesson-figure { margin: 0; }
.visual-panel {
  padding: clamp(20px, 2.4vw, 34px);
  border: 1px solid #405549;
  border-radius: 20px;
  background: linear-gradient(135deg, #20372b, #15251c);
  font-size: 16px;
  line-height: 1.4;
}
.visual-panel figcaption, .lesson-figure figcaption {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25;
}
.diagram-icon {
  display: inline-block; width: 34px; height: 34px; flex: none;
  box-sizing: border-box; padding: 6px; border-radius: 9px;
  background: #dff5e5; color: #265c39;
}
.visual-panel .diagram-icon { background: #314f3b; color: #a1ecaf; }
.section-intro .figure-note { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: #c6d8cc; }
.line-plot { display: block; width: 100%; margin: 18px 0 12px; overflow: visible; }
.plot-grid { fill: none; stroke: #53665a; stroke-dasharray: 2 6; }
.plot-label { fill: #d3dfd7; font: 12px Larsseit, sans-serif; }
.plot-stroke { stroke-width: 3; stroke-linejoin: round; fill: none; }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; }
.diagram-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.diagram-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.allocation-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 20px; }
.allocation-visual .diagram-legend { flex-direction: column; }
.portfolio-ring {
  width: 120px; height: 120px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#88e39a 0 45%, #f3c779 45% 70%, #87b6d2 70% 90%, #aca2d9 90% 100%);
}
.portfolio-ring b { display: grid; place-items: center; width: 82px; height: 82px; background: #1d3024; border-radius: 50%; }
.spread-pair { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 20px; }
.spread-pair > div { display: grid; text-align: center; gap: 4px; padding: 12px 4px; border-radius: 10px; background: #2a4333; }
.spread-pair span { font-size: 14px; }
.spread-pair strong { color: #a1ecaf; font-size: clamp(24px, 2.6vw, 36px); }
.spread-pair > div:last-child strong { color: #f3c779; }
.spread-bracket { height: 12px; border: solid #97aca0; border-width: 0 1px 1px; margin: 6px 25%; }
.spread-result { text-align: center; }
.spread-result b { margin-left: 6px; }
.lesson {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 5vw, 64px); margin-top: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 56px); background: #e6f0e8; border-radius: 18px;
}
.lesson-text h2 { margin: 16px 0 0; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.15; color: #162b1d; }
.lesson-text > .diagram-icon { width: 42px; height: 42px; padding: 8px; background: #c8e4ce; }
.lesson-figure, .order-steps { padding: clamp(16px, 2vw, 28px); border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.4; }
.figure-values { margin: 14px 0 0; }
.figure-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #dde8e0; }
.figure-values dd { margin: 0; white-space: nowrap; font-weight: 700; }
.figure-values .total-row { color: #245c39; border: 0; }
.candle-diagram { display: grid; grid-template-columns: 25% 1fr; align-items: center; gap: 12px; }
.candle-diagram svg { width: 100%; max-height: 155px; }
.order-steps { display: grid; gap: 16px; margin: 0; list-style: none; }
.order-steps li { display: flex; gap: 12px; }
.order-steps p { font-size: 15px; margin: 2px 0 0; }
.return-bars { display: grid; gap: 14px; margin-top: 22px; }
.return-bars > div { display: grid; grid-template-columns: 82px 1fr 32px; align-items: center; gap: 6px; font-size: 14px; }
.return-bars i { width: var(--length); height: 12px; background: #47935a; border-radius: 0 4px 4px 0; }
.return-bars > div:nth-child(2) i { background: #a17636; }
@media (max-width: 767px) {
  .section-intro > .section-width, .lesson { grid-template-columns: 1fr; }
}
