/* The home has its own layout; course, challenge and app screens keep theirs. */
.ct-home {
  background: radial-gradient(ellipse at 18% 0, #44152955, transparent 620px), #080c17;
}
.ct-home main { overflow: clip; }
.ct-home .header-inner { min-height: 76px; }
.ct-home .desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.ct-home #rutas, .ct-home #cursos { scroll-margin-top: 96px; }
.home-intro { padding: 64px 0 56px; }
.home-intro-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .88fr); gap: 68px; align-items: center; }
.home-intro-copy, .home-start-panel { min-width: 0; }
.home-kicker { display: inline-flex; align-items: center; gap: 9px; color: #c7cbd8; font-size: .79rem; font-weight: 650; }
.home-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4b73; box-shadow: 0 0 0 5px #ff4b7312; }
.ct-home h1 { max-width: 710px; margin: 23px 0 22px; font-size: clamp(2.7rem, 5.2vw, 4.55rem); line-height: 1.07; letter-spacing: -.065em; font-weight: 850; }
.ct-home h1 span { color: #ff4c79; }
.home-intro-description { max-width: 530px; margin: 0; color: #abb4c8; font-size: 1.035rem; line-height: 1.8; }
.home-intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.home-intro-actions .btn { min-height: 52px; border-radius: 13px; padding: 12px 21px; gap: 15px; font-size: .91rem; }
.home-btn-secondary { background: #ffffff05; border: 1px solid #ffffff1c; color: #e2e5ef; }
.home-btn-secondary:hover { border-color: #ffffff40; background: #ffffff0b; }
.home-stats { display: flex; gap: 31px; margin: 32px 0 0; }
.home-stats > div { padding-right: 30px; border-right: 1px solid #ffffff13; }
.home-stats > div:last-child { padding-right: 0; border-right: 0; }
.home-stats dt { color: #eff0f8; font-size: 1.18rem; font-weight: 800; letter-spacing: -.035em; }
.home-stats dd { margin: 3px 0 0; color: #818da7; font-size: .72rem; }
.home-start-panel { position: relative; padding: 28px; border: 1px solid #ffffff16; border-radius: 25px; background: linear-gradient(140deg, #1b1b31, #101626 60%); box-shadow: 0 20px 65px #00000026, inset 0 1px #ffffff05; }
.home-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a7a8c1; font-size: .62rem; font-weight: 750; letter-spacing: .16em; }
.home-panel-spark { color: #ff6c92; font-size: 1.35rem; line-height: 1; }
.home-start-panel h2 { margin: 22px 0 10px; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.25; letter-spacing: -.045em; }
.home-start-panel > p { margin: 0 0 20px; color: #9fa8c0; font-size: .8rem; }
.home-start-link { display: flex; align-items: center; gap: 12px; min-height: 75px; padding: 14px 12px; margin-top: 9px; border: 1px solid #ffffff0c; border-radius: 14px; background: #ffffff04; transition: background .18s ease, border-color .18s ease; }
.home-start-link:hover { background: #ffffff0a; border-color: #ffffff27; }
.home-start-link > span:nth-child(2) { flex: 1; min-width: 0; }
.home-start-link strong { display: block; font-size: .8rem; font-weight: 700; }
.home-start-link small { display: block; margin-top: 3px; color: #8e9bb7; font-size: .67rem; }
.home-start-link > span:last-child { color: #939db6; }
.home-subject-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 11px; font-size: 1rem; font-weight: 750; }
.home-subject-math { background: #e9668816; color: #f385a5; }
.home-subject-reading { background: #8495ff16; color: #a1adff; }
.home-personalize { display: flex; align-items: center; gap: 8px; justify-content: center; width: 100%; min-height: 44px; margin: 16px 0 -5px; border: 0; background: transparent; color: #c4cade; font-size: .7rem; cursor: pointer; }
.home-personalize > span:last-child { margin-left: auto; color: #8391ac; }
.home-personalize > span:first-child { margin-right: auto; color: #ff82a1; font-size: 1rem; }
.home-routes { padding-block: 15px 36px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.home-section-label { display: block; color: #ed8da7; font-size: .66rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.home-section-heading h2, .home-courses h2, .home-practice h2 { margin: 9px 0 0; font-size: clamp(1.55rem, 2.65vw, 2rem); line-height: 1.2; letter-spacing: -.045em; }
.home-section-heading > p { margin: 0 0 2px; color: #8895ae; font-size: .8rem; }
.home-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-route-card { position: relative; display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 22px 19px; border: 1px solid #ffffff12; border-radius: 17px; background: #11172599; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.home-route-card:hover { border-color: #ffffff35; background: #181f30; transform: translateY(-2px); }
.home-route-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 12px; }
.home-route-icon svg { width: 23px; height: 23px; }
.home-route-icon-rose { background: #ff5a8214; color: #ff8ca9; }
.home-route-icon-blue { background: #6b9cff14; color: #8eb3ff; }
.home-route-icon-mint { background: #54d4ae14; color: #79dfc0; }
.home-route-icon-lilac { background: #b78bff14; color: #c49fff; }
.home-route-icon-amber { background: #e9b86e14; color: #e3be89; }
.home-route-icon-sky { background: #72cbe514; color: #82cfe8; }
.home-route-content { min-width: 0; padding-top: 1px; }
.home-route-content > small { display: block; color: #8997b1; font-size: .54rem; font-weight: 750; letter-spacing: .09em; }
.home-route-content h3 { margin: 7px 0 7px; font-size: .88rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.35; }
.home-route-content p { margin: 0; color: #8995ac; font-size: .72rem; line-height: 1.6; }
.home-card-arrow { color: #5e6a83; font-size: .9rem; margin-left: auto; }
.home-courses { padding-block: 42px 30px; border-top: 1px solid #ffffff0a; }
.home-courses .section-head { align-items: end; margin-bottom: 22px; }
.home-courses .section-head p { max-width: 680px; margin-top: 12px; font-size: .87rem; color: #96a2bb; }
.ct-home .text-link { min-height: 44px; display: inline-flex; align-items: center; color: #efb1c2; font-size: .8rem; }
.home-courses .course-tools { display: block; margin-bottom: 23px; }
.home-sheet-banner { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; margin-bottom: 23px; padding: 19px 21px; border: 1px solid #c2a1ff24; border-radius: 15px; background: linear-gradient(110deg, #a27ae512, #151b2a); }
.home-sheet-banner:hover { border-color: #c2a1ff55; background: #222039; }
.home-sheet-icon { display: grid; place-items: center; flex: 0 0 45px; width: 45px; height: 45px; border-radius: 12px; background: #b78bff16; color: #c5a9f2; }
.home-sheet-icon svg { width: 25px; height: 25px; }
.home-sheet-copy { display: block; flex: 1; min-width: 0; }
.home-sheet-copy small { display: block; color: #b79acb; font-size: .58rem; font-weight: 750; letter-spacing: .09em; }
.home-sheet-copy strong { display: block; margin-top: 4px; color: #e9e0f7; font-size: .88rem; font-weight: 750; }
.home-sheet-copy > span { display: block; margin-top: 3px; color: #929cb3; font-size: .71rem; }
.home-sheet-action { display: inline-flex; align-items: center; gap: 15px; flex-shrink: 0; color: #c7b3e6; font-size: .76rem; font-weight: 650; }
.home-courses .search-box { display: flex; align-items: center; gap: 12px; width: min(100%, 580px); min-width: 0; border: 1px solid #ffffff15; border-radius: 13px; background: #121827; color: #8290ac; padding-left: 16px; }
.home-courses .search-box input { min-width: 0; min-height: 53px; padding: 13px 16px 13px 0; border: 0; background: transparent; box-shadow: none; font-size: .88rem; }
.home-courses .search-box:focus-within { outline: 2px solid #e9597e; outline-offset: 3px; }
.home-courses .search-box input:focus-visible { outline: 0; }
.home-courses .course-card { border-radius: 17px; }
.home-courses .course-grid { gap: 16px; }
.ct-home .manual-ad-editorial { margin-block: 20px 32px; }
.home-practice { display: flex; align-items: center; gap: 25px; padding: 29px 32px; border: 1px solid #f85b7c26; border-radius: 22px; background: radial-gradient(ellipse at 0 0, #f3487120, transparent 65%), #141624; }
.home-practice-symbol { display: grid; place-items: center; flex: 0 0 60px; height: 60px; border: 1px solid #fa789a26; border-radius: 17px; background: #ff4d7e10; color: #ff7e9f; font-size: 2rem; }
.home-practice-copy { flex: 1; min-width: 0; }
.home-practice h2 { font-size: 1.5rem; }
.home-practice p { margin: 9px 0 0; color: #9ca4bb; font-size: .8rem; }
.home-practice-actions { display: grid; justify-items: center; gap: 8px; }
.home-practice-actions .btn { min-height: 47px; border-radius: 12px; padding: 10px 19px; font-size: .8rem; }
.home-ranking-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #a1abc2; font-size: .75rem; }
.home-ranking-link:hover { color: #fff; }
.home-guides { padding-block: 60px 68px; }
.home-guides .home-section-heading { align-items: end; }
.home-guides .home-section-heading h2 { max-width: 650px; font-size: 1.7rem; }
.home-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-guide-card { display: flex; flex-direction: column; min-width: 0; padding: 27px; border: 1px solid #ffffff13; border-radius: 18px; background: #101522; }
.home-guide-category { color: #9a92b0; font-size: .62rem; font-weight: 750; letter-spacing: .09em; }
.home-guide-card h3 { max-width: 450px; margin: 14px 0 10px; font-size: 1.27rem; letter-spacing: -.03em; line-height: 1.35; }
.home-guide-card h3 a { display: inline-flex; min-height: 44px; align-items: center; }
.home-guide-card h3 a:hover { color: #f9a4bd; }
.home-guide-card p { flex: 1; max-width: 440px; margin: 0 0 14px; color: #909db5; font-size: .81rem; line-height: 1.8; }
.ct-home .site-footer { border-top-color: #ffffff0d; background: #080b14; }
.ct-home .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1040px) {
  .home-intro-grid { gap: 34px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr); }
  .home-start-panel { padding: 23px; }
  .home-stats { gap: 21px; }
  .home-stats > div { padding-right: 20px; }
  .home-route-card { gap: 11px; padding: 18px 14px; }
  .home-route-icon { flex-basis: 33px; width: 33px; height: 33px; border-radius: 10px; }
  .home-route-icon svg { width: 20px; height: 20px; }
  .home-card-arrow { display: none; }
  .home-practice { padding: 26px; gap: 20px; }
  .home-practice-symbol { display: none; }
}
@media (max-width: 760px) {
  .ct-home .header-inner { min-height: 66px; }
  .home-intro { padding: 37px 0 27px; }
  .home-intro-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ct-home h1 { max-width: 570px; margin-block: 19px 17px; font-size: clamp(2.5rem, 7.5vw, 3.5rem); line-height: 1.1; letter-spacing: -.055em; }
  .home-intro-description { max-width: 550px; font-size: .91rem; line-height: 1.75; }
  .home-intro-actions { margin-top: 22px; gap: 10px; }
  .home-intro-actions .btn { min-height: 49px; padding: 11px 18px; font-size: .82rem; gap: 14px; }
  .home-stats { margin-top: 25px; gap: 21px; }
  .home-stats dt { font-size: 1.08rem; }
  .home-stats dd { font-size: .65rem; }
  /* The same personalization control stays available on mobile, without a
     second hero card pushing routes and courses out of reach. */
  .home-start-panel { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .home-start-panel > :not(.home-personalize) { display: none; }
  .home-personalize { width: auto; min-height: 44px; margin: -9px 0 -10px; padding: 0; justify-content: start; color: #b6bed2; font-size: .73rem; }
  .home-personalize > span:first-child { margin-right: 1px; }
  .home-personalize > span:last-child { margin-left: 7px; }
  .home-routes { padding-block: 10px 25px; }
  .home-section-heading { margin-bottom: 18px; gap: 15px; flex-wrap: wrap; }
  .home-section-heading > p { display: none; }
  .home-section-heading h2, .home-courses h2 { font-size: 1.5rem; line-height: 1.25; }
  .home-section-label { font-size: .6rem; }
  .home-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-route-card { display: block; padding: 16px 14px; border-radius: 15px; }
  .home-route-icon { width: 31px; height: 31px; margin-bottom: 13px; }
  .home-route-icon svg { width: 19px; height: 19px; }
  .home-route-content > small { font-size: .49rem; letter-spacing: .045em; }
  .home-route-content h3 { margin: 6px 0 6px; font-size: .81rem; line-height: 1.3; }
  .home-route-content p { font-size: .66rem; line-height: 1.55; }
  .home-courses { padding-block: 28px 21px; }
  .home-courses .section-head { display: block; margin-bottom: 14px; }
  .home-courses .section-head p { margin-top: 10px; font-size: .8rem; }
  .home-courses .section-head > .text-link { margin-top: 5px; }
  .home-courses .search-box { width: 100%; }
  .home-courses .search-box input { min-height: 50px; font-size: .78rem; }
  .home-courses .course-tools { margin-bottom: 18px; }
  .home-sheet-banner { position: relative; align-items: start; gap: 12px; padding: 17px 14px; margin-bottom: 18px; }
  .home-sheet-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .home-sheet-icon svg { width: 21px; height: 21px; }
  .home-sheet-copy { padding-bottom: 28px; }
  .home-sheet-copy small { font-size: .52rem; }
  .home-sheet-copy strong { font-size: .81rem; line-height: 1.4; }
  .home-sheet-copy > span { font-size: .66rem; line-height: 1.6; margin-top: 4px; }
  .home-sheet-action { position: absolute; bottom: 15px; left: 60px; gap: 10px; font-size: .67rem; }
  .home-courses .course-grid { gap: 12px; }
  .home-practice { display: block; padding: 23px 21px; border-radius: 18px; }
  .home-practice h2 { max-width: 300px; font-size: 1.45rem; }
  .home-practice p { margin-top: 10px; font-size: .79rem; }
  .home-practice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 20px; }
  .home-practice-actions .btn { padding-inline: 15px; font-size: .75rem; }
  .home-ranking-link { font-size: .72rem; }
  .home-guides { padding-block: 39px 38px; }
  .home-guides .home-section-heading { margin-bottom: 17px; gap: 6px; }
  .home-guides .home-section-heading h2 { max-width: 390px; font-size: 1.45rem; }
  .home-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-guide-card { padding: 22px; }
  .home-guide-card h3 { margin-top: 11px; font-size: 1.16rem; }
  .home-guide-card p { font-size: .77rem; }
  .ct-home .manual-ad-editorial { margin-block: 13px 25px; }
}
@media (max-width: 360px) {
  .ct-home h1 { font-size: 2.4rem; }
  .home-intro-actions { gap: 8px; }
  .home-intro-actions .btn { padding-inline: 13px; font-size: .77rem; }
  .home-stats { gap: 15px; }
  .home-stats > div { padding-right: 14px; }
  .home-stats dd { font-size: .6rem; }
  .home-route-card { padding: 14px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-home { scroll-behavior: auto; }
  .ct-home .home-route-card, .ct-home .home-start-link { transition: none; }
  .ct-home .home-route-card:hover { transform: none; }
}
