/* WorldSpeak · hub */
:root { --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif; }
.hub-body { padding-bottom: 48px; font-family: Inter, system-ui, sans-serif; }
.hub-topbar { grid-template-columns: 1fr; justify-items: end; }
.hub-topbar .account-toggle { width: auto; padding-right: 16px; }

.hub-hero2 { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 8px 0 34px; }
.hub-brand { display: flex; align-items: center; gap: 18px; }
.hub-logo { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 12px 30px rgba(10, 47, 158, 0.28); }
.hub-brand h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 46px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.hub-brand p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.hub-stats2 { display: flex; gap: 8px; }
.hub-stats2 div { display: grid; gap: 2px; min-width: 88px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.hub-stats2 b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.hub-stats2 span { font-size: 12px; color: var(--muted); }

.section-title { margin: 0 0 16px; }
.section-title h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.section-title p { margin: 4px 0 0; color: var(--muted); }

.course-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.course { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(20, 34, 62, 0.04), 0 12px 32px rgba(20, 34, 62, 0.06); transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.course:hover, a.course:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 56, 168, 0.16); outline: 0; }
.course-band { position: relative; height: 96px; background: linear-gradient(120deg, #0a2f9e 0%, #1e5eff 55%, #ce1126 140%); }
.course-band::after { content: ""; position: absolute; right: 18px; top: 14px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 209, 22, 0.9) 0 28%, rgba(252, 209, 22, 0.18) 30% 100%); }
.course-flag { position: absolute; left: 20px; bottom: -26px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #fff; font-size: 30px; box-shadow: 0 8px 20px rgba(20, 34, 62, 0.14); }
.course-body { display: grid; gap: 10px; padding: 36px 20px 18px; }
.course-head h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.course-chip { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }
.course-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.course-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.ring { width: 44px; height: 44px; }
.ring circle { fill: none; stroke: var(--line); stroke-width: 6; }
.ring .ring-fg { stroke: var(--blue); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.6s ease; }
.ring text { font: 700 13px var(--display); fill: var(--ink); }
.ring-soon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--line); color: var(--muted); }
.course-meta { font-size: 13px; font-weight: 600; color: var(--ink); }
.course-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; white-space: nowrap; }
.course-cta i { font-style: normal; transition: transform 0.18s ease; }
a.course:hover .course-cta i { transform: translateX(3px); }
.course.has-progress .course-cta { background: var(--blue); }
.course.is-soon { opacity: 0.7; }
.course.is-soon .course-band { filter: grayscale(0.6); }
.course.is-soon .course-cta { background: var(--line); color: var(--muted); }

@media (max-width: 760px) {
  .hub-hero2 { grid-template-columns: 1fr; }
  .hub-stats2 div { flex: 1; min-width: 0; }
  .hub-brand p { font-size: 15px; }
}

/* legacy */
.legacy { margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--line); }
.legacy-list { display: grid; gap: 10px; }
.legacy-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.legacy-row:hover { border-color: rgba(0, 56, 168, 0.3); }
.legacy-flag { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bg); font-size: 24px; filter: grayscale(0.3); }
.legacy-copy { display: grid; gap: 2px; min-width: 0; }
.legacy-copy strong { font-family: var(--display); font-weight: 700; font-size: 16px; }
.legacy-copy em { font-style: normal; font-size: 13px; color: var(--muted); }
.legacy-copy small { font-size: 12px; font-weight: 600; color: var(--blue); }
.legacy-cta { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }

/* pase de estilo v6: superficies planas, jerarquía por espacio y borde, un solo acento */
.course, .legacy-row, .hub-stats2 div { box-shadow: none; border: 1px solid #e3e8f0; }
a.course:hover, a.course:focus-visible { transform: none; border-color: var(--blue); box-shadow: none; }
.course-band::after { display: none; }
.course-band { height: 84px; background: linear-gradient(120deg, #0a2f9e, #1e5eff); }
.course-flag { box-shadow: none; border: 1px solid #e3e8f0; }
.course-cta { border-radius: 14px; background: var(--gold); color: var(--ink); }
.course.has-progress .course-cta { background: var(--gold); }
.course.is-soon .course-cta { background: #eef1f6; color: var(--muted); }
.hub-logo { box-shadow: none; }
.hub-brand h1 { letter-spacing: -0.045em; }
.section-title h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.section-title p { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; color: var(--ink); margin-top: 4px; }
.hub-body .account-toggle { box-shadow: none; border: 1px solid #e3e8f0; }
.hub-body .shell { max-width: 1140px; padding: 24px; }
.legacy { margin-top: 64px; padding-top: 32px; }

.hub-brand { display: grid; gap: 10px; }
.hub-wordmark { width: 280px; max-width: 80vw; height: auto; }
.hub-brand p { margin: 0; }

/* v12 */
.hub-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-icon { width: 48px !important; height: 48px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
.account-icon .account-initial { width: 40px; height: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.section-title { display: grid; }
.section-title h2 { order: 0; } .section-title p { order: 1; }
@media (max-width: 760px) { .section-title p { font-size: 22px; } .legacy { margin-top: 40px; } .hub-hero2 { margin-bottom: 24px; } }

.hub-hero2 { grid-template-columns: 1fr auto auto; }
.hub-globe { width: 96px; height: 96px; }
.hub-globe svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 24px rgba(10, 47, 158, 0.25)); }
.ws-globe-map { animation: drift 40s linear infinite; }
@keyframes drift { to { transform: translateX(-400px); } }
@media (max-width: 760px) { .hub-hero2 { grid-template-columns: 1fr; } .hub-globe { display: none; } }
@media (prefers-reduced-motion: reduce) { .ws-globe-map { animation: none; } }

.has-live-bg .course, .has-live-bg .legacy-row, .has-live-bg .hub-stats2 div, .has-live-bg .account-toggle { background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.account-icon .account-initial svg { width: 22px; height: 22px; fill: #fff; }
/* bandera grande, sin caja: es el icono del idioma */
.course-flag { width: auto; height: auto; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0; font-size: 72px; line-height: 1; left: 18px; bottom: -22px; filter: drop-shadow(0 8px 14px rgba(20, 34, 62, 0.25)); }
.course-body { padding-top: 40px; }
.legacy-flag { background: transparent; font-size: 34px; width: auto; height: auto; }
.hub-about { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }

.hub-globe-bottom { display: none; }
@media (max-width: 760px) {
  .hub-globe-bottom { display: block; width: 180px; height: 180px; margin: 28px auto 8px; }
  .hub-globe-bottom svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgba(10, 47, 158, 0.28)); }
}

/* banners con foto */
.course-band { height: 150px; background-size: cover; background-position: center; }
.course-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,47,158,0) 40%, rgba(10,47,158,0.35) 100%); }
.course.is-soon .course-band { filter: grayscale(0.15) brightness(0.95); opacity: 1; }
.course-body { padding-top: 34px; }
.hub-credits { max-width: 1140px; margin: 8px auto 0; padding: 0 24px; font-size: 11px; color: var(--muted); text-align: center; }
