/* Páginas SEO de ejercicios (generado por tools/build_seo.js). Estilo infantil redondeado, apto para adultos. */
@font-face { font-family: "Fredoka"; src: url("/Fredoka-SemiBold.ttf"); font-display: swap; }
:root { --ink: #3a2a5c; --soft: #5f4f85; --pink: #ff6fae; --yellow: #ffd23f; --mint: #5fd99b; --blue: #4fb0ff; --lilac: #b993ff; --cream: #fff7dc;
  --round: "Fredoka", "Nunito", "Varela Round", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { background: #d6f3ff; }
body { margin: 0; color: var(--ink); font: 400 17px/1.55 var(--text); background: #e3f5ff linear-gradient(#8fd8ff, #e3f5ff 420px) no-repeat; min-height: 100vh; }
b, strong { font-weight: 700; }
a { color: #1f5fc0; } a:hover { color: #0b3f8f; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
h1, h2, h3, .btn, .marca, .num, .nivel, summary { font-family: var(--round); font-weight: 600; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: rgba(255,255,255,.82);
  box-shadow: 0 3px 0 rgba(58,42,92,.12); backdrop-filter: blur(6px); }
.round { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 3px solid var(--ink); background: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.round svg { width: 26px; height: 26px; }
.round:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.marca { flex: 1; font-size: 24px; color: var(--pink); text-decoration: none; text-shadow: 2px 2px 0 #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marca span { color: var(--soft); font-size: 17px; text-shadow: none; }
.bar-cta { font: 600 17px var(--round); text-decoration: none; color: var(--ink); background: var(--mint); border: 3px solid var(--ink); border-radius: 999px; padding: 7px 14px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.wrap { max-width: 900px; margin: 0 auto; padding: 14px 16px 40px; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 4px 0 10px; font-size: 14.5px; color: var(--soft); }
.migas li + li::before { content: "›"; margin: 0 6px 0 2px; }
.migas a { color: var(--soft); }
h1 { font-size: clamp(27px, 5vw, 38px); line-height: 1.15; margin: 6px 0 12px; color: var(--ink); text-shadow: 2px 2px 0 #fff; }
h2 { font-size: 25px; line-height: 1.2; margin: 0 0 10px; }
h2.tit { margin: 28px 0 12px; text-shadow: 2px 2px 0 #fff; }
h3 { font-size: 20px; margin: 14px 0 8px; }
.lead { font-size: 18.5px; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); padding: 16px 18px; margin: 18px 0; }
.card p:first-of-type { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
.intro { background: #fffdf3; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 19px; line-height: 1.15; padding: 11px 18px; border-radius: 999px;
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); color: var(--ink); text-decoration: none; background: var(--yellow); text-align: center; }
.btn:hover { color: var(--ink); filter: brightness(1.04); } .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.go { background: var(--mint); } .btn.pdf { background: #fff; }
.btn.sm { font-size: 16px; padding: 6px 12px; box-shadow: 0 3px 0 var(--ink); }
.como { background: #f3fbff; }
.ej-res { background: #fff; border-radius: 16px; border: 2px dashed #b9a9dc; padding: 10px 14px; margin-bottom: 10px; }
.pasos { counter-reset: p; list-style: none; padding: 0; margin: 10px 0; }
.pasos li { counter-increment: p; position: relative; padding: 4px 0 4px 40px; min-height: 32px; }
.pasos li::before { content: counter(p); position: absolute; left: 0; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow);
  border: 2px solid var(--ink); text-align: center; font: 600 15px/24px var(--round); }
.solu { font-size: 18px; } .pista { color: var(--soft); }
.vis { display: flex; justify-content: center; margin: 8px 0; }
.vis svg { max-width: 100%; height: auto; max-height: 300px; }
.ejs { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ej { background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 14px 16px; break-inside: avoid; }
.ej-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--lilac); color: #fff; display: grid; place-items: center; font-size: 18px; border: 2px solid var(--ink); }
.nivel { font-size: 14px; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.nivel.facil { background: #d9ffe9; } .nivel.medio { background: #fff1c4; } .nivel.reto { background: #ffe0ef; }
.enun { font-size: 19px; font-weight: 600; margin: 6px 0 8px; }
.hueco { display: inline-block; min-width: 2.6em; height: 1.25em; border-bottom: 3px solid var(--ink); vertical-align: -3px; background: #f6f1ff; border-radius: 6px 6px 0 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 8px 0; list-style: none; counter-reset: o; }
.opts li { counter-increment: o; border: 2px solid #cbbfe6; border-radius: 14px; padding: 6px 12px 6px 8px; background: #faf8ff; display: flex; align-items: center; gap: 6px; }
.opts li::before { content: counter(o, upper-alpha) ")"; font: 600 15px var(--round); color: var(--soft); }
.mini { display: inline-flex; vertical-align: middle; } .mini svg { width: 64px; height: 64px; }
.opts-svg .mini svg { width: 72px; height: 72px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lbl { color: var(--soft); }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0; }
.fichas li { border: 2px solid var(--ink); border-radius: 12px; padding: 4px 12px; background: var(--cream); }
.huecos { margin: 8px 0; padding-left: 26px; } .huecos li { margin: 6px 0; }
.huecos .mini svg { width: auto; height: 56px; }
.parejas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.parejas ol { margin: 4px 0; padding-left: 28px; } .parejas li { margin: 6px 0; }
.resp { margin: 8px 0; } .linea { display: inline-block; width: 8em; border-bottom: 2px solid var(--ink); }
.hint { margin: 8px 0 2px; color: var(--soft); font-size: 15.5px; }
details.sol { margin-top: 10px; }
details.sol summary { cursor: pointer; display: inline-block; list-style: none; background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 16px; box-shadow: 0 3px 0 var(--ink); }
details.sol summary::-webkit-details-marker { display: none; }
details.sol[open] summary { box-shadow: 0 1px 0 var(--ink); transform: translateY(2px); }
details.sol > div { margin-top: 10px; background: #f2fff7; border-radius: 16px; padding: 10px 14px; border: 2px solid #9fe3bf; }
.orden, .pares { margin: 4px 0; }
.print-sol { display: none; }
.rel h3 { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0; }
.chips a, .chips span { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; text-decoration: none; color: var(--ink); font: 600 15.5px var(--round); }
.chips a:hover { background: var(--cream); } .chips span[aria-current] { background: var(--yellow); }
.mas { font-size: 15.5px; }
.faq details { border-top: 2px dashed #e1d8f2; padding: 8px 0; } .faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-size: 18px; } .faq p { margin: 6px 0 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.grid .card { margin: 0; }
.tema-card, .mat { border-top: 10px solid var(--c, var(--blue)); }
.tema-card h3, .mat h3 { margin-top: 0; } .tema-card p { font-size: 15.5px; color: var(--soft); }
.mat h2 small { font: 400 15px var(--text); color: var(--soft); }
.lista { margin: 6px 0 0; padding-left: 20px; } .lista li { margin: 3px 0; }
.cur { color: var(--soft); font-size: 14px; }
.pdfmini { font-size: 13.5px; color: var(--soft); text-decoration: none; border: 1.5px solid #cbbfe6; border-radius: 999px; padding: 0 7px; margin-left: 4px; white-space: nowrap; }
.cursos-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.curso-btn { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); padding: 14px 8px; background: #fff; }
.curso-btn b { font: 600 28px var(--round); } .curso-btn span { color: var(--soft); } .curso-btn small { color: var(--soft); }
.curso-btn:hover { background: var(--cream); color: var(--ink); }
.curso-card h3 { margin-top: 0; } .ejemplo { color: var(--soft); font-size: 15.5px; } .acc { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-fin { background: #f2fff7; }
.pie { text-align: center; padding: 18px 16px 34px; font-size: 15px; color: var(--soft); }
.pie a { color: var(--soft); } .promesa { font-size: 17px; color: var(--ink); }
@media (max-width: 560px) {
  body { font-size: 16.5px; } .marca span { display: none; } .bar-cta { font-size: 15px; padding: 6px 10px; }
  .btn { width: 100%; font-size: 18px; } .card { padding: 14px; border-radius: 20px; } .parejas { grid-template-columns: 1fr; }
  .enun { font-size: 18px; } .acc .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12pt; }
  .bar, .skip, .ctas, .cta-fin, .rel, .faq, .pie, .migas, details.sol, .intro, .acc { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  h1 { text-shadow: none; font-size: 20pt; } h2.tit { text-shadow: none; }
  .card, .ej { box-shadow: none; border-width: 1.5px; border-radius: 10px; }
  .ej, .como { break-inside: avoid; }
  .ejs { gap: 8px; }
  a { color: inherit; text-decoration: none; }
  .print-sol { display: block; break-before: page; }
  .print-sol ol { font-size: 10.5pt; }
}
