/* Portada: capa visual propia sobre los estilos base y el cielo compartido. */
.landing-page .landing-shell {
  width: var(--shared-shell-width);
  max-width: none;
  margin: clamp(24px, 3vw, 48px) auto 48px;
  border: 0;
  border-radius: 36px;
  background: #f6f8ff;
  box-shadow: 0 34px 90px #080e3270, 0 0 0 1px #ffffff35;
  overflow: clip;
}
@media (min-width: 1921px) {
  .landing-page .landing-shell { width: var(--wide-shell-width); }
}
.landing-page .world-moon,
.landing-page .world-sun {
  top: clamp(110px, 13vh, 165px);
  right: clamp(18px, 3vw, 56px);
  width: clamp(60px, 5vw, 88px);
}
.landing-page .landing-header {
  min-height: 76px;
  padding-inline: clamp(20px, 4vw, 76px);
  border-radius: 36px 36px 0 0;
  border-bottom: 1px solid #ffffff26;
  box-shadow: 0 14px 34px #08132e35;
}
.landing-page .header-nav { gap: clamp(13px, 1.5vw, 28px); }
.landing-page .header-nav a { color: #e0e6ff; letter-spacing: .035em; }
.landing-page .header-nav a:hover,
.landing-page .header-nav a:focus-visible { color: #ffe38a; }

.landing-page .hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, .94fr);
  gap: clamp(30px, 5vw, 92px);
  min-height: min(830px, calc(100svh - 76px));
  padding: clamp(72px, 8vw, 126px) clamp(24px, 7vw, 140px) clamp(70px, 7vw, 104px);
  border-radius: 0 0 64px 64px;
  color: #fff;
  background:
    radial-gradient(circle at 79% 31%, #8464ff70 0, transparent 30%),
    radial-gradient(circle at 14% 85%, #37c8c25e 0, transparent 31%),
    linear-gradient(125deg, #101d45 2%, #262269 55%, #145b78 100%);
}
.landing-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: .25;
  background-image: linear-gradient(#ffffff16 1px, transparent 1px), linear-gradient(90deg, #ffffff16 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000 85%, transparent);
  pointer-events: none;
}
.landing-page .hero-copy { position: relative; z-index: 2; max-width: 750px; }
.landing-page .hero .eyebrow {
  gap: 10px;
  max-width: 100%;
  padding: 7px 14px 7px 8px;
  border: 1px solid #b7d6ff57;
  border-radius: 999px;
  color: #d8fdf2;
  background: #ffffff16;
  font-size: .7rem;
  letter-spacing: .11em;
  line-height: 1.3;
}
.landing-page .hero .eyebrow-star { flex: none; border-color: #e0f5ff; background: #ffe17b; }
.landing-page .hero h1 {
  max-width: 770px;
  margin: clamp(24px, 3vw, 42px) 0 24px;
  font-size: clamp(3.7rem, 6.4vw, 7.2rem);
  line-height: .94;
  letter-spacing: -.085em;
  text-wrap: balance;
}
.landing-page .hero h1 em {
  color: #ffdc76;
  text-decoration: none;
  text-shadow: 0 5px 0 #ac639266;
}
.landing-page .hero-sub { color: #a8f5e8; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.landing-page .hero-text { max-width: 580px; color: #e0e8fa; font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.72; }
.landing-page .hero-actions { gap: 18px 25px; margin-top: 34px; }
.landing-page .cta-hero { min-height: 72px; padding-inline: 30px; border-radius: 18px; }
.landing-page .cta-hero:hover { transform: translateY(-3px); }
.landing-page .hero-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  border-color: #a7eee1;
  color: #eaffff;
}
.landing-page .hero-secondary:hover { border-color: #ffe17b; color: #ffe17b; }
.landing-page .hero-note { color: #d6e5f7; font-size: .88rem; letter-spacing: .04em; }
.landing-page .hero-learning-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; padding: 9px 13px; border: 1px solid #b5f3d5a8; border-radius: 12px; color: #d7ffe8; background: #246b6699; font-size: .86rem; font-weight: 900; line-height: 1.3; text-decoration: none; }
.landing-page .hero-learning-link:hover, .landing-page .hero-learning-link:focus-visible { border-color: #ffe17b; color: #fff1bd; background: #305f73; }
.landing-page .hero-art { max-width: 710px; min-width: 0; filter: none; }
.landing-page .hero-art::before {
  content: '';
  position: absolute;
  inset: 5% -4% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, #8df2ef7a, #8f70ff4d 45%, transparent 71%);
  filter: blur(15px);
  pointer-events: none;
}
.landing-page .island-art { z-index: 1; filter: drop-shadow(0 30px 28px #070d344d); }
.landing-page .art-caption { color: #d8f2ff; font-size: .72rem; letter-spacing: .25em; }
.landing-page .math-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  gap: .35em;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid #fff;
  border-radius: 15px;
  background: #fffef6;
  box-shadow: 0 8px 0 #172447, 0 17px 35px #090e3470;
  color: #1d2f60;
  font-size: clamp(.95rem, 1.3vw, 1.22rem);
  font-weight: 900;
  white-space: nowrap;
  transform: rotate(var(--tilt, 0deg));
  animation: math-chip-drift 5s ease-in-out var(--delay, 0s) infinite;
}
.landing-page .math-chip b { color: #6b46c9; }
.landing-page .math-chip--one { top: 5%; left: 1%; --tilt: -9deg; }
.landing-page .math-chip--two { top: 17%; right: -3%; --tilt: 8deg; --delay: -1.8s; }
.landing-page .math-chip--three { bottom: 11%; left: 8%; --tilt: 5deg; --delay: -3.1s; }
@keyframes math-chip-drift { 50% { translate: 0 -9px; } }
.landing-page .hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1090px);
  margin: clamp(6px, 2vw, 30px) auto 0;
  padding: 20px 12px;
  border: 1px solid #c3dbff52;
  border-radius: 24px;
  background: #ffffff14;
  box-shadow: inset 0 1px #ffffff38;
  backdrop-filter: blur(10px);
}
.landing-page .hero-stats div + div { border-left: 1px solid #ffffff3a; }
.landing-page .hero-stats b { color: #ffdd79; font-size: clamp(1.55rem, 2.5vw, 2.3rem); }
.landing-page .hero-stats span { color: #e2f4fa; font-size: .72rem; letter-spacing: .11em; }

html[data-sky="day"] .landing-page .hero {
  color: #17334f;
  background:
    radial-gradient(circle at 78% 28%, #fff8c2c9 0, transparent 30%),
    radial-gradient(circle at 15% 78%, #74dcdf99 0, transparent 35%),
    linear-gradient(125deg, #e5faff 0%, #b9e9fb 53%, #d5f5d8 100%);
}
html[data-sky="day"] .landing-page .hero::before { opacity: .3; background-image: linear-gradient(#31558719 1px, transparent 1px), linear-gradient(90deg, #31558719 1px, transparent 1px); }
html[data-sky="day"] .landing-page .hero .eyebrow { color: #19536c; border-color: #34678f4d; background: #ffffffa8; }
html[data-sky="day"] .landing-page .hero h1 em { color: #6243bb; text-shadow: 0 4px 0 #ffffffc7; }
html[data-sky="day"] .landing-page .hero-sub { color: #225b68; }
html[data-sky="day"] .landing-page .hero-text { color: #294964; }
html[data-sky="day"] .landing-page .hero-secondary { color: #214979; border-color: #4d6f97; }
html[data-sky="day"] .landing-page .hero-note { color: #426478; }
html[data-sky="day"] .landing-page .hero-learning-link { border-color: #28796a; color: #185c52; background: #ffffffcf; }
html[data-sky="day"] .landing-page .hero-learning-link:hover, html[data-sky="day"] .landing-page .hero-learning-link:focus-visible { color: #3c278b; background: #fff5d5; }
html[data-sky="day"] .landing-page .art-caption { color: #316373; }
html[data-sky="day"] .landing-page .hero-stats { border-color: #44708b42; background: #ffffffb3; box-shadow: 0 18px 34px #398fa52b; }
html[data-sky="day"] .landing-page .hero-stats div + div { border-color: #42718b3a; }
html[data-sky="day"] .landing-page .hero-stats b { color: #5638a7; }
html[data-sky="day"] .landing-page .hero-stats span { color: #36556b; }

.landing-page .section {
  padding: clamp(76px, 8vw, 126px) clamp(24px, 6vw, 112px);
  border-top: 0;
}
.landing-page .section-head { max-width: 820px; margin-bottom: clamp(36px, 4vw, 58px); }
.landing-page .section-head h2 { font-size: clamp(2.35rem, 4.5vw, 4.4rem); line-height: 1.02; }
.landing-page .section-head p { max-width: 700px; margin-inline: auto; font-size: 1.08rem; }
.landing-page #como { background: #f7f9ff; }
.landing-page .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1220px; }
.landing-page .step {
  min-width: 0;
  min-height: 220px;
  padding: 42px 24px 26px;
  border: 1px solid #dce2f3;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px #33377912;
}
.landing-page .step:nth-child(2) { background: #f4fff9; }
.landing-page .step:nth-child(3) { background: #fff9ed; }
.landing-page .step:nth-child(4) { background: #f7f2ff; }
.landing-page .step::before { top: -20px; left: 23px; width: 48px; height: 48px; border: 0; border-radius: 15px; background: #ffdc79; box-shadow: 0 4px 0 #c7944c; }
.landing-page .step h3 { font-size: 1.16rem; }
.landing-page .step p { font-size: .94rem; line-height: 1.62; }
.landing-page .learning-preview { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); max-width: 1220px; margin-top: 38px; padding: clamp(24px, 3vw, 42px); border: 0; border-radius: 30px; background: radial-gradient(circle at 90% 5%, #7455c7, transparent 38%), linear-gradient(120deg, #1b2555, #194867); box-shadow: 0 28px 58px #1a245434; scroll-margin-top: 100px; }
.landing-page .learning-preview-intro { align-self: center; }
.landing-page .learning-preview-options { grid-column: 1 / -1; }
.landing-page .learning-board-showcase { min-width: 0; padding: 16px; border: 3px solid #b38c59; border-radius: 17px; background: #173f38; box-shadow: inset 0 0 0 2px #ffffff20, 0 7px 0 #11223f; color: #fffdf2; }
.landing-page .learning-board-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #ffffff55; color: #e9ffb8; font-size: .7rem; letter-spacing: .12em; }
.landing-page .learning-board-head span { font-size: 1.15rem; }
.landing-page .learning-board-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.landing-page .learning-board-case { display: grid; justify-items: center; align-content: start; min-width: 0; padding: 9px 5px; border: 1px dashed #d5f1df88; border-radius: 10px; }
.landing-page .learning-board-case > strong { margin-bottom: 8px; color: #d5fac6; font-size: .72rem; text-align: center; }
.landing-page .learning-board-sum { display: grid; justify-items: center; font: 900 1.44rem/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.landing-page .learning-board-row { display: grid; grid-template-columns: 1.1ch repeat(3, 1.1ch); justify-content: center; text-align: center; }
.landing-page .learning-board-row span:first-child { color: #a3f0dc; }
.landing-page .learning-board-carries { height: .8em; color: #ffe38e; }
.landing-page .learning-board-carries span { align-self: end; font-size: .62em; }
.landing-page .learning-board-borrows { height: .8em; color: #a3f0dc; }
.landing-page .learning-board-borrows span { align-self: end; font-size: .62em; }
.landing-page .learning-board-row s { text-decoration-color: #f9b989; text-decoration-thickness: 1px; }
.landing-page .learning-board-rule { width: 4.4ch; height: 2px; margin: 3px 0; background: #fffdf2; }
.landing-page .learning-board-answer { color: #ffe38e; }
.landing-page .learning-board-equation { grid-column: 1 / -1; }
.landing-page .learning-equation-lines { display: grid; gap: 5px; font: 800 .72rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.landing-page .learning-equation-lines span:last-child { color: #ffe38e; font-size: 1.12em; }
.landing-page .learning-board-showcase > p { margin: 13px 0 0; color: #d3f2e6; font-size: .73rem; line-height: 1.35; text-align: center; }
.landing-page .learning-preview-option { border: 0; border-radius: 20px; box-shadow: 0 7px 0 #0e1b3d; }
.landing-page .how-note { margin-top: 32px; }

.landing-page #modos { background: radial-gradient(circle at 90% 8%, #d7d6ff9e, transparent 26%), #eef2ff; }
.landing-page .modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1220px; }
.landing-page .mode-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 228px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #dce2f4;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 38px #2a33621b;
}
.landing-page .mode-card::after { content: '✦'; position: absolute; top: -13px; right: 14px; z-index: -1; color: #775cda18; font-size: 7.5rem; font-weight: 900; line-height: 1; }
.landing-page .mode-card:nth-child(1),
.landing-page .mode-card:nth-child(8),
.landing-page .mode-card:nth-child(11) { grid-column: span 2; }
.landing-page .mode-card:nth-child(11) { grid-column: 1 / -1; }
.landing-page .mode-card:nth-child(1) { color: #fff; background: linear-gradient(130deg, #5539aa, #8858d9 58%, #5aa6ca); }
.landing-page .mode-card:nth-child(1)::after { content: '∞'; color: #ffffff21; }
.landing-page .mode-card:nth-child(1) p,
.landing-page .mode-card:nth-child(8) p,
.landing-page .mode-card:nth-child(11) p { max-width: 570px; }
.landing-page .mode-card:nth-child(1) p { color: #f2eaff; }
.landing-page .mode-card:nth-child(1) .mode-badge { color: #172447; background: #ffe08a; }
.landing-page .mode-card:nth-child(2) { background: #fff8e9; }
.landing-page .mode-card:nth-child(2)::after { content: '×'; color: #f0ad4852; }
.landing-page .mode-card:nth-child(3)::after { content: '+'; }
.landing-page .mode-card:nth-child(4)::after { content: '÷'; }
.landing-page .mode-card:nth-child(5)::after { content: '()'; font-size: 5.2rem; top: 16px; }
.landing-page .mode-card:nth-child(6) { background: #eefbf5; }
.landing-page .mode-card:nth-child(7)::after { content: '5'; }
.landing-page .mode-card:nth-child(8) { background: linear-gradient(135deg, #f4ebff, #e9faff); }
.landing-page .mode-card:nth-child(8)::after { content: '?'; color: #815fd330; }
.landing-page .mode-card:nth-child(11) { background: linear-gradient(120deg, #e3fff4, #def0ff); }
.landing-page .mode-card:nth-child(11)::after { content: '↗'; color: #4bb59b37; }
.landing-page .mode-card h3 { margin-top: 20px; font-size: clamp(1.2rem, 1.55vw, 1.55rem); }
.landing-page .mode-card p { font-size: .96rem; line-height: 1.6; }
.landing-page .mode-badge { border: 0; background: #ece8ff; color: #4d319c; }

.landing-page #edades { color: #fff; background: radial-gradient(circle at 13% 8%, #6552bd, transparent 30%), linear-gradient(130deg, #1b2755, #2b397c 55%, #1d6076); }
.landing-page #edades .eyebrow { color: #aeefe2; }
.landing-page #edades .section-head h2 em { color: #ffdb7b; }
.landing-page #edades .section-head p,
.landing-page #edades .age-note { color: #e0edff; }
.landing-page .ages { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1320px; gap: 16px; }
.landing-page .age-card { padding: 38px 28px; border: 0; border-radius: 27px; box-shadow: 0 20px 38px #0e174550; }
.landing-page .age-num { font-size: clamp(3rem, 5vw, 5rem); line-height: 1; }
.landing-page .age-card h3 { margin-top: 20px; font-size: 1.18rem; }
.landing-page .age-card p { line-height: 1.6; }

.landing-page #preguntas { background: #f8fbff; }
.landing-page .faq { max-width: 920px; gap: 13px; }
.landing-page .faq details { border: 1px solid #d6dff0; border-radius: 18px; box-shadow: 0 8px 23px #25345d0d; }
.landing-page .faq details[open] { border-color: #9277d9; background: #f9f6ff; }
.landing-page .faq summary { min-height: 68px; font-size: 1.02rem; }

.landing-page .final-cta {
  position: relative;
  margin: 0 clamp(18px, 4vw, 76px) clamp(18px, 4vw, 60px);
  padding: clamp(70px, 7vw, 104px) 24px;
  overflow: hidden;
  border-radius: 42px;
  background: radial-gradient(circle at 18% 20%, #c37aff77, transparent 26%), radial-gradient(circle at 90% 95%, #63d1d288, transparent 32%), linear-gradient(120deg, #4c3aa5, #2b4d99 58%, #166f80);
  box-shadow: 0 25px 55px #2738773d;
}
.landing-page .final-cta h2 { font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1; }
.landing-page .final-cta p { color: #e4f3ff; }
.landing-page .final-cta .hero-note { color: #d8effa; }
.landing-page .contact-section { padding: clamp(80px, 7vw, 120px) clamp(24px, 8vw, 140px); background: linear-gradient(135deg, #e8fcf4, #edf5ff 68%, #f7edff); }
.landing-page .contact-form { border: 1px solid #bfd8d9; border-radius: 26px; box-shadow: 0 23px 50px #1c51651e; }
.landing-page .landing-footer { gap: 15px 25px; padding: 36px 24px; border: 0; border-radius: 0 0 36px 36px; background: #131e42; color: #dce7ff; }
.landing-page .landing-footer .legal-links { border-color: #ffffff3c; }
.landing-page .landing-footer .legal-links a,
.landing-page .landing-copy,
.landing-page .landing-dev { color: #c7d8ed; }
.landing-page .landing-footer .legal-links a:hover,
.landing-page .landing-footer .legal-links a:focus-visible { color: #ffe18a; }

@media (min-width: 1161px) and (max-width: 1360px) {
  .landing-page .landing-header { flex-wrap: wrap; row-gap: 10px; padding-block: 12px; }
  .landing-page .header-nav { order: 1; flex-basis: 100%; justify-content: center; }
}

@media (max-width: 1160px) {
  .landing-page .landing-shell { margin-top: 78px; }
  .landing-page .world-moon,
  .landing-page .world-sun { top: 12px; right: 30px; width: 54px; }
  .landing-page .hero { padding-inline: clamp(24px, 5vw, 70px); }
  .landing-page .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-page .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-page .learning-board-examples { grid-template-columns: 1fr; }
}
@media (min-width: 621px) and (max-width: 1499px) {
  .landing-page .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-page .ages .age-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .landing-page .world-moon,
  .landing-page .world-sun { right: 14px; width: 54px; }
  .landing-page .hero { grid-template-columns: 1fr; min-height: 0; gap: 38px; padding-top: 74px; text-align: center; }
  .landing-page .hero-copy { justify-self: center; }
  .landing-page .hero h1 { margin-inline: auto; font-size: clamp(3.7rem, 10vw, 6rem); }
  .landing-page .hero-art { order: 0; max-width: 600px; }
  .landing-page .hero-stats { margin-top: 12px; }
  .landing-page .learning-preview { grid-template-columns: 1fr; }
  .landing-page .learning-board-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .landing-page .landing-shell { margin: 72px auto 24px; border-radius: 25px; }
  .landing-page .landing-header { border-radius: 25px 25px 0 0; }
  .landing-page .landing-footer { border-radius: 0 0 25px 25px; }
  .landing-page .world-moon,
  .landing-page .world-sun { top: 14px; right: 32px; width: 42px; }
  .landing-page .landing-header { min-height: 66px; }
  .landing-page .hero { padding: 55px 21px 56px; border-radius: 0 0 30px 30px; }
  .landing-page .hero h1 { margin: 25px 0 22px; font-size: clamp(3.4rem, 12vw, 4.7rem); }
  .landing-page .hero .eyebrow { font-size: .62rem; letter-spacing: .05em; }
  .landing-page .hero-text { font-size: .98rem; }
  .landing-page .hero-actions { gap: 16px; }
  .landing-page .hero-art { width: min(100%, 470px); }
  .landing-page .math-chip { padding: 7px 9px; border-radius: 10px; font-size: .76rem; box-shadow: 0 5px 0 #172447, 0 10px 20px #090e3440; }
  .landing-page .math-chip--two { right: 0; }
  .landing-page .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; padding: 19px 8px; }
  .landing-page .hero-stats div:nth-child(3) { border-left: 0; }
  .landing-page .hero-stats span { font-size: .62rem; }
  .landing-page .section { padding: 74px 20px; }
  .landing-page .section-head h2 { font-size: clamp(2.25rem, 9vw, 3.3rem); }
  .landing-page .steps,
  .landing-page .modes,
  .landing-page .ages { grid-template-columns: 1fr; }
  .landing-page .mode-card:nth-child(1),
  .landing-page .mode-card:nth-child(8),
  .landing-page .mode-card:nth-child(11) { grid-column: auto; }
  .landing-page .mode-card { min-height: 0; }
  .landing-page .learning-board-examples { grid-template-columns: 1fr; }
  .landing-page .learning-equation-lines { font-size: .87rem; }
  .landing-page .final-cta { margin-inline: 15px; border-radius: 27px; }
  .landing-page .contact-section { padding: 72px 20px; }
  .landing-page .landing-footer .legal-links { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .landing-page .landing-shell { width: calc(100% - 20px); }
}
@media (max-width: 390px) {
  .landing-page .hero h1 { font-size: 3.25rem; }
  .landing-page .hero .eyebrow { max-width: 100%; }
  .landing-page .math-chip--three { bottom: 4%; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page .math-chip { animation: none; }
  .landing-page .cta-hero:hover { transform: none; }
}
html[data-calm-motion="true"] .landing-page .math-chip { animation: none; }
