/* MindBlock Play (play.mindblock.io). Estilo "bloques": bordes oscuros, sombra sólida y acentos
   amarillo/azul, como las piezas del editor. La escuela usa school.css; esto solo vive en play. */
.pl {
    --ink: #0F1733; --soft: #4A5372; --mute: #8A94B8; --bg: #F6F7FB; --card: #FFFFFF; --line: #E2E6F1; --dash: #D5DCEA;
    --yellow: #FFC233; --blue: #3158DD; --blue-d: #2445B5; --green: #17784E; --green-bg: #E3F4EC; --orange: #C2410C;
    --purple: #6A43C9; --teal: #0F7C80; --panel: #172150; --panel-2: #1E2A5E; --code: #0F1733;
    --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
    margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink);
    font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.pl *, .pl *::before, .pl *::after { box-sizing: border-box; }
.pl a { color: var(--blue); }
.pl a:hover { color: var(--blue-d); }
.pl h1, .pl h2, .pl h3 { color: inherit; }
.pl svg { flex-shrink: 0; }
.pl-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.pl-dots { background-color: var(--bg); background-image: radial-gradient(#D3DAF0 1.4px, transparent 1.5px); background-size: 22px 22px; }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Botones ---- */
.pl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink) !important; font: 700 16px Inter, sans-serif; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.pl-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.pl-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pl-btn.is-yellow { background: var(--yellow); }
.pl-btn.is-big { min-height: 62px; padding: 0 34px; gap: 10px; font-size: 18px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.pl-btn.is-on-dark { border-color: #fff; box-shadow: 0 4px 0 #fff; }
.pl-btn.is-soon { border-style: dashed; border-color: var(--dash); box-shadow: none; color: var(--soft) !important; font-weight: 600; cursor: default; transform: none; background: transparent; }

/* ---- Cabecera: logo, idioma y jugar. Sin menú. ---- */
.pl-top { position: sticky; top: 0; z-index: 10; }
.pl-top-in { max-width: 1200px; min-height: 66px; margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink) !important; white-space: nowrap; }
.pl-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--ink); }
.pl-brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.pl-brand-tag { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); transform: rotate(-4deg); }
.pl-top-actions { display: flex; align-items: center; gap: 12px; }
.pl-top-actions .pl-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
/* El selector de idioma es el de la escuela (components.lang-switch): aquí toma forma de bloque. */
.pl-top .sc-lang > summary { min-height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: 600 14px Inter, sans-serif; box-shadow: 0 3px 0 var(--ink); }

/* ---- Portada ---- */
.pl-hero { padding-block: 56px 104px; }
.pl-hero-in { display: flex; flex-direction: column; align-items: center; gap: clamp(56px, 7vw, 80px); }
.pl-hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(36px, 5vw, 56px); max-width: 1080px; }
.pl-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 6.4vw, 5.75rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.pl-hero h1 { min-height: 2.12em; display: block; width: 100%; text-align: center; }
.pl-hero h1.is-typing::after { content: ""; display: inline-block; width: .08em; height: .82em; margin-inline-start: .07em; border-radius: 99px; background: var(--blue); vertical-align: -.04em; animation: pl-caret .72s steps(1) infinite; }
@keyframes pl-caret { 50% { opacity: 0; } }
.pl-mark { display: inline; padding: .01em .1em .04em; border-radius: .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pl-mark.is-yellow { background: linear-gradient(180deg, transparent 8%, var(--yellow) 8%, var(--yellow) 92%, transparent 92%); color: var(--ink); }
.pl-mark.is-blue { background: var(--blue); color: #fff; }
.pl-lead { margin: 0; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--soft); }
.pl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; }

/* Ventana del simulador dibujada (bloques a un lado, pista al otro). */
.pl-sim { width: 100%; max-width: 980px; background: var(--panel); border-radius: 24px; padding: 12px; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 30px 60px -24px rgba(15, 23, 51, .55); }
.pl-sim-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 12px; color: #fff; font-weight: 600; font-size: 15px; }
.pl-sim-bar > span { display: flex; align-items: center; gap: 10px; }
.pl-sim-tools { display: flex; align-items: center; gap: 10px; }
.pl-python-mode { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff !important; text-decoration: none; font: 600 13px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.pl-python-mode:hover { background: rgba(255, 255, 255, .16); }
.pl-python-mode b { color: var(--yellow); }
.pl-sim-n { background: rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.pl-run { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 600; box-shadow: 0 3px 0 #0B4A30; }
.pl-sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pl-sim-code { background: var(--code); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 300px; }
.pl-sim-label { margin: 0 0 8px; color: #B8C0DA; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pl-sim-stage { position: relative; background: var(--panel-2); border-radius: 16px; overflow: hidden; min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 16px 8px 8px; }
.pl-sim-stage > svg { width: 100%; max-width: 440px; height: auto; }
.pl-toast { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); animation: pl-pop 4s ease-in-out infinite; }
.pl-toast svg { color: #E0A100; width: 16px; height: 16px; }
@keyframes pl-pop { 0%, 15% { opacity: 0; transform: translateY(-6px) scale(.9); } 24%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Bloques de código (los mismos colores que el editor). */
.pl-blk { color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--blue); }
.pl-blk.is-hat { background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 16px 16px 8px 8px; }
.pl-blk.is-loop, .pl-blk.is-cond { flex-direction: column; align-items: stretch; gap: 8px; padding: 9px 8px 10px 14px; }
.pl-blk.is-loop { background: var(--orange); }
.pl-blk.is-cond { background: var(--purple); }
.pl-blk.is-loop > span, .pl-blk.is-cond > span { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pl-blk.is-sensor { background: var(--teal); border-radius: 999px; }
.pl-blk.is-small { padding: 4px 10px; font-size: 13px; border-radius: 7px; align-self: flex-start; }
.pl-blk.is-small.is-loop, .pl-blk.is-small.is-cond { padding: 6px 6px 7px 10px; gap: 6px; }
.pl-val { background: #fff; color: var(--ink); border-radius: 999px; padding: 0 9px; font-weight: 700; }
.pl-val.is-red { background: #FDE2E2; color: #B42318; box-shadow: inset 0 0 0 2px #E5484D; }
.pl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px #fff; }

/* ---- Secciones ---- */
.pl-sec { padding: clamp(72px, 9vw, 96px) 0; }
.pl-sec.is-white { background: #fff; border-block: 1px solid var(--line); }
.pl-sec.is-tint { background: #F3F5FA; border-block: 1px solid var(--line); }
.pl-sec.is-dark { background-color: #111A3A; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.4px, transparent 1.5px); background-size: 22px 22px; color: #fff; }
.pl-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 40px; }
.pl-head.is-start { align-items: flex-start; text-align: start; margin-bottom: 24px; }
.pl-head h2 { margin: 0; font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.025em; line-height: 1.05; font-weight: 800; text-wrap: balance; }
.pl-head p { margin: 0; font-size: 18px; color: var(--soft); max-width: 640px; }
.pl-sec.is-dark .pl-head p { color: #C9D0E8; }
/* Etiqueta con forma de bloque (con su pestaña arriba). */
.pl-tag { position: relative; display: inline-flex; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 8px; box-shadow: 0 3px 0 rgba(15, 23, 51, .25); }
.pl-tag::before { content: ""; position: absolute; top: -6px; inset-inline-start: 16px; width: 22px; height: 7px; border-radius: 5px 5px 0 0; background: inherit; }
.pl-tag.is-purple { background: var(--purple); }
.pl-tag.is-orange { background: var(--orange); }
.pl-tag.is-teal { background: var(--teal); }
.pl-tag.is-yellow { background: var(--yellow); color: var(--ink); }
.pl-tag.is-ink { background: var(--ink); color: var(--yellow); }
.pl-tag.is-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.pl-card { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink); }

/* ---- Planes ---- */
.pl-ribbon { position: absolute; top: -16px; inset-inline-end: 18px; margin: 0; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 8px; transform: rotate(4deg); }
.pl-tick { flex: 0 0 22px; height: 22px; border-radius: 7px; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; }
.pl-tick svg { width: 14px; height: 14px; }

/* Avísame cuando salga Pro */
.pl-notify { margin-top: 36px; background: var(--ink); color: #fff; border-radius: 24px; padding: 24px clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.pl-notify-mascot { width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.pl-notify-mascot svg { width: 72px; height: auto; }
.pl-notify-text { flex: 1 1 220px; }
.pl-notify h3 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pl-notify-text p { margin: 4px 0 0; color: #C9D0E8; }
.pl-notify form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.pl-notify label { font-weight: 600; font-size: 14px; }
.pl-notify-row { display: flex; gap: 10px; }
.pl-notify input[type=email] { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 2px solid #3A4675; background: #1B2550; color: #fff; font: 500 16px Inter, sans-serif; }
.pl-notify input[type=email]::placeholder { color: var(--mute); }
.pl-notify input[type=email]:focus { outline: none; border-color: var(--yellow); }
.pl-notify .pl-btn { min-height: 52px; border-color: #fff; box-shadow: 0 3px 0 #fff; }
.pl-notify small { color: var(--mute); font-size: 13px; }
.pl-notify small a { color: #C9D0E8 !important; }
.pl-notify-ok { flex: 1 1 380px; margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-weight: 700; }
.pl-notify-err { margin: 0; color: #FFB4B4; font-size: 14px; font-weight: 600; }
.pl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Cómo funciona ---- */
.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pl-step { overflow: hidden; display: flex; flex-direction: column; }
.pl-step-art { position: relative; height: 180px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; background-image: radial-gradient(rgba(15, 23, 51, .12) 1.2px, transparent 1.3px); background-size: 18px 18px; }
.pl-step:nth-child(1) .pl-step-art { background-color: #E8EDFC; }
.pl-step:nth-child(2) .pl-step-art { background-color: #FFF4D6; }
.pl-step:nth-child(3) .pl-step-art { background-color: #E3F4EC; }
.pl-step-n { position: absolute; top: 14px; inset-inline-start: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pl-step-body { padding: 22px 24px 26px; }
.pl-step h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.pl-step-body p { margin: 0; color: var(--soft); font-size: 15px; }
.pl-cards3 { position: relative; width: 210px; height: 120px; direction: ltr; }
.pl-cards3 > span { position: absolute; top: 10px; width: 74px; height: 98px; border-radius: 12px; border: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 700; }
.pl-cards3 > span svg { width: 26px; height: 26px; }
.pl-cards3 > span:nth-child(1) { left: 6px; background: var(--purple); transform: rotate(-8deg); }
.pl-cards3 > span:nth-child(2) { left: 66px; top: 0; z-index: 1; width: 80px; height: 104px; background: var(--blue); box-shadow: 0 4px 0 var(--ink); }
.pl-cards3 > span:nth-child(3) { left: 130px; background: var(--teal); transform: rotate(8deg); }
.pl-cards3 > svg { position: absolute; left: 132px; top: 84px; z-index: 2; width: 22px; height: 22px; }
.pl-step-blocks { display: flex; flex-direction: column; gap: 5px; width: 200px; }
.pl-step-blocks .pl-blk { box-shadow: 0 0 0 2px var(--ink); padding: 5px 10px; font-size: 13px; }
.pl-step-blocks .pl-blk.is-loop { transform: rotate(3deg); margin-inline-start: 22px; flex-direction: row; padding: 5px 10px; }
.pl-win { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; background: var(--green); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; transform: rotate(4deg); display: flex; gap: 4px; align-items: center; }
.pl-win svg { width: 13px; height: 13px; }
.pl-step-art > svg { width: 210px; height: auto; }
.pl-retry { margin: 32px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 22px 12px 14px; font-weight: 600; }
.pl-retry > span:first-child { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pl-retry > span:first-child svg { width: 16px; height: 16px; }
.pl-retry b { color: var(--yellow); }

/* ---- Niveles ---- */
.pl-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pl-level { display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 170px; text-decoration: none; color: #fff !important; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.pl-level:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.pl-level.is-l1 { background: var(--blue); } .pl-level.is-l2 { background: var(--purple); } .pl-level.is-l3 { background: var(--teal); }
.pl-level.is-l4 { background: var(--orange); } .pl-level.is-l5 { background: #B4235A; }
.pl-level-ico { font-size: 1.9rem; line-height: 1; }
.pl-level-n { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: auto; }
.pl-level b { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; font-weight: 700; }

/* ---- Qué aprende ---- */
.pl-skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pl-skill { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.pl-skill-head { display: flex; gap: 14px; align-items: center; }
.pl-ico { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.pl-ico svg { width: 20px; height: 20px; }
.pl-ico.is-blue { background: var(--blue); } .pl-ico.is-orange { background: var(--orange); } .pl-ico.is-purple { background: var(--purple); }
.pl-ico.is-teal { background: var(--teal); } .pl-ico.is-green { background: var(--green); } .pl-ico.is-yellow { background: var(--yellow); color: var(--ink); }
.pl-skill h3 { margin: 0; font-size: 18px; font-weight: 700; }
.pl-skill p { margin: 0; color: var(--soft); font-size: 14px; }
.pl-skill-demo { flex: 1; min-height: 104px; background: var(--bg); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.pl-skill-demo.is-code { display: block; background: var(--code); color: #E6EAF7; font: 500 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; padding: 14px 16px; overflow-x: auto; direction: ltr; text-align: left; }
.pl-k { color: #FFC233; } .pl-f { color: #8FB0FF; } .pl-n { color: #7EE2B8; } .pl-c { color: #8A94B8; }
.pl-debug { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.pl-debug svg { width: 14px; height: 14px; }
.pl-debug.is-bad { background: #FDECEC; color: #B42318; border: 1px solid #F5C2C2; }
.pl-debug.is-good { background: var(--green-bg); color: var(--green); border: 1px solid #BFE5D2; }

/* ---- Python (oscuro) y Arma tu robot ---- */
.pl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.pl-split p { margin: 0 0 20px; font-size: 17px; }
.pl-sec.is-dark .pl-split p { color: #C9D0E8; }
.pl-feats { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-feats li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); font-weight: 600; font-size: 15px; }
.pl-feats svg { width: 18px; height: 18px; color: var(--yellow); }
.pl-ide { background: var(--code); border: 2px solid #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 var(--yellow); direction: ltr; text-align: left; }
.pl-ide-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.pl-ide-col { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.pl-ide-col + .pl-ide-col { border-left: 1px solid rgba(255, 255, 255, .12); }
.pl-ide-cap { margin: 0 0 6px; color: #B8C0DA; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pl-ide pre { margin: 0; font: 500 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; color: #E6EAF7; white-space: pre; overflow-x: auto; }
.pl-ide pre i { font-style: normal; color: #5D6890; display: inline-block; width: 1.6em; user-select: none; }
.pl-ide pre .is-err { display: block; background: rgba(229, 72, 77, .18); }
.pl-ide pre .is-err u { text-decoration: underline wavy #E5484D; text-underline-offset: 4px; }
.pl-term { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 16px; font: 500 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: #E6EAF7; }
.pl-term p { margin: 0; }
.pl-term-err { color: #FF8A8A; }
.pl-shop { padding: 20px; }
.pl-shop-bar { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.pl-shop-bar small { color: var(--soft); font-weight: 600; font-size: 13px; }
.pl-shop-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.pl-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-parts li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.pl-parts i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.pl-shop-grid > svg { width: 100%; height: auto; }
.pl-alert { margin-top: 18px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #FFF3E3; border: 1px solid #F6CF9B; color: #7A3E00; font-size: 14px; }
.pl-alert svg { width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }
.pl-alert b { display: block; color: var(--ink); }
.pl-howto { list-style: none; margin: 8px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pl-howto li { display: flex; gap: 14px; align-items: flex-start; }
.pl-howto b { display: block; font-size: 17px; }
.pl-howto div span { color: var(--soft); font-size: 15px; }

/* ---- Familias ---- */
.pl-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pl-trust li { padding: 24px; background: var(--bg); }
.pl-trust .pl-ico { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px; }
.pl-trust .pl-ico svg { width: 24px; height: 24px; }
.pl-trust h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.pl-trust p { margin: 0; color: var(--soft); font-size: 15px; }

/* ---- Preguntas ---- */
.pl-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.pl-faq details { background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 0 22px; }
.pl-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--yellow); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.pl-faq details[open] summary::after { content: "–"; }
.pl-faq details p { margin: 0 0 18px; color: var(--soft); }

/* ---- Cierre ---- */
.pl-final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pl-final-art { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.pl-final-art > span { width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); border: 4px solid #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.pl-final-art > span svg { width: 120px; height: auto; }
.pl-bubble { position: relative; margin: 0; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 20px; font-family: var(--display); font-weight: 800; font-size: 20px; transform: rotate(-4deg); box-shadow: 0 4px 0 var(--yellow); }
.pl-final h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.03em; line-height: 1.08; font-weight: 800; color: #fff; }
.pl-final > p { margin: 0 0 8px; color: #C9D0E8; font-size: 18px; }

/* ---- Pie (sin menú) ---- */
.pl-foot { border-top: 2px solid var(--ink); padding: 56px 0 28px; font-size: 15px; color: var(--soft); }
.pl-foot-top { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 40px 56px; padding-bottom: 36px; }
.pl-foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pl-foot-brand .pl-brand { min-height: 0; }
.pl-foot-brand p { margin: 0; max-width: 340px; }
.pl-foot-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-foot-pills li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px 4px 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pl-foot-pills svg { width: 16px; height: 16px; flex: none; }
.pl-foot-brand .pl-btn { margin-top: 4px; }
.pl-foot-col h2 { margin: 0 0 14px; font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.pl-foot-levels, .pl-foot-langs { list-style: none; margin: 0; padding: 0; }
.pl-foot-levels { display: grid; gap: 8px; }
.pl-foot-levels a { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 12px; color: var(--ink) !important; font-weight: 600; text-decoration: none; transition: background .15s, transform .15s; }
.pl-foot-levels a:hover { background: #fff; transform: translateX(3px); box-shadow: 0 0 0 2px var(--ink); }
.pl-foot-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 9px; border: 2px solid var(--ink); background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; }
.pl-foot-levels li:nth-child(2) .pl-foot-num { background: #7C4DDB; }
.pl-foot-levels li:nth-child(3) .pl-foot-num { background: #0F8A7E; }
.pl-foot-levels li:nth-child(4) .pl-foot-num { background: #C9420E; }
.pl-foot-levels li:nth-child(5) .pl-foot-num { background: var(--yellow); color: var(--ink); }
.pl-foot-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.pl-foot-langs a { display: inline-block; padding: 3px 0; color: var(--soft) !important; text-decoration: none; font-weight: 500; }
.pl-foot-langs a:hover { color: var(--blue) !important; }
.pl-foot-langs a[aria-current] { color: var(--ink) !important; font-weight: 700; box-shadow: inset 0 -6px 0 var(--yellow); }
.pl-foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 22px; border-top: 2px dashed var(--dash); font-size: 14px; }
.pl-foot-legal p { margin: 0; }
.pl-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pl-foot-links a { color: var(--soft) !important; text-decoration: none; font-weight: 600; }
.pl-foot-links a:hover { color: var(--ink) !important; text-decoration: underline; }
@media (max-width: 860px) {
    .pl-foot-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .pl-foot { padding-top: 44px; }
    .pl-foot-top { grid-template-columns: 1fr; gap: 32px; }
    .pl-foot-legal { flex-direction: column; align-items: flex-start; }
}

/* ---- Responsivo ---- */
@media (max-width: 1024px) {
    .pl-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pl-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .pl-steps { grid-template-columns: minmax(0, 1fr); }
    .pl-split, .pl-shop-grid { grid-template-columns: minmax(0, 1fr); }
    .pl-split.is-shop > :first-child { order: 1; }
    .pl-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-ide-cols { grid-template-columns: minmax(0, 1fr); }
    .pl-ide-col + .pl-ide-col { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 600px) {
    .pl-wrap, .pl-top-in { padding-inline: 16px; }
    .pl-hero { padding-block: 36px 72px; }
    .pl-actions, .pl-actions .pl-btn { width: 100%; }
    .pl-skills, .pl-trust { grid-template-columns: minmax(0, 1fr); }
    .pl-feats { grid-template-columns: minmax(0, 1fr); }
    .pl-notify-row { flex-direction: column; }
    .pl-python-mode { padding-inline: 9px; }
    .pl-python-mode b { display: none; }
    .pl-final-art > span { width: 110px; height: 110px; }
    .pl-final-art > span svg { width: 88px; }
    .pl-bubble { font-size: 17px; }
}
@media (max-width: 420px) {
    .pl-levels { grid-template-columns: minmax(0, 1fr); }
    .pl-level { min-height: 0; }
    .pl-top-in { gap: 8px; padding-inline: 12px; }
    .pl-brand { gap: 7px; }
    .pl-logo { width: 34px; height: 34px; border-radius: 10px; }
    .pl-brand-name { font-size: 18px; }
    .pl-brand-tag { font-size: 11px; padding: 1px 7px; }
    .pl-top-actions { gap: 6px; }
    .pl-top-actions .pl-btn { padding: 0 12px; font-size: 14px; }
    .pl-top .sc-lang > summary { padding: 0 9px; gap: 5px; }
    .pl-top .sc-lang-chev { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-toast, .pl-hero h1.is-typing::after { animation: none; }
    .pl-btn, .pl-level { transition: none; }
}

/* ---- Login modal ---- */
.pl-login-trigger { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.pl-login-trigger:hover { color: var(--blue) !important; }
.pl-modal-open { overflow: hidden; }
/* Con sesión: interruptor de camino en la cabecera */
.pl-switch { display: inline-flex; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
.pl-switch button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--soft); font: 700 14px Inter, sans-serif; cursor: pointer; }
.pl-switch button[aria-pressed="true"].is-bloques { background: var(--yellow); color: var(--ink); }
.pl-switch button[aria-pressed="true"].is-python { background: var(--panel); color: #fff; }
.pl-switch button:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }

/* Modal de la primera vez: elegir camino */
.pl-path-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow); color: var(--ink); flex-shrink: 0; }
.pl-path-icon svg { width: 28px; height: 28px; }
.pl-login-panel.pl-track-dialog { width: min(100%, 700px); text-align: center; }
.pl-track-dialog h2 { margin: 0; font: 800 32px/1.1 var(--display); }
.pl-track-dialog > p { margin: 8px 0 22px; color: var(--soft); }
.pl-track-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pl-track-option { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 22px 16px; border: 2px solid var(--ink); border-radius: 20px; background: #FFF6DE; color: var(--ink); font: inherit; text-align: center; box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .12s ease; }
.pl-track-option.is-python { background: var(--panel); color: #fff; }
.pl-track-option:hover { transform: translateY(-2px); }
.pl-track-option:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.pl-track-option b { font: 800 24px var(--display); }
/* Vista previa en cada opción: el mismo programa en bloques y en Python */
.pl-track-demo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 156px; margin-bottom: 4px; padding: 12px; border-radius: 12px; text-align: start; box-sizing: border-box; }
.pl-track-demo.is-blocks { background: #fff; border: 1px solid var(--line); }
.pl-track-demo.is-blocks .pl-blk { box-shadow: 0 2px 0 rgba(15, 23, 51, .25); }
.pl-track-demo.is-blocks .pl-val { padding: 0 7px; }
.pl-track-demo.is-code { display: block; background: var(--code); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: 500 13px/1.7 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; white-space: pre; overflow-x: auto; direction: ltr; text-align: left; }
.pl-track-option > span:last-child { font-size: 14px; color: var(--soft); }
.pl-track-option.is-python > span:last-child { color: #C9D0E8; }

/* Con sesión: la ruta de retos */
.pl-route { padding-block: 36px 64px; }
.pl-route-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.pl-route-kicker { margin: 0 0 4px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.pl-route.is-python .pl-route-kicker { color: var(--purple); }
.pl-route-head h1 { margin: 0; font: 800 clamp(26px, 4vw, 40px)/1.1 var(--display); color: var(--ink); max-width: 680px; }
.pl-route-progress { display: grid; gap: 6px; min-width: 220px; font-size: 14px; color: var(--soft); }
.pl-route-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pl-route-bar span { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.pl-world { max-width: 640px; margin: 0 auto 12px; }
.pl-world-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 18px; background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--ink); }
.pl-route.is-python .pl-world-head { background: var(--panel); }
.pl-world.is-pro .pl-world-head { background: var(--purple); }
.pl-world-n { font-size: 13px; font-weight: 700; opacity: .85; }
.pl-world-head h2 { margin: 0; flex: 1; font: 800 22px var(--display); }
.pl-world-tag { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }
.pl-world-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-stops { --step: 64px; list-style: none; margin: 0; padding: 28px 0 18px; display: grid; justify-items: center; gap: 22px; }
.pl-stop { transform: translateX(calc(var(--x) * var(--step))); }
[dir="rtl"] .pl-stop { transform: translateX(calc(var(--x) * var(--step) * -1)); }
.pl-stop a { position: relative; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink) !important; }
.pl-stop-dot { display: grid; place-items: center; width: 76px; height: 76px; border: 3px solid var(--ink); border-radius: 50%; background: var(--card); font-size: 30px; font-weight: 800; box-shadow: 0 5px 0 var(--ink); transition: transform .12s ease; }
.pl-stop a:hover .pl-stop-dot { transform: translateY(-2px); }
.pl-stop a:focus-visible { outline: none; }
.pl-stop a:focus-visible .pl-stop-dot { outline: 3px solid var(--blue); outline-offset: 4px; }
.pl-stop.is-done .pl-stop-dot { background: var(--yellow); color: var(--ink); }
.pl-stop.is-current { margin-top: 34px; } /* sitio para la burbuja «¡Juega!» */
.pl-stop.is-current .pl-stop-dot { width: 92px; height: 92px; background: var(--green); color: #fff; font-size: 36px; box-shadow: 0 5px 0 var(--ink), 0 0 0 8px rgba(23, 120, 78, .2); }
.pl-route.is-python .pl-stop.is-current .pl-stop-dot { background: var(--purple); box-shadow: 0 5px 0 var(--ink), 0 0 0 8px rgba(106, 67, 201, .2); }
.pl-stop.is-locked .pl-stop-dot { background: var(--bg); border-style: dashed; box-shadow: none; font-size: 26px; }
.pl-stop.is-locked .pl-stop-label { color: var(--mute); }
.pl-stop-label { display: grid; text-align: center; font-weight: 700; font-size: 15px; max-width: 170px; }
.pl-stop-label small { font-size: 12px; font-weight: 600; color: var(--soft); }
.pl-stop-bubble { position: absolute; top: -34px; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; animation: pl-bob 1.6s ease-in-out infinite; }
.pl-stop-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: #fff; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateX(-50%) rotate(45deg); }
@keyframes pl-bob { 50% { transform: translateY(-4px); } }
.pl-route-end { max-width: 640px; margin: 8px auto 0; display: flex; align-items: center; gap: 16px; padding: 18px; border: 2px dashed var(--dash); border-radius: 18px; color: var(--soft); }
.pl-route-end .pl-stop-dot { width: 56px; height: 56px; font-size: 24px; border-style: dashed; box-shadow: none; flex-shrink: 0; }
.pl-route-end p { margin: 0; }
.pl-route-end b { display: block; color: var(--ink); }
@media (max-width: 720px) {
    .pl-stops { --step: 40px; }
    .pl-track-options { grid-template-columns: 1fr; }
    .pl-switch button { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 600px) {
    /* Con sesión la portada ya es la ruta: en el teléfono la cabecera queda en logo, camino y avatar. */
    .pl-top-actions.is-auth .pl-tier, .pl-top-actions.is-auth > .pl-btn { display: none; }
    .pl-top-actions.is-auth { gap: 6px; }
    .pl-top-in:has(.is-auth) .pl-brand-name { display: none; }
    .pl-top-actions.is-auth .sc-lang { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pl-stop-bubble { animation: none; } }
/* Cuenta: avatar y menú */
.pl-user { position: relative; }
.pl-user-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.pl-user-btn:hover, .pl-user-btn[aria-expanded="true"] { border-color: var(--blue); }
.pl-avatar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--blue); color: #fff; font-size: 15px; flex-shrink: 0; }
.pl-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.pl-user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 236px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 23, 51, .16); }
[dir="rtl"] .pl-menu { right: auto; left: 0; }
.pl-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pl-menu-head strong { display: block; font-size: 15px; color: var(--ink); }
.pl-menu-head small { color: var(--soft); font-size: 12px; word-break: break-all; }
.pl-menu a, .pl-menu button { display: flex; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: start; text-decoration: none; cursor: pointer; }
.pl-menu a:hover, .pl-menu button:hover { background: var(--bg); }
.pl-menu-out { color: var(--orange) !important; }
/* Estado de Pro en la cabecera y aviso del muro de pago */
.pl-tier { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: #EEE9FB; color: var(--purple) !important; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pl-tier.is-pro { background: var(--yellow); color: var(--ink) !important; }
.pl-trial-note { margin-top: 8px !important; font-weight: 700; color: var(--purple) !important; }
.pl-paywall { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #EEE9FB; color: var(--purple); font-weight: 700; }
.pl-login-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity .18s ease; }
.pl-login-modal[hidden] { display: none; }
.pl-login-modal.is-open { opacity: 1; }
.pl-login-backdrop { position: absolute; inset: 0; background: rgba(10, 17, 40, .72); backdrop-filter: blur(5px); }
.pl-login-panel { position: relative; width: min(100%, 440px); max-height: calc(100dvh - 44px); overflow-y: auto; padding: 32px; border: 2px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: 0 7px 0 var(--ink), 0 30px 70px rgba(10, 17, 40, .35); transform: translateY(14px) scale(.98); transition: transform .18s ease; }
.pl-login-modal.is-open .pl-login-panel { transform: none; }
.pl-login-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; padding: 0; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: 700 25px/1 Inter, sans-serif; box-shadow: 0 2px 0 var(--ink); cursor: pointer; }
.pl-login-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 18px; }
.pl-login-brand .pl-logo { width: 38px; height: 38px; }
.pl-login-panel h2 { margin: 0; text-align: center; font-family: var(--display); font-size: 34px; line-height: 1.1; }
.pl-login-sub { margin: 8px 0 24px; color: var(--soft); text-align: center; }
.pl-google { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 700 15px Inter, sans-serif; cursor: pointer; }
.pl-google:hover { border-color: var(--ink); }
.pl-google:disabled { opacity: .6; cursor: wait; }
.pl-login-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--mute); font-size: 13px; font-weight: 600; }
.pl-login-or::before, .pl-login-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.pl-login-form { display: grid; gap: 10px; }
.pl-login-form label { margin-top: 5px; color: var(--ink); font-weight: 700; font-size: 15px; }
.pl-login-form input { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 500 16px Inter, sans-serif; }
.pl-login-form input:focus { border-color: var(--blue); outline: 3px solid rgba(49, 88, 221, .15); }
.pl-login-password { position: relative; }
.pl-login-password input { padding-right: 76px; }
.pl-login-password button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 8px; padding: 7px 10px; background: #e9edfb; color: var(--blue); font-weight: 700; cursor: pointer; }
.pl-login-forgot { width: fit-content; margin-top: 2px; font-size: 14px; font-weight: 600; }
.pl-login-error { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: #FDE8E8; color: #9B1C1C; font-size: 14px; font-weight: 600; }
.pl-login-error[hidden] { display: none; }
.pl-login-submit { width: 100%; margin-top: 8px; }
.pl-login-submit:disabled { opacity: .6; cursor: wait; }
.pl-login-foot { margin: 22px 0 0; color: var(--soft); text-align: center; font-size: 14px; font-weight: 600; }
.pl-login-foot button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }
.pl-register-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-register-names > div { display: grid; gap: 10px; }
.pl-register-hint { margin-top: -5px; color: var(--soft); font-size: 12px; }
@media (max-width: 600px) {
    .pl-login-modal { align-items: end; padding: 0; }
    .pl-login-panel { width: 100%; max-height: 92dvh; padding: 28px 22px calc(24px + env(safe-area-inset-bottom)); border-width: 2px 0 0; border-radius: 24px 24px 0 0; box-shadow: 0 -5px 0 var(--ink); }
    .pl-register-names { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .pl-login-trigger { padding-inline: 6px; font-size: 14px; }
    .pl-tier { padding-inline: 8px; font-size: 12px; }
    .pl-user-name { display: none; }
    .pl-user-btn { padding: 4px; }
    .pl-top-actions .sc-lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-login-modal, .pl-login-panel { transition: none; }
}

/* Con sesión: pie mínimo y página de planes */
.pl-foot-min { padding: 28px 16px 36px; text-align: center; color: var(--mute); font-size: 13px; }
.pl-foot-min p { margin: 0; }
.pl-foot-min a { color: var(--soft); }
.pl-plans-page { padding-top: 20px; }
.pl-back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; color: var(--blue) !important; text-decoration: none; }
.pl-menu-langs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 6px; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-menu .pl-menu-langs a { width: auto; min-width: 38px; justify-content: center; padding: 6px 8px; font-size: 12px; }
.pl-menu .pl-menu-langs a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Ruta en pantalla grande: caja de herramientas | ruta | actividad */
.pl-route > .pl-wrap { max-width: 1440px; display: flex; flex-direction: column; }
.pl-route-head { order: 0; }
.pl-robot-collection { order: 1; }
.pl-route-grid { order: 2; }
.pl-route-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pl-panel { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 18px; box-shadow: 0 4px 0 var(--ink); }
.pl-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-panel h2 { margin: 0; font: 800 20px var(--display); color: var(--ink); }
.pl-panel h3 { margin: 16px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.pl-panel-count { padding: 2px 10px; border-radius: 999px; background: var(--bg); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-panel-sub { margin: 6px 0 12px; font-size: 14px; color: var(--soft); }
.pl-next-prize { display: grid; gap: 2px; padding: 10px 12px; border: 2px dashed var(--yellow); border-radius: 12px; background: #FFF6DE; font-size: 13px; color: var(--ink); }
.pl-next-prize b { font-size: 14px; }
.pl-next-prize span:last-child { font-weight: 700; }
.pl-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl-tool { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-tool small { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--green); }
.pl-tool.is-locked small { color: var(--mute); }
.pl-tool-blk { padding: 5px 10px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 rgba(15, 23, 51, .25); }
.pl-tool.is-control .pl-tool-blk { background: var(--orange); }
.pl-tool.is-sensor .pl-tool-blk { background: var(--teal); border-radius: 999px; }
.pl-tool code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: var(--code); color: #8FB0FF; font: 600 12px ui-monospace, Consolas, monospace; direction: ltr; }
.pl-tool.is-control code { color: #FFC233; }
.pl-tool.is-sensor code { color: #7EE2B8; }
.pl-tool.is-locked .pl-tool-blk, .pl-tool.is-locked code { filter: grayscale(1); opacity: .45; }
.pl-streak { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; color: var(--soft); }
.pl-streak.is-on { background: #FFF1E6; color: var(--orange); }
.pl-streak-fire { font-size: 24px; }
.pl-streak:not(.is-on) .pl-streak-fire { filter: grayscale(1); opacity: .5; }
.pl-streak b { font: 800 28px var(--display); color: var(--ink); }
.pl-heat { display: flex; gap: 6px; direction: ltr; }
.pl-heat-days, .pl-heat-week { display: grid; grid-template-rows: repeat(7, 12px); gap: 3px; }
.pl-heat-days span { font-size: 10px; line-height: 12px; color: var(--mute); }
.pl-heat-grid { display: flex; gap: 3px; }
.pl-heat-cell { display: block; width: 12px; height: 12px; border-radius: 3px; background: #E8EBF3; }
.pl-heat-cell.is-l1 { background: #C7EBD9; }
.pl-heat-cell.is-l2 { background: #7FD0A8; }
.pl-heat-cell.is-l3 { background: #2FA672; }
.pl-heat-cell.is-l4 { background: var(--green); }
.pl-heat-cell.is-future { visibility: hidden; }
.pl-heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 8px; font-size: 11px; color: var(--mute); }
.pl-heat-legend span:first-child { margin-inline-end: 3px; }
.pl-heat-legend span:last-child { margin-inline-start: 3px; }
.pl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.pl-stats div { padding: 8px; border-radius: 10px; background: var(--bg); text-align: center; }
.pl-stats dt { font-size: 11px; font-weight: 700; color: var(--soft); }
.pl-stats dd { margin: 2px 0 0; font: 800 22px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-stop-prize { display: block; margin-top: 3px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--purple); }
.pl-stop.is-done .pl-stop-prize { color: var(--green); }
@media (min-width: 720px) and (max-width: 1179px) {
    .pl-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pl-route-main { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
    .pl-route-grid { grid-template-columns: 312px minmax(0, 1fr) 312px; }
    .pl-toolbox { grid-column: 1; grid-row: 1; }
    .pl-route-main { grid-column: 2; grid-row: 1; }
    .pl-activity { grid-column: 3; grid-row: 1; }
    .pl-panel { position: sticky; top: 84px; }
}
.pl-top-in:has(.is-auth) { max-width: 1440px; }

/* Ruta v2: cabecera con «Continuar», sendero que une las paradas e ilustraciones */
.pl-route-head { align-items: center; padding: 20px 24px; border: 2px solid var(--ink); border-radius: 22px; background: var(--card); box-shadow: 0 4px 0 var(--ink); }
.pl-route-hello { flex: 1 1 420px; min-width: 0; }
.pl-route-hello .pl-route-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; max-width: 460px; }
.pl-route-hello .pl-route-bar { flex: 1; }
.pl-route-hello .pl-route-progress b { white-space: nowrap; }
.pl-route-go { display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border: 2px solid var(--ink); border-radius: 18px; background: var(--green); color: #fff !important; text-decoration: none; box-shadow: 0 5px 0 var(--ink); font: 800 20px/1.15 var(--display); transition: transform .12s ease, box-shadow .12s ease; }
.pl-route-go:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.pl-route-go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.pl-route-go:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.pl-route-go small { display: block; font: 700 13px Inter, system-ui, sans-serif; opacity: .9; }
.pl-route-go-ico { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.pl-route-go-ico svg { width: 24px; height: 24px; }
.pl-route.is-python .pl-route-go, .pl-route-go.is-pro { background: var(--purple); }
.pl-route-go.is-pro { padding-inline-start: 22px; }
.pl-stops { position: relative; }
.pl-stop { position: relative; z-index: 1; }
.pl-trail { position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.pl-trail path { fill: none; stroke-width: 10; stroke-linecap: round; }
.pl-trail .is-todo { stroke: var(--line); stroke-dasharray: 2 18; stroke-width: 9; }
.pl-trail .is-done { stroke: var(--yellow); }
.pl-route.is-python .pl-trail .is-done { stroke: #B9A3F0; }
.pl-stop-dot svg { width: 38px; height: 38px; }
.pl-stop.is-current .pl-stop-dot svg { width: 46px; height: 46px; }
.pl-stop:not(.is-current):not(.is-done):not(.is-locked) .pl-stop-dot { color: var(--blue); }
.pl-route.is-python .pl-stop:not(.is-current):not(.is-done):not(.is-locked) .pl-stop-dot { color: var(--purple); }
.pl-stop-label { padding: 2px 8px; border-radius: 10px; background: var(--bg); }
@media (min-width: 1180px) {
    .pl-stops { --step: 84px; gap: 30px; }
    .pl-stop-dot { width: 86px; height: 86px; }
    .pl-stop.is-current .pl-stop-dot { width: 104px; height: 104px; }
}
@media (max-width: 600px) {
    .pl-route-head { padding: 16px; }
    .pl-route-go { width: 100%; font-size: 18px; }
}

/* Texto de cada parada al costado (lado contrario al zigzag), así el sendero queda libre entre paradas */
.pl-stops { gap: 46px; }
.pl-stop .pl-stop-label { position: absolute; top: 50%; width: 190px; max-width: none; transform: translateY(-50%); background: none; padding: 0; text-align: start; }
.pl-stop.is-left .pl-stop-label { left: calc(100% + 16px); }
.pl-stop.is-right .pl-stop-label { right: calc(100% + 16px); text-align: end; }
[dir="rtl"] .pl-stop.is-left .pl-stop-label { left: auto; right: calc(100% + 16px); }
[dir="rtl"] .pl-stop.is-right .pl-stop-label { right: auto; left: calc(100% + 16px); }
.pl-stop.is-current { margin-top: 30px; }
.pl-trail .is-todo { stroke: var(--dash); stroke-dasharray: 1 16; stroke-width: 9; }
@media (max-width: 600px) {
    .pl-stops { --step: 34px; gap: 40px; }
    .pl-stop .pl-stop-label { width: 132px; font-size: 14px; }
    .pl-stop-prize { font-size: 11px; }
}

/* ===== Planes: Gratis frente a Pro (Pro con selector de periodo) ===== */
.pl-now { display: flex; align-items: center; gap: 14px; margin: 0 auto 22px; max-width: 900px; padding: 14px 18px; border-radius: 16px; background: var(--bg); border: 2px solid var(--line, #E3E7F1); }
.pl-now.is-trial { background: #EEE9FB; border-color: #D9CFF6; }
.pl-now.is-pro { background: #FFF6D9; border-color: #F5DE91; }
.pl-now-icon { font-size: 26px; line-height: 1; }
.pl-now p { margin: 0; color: var(--soft); line-height: 1.45; }
.pl-now b { color: var(--ink); }
.pl-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; max-width: 900px; margin: 22px auto 0; align-items: stretch; }
.pl-pick { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--card); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink); text-align: start; }
.pl-pick.is-pro { background: var(--ink); color: #fff; box-shadow: 0 6px 0 var(--blue); }
.pl-pick header { display: flex; flex-direction: column; gap: 4px; }
.pl-pick h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pl-pick-badge { font: 700 12px Inter, sans-serif; letter-spacing: 0; padding: 3px 10px; border-radius: 999px; background: #EEE9FB; color: var(--purple); }
.pl-pick-sub, .pl-pick-note { margin: 0; color: var(--soft); font-size: 15px; }
.pl-pick-note { font-size: 14px; min-height: 1.4em; }
.pl-pick.is-pro .pl-pick-sub, .pl-pick.is-pro .pl-pick-note { color: #C9D0E8; }
.pl-pick-price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; }
.pl-pick-price b { font-family: var(--display); font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pl-pick-price span { color: var(--soft); font-size: 16px; }
.pl-pick.is-pro .pl-pick-price b { color: var(--yellow); }
.pl-pick.is-pro .pl-pick-price span { color: #C9D0E8; }
.pl-ribbon { position: absolute; top: -15px; inset-inline-end: 20px; margin: 0; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 8px; transform: rotate(3deg); }
/* Selector de periodo: tres pastillas */
.pl-period { display: flex; gap: 4px; margin: 4px 0 0; padding: 4px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.pl-period legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-period input { position: absolute; opacity: 0; pointer-events: none; }
.pl-period label { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 14px; color: #C9D0E8; text-align: center; line-height: 1.15; }
.pl-period label small { font-size: 11px; font-weight: 800; color: #7EE2B8; }
.pl-period label:hover { color: #fff; }
.pl-period input:checked + label { background: #fff; color: var(--ink); }
.pl-period input:checked + label small { color: var(--green); }
.pl-period input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pl-pick-list { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 2px dashed var(--dash); display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; flex: 1; }
.pl-pick.is-pro .pl-pick-list { border-top-color: rgba(255, 255, 255, .2); }
.pl-pick-list li { display: flex; gap: 10px; align-items: flex-start; }
.pl-pick-list li.is-lead { font-weight: 700; color: var(--ink); }
.pl-pick.is-pro .pl-pick-list li.is-lead { color: #fff; }
.pl-pick .pl-btn { margin-top: 8px; width: 100%; }
.pl-btn.is-current { background: var(--green-bg); color: var(--green) !important; border-color: var(--green); box-shadow: none; cursor: default; }
.pl-btn.is-ghost { background: var(--card); color: var(--ink) !important; }
.pl-pick.is-pro .pl-btn.is-soon { border-color: rgba(255, 255, 255, .45); color: #fff !important; text-decoration: none; }
.pl-pick.is-pro .pl-btn.is-soon:hover { border-color: var(--yellow); color: var(--yellow) !important; }
/* Preguntas */
.pl-faq { max-width: 900px; margin: 40px auto 0; }
.pl-faq h3 { margin: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 800; }
.pl-faq details { border-bottom: 2px dashed var(--dash); }
.pl-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--blue); }
.pl-faq details[open] summary::after { content: '−'; }
.pl-faq details p { margin: 0 0 16px; color: var(--soft); line-height: 1.5; }
#pricing .pl-notify, #pricing .pl-paywall { max-width: 900px; margin-inline: auto; }
.pl-plans-page > .pl-wrap:first-child { max-width: 948px; }
.pl-pick-safe { margin: -2px 0 0; text-align: center; font-size: 13px; color: #C9D0E8; }
.pl-paid { max-width: 900px; margin: 0 auto 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 20px 24px; border-radius: 20px; background: #EEE9FB; border: 2px solid #D9CFF6; }
.pl-paid.is-done { background: var(--green-bg); border-color: var(--green); box-shadow: 0 5px 0 var(--green); animation: pl-paid-in .5s cubic-bezier(.2, 1.4, .4, 1); }
.pl-paid > div { flex: 1 1 260px; }
.pl-paid h3 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); }
.pl-paid p { margin: 4px 0 0; color: var(--soft); }
.pl-paid-big { font-size: 44px; line-height: 1; }
.pl-spin { animation: pl-spin 1.6s linear infinite; display: inline-block; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-paid-in { from { transform: scale(.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pl-paid.is-done, .pl-spin { animation: none; } }

/* ===== Mi suscripción ===== */
.pl-sub-page { padding: 20px 0 64px; }
.pl-sub-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.pl-sub-title { margin: 0; font-family: var(--display); font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.pl-sub-flash { margin: 0; padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.pl-sub-flash.is-ok { background: var(--green-bg); color: var(--green); }
.pl-sub-flash.is-error { background: #FDECEC; color: #B42318; }
.pl-sub-card { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.pl-sub-card.is-pro { box-shadow: 0 5px 0 var(--yellow); }
.pl-sub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pl-sub-kicker { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.pl-sub-head h2, .pl-sub-h { margin: 2px 0 0; font-family: var(--display); font-size: 28px; font-weight: 800; }
.pl-sub-h { font-size: 20px; margin: 0; }
.pl-sub-chip { flex-shrink: 0; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--bg); color: var(--soft); }
.pl-sub-chip.is-ok { background: var(--green-bg); color: var(--green); }
.pl-sub-chip.is-trial { background: #EEE9FB; color: var(--purple); }
.pl-sub-chip.is-warn { background: #FFF1D6; color: #9A5B00; }
.pl-sub-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pl-sub-facts div { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.pl-sub-facts dt { font-size: 13px; color: var(--soft); font-weight: 600; }
.pl-sub-facts dd { margin: 4px 0 0; font-weight: 800; font-size: 16px; color: var(--ink); }
.pl-sub-facts dd small { font-weight: 600; color: var(--soft); }
.pl-sub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-sub-actions form { display: contents; }
.pl-sub-pays { list-style: none; margin: 0; padding: 0; }
.pl-sub-pays li { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pl-sub-pays li:first-child { border-top: 0; }
.pl-sub-pay-what { color: var(--soft); }
.pl-sub-pays a { font-weight: 700; color: var(--blue) !important; text-decoration: none; }
.pl-sub-muted, .pl-sub-help { margin: 0; color: var(--soft); }
.pl-sub-help { font-size: 14px; }
.pl-sub-help a { color: var(--blue) !important; }
.pl-sub-cancel { border: 2px dashed var(--dash); border-radius: 16px; padding: 4px 18px; }
.pl-sub-cancel summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--soft); }
.pl-sub-cancel p { margin: 0 0 14px; color: var(--soft); line-height: 1.5; }
.pl-sub-cancel form { margin-bottom: 14px; }
.pl-btn.is-danger { background: #fff; color: #B42318 !important; border-color: #B42318; box-shadow: 0 3px 0 #B42318; }
@media (max-width: 560px) {
    .pl-sub-pays li { grid-template-columns: 1fr auto; }
    .pl-sub-pay-what { display: none; }
}

/* Planes en 3 (Gratis · Mensual · Anual) y MindBlock Play for Education */
.pl-group-title { margin: 28px auto 0; max-width: 1100px; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pl-picks.is-three { max-width: 1100px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 16px; }
.pl-pick.is-paid { background: var(--bg); }
.pl-pick-off { margin-inline-start: 8px; align-self: center; font-style: normal; font: 800 13px Inter, sans-serif; padding: 3px 8px; border-radius: 8px; background: var(--green-bg); color: var(--green); }
.pl-btn.is-soon.is-dark { color: var(--ink) !important; }
.pl-edu { max-width: 1100px; margin: 56px auto 0; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: #EAF0FF; border: 2px solid #C9D6FB; }
.pl-edu-head { display: grid; gap: 8px; }
.pl-edu-head .pl-tag { justify-self: start; }
.pl-edu-head .pl-group-title { margin: 0; }
.pl-edu-head > p { margin: 0; color: var(--soft); max-width: 720px; }
.pl-edu-feats { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; }
.pl-edu-feats li { display: flex; align-items: center; gap: 8px; }
.pl-edu-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
@media (min-width: 900px) { .pl-edu-grid { grid-template-columns: repeat(3, 1fr); } }
.pl-edu-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.pl-edu-card.is-featured { box-shadow: 0 5px 0 var(--blue); border-color: var(--blue); }
.pl-edu-for { margin: 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.pl-edu-card h4 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 800; }
.pl-edu-price { margin: 8px 0 0; display: flex; align-items: baseline; gap: 4px; }
.pl-edu-price b { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pl-edu-price span { color: var(--soft); }
.pl-edu-seats { margin: 4px 0 0; font-weight: 700; }
.pl-edu-per { margin: 0 0 10px; color: var(--soft); font-size: 13px; }
.pl-edu-card .pl-btn { margin-top: auto; width: 100%; }
#pricing .pl-faq, #pricing .pl-notify, #pricing .pl-now, #pricing .pl-paid, #pricing .pl-paywall { max-width: 1100px; }

/* Enlace a MindBlock Play for Education (desde la portada y /plans) */
.pl-edu-link { max-width: 1100px; margin: 32px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 22px; border-radius: 18px; background: #EAF0FF; border: 2px solid #C9D6FB; color: var(--ink) !important; text-decoration: none; }
.pl-edu-link:hover { border-color: var(--blue); }
.pl-edu-link-icon { font-size: 30px; line-height: 1; }
.pl-edu-link > span:nth-child(2) { flex: 1 1 320px; color: var(--soft); }
.pl-edu-link b { color: var(--ink); }
.pl-edu-link-go { font-weight: 800; color: var(--blue); white-space: nowrap; }
.pl-edu-teachers { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
h1.pl-group-title { font-size: clamp(28px, 4vw, 40px); }
.pl-edu-page .pl-sec { padding-top: 24px; }
.pl-edu-page .pl-edu { margin-top: 0; }
.pl-edu-page > .pl-wrap:first-child { max-width: 1148px; }

/* Colección de robots dentro de la ruta de Play */
.pl-robot-collection { margin-top: 26px; padding: 24px; border: 2px solid var(--ink); border-radius: 22px; background: linear-gradient(135deg, #f8f9ff, #eef7ff); box-shadow: 0 5px 0 var(--ink); }
.pl-robot-collection { display: none; }
.pl-discover-link { align-self: flex-start; margin-top: 10px; color: var(--blue); font-weight: 800; text-decoration: none; }
.pl-my-robots { margin: 0; }
.pl-route-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pl-route-sidebar .pl-panel { position: static; }
.pl-header-explore { margin-inline-end: auto; margin-inline-start: 12px; }
.pl-header-discover { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--blue); background: #e8edfc; font-size: 1rem; font-weight: 800; text-decoration: none; transition: background .15s; }
.pl-header-discover:hover { background: #d9e3ff; }
.pl-build-launch { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-block: 64px 40px; }
.pl-build-launch h1 { margin: 18px 0; font: 800 clamp(2.4rem, 5vw, 4.5rem)/1.08 var(--display); letter-spacing: -.04em; }
.pl-build-launch-copy > p { font-size: 1.125rem; line-height: 1.65; color: var(--soft); }
.pl-build-launch-copy .pl-build-launch-free { font-size: 1rem; }
.pl-build-launch-preview { margin: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 24px; background: #fff; box-shadow: 0 6px 0 var(--ink); }
.pl-build-launch-preview img { display: block; width: 100%; height: auto; }
.pl-build-launch-preview figcaption { padding: 16px; font-weight: 700; }
.pl-build-launch-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 24px 64px; }
.pl-build-launch-features article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pl-build-launch-features h2 { margin: 0 0 12px; font-size: 1.25rem; }
.pl-build-launch-features p { margin: 0; color: var(--soft); line-height: 1.6; }
@media (max-width: 760px) { .pl-build-launch, .pl-build-launch-features { grid-template-columns: 1fr; } .pl-build-launch { padding-top: 32px; } }
.pl-kit-page { padding-block: 24px 64px; }
.pl-kit-page section { margin-block: 32px; }
.pl-kit-status { padding: 16px 20px; background: #eaf0ff; border-radius: 12px; line-height: 1.6; }
.pl-kit-table { overflow-x: auto; border: 1px solid #cbd5ea; border-radius: 16px; }
.pl-kit-table table { width: 100%; border-collapse: collapse; background: #fff; font-size: 1rem; }
.pl-kit-table th, .pl-kit-table td { padding: 16px; border-bottom: 1px solid #e1e7f3; text-align: start; vertical-align: top; min-width: 100px; }
.pl-kit-table thead { background: #edf2fc; }
.pl-kit-table th:first-child { min-width: 180px; }
.pl-kit-table td:last-child { min-width: 260px; line-height: 1.5; }
.pl-kit-stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pl-kit-stages li { padding: 20px; background: #fff; border: 1px solid #cbd5ea; border-radius: 16px; }
.pl-kit-stages h3 { margin: 0 0 12px; font-size: 1.25rem; }
.pl-kit-stages b { font-size: 1rem; color: var(--blue); }
.pl-kit-stages p { margin-bottom: 0; color: var(--soft); line-height: 1.5; }
.pl-header-discover[aria-current="page"] { background: var(--blue); color: #fff; }
.pl-discover-page { padding-block: 24px 64px; }
.pl-discover-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 36px; }
.pl-discover-hero h1 { margin: 12px 0; font: 800 clamp(2.2rem, 5vw, 3.8rem)/1.08 var(--display); letter-spacing: -.04em; }
.pl-discover-hero p { max-width: 680px; color: var(--soft); font-size: 1.125rem; }
.pl-discover-hero .pl-btn { flex-shrink: 0; }
.pl-discover-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 20px; border-block: 1px solid var(--line); }
.pl-discover-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-discover-filters button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 1rem Inter, sans-serif; cursor: pointer; }
.pl-discover-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pl-discover-search { display: grid; gap: 6px; font-size: .875rem; font-weight: 700; }
.pl-discover-search input { min-height: 44px; padding: 10px 14px; border: 1px solid #a8b4d3; border-radius: 12px; background: #fff; color: var(--ink); font-size: 1rem; }
.pl-discover-caption { margin: 26px 0 16px; font-weight: 700; color: var(--soft); }
.pl-discover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pl-discover-card { overflow: hidden; border: 1px solid #cbd5f4; border-radius: 22px; background: #fff; }
.pl-discover-card[hidden] { display: none; }
.pl-discover-preview { display: grid; place-items: center; background: radial-gradient(ellipse at center, #f7f9ff, #e5ebfc); aspect-ratio: 8/5; }
.pl-discover-preview img { width: 100%; height: auto; display: block; }
.pl-discover-preview > span { font-size: 4rem; }
.pl-discover-card-body { padding: 16px; }
.pl-discover-author { margin: 0 0 12px; font-size: .875rem; font-weight: 600; color: var(--blue); }
.pl-discover-card-body small { color: var(--blue); font-size: .875rem; font-weight: 700; }
.pl-discover-card-body h2 { margin: 6px 0; font: 800 1.25rem var(--display); }
.pl-discover-card-body p { color: var(--soft); margin: 0 0 12px; font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-discover-detail { font-size: .875rem; font-weight: 700; }
.pl-discover-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 36px; padding: 24px; background: #e8edfc; border-radius: 20px; }
.pl-discover-note h2 { font-size: 1.25rem; margin: 0 0 8px; }
.pl-discover-note p { color: var(--soft); max-width: 680px; margin: 0; }
@media (max-width: 640px) { .pl-discover-hero { align-items: flex-start; flex-direction: column; } .pl-discover-grid { grid-template-columns: 1fr; } .pl-discover-search, .pl-discover-search input { width: 100%; } }
.pl-header-discover:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 600px) { .pl-header-explore { margin-inline-start: 0; } .pl-header-discover { gap: 5px; padding-inline: 8px; font-size: .875rem; } .pl-header-discover svg { width: 16px; } }
.pl-my-robots h3 { margin: 0; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.pl-my-robots .pl-robot-list { margin-bottom: 10px; }
.pl-robot-collection-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.pl-robot-collection-head h2 { margin: 4px 0 4px; font-family: var(--display); font-size: clamp(26px, 4vw, 38px); }
.pl-robot-collection-head p { margin: 0; color: var(--soft); max-width: 620px; }
.pl-robot-collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.pl-robot-collection-card { padding: 18px; border: 2px solid #cbd5f4; border-radius: 16px; background: #fff; }
.pl-robot-collection-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-robot-collection-card-head h3 { margin: 0; font-size: 20px; }
.pl-robot-collection-card-head b, .pl-robot-collection-card-head span { color: var(--blue); font-weight: 800; }
.pl-robot-list, .pl-box-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.pl-robot-list li, .pl-box-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #f4f6ff; }
.pl-robot-list li > span:nth-child(2), .pl-box-list li > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pl-robot-list small, .pl-box-list small { color: var(--soft); font-size: 12px; }
.pl-robot-mini, .pl-box-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e8edfc; font-size: 20px; }
.pl-box-list li em { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 800; color: var(--blue); }
.pl-box-list li.is-pro { background: #fff8df; }
.pl-box-list li.is-pro em { color: #a66b00; }
.pl-robot-empty { margin: 18px 0; color: var(--soft); }
.pl-robot-collection .pl-text-link { color: var(--blue); font-weight: 800; text-decoration: none; }
@media (max-width: 760px) { .pl-robot-collection-head { align-items: stretch; flex-direction: column; } .pl-robot-collection-grid { grid-template-columns: 1fr; } .pl-robot-collection-head .pl-btn { align-self: flex-start; } }

/* La columna derecha reúne dos tarjetas independientes: actividad y robots. */
.pl-route-grid { grid-template-rows: auto; }
.pl-route-main { grid-row: 1; }
.pl-toolbox { grid-row: 1; }
.pl-route-sidebar { grid-column: 3; grid-row: 1; }
@media (max-width: 719px) {
    .pl-route-main { grid-column: 1; grid-row: 1; }
    .pl-toolbox { grid-column: 1; grid-row: 2; }
    .pl-route-sidebar { grid-column: 1; grid-row: 3; }
}
@media (min-width: 720px) and (max-width: 1179px) {
    .pl-route-main { grid-column: 1 / -1; grid-row: 1; }
    .pl-toolbox { grid-column: 1; grid-row: 2; }
    .pl-route-sidebar { grid-column: 2; grid-row: 2; }
}
