  --blue: #2966B1;
  --blue-mid: #2581C4;
  --blue-dark: #1A4A8A;
  --gold: #E8AF3F;
  --gold-gradient-end: #F2CA8B;
  --ink: #0F1A2E;
  --ink-soft: #3D4F6A;
  --paper: #FAFCFF;
  --font-primary: 'Uni Neue', 'Nunito', system-ui, sans-serif;
  --font-fallback: 'Nunito', system-ui, sans-serif;
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--progress-height) + 1.5rem);
}
body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--blue-mid);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
ul,
ol {
  list-style: none;
}
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.375rem, 3vw + 0.4rem, 1.875rem);
  margin-bottom: 0.75rem;
}
h3 {
  font-size: clamp(1.125rem, 2vw + 0.3rem, 1.375rem);
  margin-bottom: 0.5rem;
}
p {
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
  margin-bottom: 1rem;
  color: var(--ink);
}
.hero {
  font-size: clamp(2rem, 5vw + 0.5rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.progress-bar-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 28px;
  padding: 0 1rem;
  background-color: var(--paper);
  border-bottom: 1px solid rgba(15, 26, 46, 0.06);
}
.progress-bar-track {
  position: relative;
  flex: 1;
  height: var(--progress-height);
  background-color: rgba(15, 26, 46, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, var(--blue-mid), var(--gold));
  border-radius: 2px;
  transition: width 0.5s ease;
}
.progress-bar-label {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 2.5rem;
  text-align: right;
}
#main-content {
  min-height: calc(100vh - var(--header-height) - 28px - 80px);
}
#main-content:focus {
  outline: none;
}
.sidebar-tree__item--current {
  background-color: rgba(232, 175, 63, 0.08);
  border-left-color: var(--gold);
  font-weight: 700;
  color: var(--ink);
}
.sidebar-tree__item--completed {
  color: var(--ink);
}
.sidebar-tree__item--completed .sidebar-tree__icon {
  color: var(--success);
}
.sidebar-tree__item--in-progress {
  color: var(--ink);
}
.sidebar-tree__item--in-progress .sidebar-tree__icon {
  color: var(--gold);
}
.sidebar-tree__item--locked {
  color: var(--locked);
  cursor: default;
}
.sidebar-tree__item--locked:hover {
  background-color: transparent;
}
.sidebar-tree__item--pending-payment {
  color: var(--locked);
  cursor: default;
}
.sidebar-tree__item--pending-payment:hover {
  background-color: transparent;
}
.sidebar-tree__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.75rem;
}
.sidebar-tree__sub {
  padding-left: 1.5rem;
}
.toc-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  background-color: rgba(41, 102, 177, 0.06);
  border: 1px solid rgba(41, 102, 177, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.toc-toggle:hover {
  background-color: rgba(41, 102, 177, 0.1);
}
.toc-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.toc--mobile-open {
  display: block;
  margin-bottom: 1.5rem;
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cartera-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cartera-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background-color: #fff;
  border: 2px solid rgba(15, 26, 46, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.cartera-card:hover {
  border-color: rgba(41, 102, 177, 0.3);
  box-shadow: var(--shadow);
}
.cartera-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cartera-card--selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 102, 177, 0.15);
  background-color: rgba(41, 102, 177, 0.02);
}
.cartera-card--selected::after {
  content: '✓';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--blue);
  border-radius: 50%;
}
.cartera-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.cartera-card__desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cartera-card__allocation {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.cartera-card__allocation span:first-child {
  color: var(--blue);
}
.cartera-card__allocation span:last-child {
  color: var(--gold);
}
.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-gradient-end));
  box-shadow: 0 2px 8px rgba(232, 175, 63, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 4px 16px rgba(232, 175, 63, 0.4);
  text-decoration: none;
  color: var(--ink);
}
.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.video-card {
  margin-bottom: 1.5rem;
  background-color: #fff;
  border: 1px solid rgba(15, 26, 46, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-card__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: var(--ink);
}
.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}
.video-card__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.video-card__checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--success);
  cursor: pointer;
}
.video-card__checkbox--checked {
  color: var(--success);
}
.video-card__checkbox--checked input[type="checkbox"] {
  accent-color: var(--success);
}
.profundizar-toggle--inline {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
  font-weight: 400;
  color: var(--blue);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.profundizar-toggle--inline:hover {
  background: none;
  opacity: 0.75;
}
.profundizar-toggle--inline:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.profundizar-toggle__icon,
.bonus-toggle__icon {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.profundizar-toggle--open .profundizar-toggle__icon,
.bonus-toggle--open .bonus-toggle__icon {
  transform: rotate(90deg);
}
.profundizar-content,
.bonus-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.profundizar-content--open,
.bonus-content--open {
  max-height: 9999px;
  overflow: visible;
  opacity: 1;
  padding: 1rem 0;
}
.plan-title-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}
.plan-name-input {
  font-family: inherit;
  font-size: 0.75em;
  font-weight: 700;
  padding: 0.2em 0.4em;
  border: 1px solid rgba(15, 26, 46, 0.15);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  width: auto;
  min-width: 8ch;
  max-width: 20ch;
  text-transform: uppercase;
  transition: border-color 0.2s;
}
.plan-name-input::placeholder {
  color: var(--ink-soft);
  opacity: 0.5;
  font-weight: 400;
  text-transform: none;
}
.plan-name-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(41, 102, 177, 0.12);
}
.done-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(41, 102, 177, 0.04), rgba(232, 175, 63, 0.06));
  border: 1px solid rgba(232, 175, 63, 0.2);
  border-radius: var(--radius);
}
.done-banner__icon {
  font-size: 3rem;
}
.done-banner__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
}
.done-banner__text {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.resume-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background-color: rgba(232, 175, 63, 0.08);
  border: 1px solid rgba(232, 175, 63, 0.2);
  border-radius: var(--radius);
}
.resume-banner--visible {
  display: flex;
}
.resume-banner__text {
  font-size: 0.9375rem;
  color: var(--ink);
}
.resume-banner__btn {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-gradient-end));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
.resume-banner__btn:hover {
  box-shadow: 0 2px 8px rgba(232, 175, 63, 0.3);
  text-decoration: none;
  color: var(--ink);
}
.legal-page {
  padding: 2rem 0;
}
.legal-page h1 {
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.legal-page p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.legal-page ul,
.legal-page ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.legal-page ol {
  list-style: decimal;
}
.legal-page li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.legal-page a {
  color: var(--blue);
  text-decoration: underline;
}
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fff;
  color: var(--ink, #0F1A2E);
  padding: 8px 16px;
  z-index: 1000;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--blue, #2966B1);
  border-radius: 4px;
  transition: top 0.15s ease;
}
.skip-to-content:focus {
  top: 8px;
  left: 8px;
  outline: 2px solid var(--gold, #E8AF3F);
  outline-offset: 2px;
}
.text-center {
  text-align: center;
}
.channel-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background-color: #fff;
  border: 1px solid rgba(15, 26, 46, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.channel-card:hover {
  border-color: rgba(41, 102, 177, 0.25);
  box-shadow: var(--shadow);
}
.channel-card__info {
  flex: 4 1 180px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.channel-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.channel-card__desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.channel-card__link {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.25rem;
}
.channel-card__link:hover {
  color: var(--blue);
  text-decoration: none;
}
.channel-card__img {
  flex: 1 1 120px;
  max-width: 160px;
  object-fit: cover;
  display: block;
}
@media (max-width: 480px) {
  .channel-card {
    flex-direction: column;
  }
  .channel-card__img {
    max-width: 100%;
    height: 120px;
    order: -1;
  }
}
.steps-overview {
  padding: 2rem 0;
}
.steps-overview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.step-overview-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: rgba(41, 102, 177, 0.03);
  border: 1px solid rgba(41, 102, 177, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-overview-card:hover {
  border-color: rgba(41, 102, 177, 0.18);
  box-shadow: 0 2px 12px rgba(41, 102, 177, 0.06);
}
.step-overview-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
  color: var(--ink);
}
.step-overview-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.range-group {
  margin-bottom: 1.5rem;
}
.range-group input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0.75rem 0;
  appearance: none;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 3px;
  outline: none;
}
.range-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background-color: #fff;
  border: 2px solid var(--blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.range-group input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background-color: #fff;
  border: 2px solid var(--blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.range-group input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .container {
    padding: 2.5rem 2rem;
  }
  .has-sidebar #main-content,
  .has-sidebar .site-footer {
    margin-left: 280px;
  }
  .has-sidebar .progress-bar-wrap {
    padding-left: calc(280px + 1rem);
  }
@media (min-width: 1024px) {
  .has-sidebar .container {
    max-width: calc(var(--container-max-width) + 240px);
    padding-right: 260px;
  }
  .container {
    padding: 3rem 2rem;
  }
  .hero-section {
    padding: 5rem 0;
  }
}
.other-input-wrap {
  display: none;
  padding-left: 2rem;
  margin-top: 0.25rem;
}
.other-input-wrap.visible {
  display: block;
}
.other-input-wrap input {
  width: 100%;
  max-width: 320px;
}
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.badge--green {
  background-color: var(--success-light);
  color: var(--success);
}
.badge--amber {
  background-color: #FEF6E4;
  color: #B8860B;
}
.badge--red {
  background-color: #FFEBEE;
  color: var(--error);
}
.cartera-card__implica {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.cartera-card__list {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 1.25rem;
  margin: 0;
}
.cartera-card__list li {
  margin-bottom: 0.125rem;
}
@media print {
  .site-header,
  .progress-bar-wrap,
  .sidebar-tree,
  .sidebar-overlay,
  .toc,
  .toc-toggle,
  .site-footer__links,
  #toast,
  .resume-banner,
  .btn,
  .site-header__hamburger {
    display: none !important;
  }
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .has-sidebar #main-content,
  .has-sidebar .site-footer {
    margin-left: 0 !important;
  }
  h1, h2, h3 {
    page-break-after: avoid;
  }
  .plan-preview__section {
    page-break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  .site-footer {
    margin-left: 0;
  }
  .site-footer__disclaimer {
    color: #333;
  }
}
