:root {
  --ink: #111318;
  --muted: #656873;
  --paper: #fffdf8;
  --cream: #fff7df;
  --yellow: #ffbd0a;
  --orange: #ff7a2f;
  --red: #f42f3b;
  --green: #00ae4d;
  --blue: #438fe5;
  --cyan: #58c4e8;
  --cyan-half: #ace1f3;
  --yellow-half: #ffde84;
  --pink: #f737b5;
  --border: #e7e3da;
  --shadow: 0 22px 60px rgba(18, 18, 20, .12);
  --radius: 28px;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.55; }
main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--yellow);
}
main::before, main::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; }
main::before { background: var(--cyan); clip-path: polygon(0 0,66% 0,51% 16%,48% 100%,0 100%); }
main::after { background: linear-gradient(180deg,rgba(255,255,255,0) 0 600px,rgba(255,255,255,.18) 800px,rgba(255,255,255,.5) 1120px,rgba(255,255,255,.68) 60%,rgba(255,255,255,.92) 100%); }
main > * { position: relative; z-index: 1; }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -100px; padding: 10px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 50; top: 0; height: 82px; display: flex; align-items: center; gap: 34px; max-width: 1440px; margin: 0 auto; padding: 8px clamp(20px, 5vw, 72px); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(17,19,24,.07); }
.brand { width: 70px; flex: 0 0 70px; align-self: flex-start; }
.brand img { width: 70px; height: 70px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { text-decoration: none; font-size: .94rem; font-weight: 700; }
.main-nav a:hover { color: var(--green); }
.header-controls { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.country-control { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.country-control select { width: 182px; max-width: none; padding-right: 18px; border: 0; background: transparent; color: var(--ink); font-size: .86rem; font-weight: 700; outline: none; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.language-switch button { border: 0; padding: 6px 10px; border-radius: 999px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr); align-items: center; max-width: 1440px; min-height: 680px; margin: 0 auto; padding: 80px clamp(24px, 7vw, 110px) 95px; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 7% -8% auto auto; width: 58%; height: 82%; border-radius: 46% 54% 60% 40% / 45% 44% 56% 55%; background: var(--cream); transform: rotate(-3deg); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 680px; margin: 0; font: 700 clamp(3.4rem, 6.3vw, 6.4rem)/.92 var(--display); letter-spacing: -.045em; }
.hero h1 em { display: block; color: var(--red); font-style: normal; }
.hero-text { max-width: 600px; margin: 27px 0 0; color: #50535c; font-size: clamp(1.04rem, 1.5vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 22px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 24px rgba(17,19,24,.18); }
.button-primary:hover, .button-dark:hover { background: #2d3138; }
.amazon-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.amazon-note > span:first-child { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #dff7e7; color: var(--green); }
.hero-points { display: flex; gap: 0; margin: 42px 0 0; padding: 0; list-style: none; }
.hero-points li { display: grid; padding: 0 26px; border-left: 1px solid var(--border); }
.hero-points li:first-child { padding-left: 0; border: 0; }
.hero-points strong { font: 700 1.25rem var(--display); }
.hero-points span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }

.hero-art { position: relative; height: 560px; min-width: 0; }
.hero-book { position: absolute; width: min(48%, 300px); border-radius: 8px; box-shadow: 0 32px 60px rgba(24,27,32,.28); }
.hero-book-main { z-index: 3; right: 6%; top: 4%; transform: rotate(5deg); }
.hero-book-left { z-index: 2; left: 15%; top: 15%; transform: rotate(-10deg); }
.shape { position: absolute; display: block; border-radius: 50%; }
.shape-red { width: 82px; height: 82px; right: 0; top: 18%; background: var(--red); }
.shape-blue { width: 55px; height: 55px; left: 7%; bottom: 11%; background: var(--blue); }
.shape-pink { width: 33px; height: 33px; right: 18%; bottom: 3%; background: var(--pink); }
.spark { position: absolute; z-index: 4; font: 700 3.5rem var(--display); }
.spark-one { right: 13%; top: 0; color: var(--yellow); }
.spark-two { left: 2%; top: 17%; color: var(--green); transform: rotate(12deg); }
.scribble { position: absolute; z-index: 1; right: 4%; bottom: 5%; width: 75%; height: 34%; border: 8px solid var(--yellow); border-left-color: transparent; border-radius: 50%; transform: rotate(-7deg); }

.catalog-section { padding: 100px clamp(24px, 7vw, 110px) 120px; background: #f4f9fb; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: 1220px; margin: 0 auto 45px; }
.section-heading h2, .how-intro h2, .closing-banner h2 { margin: 0; font: 700 clamp(2.4rem, 4vw, 4.2rem)/1 var(--display); letter-spacing: -.035em; }
.section-heading p:not(.eyebrow), .how-intro > p:last-child { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 1.04rem; }
.filter-group { display: flex; gap: 6px; padding: 5px; border: 1px solid #dce6e9; border-radius: 999px; background: #fff; white-space: nowrap; }
.filter { padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 800; cursor: pointer; }
.filter.active { background: var(--ink); color: #fff; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 1220px; margin: 0 auto; }
.book-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px; overflow: hidden; background: #fff; border: 1px solid #e4ecee; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(19,45,55,.06); transition: transform .25s, box-shadow .25s; }
.book-card:hover { transform: translateY(-7px); box-shadow: 0 20px 45px rgba(19,45,55,.13); }
.book-visual { position: relative; display: grid; place-items: center; height: 335px; margin-bottom: 22px; overflow: hidden; border-radius: 19px; background: #daf2f7; }
.book-card-es .book-visual { background: #d9f2e2; }
.book-card-en .book-visual { background: #fff0bd; }
.book-visual img { width: 190px; max-height: 290px; object-fit: contain; border-radius: 4px; box-shadow: 0 18px 32px rgba(20,29,35,.22); transition: transform .3s; }
.book-card:hover .book-visual img { transform: scale(1.035) rotate(-1deg); }
.language-badge { position: absolute; left: 13px; top: 13px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.age-badge { position: absolute; right: 13px; top: 13px; padding: 6px 10px; border-radius: 999px; background: var(--yellow); font-size: .77rem; font-weight: 800; }
.book-meta { margin: 0 0 5px; color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.book-card h3 { margin: 0; font: 700 1.48rem/1.12 var(--display); }
.card-skills { min-height: 48px; margin: 13px 0 20px; color: var(--muted); font-size: .88rem; }
.detail-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 13px 0 2px; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; text-align: left; }
.detail-button span:last-child { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.15rem; transition: transform .2s; }
.detail-button:hover span:last-child { transform: translateX(3px); }

.how-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; max-width: 1220px; margin: 0 auto; padding: 115px 24px; }
.steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { display: flex; gap: 20px; align-items: flex-start; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: #fff; }
.steps li > span { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 14px; background: var(--yellow); font: 700 1.1rem var(--display); }
.steps li:nth-child(2) > span { background: var(--cyan); }
.steps li:nth-child(3) > span { background: #f9a6da; }
.steps strong { display: block; margin-bottom: 3px; font: 700 1.25rem var(--display); }
.steps p { margin: 0; color: var(--muted); }

.closing-banner { position: relative; display: grid; grid-template-columns: 135px 1fr auto; align-items: center; gap: 30px; max-width: 1220px; margin: 0 auto 90px; padding: 30px 40px; overflow: hidden; border-radius: 32px; background: var(--yellow); }
.closing-banner::after { content: ""; position: absolute; right: 20%; bottom: -70px; width: 180px; height: 180px; border: 35px solid rgba(255,255,255,.28); border-radius: 50%; }
.closing-banner img { width: 130px; mix-blend-mode: multiply; }
.closing-banner .eyebrow { color: var(--ink); margin: 0 0 5px; }
.closing-banner h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); }
.button-dark { position: relative; z-index: 1; background: var(--ink); color: #fff; }

footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px; padding: 28px clamp(24px, 7vw, 100px); border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer-brand img { width: 68px; height: 68px; object-fit: contain; }
.copyright { text-align: right; }

.book-dialog { width: min(1020px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: visible; border: 0; border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.book-dialog::backdrop { background: rgba(10,15,18,.72); backdrop-filter: blur(7px); }
.book-dialog[open] { animation: dialog-in .22s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.dialog-close { position: absolute; z-index: 4; right: 15px; top: 15px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,.1); }
.dialog-layout { display: grid; grid-template-columns: .82fr 1.18fr; max-height: calc(100vh - 32px); overflow: auto; border-radius: 30px; }
.dialog-cover-wrap { display: grid; place-items: center; min-height: 680px; padding: 50px; background: linear-gradient(145deg, #d8f3f8, #fff4d1); }
.dialog-cover-wrap img { width: min(100%, 310px); max-height: 490px; object-fit: contain; border-radius: 6px; box-shadow: 0 28px 48px rgba(14,24,31,.25); }
.dialog-content { padding: 48px 45px 38px; }
.dialog-kicker { margin: 0 0 9px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dialog-content h2 { margin: 0; padding-right: 28px; font: 700 clamp(2.2rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: -.035em; }
.dialog-description { margin: 20px 0; color: var(--muted); font-size: 1rem; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-list span { padding: 7px 11px; border-radius: 999px; background: #edf7f9; font-size: .78rem; font-weight: 700; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 24px 0; }
.highlight { padding: 13px 10px; border-radius: 14px; background: #fff8df; font-size: .76rem; font-weight: 700; text-align: center; }
.highlight::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; margin: 0 auto 7px; border-radius: 50%; background: var(--green); color: #fff; }
.purchase-box { padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: #faf9f6; }
.purchase-choice { display: block; margin-bottom: 15px; }
.choice-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.format-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 13px; background: #eae8e1; }
.format-switch button { padding: 9px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: .84rem; font-weight: 800; cursor: pointer; }
.format-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.purchase-choice select { width: 100%; padding: 11px 12px; border: 1px solid #d7d4cd; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; }
.amazon-button { width: 100%; background: #ff9900; color: #171717; }
.amazon-button:hover { background: #f2a51f; }
.purchase-box small { display: block; margin-top: 9px; color: var(--muted); text-align: center; }
.noscript { margin: 20px; padding: 20px; background: #fff3cd; text-align: center; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 620px; padding-inline: 34px; }
  .hero h1 { font-size: clamp(3.3rem, 7vw, 5rem); }
  .hero-book { width: 57%; }
  .hero-book-left { left: 2%; }
  .book-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .how-section { gap: 42px; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 7px 16px; gap: 10px; }
  .brand, .brand img { width: 56px; height: 56px; flex-basis: 56px; }
  .main-nav { display: none; }
  .header-controls { gap: 7px; }
  .country-control { padding: 6px 8px; }
  .country-control select { width: 150px; padding-right: 14px; font-size: .78rem; }
  .language-switch button { padding: 5px 8px; }
  .hero { display: flex; flex-direction: column; min-height: auto; padding: 65px 22px 70px; }
  .hero::before { top: 49%; right: -20%; width: 130%; height: 48%; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-points { margin-top: 34px; }
  .hero-points li { padding: 0 13px; }
  .hero-art { width: 100%; height: 450px; margin-top: 45px; }
  .hero-book { width: min(52%, 235px); }
  .hero-book-main { right: 8%; }
  .hero-book-left { left: 8%; top: 16%; }
  .catalog-section { padding: 75px 18px 85px; }
  .section-heading { display: block; }
  .filter-group { width: max-content; max-width: 100%; margin-top: 25px; overflow-x: auto; }
  .book-grid { grid-template-columns: 1fr; }
  .book-visual { height: 350px; }
  .how-section { grid-template-columns: 1fr; padding: 80px 20px; }
  .closing-banner { grid-template-columns: 85px 1fr; gap: 15px; margin: 0 18px 65px; padding: 22px; }
  .closing-banner img { width: 85px; }
  .closing-banner .button { grid-column: 1 / -1; }
  footer { grid-template-columns: auto 1fr; padding: 24px; }
  .copyright { grid-column: 1 / -1; text-align: left; }
  .book-dialog { width: min(100% - 18px, 600px); max-height: calc(100vh - 18px); border-radius: 24px; }
  .dialog-layout { grid-template-columns: 1fr; max-height: calc(100vh - 18px); border-radius: 24px; }
  .dialog-cover-wrap { min-height: 360px; padding: 35px; }
  .dialog-cover-wrap img { max-height: 315px; width: auto; }
  .dialog-content { padding: 32px 22px 25px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .highlight { display: flex; align-items: center; gap: 8px; text-align: left; }
  .highlight::before { flex: 0 0 22px; margin: 0; }
}

/* Contacto, contenido SEO y controles de privacidad. */
.seo-intro{max-width:1120px;margin:0 auto;padding:20px 24px 95px;text-align:center}.seo-intro h2{max-width:900px;margin:0 auto;font:700 clamp(2.4rem,5vw,4.7rem)/1 var(--display);letter-spacing:-.04em}.seo-intro>p:last-child{max-width:820px;margin:22px auto 0;color:#4f565b;font-size:1.05rem}.contact-section{display:grid;grid-template-columns:1fr .8fr;align-items:center;gap:clamp(35px,7vw,90px);max-width:1180px;margin:0 auto 100px;padding:clamp(32px,6vw,65px);border:4px solid var(--ink);border-radius:42px;background:rgba(255,255,255,.7);box-shadow:12px 14px 0 var(--green)}.contact-section h2{margin:0;font:700 clamp(2.7rem,5vw,5rem)/.98 var(--display);letter-spacing:-.045em}.contact-section>div>p:last-child{max-width:590px;color:#4f565b}.contact-card{display:flex;align-items:center;gap:18px;padding:24px;border-radius:25px;background:var(--yellow);transform:rotate(1.5deg)}.contact-card>span{display:grid;place-items:center;width:62px;height:62px;flex:0 0 62px;border-radius:50%;background:var(--ink);color:#fff;font-size:1.8rem}.contact-card strong,.contact-card a{display:block}.contact-card a{margin-top:4px;font-weight:800;overflow-wrap:anywhere}.footer-links{display:flex;align-items:center;gap:14px}.footer-links a,.footer-links button{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.cookie-banner{position:fixed;z-index:9999;right:20px;bottom:20px;left:20px;display:flex;align-items:center;justify-content:space-between;gap:25px;max-width:1080px;margin:auto;padding:20px 22px;border:2px solid #111318;border-radius:24px;background:#fff;color:#111318;box-shadow:8px 9px 0 #111318;font-family:"DM Sans",system-ui,sans-serif}.cookie-banner strong{font:700 1.15rem "Fredoka",system-ui,sans-serif}.cookie-banner p{max-width:690px;margin:5px 0 0;font-size:.88rem}.cookie-actions{display:flex;gap:8px;flex:0 0 auto}.cookie-actions button{padding:10px 14px;border:1px solid #111318;border-radius:999px;background:#fff;font-weight:800;cursor:pointer}.cookie-actions .cookie-accept{background:#111318;color:#fff}
@media(max-width:760px){.contact-section{grid-template-columns:1fr;margin:0 15px 75px;padding:28px 22px;border-radius:30px}.contact-card{transform:none}.cookie-banner{align-items:stretch;flex-direction:column;gap:14px}.cookie-actions{justify-content:flex-end}footer{grid-template-columns:1fr}.footer-links{flex-wrap:wrap}}

.contact-form{display:grid;gap:14px;padding:clamp(22px,4vw,35px);border:2px solid var(--ink);border-radius:28px;background:#fff;box-shadow:8px 9px 0 var(--yellow)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.contact-form label>span:first-child{display:block;margin:0 0 6px;font-size:.76rem;font-weight:800;letter-spacing:.04em}.contact-form input[type="text"],.contact-form input[type="email"],.contact-form textarea{width:100%;padding:12px 14px;border:1.5px solid #bfc3c5;border-radius:12px;background:#fbfcfa;color:var(--ink);font:inherit;outline:none;transition:border-color .2s,box-shadow .2s}.contact-form textarea{resize:vertical;min-height:125px}.contact-form input:focus,.contact-form textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(0,174,77,.15)}.form-consent{display:flex;align-items:flex-start;gap:9px;color:#555b60;font-size:.8rem}.form-consent input{margin-top:3px;accent-color:var(--green)}.form-consent>span,.form-consent>span:first-child{display:inline;margin:0;font-size:inherit;font-weight:500;letter-spacing:0}.form-consent a{font-weight:800}.form-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.contact-submit{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 18px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:800 .95rem var(--body);cursor:pointer;transition:transform .2s,background .2s}.contact-submit:hover{background:var(--green);transform:translateY(-2px)}.form-note{margin:0;color:#697076;font-size:.76rem;text-align:center}.form-status{display:none;padding:12px 14px;border-radius:12px;font-size:.85rem;font-weight:800}.form-status.success{display:block;background:#d9f2e2;color:#075c2d}.form-status.error{display:block;background:#ffe1e1;color:#92252d}
@media(max-width:760px){.form-row{grid-template-columns:1fr}.contact-form{padding:21px 16px;border-radius:22px;box-shadow:6px 7px 0 var(--yellow)}}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Dirección visual seleccionada: Universo Ludika.
   El color domina solo la primera impresión y se suaviza al entrar al catálogo. */
.site-header {
  max-width: none;
  height: 88px;
  background: rgba(255,255,255,.94);
  border-bottom-color: rgba(17,19,24,.1);
}
.brand {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  align-self: center;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
}
.brand img { width: 68px; height: 68px; object-fit: contain; }
.hero {
  grid-template-columns: minmax(0,.88fr) minmax(480px,1.12fr);
  max-width: none;
  min-height: 720px;
  padding-top: 58px;
  background: transparent;
}
.hero::before {
  z-index: 0;
  inset: 7% auto auto 44%;
  width: 250px;
  height: 250px;
  border: 48px solid var(--pink);
  border-radius: 43% 57% 48% 52%;
  background: transparent;
  transform: rotate(24deg);
}
.hero-copy { padding-right: 25px; }
.hero .eyebrow { color: #073c47; }
.hero h1 { max-width: 760px; font-size: clamp(3.4rem,5.35vw,5.45rem); }
.hero h1 em {
  color: #fff;
  text-shadow: 4px 5px 0 var(--ink);
}
.hero-text { color: #123e47; font-weight: 600; }
.button-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 6px 7px 0 var(--ink);
}
.button-primary:hover { background: #fff8dc; }
.amazon-note { color: #173e46; }
.amazon-note > span:first-child { background: #fff; }
.hero-points li { border-left-color: rgba(17,19,24,.25); }
.hero-art { height: 600px; }
.hero-book {
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  border-radius: 7px;
}
.hero-book-main {
  z-index: 5;
  right: -2%;
  top: 3%;
  width: min(41%,280px) !important;
  transform: rotate(9deg);
}
.hero-book-left {
  z-index: 4;
  left: -1%;
  top: auto;
  bottom: -1%;
  width: min(39%,264px) !important;
  transform: rotate(-10deg);
}
.hero-logo-stage {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 45%;
  width: 282px;
  height: 282px;
  padding: 30px;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 34% 66% 62% 38%;
  background: #fff;
  box-shadow: 12px 14px 0 var(--ink);
  transform: translate(-50%,-50%) rotate(-3deg);
}
.hero-logo-stage img { width: 100%; height: 100%; object-fit: contain; }
.hero-orbit {
  position: absolute;
  z-index: 1;
  left: 2%;
  top: 11%;
  width: 95%;
  height: 76%;
  border: 4px dashed rgba(17,19,24,.34);
  border-radius: 50%;
  transform: rotate(-9deg);
}
.shape-red { width: 86px; height: 86px; right: 1%; top: 15%; }
.shape-blue { left: 7%; bottom: 10%; background: #fff; }
.shape-pink { right: 16%; bottom: 2%; background: var(--green); }
.spark-one { right: 12%; top: -1%; color: #fff; }
.spark-two { left: 2%; top: 17%; color: var(--ink); }
.scribble { display: none; }
.catalog-section {
  padding-top: 100px;
  background: transparent;
}
.book-card { box-shadow: 0 8px 30px rgba(19,45,55,.055); }
.closing-banner { background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.72); backdrop-filter: blur(8px); }
footer { background: #fbfcf9; border-top-color: rgba(17,19,24,.13); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: .9fr 1.1fr; padding-inline: 30px; }
  .hero-art { height: 550px; }
  .hero-logo-stage { width: 220px; height: 220px; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; }
  .brand { width: 56px; height: 56px; flex-basis: 56px; border-radius: 14px; }
  .brand img { width: 56px; height: 56px; }
  .hero {
    display: flex;
    min-height: auto;
    padding: 58px 21px 55px;
    background: transparent;
  }
  .hero::before { top: 46%; left: -11%; width: 180px; height: 180px; border-width: 35px; }
  .hero-copy { padding-right: 0; }
  .hero h1 { font-size: clamp(3.1rem,14.5vw,4.45rem); }
  .hero h1 em { text-shadow: 3px 4px 0 var(--ink); }
  .hero-art { height: 490px; margin-top: 48px; }
  .hero-logo-stage { width: 200px; height: 200px; padding: 22px; border-width: 5px; box-shadow: 8px 9px 0 var(--ink); }
  .hero-book-main { right: -3%; top: 8%; width: 48% !important; }
  .hero-book-left { left: -2%; bottom: 1%; width: 46% !important; }
  .hero-orbit { top: 13%; height: 70%; border-width: 3px; }
  .catalog-section { padding-top: 72px; }
}

@media (max-width: 760px) {
  main {
    background: var(--yellow);
  }
  main::before { clip-path: polygon(0 0,78% 0,50% 15%,47% 100%,0 100%); }
  main::after { background: linear-gradient(180deg,rgba(255,255,255,0) 0 720px,rgba(255,255,255,.5) 1060px,rgba(255,255,255,.7) 58%,rgba(255,255,255,.93) 100%); }
}

.book-card-link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }

/* Escaparate animado: las portadas salen y entra la siguiente pareja ES/EN. */
.hero-book { will-change: transform, opacity, filter; backface-visibility: hidden; }
.hero-book-left { --hero-rest-angle: -10deg; }
.hero-book-main { --hero-rest-angle: 9deg; }
.hero-art.is-changing .hero-book-left { animation: hero-swap-left .82s cubic-bezier(.7,-.12,.22,1.16) both; }
.hero-art.is-changing .hero-book-main { animation: hero-swap-right .82s cubic-bezier(.7,-.12,.22,1.16) both; }
@keyframes hero-swap-left {
  0% { opacity: 1; filter: blur(0); transform: translate(0,0) rotate(var(--hero-rest-angle)) scale(1); }
  40% { opacity: 0; filter: blur(5px); transform: translate(-155px,-28px) rotate(-34deg) scale(.68); }
  52% { opacity: 0; filter: blur(5px); transform: translate(145px,35px) rotate(20deg) scale(.7); }
  100% { opacity: 1; filter: blur(0); transform: translate(0,0) rotate(var(--hero-rest-angle)) scale(1); }
}
@keyframes hero-swap-right {
  0% { opacity: 1; filter: blur(0); transform: translate(0,0) rotate(var(--hero-rest-angle)) scale(1); }
  40% { opacity: 0; filter: blur(5px); transform: translate(165px,-22px) rotate(35deg) scale(.68); }
  52% { opacity: 0; filter: blur(5px); transform: translate(-145px,32px) rotate(-18deg) scale(.7); }
  100% { opacity: 1; filter: blur(0); transform: translate(0,0) rotate(var(--hero-rest-angle)) scale(1); }
}

/* Colección oficial y perfil editorial: superficies calmadas dentro del universo Ludika. */
.collection-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(45px, 7vw, 95px);
  align-items: center;
  max-width: 1240px;
  margin: 30px auto 120px;
  padding: clamp(35px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 42px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 22px 60px rgba(22,48,57,.08);
  backdrop-filter: blur(10px);
}
.collection-copy h2,.author-copy h2 {
  margin: 0;
  font: 700 clamp(2.8rem, 5vw, 5rem)/.98 var(--display);
  letter-spacing: -.045em;
}
.collection-lead { margin: 24px 0; color: #4f565b; font-size: 1.05rem; }
.collection-benefits { display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; }
.collection-benefits li { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.collection-benefits li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; }
.collection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.text-link { font-weight: 800; text-underline-offset: 4px; }
.collection-books { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 25px; }
.collection-books::before { content: "6"; position: absolute; inset: 50% auto auto 50%; z-index: -1; color: rgba(247,55,181,.14); font: 700 28rem/.7 var(--display); transform: translate(-50%,-50%); }
.collection-books a { transition: transform .2s ease; }
.collection-books a:nth-child(2),.collection-books a:nth-child(5) { transform: translateY(-22px); }
.collection-books a:hover { transform: translateY(-8px) rotate(-2deg); }
.collection-books a:nth-child(2):hover,.collection-books a:nth-child(5):hover { transform: translateY(-30px) rotate(2deg); }
.collection-books img { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 15px 30px rgba(17,19,24,.18); }

.author-section {
  display: grid;
  grid-template-columns: 270px 1fr .75fr;
  gap: clamp(35px, 5vw, 75px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 120px;
  padding: 30px clamp(24px, 4vw, 50px);
}
.author-mark { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 25px; border: 5px solid var(--ink); border-radius: 38% 62% 57% 43%; background: #fff; box-shadow: 10px 12px 0 var(--yellow); }
.author-mark img { width: 100%; height: 100%; object-fit: contain; }
.author-mark span { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--ink); font: 700 2rem var(--display); }
.author-mark span:first-of-type { right: -24px; top: 5px; background: var(--pink); transform: rotate(10deg); }
.author-mark span:last-of-type { left: -20px; bottom: 12px; background: var(--cyan); transform: rotate(-9deg); }
.author-copy > p:not(.eyebrow) { color: #4f565b; }
.author-link { display: inline-flex; margin-top: 8px; font-weight: 800; text-underline-offset: 4px; }
.author-section blockquote { margin: 0; padding: 30px; border-radius: 28px; background: var(--ink); color: #fff; font: 700 clamp(1.45rem, 2.4vw, 2.25rem)/1.18 var(--display); transform: rotate(1.5deg); }

@media (max-width: 1000px) {
  .collection-section { margin-inline: 24px; }
  .author-section { grid-template-columns: 210px 1fr; }
  .author-section blockquote { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .collection-section { grid-template-columns: 1fr; margin: 10px 15px 80px; padding: 29px 20px; border-radius: 30px; }
  .collection-books { gap: 8px; padding: 12px 2px 0; }
  .collection-books a:nth-child(2),.collection-books a:nth-child(5) { transform: translateY(-10px); }
  .collection-actions { align-items: flex-start; flex-direction: column; }
  .author-section { grid-template-columns: 1fr; margin-bottom: 80px; padding-inline: 25px; }
  .author-mark { width: 190px; justify-self: center; }
  .author-copy h2 { font-size: 3rem; }
  .author-section blockquote { grid-column: auto; }
}
