@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/young-serif.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/figtree.woff2) format("woff2"); }

/* Diseño basado en la propuesta de Claude Design: azul noche, dorado suave y crema */
:root {
  --navy: #0a2f57;
  --ink: #0b2540;
  --text-2: #3a4a5c;
  --muted: #5a6878;
  --gold: #f2c86b;
  --rust: #b5651d;
  --cream: #faf7f1;
  --sand: #f1ebdf;
  --sand-2: #efe7d8;
  --line: #e6dccb;
  --sky-1: #d9e3ef;
  --sky-2: #a9bdd3;
  --maxw: 1180px;
  --font-head: "Young Serif", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--rust); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.wrap { padding-top: 88px; padding-bottom: 88px; }
.eyebrow { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rust); margin-bottom: 12px; }
.eyebrow.gold { color: var(--gold); }
.sec-sub { color: var(--text-2); max-width: 40em; }

/* Cabecera clara */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #e9e2d4; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-family: var(--font-head); font-size: 1.25rem; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-group { display: flex; gap: 24px; align-items: center; }
.nav-h { display: none; }
.nav-links a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--rust); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav .wrap { padding: 0 16px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); max-height: calc(100vh - 68px); overflow-y: auto; box-shadow: 0 14px 30px rgba(10, 47, 87, .12); }
  .nav-links.open { display: flex; }
  .nav-group { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 8px; border-top: 1px solid var(--line); }
  .nav-group.free { background: var(--sand); }
  .nav-h { display: block; padding: 12px 24px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
  .nav-links a:not(.btn) { padding: 11px 24px; font-size: 1rem; }
  .nav-links .btn { margin: 12px 24px 16px; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--gold); background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none; font-size: 1rem; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); color: var(--navy); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: #0d3d70; color: #fff; }
.btn.outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn.ghost-light { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn.ghost-light:hover { border-color: #fff; color: #fff; }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Portada */
.hero { background: var(--navy); color: #fff; padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-txt { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; }
.hero .lead { font-size: 1.15rem; color: var(--sky-1); max-width: 32em; margin: 0; }
.hero-logo { width: 100%; max-width: 400px; justify-self: center; border-radius: 50%; }
.who-q { margin: 56px 0 14px; font-size: .9rem; color: var(--sky-2); font-weight: 500; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.who-c { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s; }
.who-c:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.who-age { font-size: .82rem; color: var(--gold); font-weight: 600; }
.who-t { font-family: var(--font-head); font-size: 1.4rem; }
.who-d { font-size: .94rem; color: #c4d3e3; line-height: 1.45; }
@media (max-width: 820px) {
  .hero { padding: 48px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { display: none; } /* en el móvil el logo ya está en la cabecera */
  .who { grid-template-columns: 1fr; }
  .who-q { margin-top: 36px; }
}

/* Destacado Código 18 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-img { background: var(--sand-2); border-radius: 28px; padding: 40px; display: flex; justify-content: center; }
.feature-img img { width: 100%; max-width: 300px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 48px -20px rgba(10, 47, 87, .45); }
.feature-txt { display: flex; flex-direction: column; gap: 18px; }
.feature-txt h2, .feature-txt p { margin: 0; }
.feature-txt p { font-size: 1.08rem; color: var(--text-2); }
.tag { align-self: flex-start; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; background: var(--navy); color: var(--gold); padding: 6px 12px; border-radius: 999px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; color: var(--text-2); border-top: 1px solid #e3dac8; border-bottom: 1px solid #e3dac8; padding: 14px 0; }
.facts strong { color: var(--ink); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 32px; } .feature-img { padding: 28px; } .feature-img img { max-width: 220px; } }

/* Juegos gratis */
.free-zone { background: var(--sand); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-head h2 { max-width: 15em; }
.duo { display: flex; align-items: flex-end; flex: none; }
.duo img { width: 110px; }
.duo img:first-child { transform: rotate(-6deg); }
.duo img:last-child { transform: rotate(6deg); margin-left: -14px; }
.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.free-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.free-card:hover { border-color: var(--navy); transform: translateY(-3px); color: var(--ink); }
.free-n { font-family: var(--font-head); font-size: 2.5rem; color: var(--gold); line-height: 1; }
.free-tag { font-size: .82rem; color: var(--rust); font-weight: 600; }
.free-card h3 { font-size: 1.5rem; margin: 0; }
.free-card p { margin: 0; flex: 1; font-size: .95rem; color: var(--text-2); line-height: 1.5; }
.free-go { font-weight: 600; color: var(--navy); }
.free-from { margin: 24px 0 0; font-size: .94rem; color: var(--text-2); }
.free-from a { font-weight: 600; }
@media (max-width: 860px) { .free-grid { grid-template-columns: 1fr; } .duo img { width: 76px; } }
@media (max-width: 560px) { .sec-head { flex-direction: column-reverse; align-items: flex-start; } }

/* Catálogo: todas las portadas en la misma caja 3:4 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.filters button { font: inherit; font-size: .94rem; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; }
.book { display: flex; flex-direction: column; gap: 10px; }
.book[hidden] { display: none; }
.book .cover { aspect-ratio: 3 / 4; background: var(--sand-2); border-radius: 10px; display: grid; place-items: center; padding: 16px; }
.book .cover img { max-height: 100%; width: auto; border-radius: 4px; box-shadow: 0 14px 30px -18px rgba(10, 47, 87, .55); }
.book-age { font-size: .82rem; color: var(--rust); font-weight: 600; }
.book h3 { margin: 0; font-size: 1.15rem; }
.book p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.book-fmt { font-size: .85rem; color: var(--muted); }
.book-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.book-more { font-size: .9rem; font-weight: 600; text-decoration: none; }

/* Sobre nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 0 !important; }
.about-img { background: var(--sand-2); border-radius: 28px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 32px; }
.about-img img { max-height: 100%; width: auto; border-radius: 50%; }
.about p { color: var(--text-2); font-size: 1.05rem; }
.about p a { font-weight: 600; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 28px; } .about-img { aspect-ratio: auto; } .about-img img { max-width: 200px; } }

/* Regalo */
.gift { background: var(--gold); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.gift h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 10px; }
.gift p { margin: 0; color: #3d3420; }
@media (max-width: 720px) { .gift { grid-template-columns: 1fr; padding: 32px 24px; } }
section.wrap:has(.gift) { padding-top: 0; }

footer { border-top: 1px solid #e9e2d4; }
footer .wrap { padding: 32px 24px 48px; display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
footer strong { color: var(--ink); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-note { flex-basis: 100%; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  .books { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .book .cover { padding: 10px; }
  .book h3 { font-size: 1rem; }
  .book p { display: none; }
  .book .btn.small { padding: 8px 12px; font-size: .82rem; }
}

/* Juegos (rosa y morado, como Misión 18) frente a herramientas (azul) */
.type-tag { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.type-tag.game { background: #ff3d7f; color: #fff; }
.type-tag.tool { background: #e3ecf7; color: var(--navy); }
.duel-card { display: grid; grid-template-columns: .8fr 1.2fr; margin-top: 32px; border-radius: 24px; overflow: hidden; text-decoration: none; color: #17141f; background: #fff8ec; border: 3px solid #17141f; box-shadow: 8px 8px 0 #17141f; transition: transform .15s, box-shadow .15s; }
.duel-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #17141f; color: #17141f; }
.duel-vs { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 26px 14px; background: linear-gradient(100deg, #ff3d7f 0 50%, #7b4dff 50% 100%); border-right: 3px solid #17141f; }
.duel-vs img { width: 120px; animation: bob 2.4s ease-in-out infinite; }
.duel-vs img:last-child { animation-delay: -1.2s; }
.duel-vs span { font-family: var(--font-head); font-size: 2.8rem; color: #fff; text-shadow: 3px 3px 0 #17141f; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.duel-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.duel-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px; border-radius: 14px; background: #f1ebff; border: 2px solid #17141f; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.steps span { font-size: 1.5rem; }
.btn-play { display: block; text-align: center; padding: 16px; border-radius: 16px; border: 3px solid #17141f; background: linear-gradient(100deg, #ff3d7f, #7b4dff); color: #fff; font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.6rem); box-shadow: 5px 5px 0 #17141f; animation: pulse-play 1.8s ease-in-out infinite; }
@keyframes pulse-play { 50% { transform: scale(1.03); } }
.free-grid.two { grid-template-columns: 1fr 1fr; }
.free-card.game { border-color: #ffc2d6; }
.free-card.game:hover { border-color: #ff3d7f; }
.free-card.game .free-go { color: #d61f62; }
.free-card.tool:hover { border-color: var(--navy); }
@media (max-width: 860px) {
  .duel-card { grid-template-columns: 1fr; box-shadow: 6px 6px 0 #17141f; }
  .duel-vs { border-right: 0; border-bottom: 3px solid #17141f; }
  .duel-vs img { width: 90px; }
  .duel-body { padding: 20px 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { flex-direction: row; text-align: left; gap: 12px; }
  .free-grid.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn-play, .duel-vs img { animation: none; } }

/* Juegos agrupados por libro */
.book-games { margin-top: 32px; padding: 22px; border-radius: 28px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }
.book-games .duel-card { margin-top: 18px; }
.bg-head { display: flex; align-items: center; gap: 14px; }
.bg-head img { width: 52px; border-radius: 4px; box-shadow: 0 8px 18px -8px rgba(10, 47, 87, .5); }
.bg-k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--rust); }
.bg-head h3 { margin: 0; font-size: 1.5rem; }
.bg-head h3 small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }
.bg-link { margin-left: auto; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .book-games { padding: 14px; border-radius: 20px; } .bg-head h3 small { display: block; } .bg-link { display: none; } }
.has-games { align-self: flex-start; font-size: .78rem; font-weight: 700; color: #fff; background: #ff3d7f; padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.has-games:hover { color: #fff; background: #7b4dff; }

/* Las 4 puertas «¿Para quién buscas?»: mismas que el menú y los filtros */
.who { grid-template-columns: repeat(4, 1fr); }
.who-c { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 12px; row-gap: 12px; padding: 20px 20px 18px; background: #fff; color: var(--ink); border: 0; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55); transition: transform .15s, box-shadow .15s; }
.who-c:hover { background: #fff; color: var(--ink); transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); }
.who-ico { grid-row: 1; width: 48px; height: 48px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; font-size: 1.6rem; }
.who-txt { grid-row: 1; display: flex; flex-direction: column; gap: 2px; }
.who-c .who-t { font-size: 1.35rem; line-height: 1.1; }
.who-c .who-age { color: var(--rust); font-size: .8rem; }
.who-c .who-d { grid-column: 1 / -1; color: var(--text-2); font-size: .9rem; line-height: 1.4; margin-top: 4px; }
.who-txt .who-d { margin-top: 6px; }
.who-covers { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-end; height: 74px; }
.who-covers img { height: 100%; width: auto; border-radius: 3px; box-shadow: 0 6px 14px -6px rgba(10, 47, 87, .5); }
.who-go { position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; transition: transform .15s; }
.who-c:hover .who-go { transform: translateX(3px); }
@media (max-width: 1000px) { .who { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .who { grid-template-columns: 1fr 1fr; gap: 10px; }
  .who-c { grid-template-columns: 1fr; padding: 14px 14px 14px; row-gap: 8px; }
  .who-ico { width: 40px; height: 40px; font-size: 1.35rem; }
  .who-c .who-t { font-size: 1.12rem; }
  .who-txt .who-d { display: none; }
  .who-covers { height: 56px; }
  .who-go { width: 30px; height: 30px; right: 10px; bottom: 12px; font-size: .95rem; }
}
.filter-hint { margin: -14px 0 24px; padding: 12px 16px; border-radius: 14px; background: var(--sand); font-size: .95rem; }
.filter-hint a { font-weight: 700; }
@media (max-width: 560px) {
  .who-c { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .who-ico { grid-row: 1; grid-column: 1; }
  .who-txt { grid-row: 2; grid-column: 1; }
  .who-covers { grid-row: 3; grid-column: 1; padding-right: 30px; }
  .who-c .who-age { font-size: .76rem; }
}

/* Zonas por público dentro del bloque de un libro (Adolescentes · Padres · Profesores) */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.zone { background: #fff; border-radius: 18px; padding: 18px; border-top: 6px solid var(--zc); box-shadow: 0 10px 30px -20px rgba(10, 47, 87, .35); }
.z-teen { --zc: #16a312; } .z-family { --zc: #ff3d7f; } .z-parents { --zc: #e08a00; } .z-teachers { --zc: #1f7ae0; }
.zone-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.zone-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: color-mix(in srgb, var(--zc) 14%, #fff); flex: none; }
.zone-h b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.15rem; }
.zone-h small { color: var(--muted); font-size: .82rem; }
.zone ul { list-style: none; margin: 0; padding: 0; }
.zone li { border-top: 1px solid #efe8d8; }
.zone li a { display: block; padding: 9px 0; font-weight: 600; font-size: .93rem; text-decoration: none; color: var(--ink); }
.zone li a::after { content: " →"; color: var(--zc); font-weight: 800; }
@media (max-width: 860px) { .zone-grid { grid-template-columns: 1fr; } }

/* Fichas «vendedoras»: gancho + lo que gana el niño + reseña real */
.books { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.book-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book .book-hook { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; color: var(--navy); margin: 2px 0 0; }
.book-gains { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--text-2); line-height: 1.35; }
.book-stars { margin: 0; font-size: .85rem; color: var(--muted); }
.book-stars span, .book-review span { color: #e0a100; letter-spacing: 1px; }
.book-review { margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sand); font-size: .86rem; line-height: 1.4; color: var(--ink); }
.book-review span { display: block; margin-bottom: 2px; }
.book-review cite { display: block; margin-top: 4px; font-style: normal; font-size: .76rem; color: var(--muted); }
.book .has-games { margin-top: 2px; }
@media (max-width: 560px) {
  .books { grid-template-columns: 1fr; gap: 18px; }
  .book { flex-direction: row; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 10px 24px -18px rgba(10, 47, 87, .4); }
  .book .cover { flex: none; width: 104px; padding: 6px; aspect-ratio: 3 / 4; }
  .book h3 { font-size: 1rem; }
  .book p.book-hook { display: block; font-size: .95rem; }
  .book-gains { font-size: .82rem; }
  .book .btn.small { padding: 8px 12px; font-size: .82rem; }
}
/* Contraste */
.type-tag.game, .has-games { background: #d1105a; }
.btn-play { background: linear-gradient(100deg, #d81b60, #6a3df0); }
.free-card.game .free-go { color: #b30d4d; }
:root { --rust: #8f4a10; }
.book-stars span, .book-review span { color: #a86b00; }
@media (max-width: 600px) { body { font-size: 18px; } .book-gains { font-size: .92rem; } }
