/* ==========================================================
   Librería HyO — hoja de estilos (tema blanco)
   Paleta tomada del logo: verde oliva + salvia sobre blanco puro
   ========================================================== */
:root {
  --bg: #ffffff;
  --text: #1f2414;
  --text-2: #4a4f3c;
  --muted: #7a7f6a;
  --green: #485328;
  --green-2: #5b6a33;
  --green-dark: #2f3719;
  --sage: #b8b98a;
  --sage-2: #d9dab9;
  --sage-soft: #eef0e2;
  --sage-50: #f7f8f1;
  --gold: #c29a2c;
  --line: rgba(31, 36, 20, .1);
  --line-2: rgba(31, 36, 20, .18);
  --wa: #25d366;
  --wa-dark: #1da851;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --read: 'Literata', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
  --shadow: 0 24px 50px -24px rgba(47, 55, 25, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
em { font-style: italic; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(47,55,25,.5); }
.header-inner { height: 100%; width: min(1340px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { width: 52px; height: auto; }
.logo-text { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: var(--green); }
.logo-text em { font-style: normal; color: var(--green-dark); }

.nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.nav a { position: relative; color: var(--text-2); transition: color .3s; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.active { color: var(--green); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input {
  width: 100%; height: 44px; padding: 0 44px; background: var(--sage-50); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; outline: none; transition: border-color .3s, background .3s, box-shadow .3s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(72,83,40,.12); }
.search input::-webkit-search-cancel-button { display: none; }
.search-ico { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px var(--sans); color: var(--muted); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60; min-width: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -24px rgba(47,55,25,.45);
  max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; animation: drop .3s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.sr-group { padding: 10px 10px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; width: 100%; text-align: left; }
.sr-item:hover, .sr-item.focus { background: var(--sage-soft); }
.sr-item .cover { width: 38px; flex-shrink: 0; border-radius: 3px; }
.sr-item .cover-fallback { margin: 3px; padding: 4px; }
.sr-item .cf-title { font-size: 7px; }
.sr-item .cf-author, .sr-item .cf-mark { display: none; }
.sr-text { min-width: 0; }
.sr-title { font-family: var(--serif); font-size: 15px; line-height: 1.25; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-title mark { background: var(--sage-2); color: inherit; border-radius: 2px; }
.sr-sub { font-size: 12.5px; color: var(--muted); }
.sr-empty { padding: 14px 10px; color: var(--muted); font-size: 14px; }

.header-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .3s, color .3s; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--sage-soft); color: var(--green); }
.count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .35s var(--ease);
}
.count.show { transform: scale(1); }
.count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
#searchToggle, .burger { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px -14px rgba(72,83,40,.8); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--green-dark); }
.btn-ghost:hover { border-color: var(--green); background: var(--sage-50); }
.btn-soft { background: var(--sage-soft); color: var(--green-dark); }
.btn-soft:hover { background: var(--sage-2); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -14px rgba(37,211,102,.9); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa:hover svg { transform: none; }
.btn-wa svg { width: 22px; height: 22px; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden; background: #fff; }
.hero-glyphs { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; width: min(1340px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-title { font-family: var(--serif); font-weight: 350; margin: 0; font-size: clamp(48px, 7.4vw, 112px); line-height: .96; letter-spacing: -.035em; color: var(--green-dark); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-title em { color: var(--green-2); font-weight: 400; }
body.ready .hero-title .line > span { transform: none; }
body.ready .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
body.ready .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-sub { max-width: 520px; font-size: 18px; color: var(--text-2); margin: 30px 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 520px; }
.hero-stats dt { font-family: var(--serif); font-size: 36px; line-height: 1; letter-spacing: -.02em; color: var(--green); }
.hero-stats dd { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hero-copy > *:not(.hero-title) { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.ready .hero-copy > * { opacity: 1; transform: none; }
body.ready .hero-sub { transition-delay: .3s; }
body.ready .hero-ctas { transition-delay: .4s; }
body.ready .hero-stats { transition-delay: .5s; }

.hero-visual { position: relative; height: 620px; display: grid; place-items: center; opacity: 0; transform: scale(.94); transition: opacity 1.4s .15s var(--ease), transform 1.4s .15s var(--ease); }
body.ready .hero-visual { opacity: 1; transform: none; }
.ring-scene { perspective: 1400px; width: 100%; height: 100%; display: grid; place-items: center; transform-style: preserve-3d; }
.ring { --r: clamp(250px, 21vw, 330px); position: relative; width: 160px; height: 236px; transform-style: preserve-3d; transform: rotateX(var(--tx, -8deg)) rotateY(var(--ty, 0deg)); }
.ring-item { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--a)) translateZ(var(--r)); cursor: pointer; }
.ring-item.placeholder { cursor: default; }
.ring-item .cover { width: 100%; height: 100%; border-radius: 4px 8px 8px 4px; box-shadow: 0 30px 40px -22px rgba(47,55,25,.6); transition: transform .5s var(--ease), box-shadow .5s; }
.ring-item:not(.placeholder):hover .cover { transform: translateY(-14px) scale(1.06); box-shadow: 0 40px 50px -22px rgba(72,83,40,.7); }
.ring-floor { position: absolute; bottom: 70px; left: 50%; width: 520px; height: 70px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(72,83,40,.22), transparent 70%); filter: blur(10px); pointer-events: none; }
.ring-caption { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--green); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Portadas ---------- */
.cover { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: linear-gradient(150deg, var(--c1), color-mix(in srgb, var(--c1) 65%, #000)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22) 0, rgba(255,255,255,.14) 3%, transparent 7%); pointer-events: none; }
.cover-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14% 12%;
  color: var(--c2); text-align: center; border: 1px solid color-mix(in srgb, var(--c2) 40%, transparent); margin: 6%;
}
.cf-author { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cf-title { font-family: var(--serif); font-size: clamp(12px, 1.4vw, 19px); line-height: 1.1; }
.cf-mark { font-family: var(--serif); font-size: 10px; letter-spacing: .2em; opacity: .7; }

/* ---------- Frases ---------- */
.marquee { background: #fff; color: var(--green); overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 16px; padding-right: 56px; white-space: nowrap; font-family: var(--serif); font-size: 22px; font-style: italic; }
.marquee-item small { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.marquee-item::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; background: url('../assets/logo-mark.png') center / contain no-repeat; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
section { position: relative; }
.catalog, .blind, .shelf-section, .oracle { padding: 130px 0; background: #fff; }
.blind, .oracle { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-2); font-weight: 700; margin: 0 0 18px; }
.section-title { font-family: var(--serif); font-weight: 350; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -.03em; margin: 0; color: var(--green-dark); }
.section-title em { color: var(--green-2); }
.section-subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); color: var(--sage); margin: 14px 0 0; filter: saturate(1.4) brightness(.8); }
.section-lead { font-size: 18px; color: var(--text-2); margin: 24px 0 0; max-width: 600px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Catálogo ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 44px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: all .3s var(--ease); }
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.chip.special:not(.active) { background: var(--sage-50); }
.chip sup { font-size: 10px; opacity: .65; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select {
  height: 38px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23485328' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 14px; background-position: right 14px center;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 52px 28px; }
.card { position: relative; display: flex; flex-direction: column; animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card-cover-wrap { position: relative; perspective: 1200px; margin-bottom: 18px; }
.card-cover {
  position: relative; transform-style: preserve-3d; cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
  transition: transform .7s var(--ease);
}
.card.flipped .card-cover { --flip: 180deg; }
.face { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px 8px 8px 3px; overflow: hidden; }
.face .cover { border-radius: inherit; box-shadow: 0 2px 4px rgba(0,0,0,.06), var(--shadow); transition: box-shadow .5s; }
.card:hover .face .cover { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 40px 60px -26px rgba(47,55,25,.5); }
.face-back { position: absolute; inset: 0; transform: rotateY(180deg); }
/* Las imágenes pueden ignorar backface-visibility: se alterna la cara visible a mitad del giro */
.face-front, .face-back, .book3d .b-front, .book3d .b-back { transition: visibility 0s .3s; }
.face-back, .card.flipped .face-front, .book3d .b-back, .book3d.back .b-front { visibility: hidden; }
.card.flipped .face-back, .book3d.back .b-back { visibility: visible; }
.back-text {
  height: 100%; background: linear-gradient(160deg, var(--sage-50), var(--sage-soft)); border: 1px solid var(--line);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-2);
  border-radius: inherit;
}
.back-text h4 { font-family: var(--serif); font-size: 15px; line-height: 1.2; color: var(--green-dark); margin: 0; }
.back-text p { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
.back-text .bt-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.back-text .bt-foot img { width: 36px; opacity: .8; }
.barcode { width: 60px; height: 26px; background: repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 3px, var(--text) 3px 5px, transparent 5px 6px); opacity: .7; }
.card-shine { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.4), transparent 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; backface-visibility: hidden; }
.card:hover .card-shine { opacity: 1; }
.card.flipped .card-shine { display: none; }
.badge { position: absolute; top: 12px; left: -6px; z-index: 3; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; box-shadow: 0 6px 14px -6px rgba(47,55,25,.7); }
.card-btn {
  position: absolute; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--green-dark); box-shadow: 0 4px 12px -4px rgba(0,0,0,.25);
  backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s, opacity .3s; opacity: 0;
}
.card-btn svg { width: 17px; height: 17px; }
.card-btn:hover { transform: scale(1.1); }
.card:hover .card-btn, .card-btn.on, .card.flipped .flip { opacity: 1; }
.wish { top: 10px; right: 10px; }
.wish.on { background: var(--green); color: #fff; }
.wish.on svg { fill: currentColor; }
.flip { top: 54px; right: 10px; }
.card.flipped .flip { background: var(--green); color: #fff; }
.card-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; opacity: 0; transform: translateY(10px); transition: all .4s var(--ease); }
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card.flipped .card-quick { opacity: 0; pointer-events: none; }
.card-quick button { flex: 1; height: 38px; border-radius: 999px; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; backdrop-filter: blur(8px); transition: background .3s; }
.card-quick svg { width: 15px; height: 15px; }
.q-read { background: rgba(255,255,255,.94); color: var(--green-dark); }
.q-read:hover { background: #fff; }
.q-add { background: var(--green); color: #fff; }
.q-add:hover { background: var(--green-dark); }
.card-genre { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); font-weight: 700; }
.card-title { font-family: var(--serif); font-size: 20px; line-height: 1.15; letter-spacing: -.01em; margin: 6px 0 4px; font-weight: 450; cursor: pointer; color: var(--text); }
.card-title:hover { color: var(--green); }
.card-author { font-size: 14px; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.card-meta { margin-bottom: 6px; }
.price { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--green-dark); }
.price small { font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 500; margin-right: 4px; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.stars svg { width: 14px; height: 14px; fill: var(--gold); stroke: none; }
.stars.none svg { fill: var(--sage-2); }
.empty { text-align: center; padding: 80px 20px; border: 1.5px dashed var(--line-2); border-radius: 24px; background: var(--sage-50); }
.empty img { width: 90px; margin: 0 auto 18px; }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--green-dark); margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0; }

/* ---------- Oráculo ---------- */
.oracle { overflow: hidden; background: radial-gradient(circle at 82% 50%, var(--sage-50), #fff 55%); }
.oracle-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; }
.oracle-step { margin-top: 40px; }
.step-label { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); margin: 0 0 16px; font-weight: 600; }
.step-label span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--green); color: var(--green); font-family: var(--serif); font-size: 13px; }
.moods, .times { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--text-2); background: #fff; transition: all .35s var(--ease); }
.opt .g { font-size: 18px; color: var(--green-2); transition: transform .5s var(--ease); }
.opt:hover { color: var(--green); border-color: var(--green); }
.opt:hover .g { transform: rotate(-15deg) scale(1.2); }
.opt.active { background: var(--green); color: #fff; border-color: var(--green); }
.opt.active .g { color: var(--sage-2); }
#oracleGo { margin-top: 44px; }
#oracleGo:hover svg { transform: rotate(90deg); }
.oracle-note { margin: 16px 0 0; color: var(--muted); font-style: italic; }

.oracle-card-wrap { perspective: 1500px; display: grid; place-items: center; }
.tarot { position: relative; width: min(340px, 80vw); aspect-ratio: 5 / 8; transform-style: preserve-3d; transition: transform 1.2s var(--ease-io); animation: floaty 6s ease-in-out infinite; }
.tarot.flipped { transform: rotateY(180deg); }
.tarot.shuffle { animation: shuffle .9s var(--ease-io); }
@keyframes floaty { 50% { translate: 0 -12px; } }
@keyframes shuffle { 30% { transform: rotateZ(-6deg) scale(.95); } 60% { transform: rotateZ(5deg) scale(1.03); } }
.tarot-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 50px 70px -36px rgba(47,55,25,.6), 0 0 0 1px var(--line); }
.tarot-back { background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px), linear-gradient(160deg, var(--green-2), var(--green-dark)); display: grid; place-items: center; align-content: center; gap: 16px; }
.tarot-back::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(217,218,185,.5); border-radius: 10px; }
.tarot-logo { position: absolute; top: 34px; left: 50%; width: 70px; transform: translateX(-50%); filter: brightness(0) invert(1); opacity: .85; }
.tarot-ornament svg { width: 170px; height: 170px; stroke: var(--sage-2); stroke-width: .8; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tarot-label { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sage-2); margin: 0; }
.tarot-front { transform: rotateY(180deg); background: #fff; color: var(--text); display: flex; flex-direction: column; }
.tarot-front .cover { aspect-ratio: auto; height: 56%; flex-shrink: 0; }
.tf-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tf-mood { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); font-weight: 700; }
.tf-title { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin: 0; color: var(--green-dark); }
.tf-line { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.45; }
.tf-actions { display: flex; gap: 8px; margin-top: auto; }
.tf-actions .btn { flex: 1; padding: 0 10px; }

/* ---------- Cita a ciegas ---------- */
.parcels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.parcel { position: relative; aspect-ratio: 3 / 4.3; perspective: 1000px; }
.parcel-reveal { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.parcel-reveal .cover { flex: 1; aspect-ratio: auto; }
.pr-body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.pr-title { font-family: var(--serif); font-size: 18px; line-height: 1.15; margin: 0; color: var(--green-dark); }
.pr-title small { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 4px; }
.pr-actions { display: flex; gap: 6px; }
.pr-actions .btn { flex: 1; height: 38px; padding: 0 8px; font-size: 13px; }
.wrap { position: absolute; inset: 0; z-index: 2; display: flex; border-radius: 8px; cursor: pointer; filter: drop-shadow(0 26px 26px rgba(47,55,25,.25)); transition: filter .4s; }
.wrap:hover { filter: drop-shadow(0 36px 36px rgba(47,55,25,.32)); }
.wrap-half {
  position: relative; flex: 1; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 4px), radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 50%), linear-gradient(160deg, #c9c99c, #a9aa78);
  transition: transform 1.1s var(--ease-io), opacity 1.1s;
}
.wrap-half.l { border-radius: 8px 0 0 8px; transform-origin: left; }
.wrap-half.r { border-radius: 0 8px 8px 0; transform-origin: right; }
.wrap-content { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; justify-content: center; padding: 30px 24px; text-align: center; color: var(--green-dark); transition: opacity .4s; }
.wrap-string-v, .wrap-string-h { position: absolute; z-index: 2; background: var(--green); box-shadow: 0 1px 2px rgba(0,0,0,.2); pointer-events: none; transition: opacity .3s; }
.wrap-string-v { left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2.5px; }
.wrap-string-h { top: 26%; left: 0; right: 0; height: 5px; }
.wrap-bow { position: absolute; z-index: 3; left: 50%; top: 26%; width: 40px; height: 22px; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .3s; }
.wrap-bow::before, .wrap-bow::after { content: ''; position: absolute; top: 0; width: 20px; height: 20px; border: 4px solid var(--green); border-radius: 50% 50% 0 50%; }
.wrap-bow::before { left: -2px; transform: rotate(-25deg); }
.wrap-bow::after { right: -2px; transform: scaleX(-1) rotate(-25deg); }
.wrap-quote { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; font-style: italic; margin: 40px 0 18px; background: rgba(255,255,255,.9); padding: 18px 14px; border-radius: 3px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.2); transform: rotate(-1.5deg); }
.wrap-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.wrap-tags span { background: rgba(255,255,255,.55); padding: 4px 8px; border-radius: 3px; }
.wrap-cta { margin-top: 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.parcel.open .wrap { pointer-events: none; }
.parcel.open .wrap-half.l { transform: translateX(-30%) rotateY(70deg); opacity: 0; }
.parcel.open .wrap-half.r { transform: translateX(30%) rotateY(-70deg); opacity: 0; }
.parcel.open .wrap-content, .parcel.open .wrap-string-v, .parcel.open .wrap-string-h, .parcel.open .wrap-bow { opacity: 0; }

/* ---------- Estantería ---------- */
.shelf-section { border-top: 1px solid var(--line); overflow: hidden; }
.shelf { position: relative; }
.shelf-row { display: flex; align-items: flex-end; gap: 4px; height: 360px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.shelf-row::-webkit-scrollbar { display: none; }
.spine {
  --h: 300px; --w: 54px; flex-shrink: 0; width: var(--w); height: var(--h); position: relative; cursor: pointer;
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.12) 18%, transparent 30%, transparent 75%, rgba(0,0,0,.3)), var(--c1);
  color: var(--c2); border-radius: 3px 3px 1px 1px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0 12px;
  transition: transform .45s var(--ease), box-shadow .45s; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); touch-action: pan-y;
}
.spine::before, .spine::after { content: ''; position: absolute; left: 6px; right: 6px; height: 2px; background: color-mix(in srgb, var(--c2) 70%, transparent); }
.spine::before { top: 30px; }
.spine::after { bottom: 46px; }
.spine:hover, .spine:focus-visible, .spine.lift { transform: translateY(-34px) rotate(-1.5deg); box-shadow: 0 30px 34px -14px rgba(47,55,25,.55), inset 0 0 0 1px rgba(0,0,0,.2); z-index: 2; }
.spine.near { transform: translateY(-12px); }
.spine-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(var(--h) - 110px); }
.spine-author { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.spine-mark { font-family: var(--serif); font-size: 10px; letter-spacing: .1em; }
.shelf-board { height: 20px; margin: 0 -10px; border-radius: 3px; background: linear-gradient(180deg, var(--green-2), var(--green-dark)); box-shadow: 0 24px 30px -16px rgba(47,55,25,.6), inset 0 2px 0 rgba(255,255,255,.18); }
.shelf-hint { display: none; text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 0; }

/* ---------- Footer ---------- */
.footer { background: #fff; padding: 80px 0 30px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { width: 170px; height: auto; }
.footer-brand p { color: var(--muted); max-width: 280px; margin-top: 14px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 700; }
.footer-cols a { display: block; color: var(--text-2); margin-bottom: 10px; font-size: 15px; transition: color .3s; }
.footer-cols a:hover { color: var(--green); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(31,36,20,.35); backdrop-filter: blur(6px); animation: fade .4s; }
@keyframes fade { from { opacity: 0; } }
.modal-panel { position: relative; width: min(1000px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; background: #fff; border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(31,36,20,.5); animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--sage-50); }
.modal-body { display: grid; grid-template-columns: 1fr 1.15fr; }
.m-visual { display: grid; place-items: center; align-content: center; gap: 22px; padding: 56px 30px 40px; perspective: 1400px; background: radial-gradient(circle at 50% 40%, #fff, var(--sage-soft)); border-radius: 24px 0 0 24px; position: relative; overflow: hidden; }
.book3d { position: relative; width: 230px; aspect-ratio: 2/3; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(6deg); transition: transform 1s var(--ease); }
.book3d:hover { transform: rotateY(-10deg) rotateX(2deg) scale(1.03); }
.book3d.back { transform: rotateY(160deg) rotateX(4deg); }
.book3d .b-front, .book3d .b-back { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 24px 30px 50px -24px rgba(31,36,20,.6); }
.book3d .b-front { transform: translateZ(18px); }
.book3d .b-back { transform: rotateY(180deg) translateZ(18px); }
.book3d .b-back .back-text { border-radius: 6px 2px 2px 6px; }
.book3d .b-back .back-text p { -webkit-line-clamp: 14; }
.book3d .b-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 36px; background: color-mix(in srgb, var(--c1) 80%, #000); transform-origin: left; transform: rotateY(-90deg); translate: 0 0 18px; }
.book3d .b-pages { position: absolute; top: 4px; bottom: 4px; right: 0; width: 34px; transform-origin: right; transform: rotateY(90deg); translate: 0 0 16px; background: repeating-linear-gradient(90deg, #fbfbf6 0 2px, #e3e4d3 2px 3px); }
.m-flip { font-size: 13px; font-weight: 700; color: var(--green-dark); display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.m-flip svg { width: 16px; height: 16px; }
.m-flip:hover { border-color: var(--green); }
.m-info { padding: 52px 48px 44px; display: flex; flex-direction: column; }
.m-genre { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); font-weight: 700; }
.m-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.025em; margin: 10px 0 8px; color: var(--green-dark); }
.m-author { font-size: 16px; color: var(--text-2); }
.m-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.m-meta strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--text); font-weight: 500; }
.m-syn { margin: 0 0 22px; color: var(--text-2); white-space: pre-line; }
.rate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--sage-50); margin-bottom: 22px; }
.rate-label { font-size: 13px; font-weight: 700; color: var(--green-dark); }
.rate-stars { display: inline-flex; gap: 2px; }
.rate-stars button { width: 34px; height: 34px; display: grid; place-items: center; transition: transform .25s var(--ease); }
.rate-stars button:hover { transform: scale(1.18); }
.rate-stars svg { width: 26px; height: 26px; fill: var(--sage-2); stroke: none; transition: fill .2s; }
.rate-stars button.on svg { fill: var(--gold); }
.rate-info { font-size: 13px; color: var(--muted); }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 22px; }
.fmt { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; text-align: left; transition: all .3s var(--ease); }
.fmt span { display: block; font-size: 12px; color: var(--muted); }
.fmt strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.fmt:hover { border-color: var(--green); }
.fmt.active { border-color: var(--green); background: var(--green); color: #fff; }
.fmt.active span { color: var(--sage-2); }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.m-actions .btn { flex: 1; min-width: 170px; }

/* ---------- Carrito ---------- */
.drawer { position: fixed; inset: 0; z-index: 110; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; animation: slideIn .55s var(--ease); box-shadow: -30px 0 80px -40px rgba(31,36,20,.5); }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; color: var(--green-dark); }
.ship { padding: 14px 24px; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.ship-bar { height: 5px; border-radius: 3px; background: var(--sage-soft); margin-top: 10px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--green)); transition: width .6s var(--ease); }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: cardIn .5s var(--ease) both; }
.ci .cover { width: 64px; border-radius: 2px 5px 5px 2px; }
.ci .cover-fallback { padding: 6px; margin: 4px; }
.ci .cf-author, .ci .cf-mark { display: none; }
.ci .cf-title { font-size: 9px; }
.ci-title { font-family: var(--serif); font-size: 16px; line-height: 1.2; margin: 0; }
.ci-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; color: var(--green-dark); }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 700; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.ci-price { font-family: var(--serif); font-size: 17px; }
.ci-remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ci-remove:hover { color: var(--green); }
.drawer-empty { text-align: center; padding: 60px 20px; }
.drawer-empty img { width: 90px; margin: 0 auto; opacity: .7; }
.drawer-empty .big { font-family: var(--serif); font-size: 26px; font-style: italic; margin: 18px 0 8px; color: var(--green-dark); }
.drawer-empty p { color: var(--muted); margin: 0 0 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.co-fields { display: grid; gap: 8px; margin-bottom: 14px; }
.co-fields input, .co-fields textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; outline: none; resize: none; background: var(--sage-50); }
.co-fields input:focus, .co-fields textarea:focus { border-color: var(--green); background: #fff; }
.sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.sum.total { font-size: 16px; color: var(--text); font-weight: 700; margin: 12px 0 16px; }
.sum.total strong { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--green-dark); }
.drawer-foot .btn { width: 100%; }
.co-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.done { text-align: center; padding: 60px 24px; }
.done-seal { width: 110px; height: 110px; margin: 0 auto 24px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; animation: seal .9s var(--ease); }
.done-seal svg { width: 54px; height: 54px; }
@keyframes seal { from { transform: scale(0) rotate(-90deg); } }
.done h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; color: var(--green-dark); }
.done p { color: var(--text-2); margin: 0 0 18px; }

/* ---------- Lector ---------- */
.reader {
  --r-bg: #ffffff; --r-fg: #1f2414; --r-mut: #7a7f6a; --r-line: rgba(31,36,20,.1); --r-size: 20px;
  position: fixed; inset: 0; z-index: 150; background: var(--r-bg); color: var(--r-fg); display: flex; flex-direction: column;
  animation: readerIn .6s var(--ease); transition: background .5s, color .5s;
}
.reader[data-theme='sepia'] { --r-bg: #f4ecd8; --r-fg: #4a3820; --r-mut: #8c7451; --r-line: rgba(74,56,32,.14); }
.reader[data-theme='night'] { --r-bg: #15170f; --r-fg: #dcdccb; --r-mut: #85887a; --r-line: rgba(220,220,203,.12); }
@keyframes readerIn { from { opacity: 0; transform: scale(1.02); } }
.reader-progress { height: 3px; background: var(--r-line); }
.reader-progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .15s; }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--r-line); }
.reader-btn { height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--r-fg); transition: background .3s; }
.reader-btn:hover { background: var(--r-line); }
.reader-btn svg { width: 18px; height: 18px; }
.reader-meta { text-align: center; font-size: 13px; color: var(--r-mut); line-height: 1.3; min-width: 0; }
.reader-meta strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--r-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-tools { display: flex; align-items: center; gap: 4px; }
.reader-themes { display: flex; gap: 6px; margin-left: 8px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--r-line); transition: transform .3s; }
.sw:hover { transform: scale(1.12); }
.sw.active { outline: 2px solid var(--green); outline-offset: 2px; }
.sw-paper { background: #fff; }
.sw-sepia { background: #f4ecd8; }
.sw-night { background: #15170f; }
.reader-scroll { flex: 1; overflow-y: auto; }
.reader-page { width: min(680px, 100% - 40px); margin: 0 auto; padding: 70px 0 120px; font-family: var(--read); font-size: var(--r-size); line-height: 1.75; transition: font-size .3s; }
.rp-kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-2); text-align: center; margin: 0; font-weight: 700; }
.reader[data-theme='night'] .rp-kicker { color: var(--sage); }
.rp-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 56px); line-height: 1.05; text-align: center; letter-spacing: -.02em; margin: 16px 0 10px; }
.rp-author { text-align: center; font-style: italic; color: var(--r-mut); margin: 0; }
.rp-orn { text-align: center; color: var(--r-mut); margin: 40px 0; letter-spacing: 1em; }
.reader-page p.txt { margin: 0 0 1.2em; text-align: justify; hyphens: auto; }
.reader-page .rp-orn + p.txt::first-letter { float: left; font-family: var(--serif); font-size: 4.4em; line-height: .82; padding: 6px 10px 0 0; color: var(--green-2); }
.rp-end { margin-top: 60px; padding: 32px; border: 1px solid var(--r-line); border-radius: 18px; text-align: center; font-family: var(--sans); }
.rp-end h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.rp-end p { font-size: 15px; color: var(--r-mut); margin: 0 0 20px; line-height: 1.5; }

/* ---------- Toasts ---------- */
.toast-zone { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; justify-items: center; pointer-events: none; width: calc(100% - 32px); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--green-dark); color: #fff; padding: 12px 18px 12px 12px; border-radius: 999px; box-shadow: 0 20px 50px -14px rgba(31,36,20,.6); font-size: 14px; font-weight: 600; animation: toastIn .5s var(--ease); pointer-events: auto; max-width: 100%; }
.toast .cover { width: 26px; border-radius: 2px; flex-shrink: 0; }
.toast .cover-fallback { display: none; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
.toast-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--green-dark); display: grid; place-items: center; flex-shrink: 0; }
.toast-ico svg { width: 15px; height: 15px; stroke-width: 2.4; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 20px; box-shadow: 0 30px 50px -30px rgba(31,36,20,.4); }
  .nav.open a { padding: 14px 4px; font-size: 18px; font-family: var(--serif); border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; order: -1; margin-top: -10px; }
  .ring { --r: 240px; width: 130px; height: 192px; }
  .ring-floor { width: 360px; bottom: 50px; }
  .oracle-inner { grid-template-columns: 1fr; }
  .parcels { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
  .m-visual { border-radius: 24px 24px 0 0; padding: 40px 20px 26px; }
  .book3d { width: 170px; }
  .m-info { padding: 30px 24px 30px; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 8px; }
  .logo-img { width: 42px; }
  .logo-text { font-size: 20px; }
  #searchToggle { display: grid; }
  .search { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; max-width: none; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); margin: 0; }
  .search.open { display: block; }
  .search .search-ico { left: 32px; }
  .search .search-kbd { display: none; }
  .search-results { left: 16px; right: 16px; min-width: 0; }
  .icon-btn { width: 40px; height: 40px; }
  .hero { padding-top: calc(var(--header-h) + 10px); }
  .hero-visual { height: 340px; }
  .ring { --r: 170px; width: 96px; height: 142px; }
  .ring-floor { width: 260px; bottom: 36px; }
  .ring-caption { display: none; }
  .hero-sub { font-size: 16px; margin: 22px 0 28px; }
  .hero-stats { gap: 32px; margin-top: 40px; }
  .hero-stats dt { font-size: 28px; }
  .hero-ctas .btn { flex: 1; padding: 0 18px; }
  .scroll-hint { display: none; }
  .catalog, .blind, .shelf-section, .oracle { padding: 90px 0; }
  .section-head { margin-bottom: 36px; }
  .section-lead { font-size: 16px; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chip { flex-shrink: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .card-title { font-size: 17px; }
  .card-quick { left: 8px; right: 8px; bottom: 8px; opacity: 1; transform: none; }
  .card-quick button { height: 34px; font-size: 12px; }
  .card-quick .lbl { display: none; }
  .card-btn { opacity: 1; width: 32px; height: 32px; }
  .flip { top: 48px; }
  .back-text { padding: 12px 10px; font-size: 11px; }
  .back-text p { -webkit-line-clamp: 8; }
  .parcels { gap: 16px; }
  .wrap-content { padding: 16px 12px; }
  .wrap-quote { font-size: 14px; margin: 26px 0 10px; padding: 12px 10px; }
  .wrap-tags { display: none; }
  .fmt { padding: 10px 8px; }
  .fmt strong { font-size: 15px; }
  .reader-btn span { display: none; }
  .reader-bar { padding: 10px 12px; gap: 8px; }
  .reader-themes { margin-left: 2px; gap: 4px; }
  .sw { width: 22px; height: 22px; }
  .reader-page { padding-top: 44px; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { border-radius: 24px 24px 0 0; max-height: 92svh; }

  /* Estantería táctil: varias baldas, se recorre deslizando el dedo */
  .shelf-row {
    display: grid; grid-template-columns: repeat(auto-fill, 40px); grid-auto-rows: 230px; justify-content: center; align-items: end;
    column-gap: 3px; height: auto; padding: 0 6px; overflow: visible; touch-action: pan-y;
    background: repeating-linear-gradient(to bottom, transparent 0 214px, var(--green-2) 214px 216px, var(--green-dark) 216px 230px);
  }
  .spine { --w: 40px !important; height: min(var(--h), 200px); margin-bottom: 16px; padding: 10px 0; }
  .spine-title { font-size: 13px; max-height: calc(min(var(--h), 200px) - 80px); }
  .spine::before { top: 22px; }
  .spine::after { bottom: 36px; }
  .spine.lift { transform: translateY(-26px) rotate(-2deg); }
  .shelf-board { display: none; }
  .shelf-hint { display: block; }
  .footer-cols { gap: 40px; }
}
@media (max-width: 420px) {
  .grid { gap: 28px 12px; }
  .parcels { grid-template-columns: 1fr; }
  .parcel { aspect-ratio: 3 / 3.4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
