:root {
  --bg: #f6f8fb; --card: #fff; --text: #1d2433; --muted: #667085; --line: #e4e8ef;
  --brand: #0e7490; --brand-dark: #0b5c72; --brand-soft: #e0f2f7;
  --ok: #157f3b; --ok-soft: #e3f6e9; --warn: #9a6400; --warn-soft: #fff4dc; --bad: #b42318; --bad-soft: #fde8e7;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: .4rem 0 .6rem; }
h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
code { background: var(--brand-soft); padding: 1px 6px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* topbar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.topbar nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar nav a { color: var(--text); }
.footer { color: var(--muted); font-size: .85rem; padding: 20px 16px; text-align: center; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px;
       padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 4px 10px; font-size: .85rem; }
button.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

/* layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.card.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.card.alert { border-color: #f3d38a; background: #fffcf3; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid3, .grid4 { display: grid; gap: 16px; margin-bottom: 16px; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) {
  .two-col, .grid3, .grid4, .row2 { grid-template-columns: 1fr; }
}

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 2rem; max-width: 720px; margin: 0 auto 10px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto 18px; }
.hero .actions { justify-content: center; }

.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); display: block; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat.hot { border-color: #f3b84a; background: #fffaf0; }
a.stat:hover { text-decoration: none; border-color: var(--brand); }

/* forms */
.form { display: grid; gap: 12px; }
.form label, .filters label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #cdd4df; border-radius: 8px; background: #fff; width: 100%; }
input[type=radio], input[type=checkbox] { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
label.choice { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 4px 0; }
.field-error { color: var(--bad); font-size: .85rem; margin: -6px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters label { min-width: 140px; flex: 1; }

/* flash */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; background: var(--brand-soft); }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--bad-soft); color: var(--bad); }
.flash-info { background: var(--warn-soft); color: var(--warn); }

/* lists */
.row-link { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--text); flex-wrap: wrap; }
.row-link:last-child { border-bottom: 0; }
a.row-link:hover { background: var(--bg); text-decoration: none; }
.row-link > span:nth-child(2) { flex: 1; }
.when { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 112px; color: var(--text); }
.empty { color: var(--muted); padding: 14px; text-align: center; background: var(--bg); border-radius: 8px; }

.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef1f5; color: #475467; vertical-align: middle; }
.st-pending, .pay-declared, .pay-pending { background: var(--warn-soft); color: var(--warn); }
.st-confirmed { background: var(--brand-soft); color: var(--brand-dark); }
.st-paid, .st-completed, .pay-paid, .goal-completed { background: var(--ok-soft); color: var(--ok); }
.st-cancelled, .st-cancelled_by_student, .st-cancelled_by_teacher, .st-student_no_show, .st-teacher_no_show, .pay-rejected, .goal-cancelled { background: var(--bad-soft); color: var(--bad); }
.goal-active { background: var(--brand-soft); color: var(--brand-dark); }
.lvl-verificado { background: #e0f2fe; color: #075985; }
.lvl-destacado { background: #ede9fe; color: #5b21b6; }
.lvl-elite { background: #fef3c7; color: #92400e; }
.stars { color: #b7791f; font-weight: 600; }
.tag { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin: 2px 4px 2px 0; font-size: .82rem; }
.tags { margin: 6px 0 0; }

.teacher-card { display: flex; gap: 16px; align-items: center; }
.teacher-card .grow { flex: 1; }
.teacher-card p { margin: 2px 0; }
.score { font-size: 1.6rem; font-weight: 800; color: var(--brand); min-width: 70px; text-align: center; }
.score small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.why { font-size: .9rem; color: var(--ok); }
@media (max-width: 560px) { .teacher-card { flex-wrap: wrap; } }

.slots { display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.slot-day { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-day b { min-width: 110px; font-size: .9rem; }
label.slot { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-weight: 400; cursor: pointer; }
label.slot:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }

.review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review p { margin: 4px 0 0; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: .85rem; }
.cats span { background: var(--bg); padding: 2px 8px; border-radius: 6px; }
.rate { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rate span { min-width: 190px; font-size: .9rem; }
.rate label { display: inline-flex; gap: 3px; font-weight: 400; }

.dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.sub td { border-top: 0; padding-top: 0; }
.card:has(.table) { overflow-x: auto; }
.matrix { border-collapse: collapse; width: 100%; }
.matrix th, .matrix td { padding: 4px 6px; text-align: center; border-bottom: 1px solid var(--line); font-size: .9rem; }
.matrix td:first-child { text-align: left; }

.subnav, .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.subnav a, .tabs a { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--text); }
.subnav a.on, .tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.demo-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* academia */
.promo { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
         background: linear-gradient(120deg, #e0f2f7, #f5f0ff); border-color: #c9e6ee; }
.promo h2 { margin: 0 0 4px; }
.promo p { margin: 0; }
.discount { color: var(--ok); margin: 0; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.course-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); margin: 0; }
a.course-card:hover { text-decoration: none; border-color: var(--brand); }
.course-card .emoji { font-size: 2rem; line-height: 1; }
.course-card p { margin: 0; }
.course-card .meta { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.kind-interactive { background: var(--ok-soft); color: var(--ok); }
.kind-kit { background: #ede9fe; color: #5b21b6; }
.big-emoji { font-size: 3rem; line-height: 1; }
.checks { padding-left: 1.1rem; margin: 8px 0; }
.checks li { margin: 4px 0; }
.price { font-size: 2rem; font-weight: 800; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
/* examen final y encuestas */
.exam-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.exam-q p { margin: 0 0 8px; }
.exam-opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; margin: 4px 0; cursor: pointer; }
.exam-opt:hover { border-color: var(--brand); }
.exam-timer { font-size: 1.1rem; position: sticky; top: 8px; }
.rep { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.survey .rate { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.survey .rate > span { min-width: 220px; }

/* --- selector de idioma --- */
.lang-switch select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line, #e4e8ef); border-radius: 8px; background: #fff; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===================== Portada ===================== */
html, body { overflow-x: clip; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
main.wrap > .home-hero:first-of-type, main.wrap > .home-hero { margin-top: -20px; }
.home-hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(56,189,248,.45), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(167,139,250,.45), transparent 60%),
              linear-gradient(135deg, #0b3b4a 0%, #0e7490 55%, #4338ca 100%); }
.home-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 22px 22px; }
.home-hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 64px 16px 96px; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(4px); }
.home-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; margin: 16px 0 14px; letter-spacing: -.02em; }
.home-hero .hl { background: linear-gradient(90deg, #fde68a, #fca5a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-lead { font-size: 1.15rem; opacity: .9; max-width: 560px; margin: 0 0 24px; }
.home-hero .actions { gap: 12px; }
.btn-xl { padding: 12px 22px; font-size: 1.02rem; font-weight: 700; border-radius: 12px; }
.btn-light { background: #fff; color: #0b3b4a; border-color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.btn-light:hover { background: #fef3c7; color: #0b3b4a; border-color: #fef3c7; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn { transition: transform .15s, background .15s, box-shadow .15s; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; font-size: .92rem; opacity: .92; }
.trust b { font-size: 1.15rem; margin-right: 2px; }
.home-hero .wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--bg); }

.home-hero-art { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.match-card { width: min(380px, 100%); background: #fff; color: var(--text); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgba(2,20,40,.35); transform: rotate(-2deg); animation: floaty 6s ease-in-out infinite; }
.match-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0e7490, #6366f1); }
.ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; position: relative; isolation: isolate;
  background: conic-gradient(#22c55e 0 calc(var(--p, .9) * 100%), #e4e8ef 0); }
.ring::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; z-index: -1; }
.ring > div { text-align: center; line-height: 1; }
.ring b { font-size: 1.15rem; color: var(--brand); line-height: 1; }
.ring small { display: block; font-size: .6rem; color: #f59e0b; text-align: center; }
.why-list { list-style: none; padding: 0; margin: 10px 0; font-size: .9rem; color: var(--ok); }
.why-list li { padding: 2px 0; }
.slots-demo { display: flex; gap: 6px; flex-wrap: wrap; }
.slots-demo span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .85rem; }
.slots-demo .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.float-chip { position: absolute; background: #fff; color: var(--text); font-weight: 700; font-size: .88rem; padding: 8px 14px; border-radius: 999px; box-shadow: 0 12px 30px rgba(2,20,40,.3); z-index: 2; white-space: nowrap; }
.chip-top { top: 8px; left: 0; animation: floaty 5s ease-in-out infinite reverse; }
.chip-bottom { bottom: 10px; right: 0; color: var(--ok); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .match-card, .float-chip { animation: none; } }

.home-section { margin-block: 44px; }
.home-section.center { text-align: center; margin-block-start: 20px; }
.kicker { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 12px; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.subject-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; color: var(--text); box-shadow: 0 2px 6px rgba(16,24,40,.04); transition: all .15s; }
.subject-chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(14,116,144,.15); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 6px; letter-spacing: -.01em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: relative; transition: transform .15s, box-shadow .15s; }
.step:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16,24,40,.08); }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.5rem; margin-bottom: 12px; background: linear-gradient(135deg, var(--brand-soft), #ede9fe); }
.step p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.lift { transition: transform .15s, box-shadow .15s; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16,24,40,.10); text-decoration: none; }

.careers-band { color: #fff; padding: 40px 0; background: linear-gradient(120deg, #312e81, #0e7490); }
.careers-band p { opacity: .88; }
.career-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.career-pill { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 14px 16px; color: #fff; transition: background .15s, transform .15s; }
.career-pill:hover { background: rgba(255,255,255,.2); text-decoration: none; transform: translateY(-2px); }
.career-pill span { font-size: 1.5rem; } .career-pill small { opacity: .8; }

.cta-final { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: #fff; border-radius: 22px; padding: 30px 32px;
  background: radial-gradient(600px 300px at 100% 0, rgba(253,230,138,.35), transparent 60%), linear-gradient(135deg, #0e7490, #4338ca); box-shadow: 0 20px 50px rgba(67,56,202,.25); }
.cta-final h2 { margin: 0 0 6px; font-size: 1.4rem; } .cta-final p { margin: 0; opacity: .9; max-width: 620px; }

@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; padding: 40px 16px 80px; gap: 28px; }
  .home-hero-art { min-height: 300px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .float-chip { font-size: .78rem; }
  .cta-final { padding: 22px; }
  .btn-xl { width: 100%; text-align: center; }
}

/* --- Portada: vitrina de cursos interactivos --- */
.hero-courses-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; color: #fde68a; font-weight: 700; font-size: 1.02rem; }
.hero-courses-link:hover { color: #fff; text-decoration: none; }
.hero-courses-link span { animation: floaty 2s ease-in-out infinite; display: inline-block; }
.academy-show { padding: 56px 0 48px; margin-block: 24px 0; scroll-margin-top: 10px;
  background: radial-gradient(700px 360px at 100% 0, rgba(99,102,241,.13), transparent 60%),
              radial-gradient(700px 360px at 0 100%, rgba(14,116,144,.12), transparent 60%), #eef4fb; }
.academy-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow-dark { background: #fff; border-color: var(--line); color: var(--brand); backdrop-filter: none; }
.academy-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 12px; }
.hl2 { background: linear-gradient(90deg, #0e7490, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.academy-lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 22px; max-width: 560px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.feature span { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, var(--brand-soft), #ede9fe); }
.feature b { font-size: .95rem; } .feature small { color: var(--muted); font-size: .84rem; line-height: 1.35; }

.player { position: relative; background: #0f172a; border-radius: 16px; overflow: visible; box-shadow: 0 30px 60px rgba(15,23,42,.3); transform: perspective(1200px) rotateY(-6deg); }
.player-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #94a3b8; font-size: .78rem; }
.player-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .player-bar i:nth-child(2) { background: #fbbf24; } .player-bar i:nth-child(3) { background: #34d399; }
.player-bar span { margin-left: 8px; }
.player-body { display: grid; grid-template-columns: 92px 1fr; min-height: 280px; }
.player-side { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.08); color: #94a3b8; font-size: .82rem; }
.player-side b { color: #e2e8f0; margin-bottom: 4px; }
.player-side span { padding: 4px 8px; border-radius: 8px; } .player-side .done { color: #34d399; } .player-side .now { background: #0e7490; color: #fff; }
.player-main { padding: 16px; color: #e2e8f0; display: flex; flex-direction: column; gap: 12px; }
.player-main .code { font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; background: #111c33; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.code .k { color: #c084fc; } .code .s { color: #86efac; }
.player-main .out { font: 12px ui-monospace, Consolas, monospace; color: #93c5fd; }
.quiz { background: #fff; color: var(--text); border-radius: 12px; padding: 10px 12px; }
.quiz p { margin: 0 0 8px; font-weight: 700; font-size: .9rem; }
.quiz span { display: inline-block; border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; margin-right: 6px; font-size: .85rem; }
.quiz .ok { background: var(--ok-soft); border-color: #86efac; color: var(--ok); font-weight: 700; }
.progress { height: 8px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, #22c55e, #38bdf8); }
.player-main small { color: #94a3b8; }
.chip-correct { top: -14px; right: 18px; color: var(--ok); animation: floaty 4s ease-in-out infinite; }

.academy-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 26px; }
.academy-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-align: center; }
.academy-stats b { display: block; font-size: 1.7rem; color: var(--brand); letter-spacing: -.02em; }
.academy-stats span { color: var(--muted); font-size: .88rem; }
.area-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.area-filter button { font: inherit; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.area-filter button:hover { border-color: var(--brand); color: var(--brand); }
.area-filter button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.show-card { border-top: 4px solid var(--ac, var(--brand)); }
.show-card .emoji { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.7rem; background: var(--acs, var(--brand-soft)); }
.show-card .area-badge { background: var(--acs, var(--brand-soft)); color: var(--ac, var(--brand)); }
.area-0 { --ac: #0e7490; --acs: #e0f2f7; } .area-1 { --ac: #7c3aed; --acs: #f1eafe; } .area-2 { --ac: #d97706; --acs: #fef3dc; }
.area-3 { --ac: #16a34a; --acs: #e5f7eb; } .area-4 { --ac: #db2777; --acs: #fde7f1; } .area-5 { --ac: #2563eb; --acs: #e5edfd; }
.area-6 { --ac: #dc2626; --acs: #fde8e8; } .area-7 { --ac: #0d9488; --acs: #dcf5f1; }
.academy-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 860px) {
  .academy-top { grid-template-columns: 1fr; }
  .player { transform: none; }
  .academy-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } .player-body { grid-template-columns: 1fr; } .player-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); } }

/* --- Precios, compras y estrellas --- */
.star-row { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.sr-stars { letter-spacing: 1px; font-size: 1.05em; background: linear-gradient(90deg, #f59e0b var(--v), #d6dbe3 var(--v)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-rating { margin: 2px 0 8px; font-size: .92rem; }
.price-badge { background: #fef3c7 !important; color: #92400e !important; font-weight: 700; }
.new-badge { display: inline-block; margin-left: 8px; vertical-align: top; background: linear-gradient(90deg, #f43f5e, #f59e0b); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.rate-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; margin: 0; }
.star-input button { background: none; border: 0; padding: 0 2px; font-size: 1.9rem; line-height: 1; color: #d6dbe3; cursor: pointer; transition: transform .1s, color .1s; }
.star-input button.on, .star-input button:hover, .star-input button:hover ~ button { color: #f59e0b; }
.star-input:hover button.on:not(:hover):not(:hover ~ button) { color: #d6dbe3; }
.star-input button:hover { transform: scale(1.15); }
.buy-alt { font-size: .92rem; color: var(--muted); margin: 10px 0 0; }
.buy-career { border: 2px solid #fde68a; background: linear-gradient(180deg, #fffbeb, #fff); }
.buy-career-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.buy-career-head h2 { margin: 0 0 4px; }
.price-box { text-align: right; } .price-box .price { margin: 0; }
.price-input { width: 140px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }

/* --- Portada: tarjeta de cursos en el hero --- */
.hero-courses-card { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 12px 16px; border-radius: 16px; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); max-width: 560px; box-shadow: 0 10px 30px rgba(2,20,40,.25); transition: transform .15s, background .15s; }
.hero-courses-card:hover { text-decoration: none; background: rgba(255,255,255,.22); transform: translateY(-2px); }
.hcc-emojis { display: flex; } .hcc-emojis i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; margin-left: -8px; font-size: 1.05rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.hcc-emojis i:first-child { margin-left: 0; }
.hcc-text { display: flex; flex-direction: column; flex: 1; line-height: 1.3; } .hcc-text b { font-size: 1.05rem; } .hcc-text small { opacity: .9; color: #fde68a; font-weight: 600; }
.hcc-go { background: #fde68a; color: #0b3b4a; font-weight: 800; padding: 7px 12px; border-radius: 10px; white-space: nowrap; }
.nav-hot { background: var(--brand-soft); color: var(--brand) !important; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 520px) { .hcc-emojis i:nth-child(n+4) { display: none; } .hero-courses-card { flex-wrap: wrap; } }

/* Mercado Pago */
.mp-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 10px 0; }
.btn-mp { background: #009ee3; border-color: #009ee3; color: #fff; font-size: 1.05rem; padding: 12px 20px; }
.btn-mp:hover { background: #0086c3; border-color: #0086c3; }
details.transfer { margin-top: 10px; }
details.transfer summary { cursor: pointer; font-weight: 600; color: var(--muted, #64748b); }
.roles-inline { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .88rem; }
.roles-inline .check, fieldset.roles .check { display: inline-flex; gap: 4px; align-items: center; font-weight: 500; }
fieldset.roles { border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 8px 12px; display: flex; gap: 14px; flex-wrap: wrap; }

.plan { border-top: 1px solid var(--line, #e5e7eb); padding-top: 12px; margin-top: 14px; }
.plan-annual { background: linear-gradient(135deg, rgba(255, 200, 60, .12), rgba(0, 158, 227, .06)); border-radius: 12px; padding: 12px 14px; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plans-grid label small { display: block; }
.plans-grid input { width: 100%; max-width: 240px; }
.plans-grid label { align-self: end; }
