/* Páginas de ebook de regalo (Roadmap v3, F6). Tokens de core.css + brand.css. */
.eb-hero { position: relative; overflow: hidden; color: #fff; padding: 48px 0 0;
  background: radial-gradient(560px 460px at 78% 40%, rgba(143, 141, 190, .42), transparent 65%), linear-gradient(170deg, var(--night), #1F2C70 60%, var(--navy)); }
.eb-hero__grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; padding-bottom: 32px; }
.eb-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw + .4rem, 3.4rem); line-height: 1.05; max-width: 18ch; }
.eb-hero__lead { font-size: 1.15rem; color: #DDE0F5; max-width: 52ch; margin: 14px 0 18px; }
.eb-hero__facts { display: grid; gap: 8px; margin-bottom: 24px; color: var(--muted-dark); }
.eb-hero__facts li { display: flex; gap: 10px; align-items: center; }
.eb-hero__facts .ic { color: #FF8A90; flex: none; }
.eb-book { margin: 0; justify-self: center; perspective: 1400px; }
.eb-book img, .eb-book__fallback { width: min(70vw, 340px); height: auto; display: block; border-radius: 4px 10px 10px 4px;
  transform: rotateY(-16deg) rotateX(4deg); transform-origin: left center;
  box-shadow: -2px 0 0 rgba(255, 255, 255, .5) inset, 24px 30px 50px rgba(8, 12, 40, .55), 6px 6px 0 #C7C4DF; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.eb-book:hover img { transform: rotateY(-6deg) rotateX(2deg); }
.eb-book__fallback { aspect-ratio: 1 / 1.414; display: grid; place-content: center; gap: 14px; padding: 24px; background: var(--night); text-align: center; font: 700 1.3rem/1.2 var(--font-h); }
.eb-book__fallback img { margin: 0 auto; }
@media (min-width: 900px) { .eb-hero { padding-top: 64px; } .eb-hero__grid { grid-template-columns: 1.2fr .8fr; padding-bottom: 48px; } }

.eb-main { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .eb-main { grid-template-columns: 1.1fr .9fr; gap: 56px; } .eb-formbox { position: sticky; top: calc(var(--hdr) + 20px); } }
.eb-toc { display: grid; gap: 10px; margin: 18px 0 28px; }
.eb-toc li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-weight: 600; color: var(--ink); }
.eb-toc__n { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .95rem/1 var(--font-c); }
.eb-review { margin: 0 0 24px; padding: 18px 20px; border-left: 5px solid var(--brick); background: var(--mist); border-radius: 0 var(--r) var(--r) 0; }
.eb-review blockquote { margin: 0 0 8px; font: italic 600 1.1rem/1.45 var(--font-h); color: var(--ink); }
.eb-review figcaption { font: 700 .8rem/1.2 var(--font-c); letter-spacing: .07em; text-transform: uppercase; color: var(--slate); }
.eb-author { display: flex; gap: 16px; align-items: center; }
.eb-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brick); }
.eb-author p { margin: 0; color: var(--slate); }
.eb-formbox .card { border-top: 6px solid var(--navy); }
.eb-next { text-align: center; max-width: 720px; }
.eb-next .lead { margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .eb-book img { transition: none; } }

/* ---- Estantería de ebooks en /recursos/ ---- */
.eb-shelf { display: grid; gap: 22px; }
.eb-shelf__item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.eb-shelf__item:hover, .eb-shelf__item:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.eb-shelf__item img { width: 110px; height: auto; border-radius: 3px 8px 8px 3px; box-shadow: 8px 10px 20px rgba(24, 35, 92, .25); }
.eb-shelf__body { display: grid; gap: 6px; }
.eb-shelf__body b { font: 700 1.15rem/1.2 var(--font-h); color: var(--navy); }
.eb-shelf__body > span:not(.link) { color: var(--slate); font-size: .95rem; }
@media (min-width: 900px) { .eb-shelf { grid-template-columns: repeat(3, 1fr); } .eb-shelf__item { grid-template-columns: 1fr; align-items: start; } .eb-shelf__item img { width: 70%; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .eb-shelf__item { transition: none; } }
