/* Master Traders Academy · tokens de marca (marca/DESIGN.md) */
:root {
  --navy: #0F1227;
  --navy-deep: #080A18;
  --navy-raised: #171B3A;
  --line: #2A2F55;
  --gold-shadow: #A87F50;
  --gold: #C9B47B;
  --gold-light: #F2F0AF;
  --ivory: #F5F3EA;
  --muted: #9A9DB8;
  --metal: linear-gradient(90deg, #A87F50 0%, #E0D599 35%, #F2F0AF 50%, #DFCE92 65%, #A87F50 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px; /* Una sola escala: esquinas casi rectas, estilo institucional */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  /* Capas: 10 contenido elevado · 40 barra móvil · 50 navegación · 60 botón WhatsApp */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ivory);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Viñeta suave en los bordes, sin cuadrículas ni texturas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(8, 10, 24, 0.75) 100%);
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }
section[id] { scroll-margin-top: 72px; }

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

/* Tipografía */
.display {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin: 22px 0 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Palabra dorada con barrido de brillo metálico */
.gold {
  background: var(--metal);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold.is-shining { animation: shine 1.8s var(--ease) forwards; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn i { font-size: 1.15rem; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-gold { background: var(--metal); color: var(--navy); }
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Navegación */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), height 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(8, 10, 24, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); height: 68px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  position: relative;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn { height: 44px; padding: 0 22px; font-size: 0.72rem; }
.nav-toggle { display: none; font-size: 1.6rem; color: var(--ivory); }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; filter: grayscale(1) contrast(1.1) brightness(0.42); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(15, 18, 39, 0.94) 38%, rgba(15, 18, 39, 0.55) 70%, rgba(15, 18, 39, 0.8) 100%),
    linear-gradient(0deg, var(--navy) 0%, transparent 30%);
  mix-blend-mode: normal;
}
.hero-media::before { content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color; z-index: 1; }
.hero .wrap { display: block; }
.hero .wrap > div { max-width: 640px; }
.hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.9rem); margin-top: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; white-space: nowrap; }
@media (max-width: 520px) { .hero h1 .line { white-space: normal; } }
.hero h1 .line > span { display: inline-block; }

.chart-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 27, 58, 0.78), rgba(8, 10, 24, 0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 22px 22px 14px;
}
.chart-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 1px; background: var(--gold); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart-head span:first-child { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.chart-head .live { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.chart-body { height: 300px; }
.chart-foot { font-size: 0.7rem; color: var(--muted); margin-top: 8px; }

/* Cinta de mercados */
.tape { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-deep); min-height: 46px; }

/* Cifras */
.stats { padding: 96px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; color: var(--ivory); }
.stat .num small { font-size: 0.45em; color: var(--gold); margin-left: 6px; }
.stat p { margin: 14px 0 0; font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Secciones */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.section-head { max-width: 760px; margin-bottom: 64px; }

/* Perfil */
.profile { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: stretch; }
.profile-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.profile-tab {
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: center;
  text-align: left;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.4s var(--ease), padding 0.5s var(--ease);
}
.profile-tab .mono { color: var(--line); font-size: 0.9rem; transition: color 0.4s var(--ease); }
.profile-tab strong { font-weight: 700; font-size: 1.15rem; display: block; }
.profile-tab span.sub { font-size: 0.9rem; }
.profile-tab i { opacity: 0; transform: translateX(-8px); transition: all 0.4s var(--ease); color: var(--gold); }
.profile-tab:hover, .profile-tab[aria-selected="true"] { color: var(--ivory); }
.profile-tab[aria-selected="true"] { padding-left: 12px; }
.profile-tab[aria-selected="true"] .mono { color: var(--gold); }
.profile-tab[aria-selected="true"] i { opacity: 1; transform: none; }
.profile-panel { position: relative; background: var(--navy-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; overflow: hidden; }
.profile-panel .bull { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: 0.06; }
.profile-panel h3 { font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1; margin: 0 0 20px; letter-spacing: -0.02em; }
.profile-panel p { color: var(--muted); margin: 0; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { border: 1px solid var(--line); padding: 8px 14px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); border-radius: var(--radius); }

/* Método: columna fija + pilares */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.method-sticky { position: sticky; top: 120px; align-self: start; }
.method-img { margin-top: 44px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.method-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) sepia(0.25) brightness(0.8); transform: scale(1.12); }
.pillars { display: flex; flex-direction: column; gap: 22vh; padding: 10vh 0 6vh; }
.pillar .mono { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.2em; }
.pillar h3 { font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1; margin: 16px 0 18px; }
.pillar p { color: var(--muted); margin: 0; max-width: 42ch; }
.pillar .rule { width: 100%; height: 1px; background: var(--line); margin-top: 34px; position: relative; overflow: hidden; }
.pillar .rule::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Ruta / temario */
.route { position: relative; max-width: 980px; }
.route-line { position: absolute; left: 27px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.route-line span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--gold-light), var(--gold) 40%, var(--gold-shadow)); transform: scaleY(0); transform-origin: top; }
.module { position: relative; padding-left: 92px; }
.module-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; text-align: left; padding: 30px 0; border-bottom: 1px solid var(--line); }
.module-node { position: absolute; left: 0; top: 24px; width: 55px; height: 55px; border-radius: 50%; border: 1px solid var(--line); background: var(--navy); display: grid; place-items: center; font-size: 0.85rem; color: var(--muted); transition: all 0.5s var(--ease); }
.module.is-reached .module-node { border-color: var(--gold); color: var(--gold); }
.module-btn small { display: block; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.module-btn strong { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.05; }
.module-btn i { font-size: 1.4rem; color: var(--gold); transition: transform 0.5s var(--ease); }
.module.is-open .module-btn i { transform: rotate(45deg); }
.module-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.module.is-open .module-body { grid-template-rows: 1fr; }
.module-body > div { overflow: hidden; }
.topics { list-style: none; margin: 0; padding: 28px 0 36px; columns: 2; column-gap: 48px; }
.topics li { break-inside: avoid; display: grid; grid-template-columns: 34px 1fr; padding: 7px 0; color: var(--muted); font-size: 0.95rem; }
.topics li .mono { color: var(--gold); font-size: 0.78rem; padding-top: 3px; }
.topics li.eval { color: var(--ivory); }
.route-cta { padding-left: 92px; }

/* Manifiesto 30 operaciones */
.manifest { position: relative; text-align: left; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-deep); }
.manifest .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.manifest .big { font-size: clamp(7rem, 18vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; }
.manifest h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.manifest p { color: var(--muted); max-width: 50ch; margin: 22px 0 0; }

/* Precios */
.pricing { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; margin-top: 36px; position: relative; }
.switch button { position: relative; z-index: 1; padding: 12px 18px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--muted); transition: color 0.4s var(--ease); }
.switch button[aria-pressed="true"] { color: var(--navy); }
.switch .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; background: var(--metal); border-radius: var(--radius); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.promo-note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; max-width: 46ch; }
.plans { border-top: 1px solid var(--line); }
.plan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
  padding: 30px 26px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  cursor: pointer;
}
.plan:hover { background: rgba(23, 27, 58, 0.6); }
.plan.is-active { background: var(--navy-raised); border-left-color: var(--gold); }
.plan h3 { margin: 0; font-weight: 900; text-transform: uppercase; font-size: 1.35rem; letter-spacing: -0.01em; }
.plan .desc { grid-column: 1 / 2; color: var(--muted); font-size: 0.92rem; margin: 0; }
.plan .price { grid-row: 1 / 3; grid-column: 2; text-align: right; }
.plan .price b { display: block; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; }
.plan .price s { color: var(--muted); font-size: 0.8rem; font-family: "JetBrains Mono", monospace; }
.plan .tag { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-left: 10px; }
.includes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.includes li { display: flex; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.includes i { color: var(--gold); font-size: 1.1rem; margin-top: 3px; }

/* Comunidad (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.cell { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy-raised); }
.cell h3 { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.3rem; line-height: 1.05; }
.cell p { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 38ch; }
.cell .mono-big { font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; margin-bottom: 14px; }
.cell-a { grid-column: span 4; grid-row: span 2; }
.cell-a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) sepia(0.2) brightness(0.55); transition: transform 1.4s var(--ease); }
.cell-a:hover img { transform: scale(1.04); }
.cell-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 24, 0.95) 10%, rgba(15, 18, 39, 0.2) 70%); }
.cell-a > *:not(img) { position: relative; z-index: 1; }
.cell-a h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cell-b, .cell-c { grid-column: span 2; }
.cell-d { grid-column: span 3; background: var(--navy-deep); }
.cell-e { grid-column: span 3; background: linear-gradient(135deg, rgba(168, 127, 80, 0.16), rgba(23, 27, 58, 0.9) 60%); }
.cell .ic { font-size: 1.8rem; color: var(--gold); margin-bottom: auto; }

/* Mentor */
.mentor { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.mentor-mark { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(201, 180, 123, 0.1), transparent 60%), var(--navy-deep); }
.mentor-mark img { width: 58%; }
.quote { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; font-weight: 400; margin: 0; }
.quote::before { content: "\201C"; display: block; font-size: 5rem; line-height: 0.6; color: var(--gold); font-weight: 900; margin-bottom: 18px; }
.signature { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.signature::before { content: ""; width: 56px; height: 1px; background: var(--gold); }
.signature strong { display: block; font-weight: 900; letter-spacing: 0.04em; }
.signature span { font-size: 0.72rem; letter-spacing: 0.35em; color: var(--muted); text-transform: uppercase; font-weight: 500; }
.mentor-facts { display: flex; gap: 48px; margin-top: 44px; }
.mentor-facts div b { display: block; font-size: 2rem; line-height: 1; }
.mentor-facts div span { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Ubicación */
.place { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.place-info { padding: clamp(32px, 5vw, 64px); background: var(--navy-raised); }
.place-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.place-map { min-height: 420px; background: var(--navy-deep); }
.place-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) hue-rotate(180deg) brightness(0.85) contrast(0.9); }

/* Preguntas */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--gold); font-size: 1.3rem; transition: transform 0.5s var(--ease); flex-shrink: 0; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0 0 28px; color: var(--muted); max-width: 70ch; }

/* Cierre */
.final { text-align: center; padding: clamp(120px, 16vw, 200px) 0; position: relative; overflow: hidden; }
.final .bull-bg { position: absolute; left: 50%; top: 50%; width: min(620px, 90vw); transform: translate(-50%, -50%); opacity: 0.05; pointer-events: none; }
.final h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 14ch; margin: 0 auto; }
.final p { color: var(--muted); margin: 26px auto 0; max-width: 46ch; }
.final .btn-row { justify-content: center; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer img { height: 48px; width: auto; }
.footer h4 { margin: 0 0 18px; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer .legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* WhatsApp flotante y barra móvil */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--metal);
  color: var(--navy);
  font-size: 1.8rem;
  box-shadow: 0 12px 40px rgba(8, 10, 24, 0.6);
  transition: transform 0.4s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ring 3.2s var(--ease) 2s infinite; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.mobile-bar { display: none; }

/* Revelados (estado inicial solo si hay JS y movimiento permitido) */
.js-motion [data-reveal] { opacity: 0; transform: translateY(30px); }

/* Responsivo */
@media (max-width: 1024px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links { display: flex; position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy-deep); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
  .nav.is-open .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open { background: var(--navy-deep); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero { padding-top: 110px; }
  .hero .wrap, .profile, .method, .pricing, .mentor, .place, .footer-grid { grid-template-columns: 1fr; }
  .hero .wrap { gap: 44px; }
  .chart-body { height: 220px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .method-sticky { position: static; }
  .pillars { gap: 64px; padding: 24px 0 0; }
  .topics { columns: 1; }
  .module { padding-left: 72px; }
  .route-cta { padding-left: 72px; }
  .module-node { width: 46px; height: 46px; top: 26px; }
  .route-line { left: 23px; }
  .manifest .wrap { grid-template-columns: 1fr; }
  .includes { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: auto; grid-row: auto; }
  .cell-a { min-height: 380px; }
  .mentor { gap: 48px; }
  .mentor-mark { max-width: 360px; }
  .place-map { min-height: 320px; }
  .wa-float { bottom: 88px; right: 18px; width: 54px; height: 54px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(8, 10, 24, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { width: 100%; }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
  .plan { padding: 24px 16px; grid-template-columns: 1fr; }
  .plan .price { grid-row: auto; grid-column: auto; text-align: left; margin-top: 10px; }
  .mentor-facts { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gold { background-position: 0 0; }
  .route-line span { transform: scaleY(1); }
  .method-img img { transform: none; }
}

/* Fondos animados (chart.js) */
#bg-flow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Redes sociales */
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ivory); font-size: 1.25rem; transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.ig-link { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; padding-left: 18px; border-left: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); transition: color 0.4s var(--ease); }
.ig-link i { font-size: 1.2rem; color: var(--gold); }
.ig-link:hover { color: var(--gold); }
@media (max-width: 520px) {
  .signature { flex-wrap: wrap; row-gap: 14px; }
  .signature strong { white-space: nowrap; }
  .ig-link { flex-basis: 100%; margin-left: 74px; padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .place > * { min-width: 0; }
  .place-info { padding: 32px 20px; }
  .btn { padding: 0 18px; letter-spacing: 0.12em; }
}

/* Acceso al aula de alumnos */
.nav-links .nav-aula { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.nav-links .nav-aula i { font-size: 1rem; }
