/* Sistema Doc — overrides */

:root {
  --doc-accent-primary: #12a4e2;
  --doc-fgColor-light: #ffffff;
  --doc-inverted-onDefault: #ffffff;
  --color-yellow: #edac01;
  --color-yellow-dark: #d18900;
  --color-masterclass-dark: #12191f;
  --color-masterclass-dark-alt: #1b242b;
}

/* Pilares — títulos e imágenes alineados */
.steps.grid-3 .grid-item {
  display: flex;
  flex-direction: column;
}

.steps.grid-3 .grid-item h3 {
  flex-grow: 0;
  line-height: 1.3;
  margin-bottom: 0;
  min-height: 3.6em;
}

.steps.grid-3 .grid-item h3 + .pilar-image {
  margin-top: 8px;
}

.steps.grid-3 .grid-item img.pilar-image {
  aspect-ratio: 608 / 350;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

#instructor,
.full-width-tabs .tab:has(a[href="#instructor"]) {
  display: none !important;
}

.course-overview.closed {
  max-height: 520px !important;
}

/* Hide expand button once the outline is open */
.course-overview:not(.closed) .open-outline-button,
.open-outline-button[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.landing-header-image {
  background-color: #12191f !important;
  background-image:
    linear-gradient(
      90deg,
      #12191f 0%,
      #12191f 38%,
      rgba(18, 25, 31, 0.92) 52%,
      rgba(18, 25, 31, 0.55) 72%,
      rgba(18, 25, 31, 0.25) 100%
    ),
    url(../assets/images/hero-trading.jpg) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center, 72% center !important;
}

/* Promo banner */
.promo-countdown-banner {
  border-bottom: 1px solid var(--doc-accent-primary);
  color: var(--doc-fgColor-light);
  min-height: 56px;
}

.promo-countdown-banner .banner-content {
  gap: 8px;
  flex-wrap: wrap;
}

.promo-countdown-banner p {
  margin: 0;
}

.promo-highlight {
  color: var(--color-yellow);
}

.promo-countdown,
.promo-countdown-inline {
  font-family: Rubik, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.promo-countdown-inline {
  background-color: #1d2730;
  border: 2px solid #3a4d5a;
  border-radius: 8px;
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Sticky tab navigation */
.full-width-tabs.is-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
}

.mobile-menu-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-yellow);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.mobile-menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #12191f;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 280px;
  background: #1b242b;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 16px;
}

.mobile-menu-panel[hidden] {
  display: none;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: Rubik, sans-serif;
  font-size: 15px;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-nav a.button-yellow {
  background: var(--color-yellow);
  color: #12191f;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

/* Free lesson modal — defer to DOC exit-modal.visible styles in styles.css */
.doc-modal.exit-modal[hidden] {
  display: none !important;
}

/* Video placeholder styling */
.video-container video {
  width: 100%;
  display: block;
  background: #000;
  border-radius: inherit;
  aspect-ratio: 16 / 9;
}

.video-container video:not([src]) {
  min-height: 200px;
}

@media (width >= 950px) {
  .vui-visible-until-xs {
    display: none !important;
  }
}

/* Strategic CTA bands */
.cta-band-body {
  margin-inline: auto;
  max-width: 42rem;
  padding-block: 2.5rem;
  padding-inline: 1.5rem;
}

.cta-band.panel .cta-band-body {
  padding-block: 3rem;
}

.cta-band-actions .button {
  min-width: min(100%, 20rem);
}

/* Programa Integral — precio sin countdown */
.cta .cta-price-section .cta-price-info {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.cta .cta-price-section .price-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.cta .cta-price-section .price-value .discount {
  vertical-align: baseline;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
}

.cta .cta-price-section .cta-promo-label {
  margin: 0;
}

@media (width >= 950px) {
  .cta .cta-price-section .cta-price-info {
    align-items: center;
    text-align: center;
  }
}

@media (width >= 768px) {
  .cta-band-body {
    padding-block: 3rem;
    padding-inline: 2rem;
  }

  .cta-band.panel .cta-band-body {
    padding-block: 3.5rem;
  }
}

/* Legal pages — términos y privacidad */
.terms header h1 {
  color: var(--doc-fgColor-light);
}

.terms header .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.terms header .subtitle a {
  color: var(--color-yellow);
}

.terms .legal-article {
  padding-block: 3rem 4rem;
}

.terms .legal-article h2 {
  font-size: 1.5rem;
  margin-block: 2.5rem 1rem;
}

.terms .legal-article h2:first-child {
  margin-top: 0;
}

.terms .legal-article h3 {
  font-size: 1.125rem;
  margin-block: 1.5rem 0.75rem;
}

.terms .legal-article p,
.terms .legal-article li {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.terms .legal-article a {
  color: var(--color-yellow);
}

.terms .legal-article > ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.terms .legal-article > ol > li {
  margin-bottom: 2rem;
}

.terms .legal-article > ol > li > ol {
  list-style: lower-alpha;
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.terms .legal-article > ol > li > ol > li > ol {
  list-style: lower-roman;
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.terms .legal-list {
  list-style: disc;
  margin-block: 0.75rem 1rem;
  padding-left: 1.5rem;
}

.terms .legal-list li {
  margin-bottom: 0.5rem;
}

.terms .legal-table {
  border-collapse: collapse;
  margin-block: 1rem;
  width: 100%;
}

.terms .legal-table td,
.terms .legal-table th {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  vertical-align: top;
}

.terms .legal-table td p {
  margin: 0;
}

@media (width < 600px) {
  .terms .legal-table thead {
    display: none;
  }

  .terms .legal-table tr {
    display: block;
    margin-bottom: 1rem;
  }

  .terms .legal-table td {
    display: block;
    border-top: none;
  }

  .terms .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-yellow);
  }

  .terms .legal-table tr td:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}
