:root{color-scheme:light;--ink:#25231e;--muted:#5c5549;--paper:#fffcf5;--orange:#ad351d;--line:#e9dfcf;--cream:#f7eedf;--display:Georgia,'Times New Roman',serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,sans-serif;font-size:1rem;line-height:1.55}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font:inherit}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #285954;outline-offset:4px}
.wrap{width:min(1110px,calc(100% - 64px));margin-inline:auto}
.top{border-bottom:1px solid var(--line);background:var(--paper)}
.nav,.footer{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:76px}
.brand{display:inline-flex;align-items:center;gap:.2em;font:700 1.47rem var(--display);letter-spacing:-.065em;white-space:nowrap}
.brand>span:last-child{color:var(--orange)}
.symbol{display:grid;place-items:center;width:32px;height:32px;margin-right:7px;border-radius:50%;background:#f4dfce;color:var(--orange);font:1.35rem system-ui}
nav{display:flex;gap:32px;font-size:.94rem;font-weight:550}
nav a:hover,.footer>a:last-child:hover{color:var(--orange)}
.nav-action,.button{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:var(--orange);color:#fff;padding:12px 20px;font-weight:700;font-size:.94rem}
.nav-action:hover,.button:hover{background:#862714}
.hero{background:#f8efe0}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:495px;gap:26px;padding-block:32px}
.eyebrow{color:var(--orange);font-size:.875rem;font-weight:750;letter-spacing:.13em;margin:0 0 14px;display:flex;align-items:center;gap:9px}
.eyebrow span{width:8px;height:8px;border-radius:50%;background:#be4f2f;flex:none}
h1,h2,h3{font-family:var(--display);line-height:1.03;letter-spacing:-.045em;margin:0}
h1{font-size:clamp(3.35rem,6.4vw,5.8rem);font-weight:500}
h1 em{color:var(--orange);font-weight:500}
.lede,.section-copy{color:var(--muted)}
.lede{max-width:405px;font-size:1.1rem;margin:24px 0}
.showcase{position:relative;isolation:isolate;min-width:0;aspect-ratio:1.25;border-radius:23px;background-color:#efd3a8;background-image:radial-gradient(#9e613342 1px, transparent 1px),radial-gradient(ellipse at 50% 25%,#ffe6bf,transparent 70%);background-size:17px 17px,100% 100%;overflow:hidden}
.book{position:absolute;width:41%;height:auto;display:block;box-shadow:0 17px 34px #56341155;border:1px solid #fff9;border-radius:5px}
.first{left:13%;top:13%;transform:rotate(-13deg)}
.second{right:12%;top:15%;transform:rotate(12deg)}
.spark{position:absolute;color:#a24025;font-size:2.2rem;line-height:1}
.one{top:11%;right:8%}.two{bottom:10%;left:10%}.three{bottom:13%;right:9%;color:#416255}
.sticker{position:absolute;left:43%;bottom:8%;background:#fef9ed;border:1px solid #e2c49a;color:#9d3520;border-radius:50%;display:grid;place-items:center;aspect-ratio:1;width:14%;font-weight:800;font-size:clamp(1rem,2.2vw,1.5rem);transform:rotate(-10deg);box-shadow:0 6px 13px #4c30052a}
.catalog{padding-block:65px 74px;scroll-margin-top:20px}
h2{font-size:clamp(2.35rem,4.7vw,3.9rem);font-weight:500}
.section-copy{margin:12px 0 22px}
.filters{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:24px}
.filters button,.card-end button{padding:8px 15px;border:1px solid #dfd3c3;border-radius:100px;background:var(--paper);color:var(--ink);font-weight:650;font-size:.9rem}
.filters button[aria-pressed=true],.filters button:hover{background:#2c3429;color:#fff;border-color:#2c3429}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.card{border:1px solid var(--line);border-radius:19px;overflow:hidden;background:#fffdfa}
.card-art{display:grid;place-items:center;height:235px;background:#e3ece1;overflow:hidden;padding:22px}
.card-art.ciencia{background:#f7e3c7}
.card-art img{display:block;width:auto;height:100%;min-height:0;max-height:190px;border-radius:4px;box-shadow:0 8px 20px #49392233;transform:rotate(-5deg)}
.card-art.ciencia img{transform:rotate(5deg)}
.card-body{padding:22px 24px}
.edition{font-size:.875rem;font-weight:720;color:var(--orange);margin:0 0 7px}
h3{font-size:2rem}
.card-body>p:not(.edition){color:var(--muted);margin:8px 0 20px}
.card-end{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:13px;border-top:1px solid var(--line)}
.card-end span{font-size:.9rem;color:var(--muted)}
.card-end button{border-radius:8px;color:var(--orange);border-color:#e9baa7;background:#fff5ea}
.card-end button:hover{background:#f6dfd0}
.faq{background:var(--cream);padding-block:62px}
.faq-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:45px}
details{border-bottom:1px solid #dcd1c0;padding:12px 0}
summary{cursor:pointer;font-weight:700;padding-block:5px}
details p{color:var(--muted);margin:8px 0}
.footer>a:last-child{font-size:.94rem}
dialog{width:min(740px,calc(100% - 30px));max-height:calc(100% - 30px);border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--ink);padding:0}
dialog::backdrop{background:#231a11a8}
.dialog-inner{display:grid;grid-template-columns:.82fr 1fr;gap:24px;padding:42px 25px 25px;position:relative;align-items:start}
.dialog-inner img{width:100%;border:1px solid var(--line);border-radius:5px}
.dialog-inner h2{font-size:2.5rem}
.dialog-inner h3{font-size:1.4rem}
.dialog-inner ul{padding-left:20px}
.close{position:absolute;right:10px;top:7px;border:0;border-radius:50%;width:34px;height:34px;background:#f2e7d8;font-size:1.5rem;color:var(--ink);line-height:1}
#estado{font-weight:700}
@media(max-width:760px){.wrap{width:calc(100% - 34px)}.hero-grid{grid-template-columns:1fr;gap:26px;padding-block:36px}.showcase{max-width:530px;width:100%;margin:auto}.nav{min-height:62px}nav{display:none}.catalog,.faq{padding-block:42px}.faq-grid{grid-template-columns:1fr;gap:18px}.card-art{height:200px}.card-art img{max-height:155px}}
@media(max-width:520px){.cards,.dialog-inner{grid-template-columns:1fr}.card-body{padding:18px}.dialog-inner img{width:min(180px,70%);margin:auto}.nav-action{padding:9px 13px}.lede{font-size:1rem}.card-art{height:220px}.card-art img{max-height:178px}h1{font-size:clamp(2.65rem,10vw,3.35rem)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

#enlace-compra { width: min(100%, 32rem); margin: .4rem 0; }
@media (max-width: 520px) {
  header .mx-top, header .nav { flex-wrap: wrap; gap: .5rem; padding-block: .65rem; }
}
