:root {
  --green-950: #062017;
  --green-900: #0A2E22;
  --green-800: #0E3B2C;
  --green-700: #125243;
  --green-600: #0F5D43;
  --gold-100: #F4E2A1;
  --gold-300: #E8C766;
  --gold-500: #C9A227;
  --gold-700: #9A7A1C;
  --text: #F3F7F5;
  --text-dim: #B9CDC4;
  --up: #2fc795;
  --down: #e0674f;
  --wood: #3a2416;
  --wood-light: #5c3a22;
  --glass-bg: rgba(14, 59, 44, 0.42);
  --glass-brd: rgba(232, 199, 102, 0.20);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --chalk: "Caveat", "Segoe Script", cursive;
  --wrap: 1180px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--green-950);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(15, 93, 67, 0.55), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(10, 46, 34, 0.7), transparent 55%),
    linear-gradient(180deg, var(--green-950), #041912);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--gold-300);
  color: var(--green-950);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-logo { display: block; width: auto; height: 96px; margin: -12px 0 -8px -12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 32, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--glass-brd);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  transition: margin-top 0.3s ease, padding 0.3s ease;
}
.site-header:not(.scrolled) .header-inner { margin-top: 26px; padding: 0 34px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-sign-logo { display: block; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(232, 199, 102, 0.6); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); transition: width 0.3s ease, height 0.3s ease; }
.brand-sign { font-family: var(--chalk); font-size: 1.32rem; line-height: 1.1; color: var(--text-dim); white-space: nowrap; }
.brand-sign strong { font-weight: 700; color: var(--gold-100); }
.site-header.scrolled .brand-sign-logo { width: 34px; height: 34px; }
.site-header.scrolled .brand-sign { font-size: 1.16rem; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--gold-300); }
.nav-ext { display: inline-flex; align-items: center; gap: 6px; }
.nav-ext svg { width: 14px; height: 14px; fill: currentColor; opacity: .85; }
.nav-juego {
  display: inline-flex;
  align-items: center;
  color: var(--gold-100);
  border: 1.5px solid var(--gold-500);
  border-radius: 999px;
  padding: 6px 12px 6px 14px;
  background: rgba(201, 162, 39, 0.12);
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.45);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-juego:hover, .nav-juego.active {
  color: var(--green-950);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300));
  border-color: var(--gold-100);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}
.nav-juego:hover .badge-new, .nav-juego.active .badge-new {
  background: var(--green-950);
  color: var(--gold-100);
  box-shadow: none;
}
.nav-cta {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 18px;
  margin-left: 6px;
  border-radius: 999px;
  color: var(--green-950);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-500));
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201, 162, 39, 0.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  background: rgba(10, 46, 34, 0.5);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--gold-300);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-gold {
  color: var(--green-950);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-500));
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.32);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201, 162, 39, 0.46); }
.btn-line { color: var(--gold-100); border: 1.6px solid rgba(232, 199, 102, 0.55); background: transparent; }
.btn-line:hover { transform: translateY(-2px); background: rgba(232, 199, 102, 0.12); border-color: var(--gold-300); }
.btn-whats {
  color: var(--green-950);
  background: linear-gradient(135deg, #4bd28a, #1f9c63);
  box-shadow: 0 12px 30px rgba(31, 156, 99, 0.3);
}
.btn-whats:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31, 156, 99, 0.44); }
.btn-block { width: 100%; }

.hero { position: relative; isolation: isolate; padding: 2.7rem 0 1.6rem; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--green-800), var(--green-900) 55%, var(--green-950));
  box-shadow: inset 0 0 0 10px var(--wood), inset 0 0 0 13px var(--wood-light), inset 0 0 120px rgba(0, 0, 0, 0.5), var(--shadow-lg);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.5;
  z-index: -1;
  mix-blend-mode: overlay;
}
.hero-chalk { position: absolute; inset: 14px; border-radius: 22px; overflow: hidden; pointer-events: none; }
.hero-chart { position: absolute; right: 3%; bottom: 8%; width: min(42%, 470px); height: auto; opacity: 0.9; }
.hero-chart .trace { stroke: rgba(243, 247, 245, 0.75); stroke-width: 2; fill: none; stroke-linecap: round; }
.hero-chart .trace-trend { stroke: var(--gold-100); stroke-width: 2.4; opacity: 0.9; }
.hero-chart .hc line { stroke-width: 2; }
.hero-chart .hc rect { stroke-width: 2; }
.hero-chart .hc.up rect { fill: rgba(47, 199, 149, 0.32); stroke: var(--up); }
.hero-chart .hc.up line { stroke: rgba(47, 199, 149, 0.7); }
.hero-chart .hc.down rect { fill: rgba(224, 103, 79, 0.28); stroke: var(--down); }
.hero-chart .hc.down line { stroke: rgba(224, 103, 79, 0.7); }
.hero-note { position: absolute; font-family: var(--chalk); color: var(--gold-100); font-size: 1.35rem; opacity: 0.85; transform: rotate(-5deg); }
.hero-note-1 { top: 16%; right: 8%; }
.hero-note-2 { top: 26%; right: 5%; font-size: 1.15rem; transform: rotate(-3deg); color: var(--text-dim); }

.hero .wrap { padding: 0 34px; }
.hero-body { position: relative; z-index: 2; max-width: 540px; }
.hero-head { display: flex; align-items: center; gap: 14px; margin-bottom: 0.55rem; }
.hero-cap { flex: none; width: 54px; height: 54px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5)); }
.hero-cap svg { width: 100%; height: 100%; }
.hero-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 0; }
.hero-title .hl {
  color: var(--gold-100);
  background-image: linear-gradient(90deg, rgba(201, 162, 39, 0), var(--gold-500), rgba(201, 162, 39, 0));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.1em;
  padding-bottom: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead { font-size: 0.94rem; color: var(--text-dim); max-width: 58ch; margin-bottom: 0.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.05rem; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.4rem; max-width: 440px; }
.fact-item { display: flex; flex-direction: column; gap: 0.1rem; padding-left: 0.9rem; border-left: 2px solid rgba(232, 199, 102, 0.4); }
.fact-item dt { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--gold-100); line-height: 1; }
.fact-item dd { font-size: 0.86rem; color: var(--text-dim); }

.motto { padding: 1.7rem 0; background: linear-gradient(180deg, transparent, rgba(15, 93, 67, 0.14), transparent); }
.motto-body { display: flex; align-items: center; justify-content: center; gap: 1.4rem; text-align: center; }
.motto-laurel { width: 38px; height: 76px; flex: none; opacity: 0.85; }
.motto-laurel-r { transform: scaleX(-1); }
.motto-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3.6vw, 1.85rem); max-width: 40ch; line-height: 1.35; }

.section { padding: 62px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.kicker {
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-intro {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.panel-title { font-family: var(--serif); font-weight: 700; font-size: 1.42rem; line-height: 1.2; }
.panel-sub { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }

.up { color: var(--up); }
.down { color: var(--down); }

.motto-title { font-family: var(--chalk); font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--gold-100); line-height: 1.1; margin-bottom: 0.3rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-card { padding: 28px 28px 30px; }
.about-title { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.about-title::before { content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 16px 16px; }
.about-yes .about-title::before { background-color: rgba(47, 199, 149, 0.18); border: 1px solid rgba(47, 199, 149, 0.55); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%232fc795' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.about-no .about-title::before { background-color: rgba(224, 103, 79, 0.16); border: 1px solid rgba(224, 103, 79, 0.55); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%23e0674f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.about-list { list-style: none; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 20px; color: var(--text-dim); }
.about-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; }
.about-yes .about-list li::before { background: var(--up); }
.about-no .about-list li::before { background: var(--down); }
.about-no { border-color: rgba(224, 103, 79, 0.28); }

.section-course { background: linear-gradient(180deg, transparent, rgba(10, 46, 34, 0.35), transparent); }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.map-group { padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--glass-brd); background: rgba(6, 32, 23, 0.45); }
.map-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-300); }
.map-question { font-family: var(--chalk); font-size: 1.35rem; color: var(--gold-100); line-height: 1.2; margin: 2px 0 16px; }
.modules { list-style: none; display: grid; gap: 12px; }
.modules-2 { grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.module { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: rgba(14, 59, 44, 0.45); border: 1px solid rgba(232, 199, 102, 0.12); transition: border-color 0.2s ease, transform 0.2s ease; }
.module:hover { border-color: rgba(232, 199, 102, 0.4); transform: translateY(-2px); }
.module-num { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-family: var(--mono); font-weight: 600; font-size: 1rem; color: var(--gold-100); background: rgba(232, 199, 102, 0.1); border: 1px solid rgba(232, 199, 102, 0.35); }
.module-name { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; line-height: 1.2; }
.module-desc { font-size: 0.88rem; color: var(--text-dim); margin: 6px 0 10px; }
.module-week { display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--gold-100); padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(232, 199, 102, 0.45); }
.map-wide { padding: 22px 20px; margin-bottom: 22px; }
.map-wide-head { margin-bottom: 2px; }
.map-close { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: stretch; }
.map-close .map-wide { margin-bottom: 0; }
.module-final { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; padding: 24px 26px; border-color: rgba(232, 199, 102, 0.45); background: linear-gradient(150deg, rgba(232, 199, 102, 0.14), rgba(14, 59, 44, 0.5) 55%, rgba(6, 32, 23, 0.55)); }
.module-final .module-name { font-size: 1.5rem; margin-top: 4px; }
.final-cap { width: 110px; height: 110px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45)); }
.final-cap svg { width: 100%; height: 100%; }

.concept-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--gold-300); margin-bottom: 6px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

.section-lab { background: linear-gradient(180deg, transparent, rgba(6, 32, 23, 0.5), transparent); }

.chart-lab { padding: 22px; margin-bottom: 24px; }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.lesson-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: rgba(6, 32, 23, 0.55);
  color: var(--text-dim);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lesson-tab:hover { color: var(--text); border-color: rgba(232, 199, 102, 0.45); }
.lesson-tab.is-active { color: var(--green-950); background: linear-gradient(135deg, var(--gold-100), var(--gold-500)); border-color: transparent; }
.chart-flag { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--gold-100); border: 1px dashed rgba(232, 199, 102, 0.5); padding: 6px 12px; border-radius: 8px; }

.chart-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.chart-stage { position: relative; border-radius: 14px; background: rgba(4, 20, 14, 0.6); border: 1px solid var(--glass-brd); padding: 6px; overflow: hidden; }
.chart-host { width: 100%; min-height: 280px; }
.chart-svg { display: block; touch-action: pan-y; }
.chart-svg .grid { stroke: rgba(232, 199, 102, 0.08); }
.chart-svg .axis { fill: var(--text-dim); font-family: var(--mono); font-size: 11px; }
.chart-svg .wick.up { stroke: var(--up); }
.chart-svg .wick.down { stroke: var(--down); }
.chart-svg .body.up { fill: var(--up); }
.chart-svg .body.down { fill: var(--down); }
.chart-svg .vol { opacity: 0.25; }
.chart-svg .vol.up { fill: var(--up); }
.chart-svg .vol.down { fill: var(--down); }
.chart-svg .cursor { stroke: rgba(244, 226, 161, 0.5); stroke-dasharray: 3 4; }
.chart-svg .hit { fill: transparent; cursor: crosshair; }
.chart-svg .ov { animation: ovIn 0.5s ease both; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.chart-svg .lbl { font-family: var(--sans); font-weight: 800; font-size: 11px; paint-order: stroke; stroke: rgba(4, 20, 14, 0.9); stroke-width: 4px; stroke-linejoin: round; }
.chart-svg .lbl.up { fill: var(--up); }
.chart-svg .lbl.down { fill: var(--down); }
.chart-svg .lbl.gold { fill: var(--gold-100); }
.chart-svg .box { fill: none; stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart-svg .box.up { stroke: var(--up); }
.chart-svg .box.down { stroke: var(--down); }
.chart-svg .ema { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.chart-svg .ema-fast { stroke: var(--gold-300); }
.chart-svg .ema-slow { stroke: #8ab4ff; }
.chart-svg .dot { stroke: var(--green-950); stroke-width: 2; fill: var(--gold-300); }
.chart-svg .dot.up { fill: var(--up); }
.chart-svg .dot.down { fill: var(--down); }
.chart-svg .zone { opacity: 0.16; }
.chart-svg .zone.up { fill: var(--up); }
.chart-svg .zone.down { fill: var(--down); }
.chart-svg .zline { stroke-width: 1.4; stroke-dasharray: 6 4; }
.chart-svg .zline.up { stroke: var(--up); }
.chart-svg .zline.down { stroke: var(--down); }
.chart-svg .ref-band { fill: var(--gold-300); opacity: 0.12; }
.chart-svg .ref-line { stroke: var(--gold-300); stroke-width: 1.6; stroke-dasharray: 6 4; }
.chart-svg .future { fill: rgba(4, 20, 14, 0.62); }
.chart-svg .future-edge { stroke: rgba(244, 226, 161, 0.35); stroke-dasharray: 3 4; }
.chart-svg .entry { fill: var(--gold-100); stroke: var(--green-950); stroke-width: 2; }
.chart-svg .guide { fill: none; stroke: var(--gold-100); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart-svg .trendline { stroke: var(--gold-300); stroke-width: 2; }

.chart-tip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  pointer-events: none;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(4, 20, 14, 0.94);
  border: 1px solid var(--glass-brd);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  box-shadow: var(--shadow);
}
.chart-tip[hidden] { display: none; }
.chart-tip b { grid-column: 1 / -1; color: var(--gold-100); font-weight: 600; }
.chart-tip strong { color: var(--text); font-weight: 600; }

.lesson-level { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.lesson-text { color: var(--text-dim); margin: 8px 0 14px; font-size: 0.95rem; }
.lesson-points { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.lesson-points li { position: relative; padding-left: 18px; font-size: 0.9rem; }
.lesson-points li::before { content: "▸"; position: absolute; left: 0; color: var(--gold-300); }
.lesson-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.8rem; color: var(--text-dim); }
.lesson-legend li { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; }
.sw-up { background: var(--up); }
.sw-down { background: var(--down); }
.sw-gold { background: var(--gold-300); }
.sw-blue { background: #8ab4ff; }
.sw-dark { height: 10px; background: rgba(4, 20, 14, 0.9); border: 1px dashed rgba(244, 226, 161, 0.45); }

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.concept { padding: 24px; }
.recover { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.recover li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-family: var(--mono); font-size: 0.82rem; }
.rec-loss { color: var(--down); font-weight: 600; }
.rec-track { height: 10px; border-radius: 999px; background: rgba(6, 32, 23, 0.7); overflow: hidden; }
.rec-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-300), var(--down)); transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in .rec-fill { width: var(--w); }
.recover li:nth-child(2) .rec-fill { transition-delay: 0.1s; }
.recover li:nth-child(3) .rec-fill { transition-delay: 0.2s; }
.recover li:nth-child(4) .rec-fill { transition-delay: 0.3s; }
.recover li:nth-child(5) .rec-fill { transition-delay: 0.4s; }
.rec-gain { color: var(--gold-100); text-align: right; font-weight: 600; }

.cols { display: flex; gap: 10px; height: 180px; margin-top: 20px; border-bottom: 1px solid var(--glass-brd); }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.col-val { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--gold-100); }
.col-bar { width: 100%; max-width: 46px; height: 0; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--gold-300), rgba(201, 162, 39, 0.3)); transition: height 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in .col-bar { height: var(--h); }
.cols-labels { display: flex; gap: 10px; margin-top: 8px; }
.cols-labels span { flex: 1; text-align: center; font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); }

.inscripcion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; display: grid; gap: 16px; margin: 26px 0; }
.info-list li { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-brd); }
.info-k { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); }
.info-v { color: var(--text-dim); }
.info-v a { color: var(--gold-100); }

.inscripcion-form { padding: 30px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.req { color: var(--gold-300); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--text);
  background: rgba(6, 32, 23, 0.65);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(185, 205, 196, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-300); box-shadow: 0 0 0 3px rgba(232, 199, 102, 0.18); }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold-300) 50%), linear-gradient(135deg, var(--gold-300) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--green-900); color: var(--text); }
.field-check { grid-template-columns: 24px 1fr; align-items: start; gap: 12px; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-500); }
.field-check label { font-size: 0.86rem; color: var(--text-dim); font-weight: 400; }
.field-error { color: var(--down); font-size: 0.8rem; font-weight: 600; min-height: 1em; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--down); }
.form-success { background: rgba(47, 199, 149, 0.14); border: 1px solid rgba(47, 199, 149, 0.5); color: #b8f0d9; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 0.92rem; }
.form-success.is-error { background: rgba(224, 103, 79, 0.14); border-color: rgba(224, 103, 79, 0.5); color: #f6c3b7; }
.form-success a { color: inherit; text-decoration: underline; }

.site-footer { border-top: 1px solid var(--glass-brd); background: rgba(4, 20, 14, 0.7); padding: 50px 0 30px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-brand { display: grid; gap: 8px; justify-items: start; }
.footer-lema { color: var(--text-dim); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .social-link { text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover, .social-link:hover { color: var(--gold-100); }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--glass-brd); display: grid; gap: 10px; }
.footer-copy { font-size: 0.86rem; color: var(--text-dim); }
.footer-disclaimer { font-size: 0.78rem; color: rgba(185, 205, 196, 0.62); max-width: 900px; }

@media (min-width: 640px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .hero { padding: 6.6rem 0 2.1rem; }
  .hero-chart { width: min(40%, 450px); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(6, 32, 23, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-brd);
    transform: translateY(-140%);
    transition: transform 0.35s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .site-header:not(.scrolled) .nav { inset: 96px 0 auto 0; max-height: calc(100vh - 96px); }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 14px 12px; border-radius: 12px; }
  .nav-link:hover { background: rgba(18, 82, 67, 0.5); }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .chart-body { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .inscripcion-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .map-close { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  .hero-note { display: none; }
  .hero-chart { width: 92%; right: 4%; bottom: 3%; opacity: 0.22; }
  .hero-cap { width: 44px; height: 44px; }
  .hero-head { gap: 11px; }
  .modules-2 { grid-template-columns: 1fr; }
  .module-final { grid-template-columns: 1fr; justify-items: start; }
  .final-cap { width: 84px; height: 84px; }
}

@media (max-width: 520px) {
  .section { padding: 68px 0; }
  .motto-laurel { width: 26px; height: 52px; }
  .chart-lab, .concept { padding: 16px; }
  .lesson-tab { padding: 8px 12px; font-size: 0.82rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .inscripcion-form, .about-card, .module-final { padding: 20px; }
  .map-group, .map-wide { padding: 18px 14px; }
  .module { grid-template-columns: 38px 1fr; padding: 12px; }
  .module-num { width: 38px; height: 38px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chart-svg .ov { animation: none; }
  .rec-fill, .col-bar { transition: none; }
}

@media (max-width: 400px) {
  .hero { padding-top: 7.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-cap { animation: float 5s ease-in-out infinite; transform-origin: 50% 8%; }
  .hero-chart .hc { opacity: 0; transform-box: fill-box; transform-origin: bottom; animation: sprout 0.5s ease-out forwards; }
  .hero-chart .hc:nth-child(1) { animation-delay: 0.5s; }
  .hero-chart .hc:nth-child(2) { animation-delay: 0.65s; }
  .hero-chart .hc:nth-child(3) { animation-delay: 0.8s; }
  .hero-chart .hc:nth-child(4) { animation-delay: 0.95s; }
  .hero-chart .hc:nth-child(5) { animation-delay: 1.1s; }
  .hero-chart .hc:nth-child(6) { animation-delay: 1.25s; }
  .hero-chart .hc:nth-child(7) { animation-delay: 1.4s; }
  .hero-chart .hc:nth-child(8) { animation-delay: 1.55s; }
  .hero-chart .trace { stroke-dasharray: 640; stroke-dashoffset: 640; animation: trace 2s ease-out forwards; }
  .hero-chart .trace-trend { animation-delay: 0.3s; }
  .hero-note { opacity: 0; animation: noteIn 0.8s ease-out forwards; }
  .hero-note-1 { animation-delay: 1.7s; }
  .hero-note-2 { animation-delay: 1.95s; }
}

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes sprout { from { opacity: 0; transform: scaleY(0.2); } to { opacity: 1; transform: scaleY(1); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes noteIn { from { opacity: 0; transform: translateY(6px) rotate(-5deg); } to { opacity: 0.85; transform: translateY(0) rotate(-5deg); } }

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

/* Simulador */
.section-sim { padding-top: 24px; }
.sim-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: 34px 38px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(232, 199, 102, 0.45);
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(201, 162, 39, 0.16), transparent 58%),
    linear-gradient(150deg, rgba(14, 59, 44, 0.92), rgba(6, 32, 23, 0.94));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(244, 226, 161, 0.14);
  overflow: hidden;
}
.sim-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-100), var(--gold-500));
}
.sim-card .section-title { margin-bottom: 0.5rem; }
.sim-card .section-intro { margin-bottom: 1.1rem; }
.badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-500));
  color: var(--green-950);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}
.badge-new-sm { margin-left: 6px; padding: 2px 6px; font-size: 0.54rem; }
.sim-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0 2.2rem; margin: 0 0 1.3rem; padding: 0; }
.sim-facts li { display: flex; flex-direction: column; }
.sim-facts strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--gold-100); }
.sim-facts span { font-size: 0.78rem; color: var(--text-dim); margin-top: 3px; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.sim-nota { margin-top: 1rem; font-size: 0.76rem; line-height: 1.6; color: rgba(185, 205, 196, 0.7); max-width: 54ch; }
.sim-art { display: flex; align-items: center; justify-content: center; }
.sim-art svg { width: 100%; max-width: 260px; height: auto; }
.sim-ema { fill: none; stroke: var(--gold-100); stroke-width: 2.4; stroke-linecap: round; opacity: 0.9; }
.sim-c line { stroke-width: 2; }
.sim-c.up rect { fill: rgba(47, 199, 149, 0.34); stroke: var(--up); stroke-width: 2; }
.sim-c.up line { stroke: rgba(47, 199, 149, 0.75); }
.sim-c.down rect { fill: rgba(224, 103, 79, 0.3); stroke: var(--down); stroke-width: 2; }
.sim-c.down line { stroke: rgba(224, 103, 79, 0.75); }
@media (max-width: 860px) {
  .sim-card { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; }
  .sim-art { order: -1; }
  .sim-art svg { max-width: 210px; }
  .sim-facts { gap: 0 1.5rem; }
}
@media (max-width: 560px) {
  .brand-sign { font-size: 1.1rem; }
  .brand-sign-logo { width: 34px; height: 34px; }
}
@media (max-width: 720px) {
  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1rem; justify-content: stretch; }
}
.hero-avatars {
  position: absolute;
  z-index: 3;
  top: 39%;
  right: 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-decoration: none;
}
.hero-av-stack { display: flex; align-items: center; }
.hero-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-image: url('../assets/avatars-mini.webp');
  background-size: 900% 100%;
  background-repeat: no-repeat;
  background-color: #10251b;
  border: 2px solid rgba(232, 199, 102, 0.55);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.hero-av + .hero-av { margin-left: -12px; }
.hero-av[data-av="0"] { background-position: 0% center; }
.hero-av[data-av="1"] { background-position: 12.5% center; }
.hero-av[data-av="2"] { background-position: 25% center; }
.hero-av[data-av="3"] { background-position: 37.5% center; }
.hero-av[data-av="4"] { background-position: 50% center; }
.hero-av[data-av="5"] { background-position: 62.5% center; }
.hero-av[data-av="6"] { background-position: 75% center; }
.hero-av[data-av="7"] { background-position: 87.5% center; }
.hero-av[data-av="8"] { background-position: 100% center; }
.hero-avatars:hover .hero-av { border-color: var(--gold-100); }
.hero-avatars:hover .hero-av + .hero-av { margin-left: -6px; }
.hero-av-txt { font-family: var(--chalk); font-size: 1.05rem; color: var(--text-dim); transform: rotate(-3deg); }
.hero-avatars:hover .hero-av-txt { color: var(--gold-100); }
@media (max-width: 900px) {
  .hero-avatars { display: none; }
}
