[hidden] { display: none !important; }
:root {
  --cover: #fffbf5;
  --cover-line: #ecdfd1;
  --cover-blush: #f5eadf;
  --feature-ink: #681329;
  --page-dark: #321620;
}
body { background: var(--cover); }
#inicio, #prueba, #recordatorios, #como-se-aprende { scroll-margin-top: 30px; }
.site-header { background: var(--cover); border-color: transparent; }
.landing-header, #portada > .frame, .topic-nav, .cover-feature.frame,
.device-inner, .final-inner, .landing-footer .frame { width: min(1088px, calc(100% - 72px)); }
.landing-header { min-height: 78px; }
.landing-header .brand img { width: 160px; height: 53px; }
.level-menu { position: relative; z-index: 4; }
.level-menu summary {
  cursor: pointer; color: var(--brand); display: flex; align-items: center;
  gap: 11px; min-height: 44px; padding: 6px 10px; border-radius: 8px;
  font-weight: 700; font-size: .82rem; list-style: none; white-space: nowrap;
}
.level-menu summary::-webkit-details-marker { display: none; }
.level-menu summary::after {
  content: ''; display: block; width: 7px; height: 7px; transform: rotate(45deg);
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; margin-top: -4px;
}
.level-menu[open] summary { background: var(--pale-rose); }
.level-menu summary:focus-visible { outline: 3px solid #9d6528; outline-offset: 4px; }
.level-menu nav {
  position: absolute; top: calc(100% + 7px); right: 0; display: grid; gap: 2px;
  min-width: 187px; padding: 6px; border: 1px solid var(--cover-line);
  border-radius: 12px; background: var(--white); box-shadow: 0 9px 22px #3c1b1616;
}
.level-menu nav a { font-size: .85rem; }
.cover-hero {
  display: grid; grid-template-columns: 1fr .95fr; align-items: center;
  min-height: clamp(420px, 40vw, 540px); padding: 36px 25px 54px; gap: 38px;
}
.cover-art {
  display: grid; position: relative; align-items: center; justify-items: center;
  isolation: isolate; min-width: 0;
}
.cover-art::before {
  content: ''; position: absolute; z-index: -1; width: 73%; max-width: 355px; aspect-ratio: 1.13;
  border-radius: 53% 47% 44% 56% / 58% 51% 49% 42%; transform: rotate(-12deg);
  background: #f4e4c9; outline: 1px solid #e7cea4; outline-offset: 9px;
}
.cover-art img { width: min(92%, 390px); height: auto; filter: drop-shadow(0 14px 12px #6f39283a); }
.cover-spark {
  position: absolute; z-index: 2; width: 20px; aspect-ratio: 1; background: var(--gold);
  transform: rotate(22deg); clip-path: polygon(50% 0, 63% 34%, 100% 50%, 64% 63%, 50% 100%, 37% 64%, 0 50%, 36% 37%);
}
.cover-spark-top { top: 17%; right: 21%; }
.cover-spark-bottom { left: 15%; bottom: 25%; width: 18px; background: #b17887; }
.cover-copy { text-align: center; max-width: 465px; margin-inline: auto; }
.cover-copy h1 {
  color: var(--feature-ink); font-size: clamp(2.45rem, 5.2vw, 4.1rem); line-height: 1.04;
  font-weight: 700; letter-spacing: -.052em; text-wrap: balance;
}
.cover-copy p { margin: 19px auto 25px; max-width: 38ch; font-size: 1rem; color: #5e4a4e; line-height: 1.55; text-wrap: pretty; }
.cover-actions { display: grid; gap: 13px; width: min(100%, 292px); margin-inline: auto; }
#portada .button, .reminder-notice .button { text-decoration: none; }
.cover-actions .button { min-height: 48px; }
.button-quiet { box-shadow: 0 2px 0 #e8d9d9; }
.topic-band { border-block: 1px solid var(--cover-line); background: #fbf4ec; }
.topic-nav { display: grid; align-items: center; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 5px; }
.topic-links {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 7px 4px;
  align-items: center; scroll-padding-inline: 5px;
}
.topic-links::-webkit-scrollbar { display: none; }
.topic-links a {
  flex: none; white-space: nowrap; align-items: center; font-weight: 700; display: inline-flex;
  min-height: 44px; padding: 5px 12px; gap: 8px; border-radius: 9px;
  color: #62474c; font-size: .77rem; text-decoration: none;
}
.topic-links a::before {
  content: ''; width: 9px; aspect-ratio: 1; border-radius: 3px;
  transform: rotate(-15deg); background: #bd91a0;
}
.topic-links a:nth-child(3n + 1)::before { background: #bd8d4c; }
.topic-links a:nth-child(3n + 2)::before { background: #8e465b; }
.topic-links a:is(:hover, :focus-visible) { background: #f2e4e4; color: var(--brand); }
.topic-links a:focus-visible { outline-offset: -3px; }
.topic-arrow {
  display: grid; place-items: center; min-height: 44px; border: 0; border-radius: 8px;
  color: var(--brand); background: none;
}
.topic-arrow span {
  display: block; width: 8px; height: 8px; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(-45deg);
}
.topic-prev span { transform: rotate(135deg); }
.topic-arrow:disabled { opacity: .36; background: transparent; color: var(--brand); border: 0; border-radius: 8px; }
.topic-arrow:not(:disabled):hover { background: #f3e4e4; }
.feature-list { padding-block: 24px 44px; }
.cover-feature {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 328px; gap: clamp(32px, 7vw, 100px);
  align-items: center; padding: 31px 36px;
}
.feature-reverse .feature-art { grid-column: 1; grid-row: 1; }
.feature-reverse .feature-copy { grid-column: 2; grid-row: 1; }
.feature-copy h2, .device-inner h2, .final-inner h2 {
  color: var(--feature-ink); font-size: clamp(2rem, 4.15vw, 3.2rem);
  font-weight: 700; line-height: 1.075; letter-spacing: -.043em; text-wrap: balance;
}
.feature-copy p {
  color: #624e53; line-height: 1.58; font-size: .98rem;
  margin: 15px 0 0; max-width: 45ch; text-wrap: pretty;
}
.feature-copy .button { margin-top: 17px; }
.feature-copy .feature-note { margin-top: 11px; font-size: .86rem; color: var(--brand); }
.feature-art {
  position: relative; isolation: isolate; display: grid; justify-items: center; align-items: center;
  min-height: 240px; min-width: 0;
}
.feature-art::before {
  content: ''; position: absolute; z-index: -1; width: min(70%, 270px); aspect-ratio: 1.22;
  border-radius: 55% 45% 45% 55%; background: var(--art-bg, #f1e1c7);
  transform: rotate(var(--art-rotation, -11deg));
}
.feature-art::after {
  content: ''; position: absolute; z-index: -1; width: min(60%, 224px); aspect-ratio: 1.22;
  border: 1px solid var(--art-edge, #d7ac75); border-radius: 55% 45% 45% 55%;
  transform: translate(10%, 8%) rotate(var(--art-rotation, -11deg));
}
.feature-art img {
  width: auto; height: clamp(186px, 23vw, 250px); max-width: 92%;
  object-fit: contain; filter: drop-shadow(0 12px 11px #6342322b);
}
.art-aula { --art-bg: #e9ded3; --art-edge: #bd9995; --art-rotation: 13deg; }
.art-ritmo { --art-bg: #f0e4c7; --art-edge: #d9ab66; --art-rotation: 3deg; }
.art-ritmo img { height: clamp(150px, 18vw, 210px); transform: rotate(-7deg); }
.art-ruta { --art-bg: #efdce3; --art-edge: #cb98a6; --art-rotation: -17deg; }
.art-prueba { --art-bg: #ebdce3; --art-edge: #c79ba8; --art-rotation: 7deg; }

.device-band { background: #f3e2cf; overflow: hidden; }
.device-inner {
  padding: 72px 20px 0; display: grid; justify-items: center; text-align: center;
}
.device-inner h2 { color: #673223; }
.device-inner p { color: #604a46; margin: 10px 0 20px; line-height: 1.5; }
.device-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; z-index: 1; }
.device-art { position: relative; width: min(100%, 650px); height: 290px; margin-top: 22px; }
.device-art img {
  position: absolute; height: 92%; width: auto; max-width: none; z-index: 1;
  top: 5%; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 12px 12px #46281739);
}
.device-tablet, .device-phone {
  position: absolute; background: #fff8ed; border: 6px solid #754554; border-radius: 24px;
  box-shadow: 0 6px 0 #512939, 0 14px 15px #471d3233;
}
.device-tablet { top: 23%; left: 12%; width: 34%; height: 61%; transform: rotate(-15deg); }
.device-phone { top: 16%; right: 14%; width: 22%; height: 72%; transform: rotate(16deg); }
.device-tablet i, .device-phone i { display: block; border-radius: 5px; height: 7%; background: #eddae1; margin: 12% 12% 0; }
.device-tablet i:first-child, .device-phone i:first-child { background: #bf8c9c; width: 47%; }
.device-tablet i:nth-child(3), .device-phone i:nth-child(3) { background: #e3c49d; width: 59%; }
.challenge-band {
  background: var(--page-dark); color: #fff6ea;
}
.challenge-band .cover-feature { min-height: 365px; padding-block: 38px; }
.challenge-band .feature-copy h2 { color: #f8deae; }
.challenge-band .feature-copy p { color: #f8e9e2; }
.button-on-dark { background: #f5dbb3; color: #49182b; box-shadow: 0 3px 0 #ba8c56; }
.button-on-dark:hover { background: #ffeacf; }
.art-reto { --art-bg: #573040; --art-edge: #986a59; --art-rotation: -16deg; }
.assessment { min-height: 360px; }
.final-invitation { text-align: center; padding-top: 52px; }
.final-inner { display: grid; justify-items: center; }
.final-inner .button { margin-top: 20px; min-width: 168px; }
.final-art { width: min(100%, 460px); height: 210px; margin-top: 19px; position: relative; }
.final-art img { position: absolute; height: auto; filter: drop-shadow(0 6px 5px #633b2526); }
.final-owl { width: min(50%, 205px); top: 0; left: 50%; transform: translateX(-50%); }
.final-calendar { width: 17%; left: 14%; top: 24%; transform: rotate(-14deg); }
.final-medal { width: 16%; right: 13%; top: 27%; transform: rotate(12deg); }
.landing-footer { background: var(--brand); color: #fff5ea; }
.footer-links {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 41px 0 35px; gap: 22px;
}
.footer-links h2 { font-size: .91rem; margin-bottom: 7px; }
.footer-links a, .footer-links button {
  display: flex; align-items: center; width: fit-content; min-height: 38px;
  text-decoration: none; color: #f7dce1; font-size: .87rem; padding: 0;
  background: transparent; border: 0; text-align: left;
}
.footer-links a:hover, .footer-links button:hover { text-decoration: underline; color: #fff; }
.footer-credit { border-top: 1px solid #98596b; padding: 17px 0; font-size: .77rem; color: #f5dce2; }
.learning-nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px;
  justify-content: space-between; margin-top: 20px; border-bottom: 1px solid var(--cover-line); padding-bottom: 11px;
}
.learning-nav > div { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.learning-nav :is(a, button) {
  background: none; font-size: .88rem; min-height: 44px; color: var(--brand); font-weight: 700;
  text-decoration: none; border: 0; padding: 0; display: inline-flex; align-items: center;
}
.learning-nav :is(a, button):hover { text-decoration: underline; }
.learning-view .dashboard { margin-top: 28px; }
.learning-view .section-head h1 { font-size: clamp(1.56rem, 2.8vw, 2.22rem); line-height: 1.16; letter-spacing: -.04em; }
.practice-start { margin-bottom: 17px; }
.reminder-notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px;
  background: #f7ead7; border: 1px solid #e6ceb2; border-radius: 12px;
  padding: 8px 15px; color: var(--brand); margin-top: 7px;
}
.reminder-notice p { flex: 1 1 250px; }
.reminder-notice :is(a, button) {
  min-height: 44px; display: inline-flex; align-items: center; font: inherit; font-weight: 700;
  color: var(--brand); border: 0; background: none; padding: 0;
}

@media (max-width: 840px) {
  .cover-hero { padding-inline: 0; gap: 16px; min-height: 415px; }
  .cover-feature { padding-inline: 6px; }
  .cover-copy h1 { font-size: clamp(2.15rem, 5.3vw, 3.2rem); }
}
@media (max-width: 640px) {
  .landing-header, #portada > .frame, .topic-nav, .cover-feature.frame,
  .device-inner, .final-inner, .landing-footer .frame { width: calc(100% - 36px); }
  .landing-header { min-height: 65px; }
  .landing-header .brand img { width: 141px; height: 48px; }
  .cover-hero { grid-template-columns: 1fr; gap: 0; padding: 3px 0 31px; }
  .cover-art img { width: min(72%, 260px); }
  .cover-art::before { width: min(59%, 198px); }
  .cover-spark-top { right: 24%; }
  .cover-spark-bottom { left: 22%; }
  .cover-copy h1 { margin-top: 13px; font-size: clamp(2rem, 8vw, 2.8rem); }
  .cover-copy p { font-size: .91rem; margin: 12px auto 19px; }
  .cover-actions { gap: 10px; }
  .cover-actions .button { min-height: 44px; }
  .topic-nav { width: 100%; gap: 0; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .topic-links a { padding-inline: 8px; }
  .feature-list { padding-block: 13px 23px; }
  .cover-feature { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 28px 4px 14px; gap: 11px; text-align: center; }
  .cover-feature .feature-copy { grid-column: 1; grid-row: 1; }
  .cover-feature .feature-art { grid-column: 1; grid-row: 2; }
  .feature-copy p { margin-inline: auto; margin-top: 11px; font-size: .94rem; }
  .feature-art { min-height: 200px; }
  .feature-art::before { max-width: 200px; }
  .feature-art::after { max-width: 178px; }
  .feature-art img { height: 171px; }
  .art-ritmo img { height: 148px; }
  .device-inner { padding: 44px 0 0; }
  .device-art { height: clamp(154px, 49vw, 248px); }
  .device-tablet, .device-phone { border-width: 4px; border-radius: 14px; }
  .challenge-band .cover-feature { min-height: 0; padding-block: 37px 14px; }
  .assessment { padding-top: 37px; }
  .final-invitation { padding-top: 32px; }
  .final-art { height: clamp(142px, 46vw, 195px); }
  .footer-links { grid-template-columns: 1fr 1fr; padding-block: 25px; gap: 14px 17px; }
  .learning-nav { margin-top: 3px; gap: 3px 15px; }
  .learning-nav > div { column-gap: 12px; }
  .learning-nav :is(a, button) { font-size: .82rem; }
  .wide-only { display: none; }
}
