/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f7f0e2;
  --bg-2:      #f0ddd2;
  --bg-3:      #fffbf2;
  --bg-3-soft: rgba(255,251,242,0.75);
  --cream:     #5c3a22;
  --cream-2:   #6b4a30;
  --cream-3:   #9c7a6c;
  --ink-mute:  #6f5540;

  --accent:    #a16a56;
  --accent-2:  #7a4a3a;
  --gold-soft: rgba(161,106,86,0.4);
  --gold:      #b98a72;

  --cuarzo-blue:   #3f6ea8;
  --cuarzo-purple: #7a5aa8;
  --cuarzo-red:    #a8402f;
  --cuarzo-green:  #3f7a52;
  --cuarzo-opal:   #6f9198;

  --line:      rgba(58,42,28,0.14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-family: var(--serif); font-weight: 500; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.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;
}
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::before { display: none; }

.section {
  position: relative;
  padding-block: clamp(3.5rem, 7.5vw, 6.5rem);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  color: var(--cream);
  margin-top: 0.5rem;
}
.section-title em { color: var(--gold); }
.section-head .kicker { position: relative; }
.section-title { position: relative; }
.section-title::after {
  content: ""; display: block; width: 54px; height: 2px; margin-top: 0.9rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head.is-center .section-title::after,
.mito-text .section-title::after { margin-inline: auto; }
.section-lede {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--ink-mute);
  max-width: 56ch;
}
.section-head.is-center .section-lede { margin-inline: auto; }

[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg-3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(201,169,97,0.55); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.halo {
  position: absolute; z-index: -1; pointer-events: none;
  filter: blur(110px);
  opacity: 0.55;
}

/* =============================================================
   4. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-soft), clip-path 1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: grid; place-items: center; gap: 1.1rem; }
.splash-logo { width: 68px; height: auto; opacity: 0.95; animation: splashFloat 2.4s ease-in-out infinite; }
@keyframes splashFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.splash-word { font-family: var(--serif); font-size: 1.1rem; color: var(--cream-2); letter-spacing: 0.04em; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(247,240,226,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo { width: 34px; height: 34px; object-fit: contain; }
.nav-word { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.86rem; letter-spacing: 0.03em; color: var(--ink-mute);
  position: relative; padding-block: 0.3rem;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent); transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }
.nav-social { display: none; align-items: center; gap: 0.9rem; }
.nav-social a { color: var(--ink-mute); transition: color .3s, transform .3s; }
.nav-social a:hover { color: var(--accent); transform: translateY(-2px); }
.nav-social svg { width: 17px; height: 17px; }

.nav-burger {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
}
.nav-burger span { position: relative; width: 18px; height: 1px; background: var(--cream); display: block; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--cream);
  transition: transform .3s;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

@media (min-width: 960px) {
  .nav-links, .nav-social { display: flex; }
  .nav-burger { display: none; }
}

.nav-mobile {
  position: fixed; inset: 0; z-index: 480;
  background: var(--bg-2);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile-inner { display: grid; gap: 1.6rem; text-align: center; }
.nav-mobile a { font-family: var(--serif); font-size: 1.8rem; color: var(--cream); }
.nav-mobile-social { display: flex; gap: 1.4rem; justify-content: center; margin-top: 1rem; }
.nav-mobile-social a { color: var(--accent); }
.nav-mobile-social svg { width: 22px; height: 22px; }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 88vh; min-height: 88svh;
  display: flex; align-items: center;
  overflow: clip;
  isolation: isolate;
  background: var(--bg-2);
  padding-block: 1.2rem 4rem;
}
.hero-halo {
  position: absolute; z-index: -1; pointer-events: none;
  filter: blur(120px);
  opacity: 0.45;
  width: 46vw; height: 46vw; right: -8vw; top: 12%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1360px; margin-inline: auto;
  padding-inline: 1.5rem;
  padding-top: var(--nav-h);
  display: grid; gap: 3rem;
}
@media (min-width: 960px) {
  .hero-content { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

.hero-title {
  font-size: clamp(3.2rem, 9.2vw, 7.2rem);
  color: var(--cream);
  margin-top: 1rem;
  max-width: 14ch;
}
.hero-title em { color: var(--gold); }
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--cream-2);
  max-width: 46ch;
  text-align: left;
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-book {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: 1.2rem;
}
.hero-book-card {
  position: relative;
  width: min(230px, 52vw);
  transform: rotate(3deg);
  transition: transform .6s var(--ease-soft);
  cursor: pointer;
}
.hero-book-card:hover { transform: rotate(0deg) translateY(-6px); }
.hero-book-card img {
  width: 100%;
  aspect-ratio: 480 / 765;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(58,42,28,0.4));
}
.hero-book-tag {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  margin-top: 1.6rem; text-align: center;
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 0.7rem 1.3rem; border-radius: 18px;
  box-shadow: 0 14px 30px -12px rgba(58,42,28,0.25);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.hero-book-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(58,42,28,0.35);
}
.hero-book-tag-title {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.hero-book-tag-cta {
  font-size: 0.85rem; font-weight: 600; color: var(--cream);
}

/* =============================================================
   7. El mito
   ============================================================= */
.mito { background: var(--bg); }
.mito-solo { display: flex; justify-content: center; }
.mito-text { max-width: 66ch; text-align: center; }
.mito-text p { margin-top: 1.2rem; font-size: 1.08rem; color: var(--cream-2); max-width: 62ch; margin-inline: auto; }
.mito-text p:first-of-type { margin-top: 1.6rem; }

/* =============================================================
   8. El mundo (mapa)
   ============================================================= */
.mundo { background: var(--bg-2); position: relative; }
.mapa-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6);
  margin-top: 1.8rem;
  container-type: inline-size;
}
.mapa-frame img { width: 100%; display: block; aspect-ratio: 1800 / 1167; object-fit: contain; background: var(--bg-2); }
.mapa-img {
  --zoom-x: 50%; --zoom-y: 50%;
  transform-origin: var(--zoom-x) var(--zoom-y);
  transform: scale(1);
  transition: transform .7s var(--ease-soft);
  will-change: transform;
}
.mapa-img.is-zoomed { transform: scale(2.3); }
@media (prefers-reduced-motion: reduce) {
  .mapa-img { transition: none; }
}
.mapa-caption {
  margin-top: 1.2rem; text-align: center;
  font-family: var(--serif); font-weight: 600;
  color: var(--accent); font-size: 1.3rem;
}
.mapa-tags {
  margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}

/* =============================================================
   8b. Tooltip de la tierra (hover / tap)
   ============================================================= */
.tierra-item { position: relative; }
.tierra-btn {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bg-3); background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.tierra-btn:hover, .tierra-item.is-open .tierra-btn {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(58,42,28,0.4);
}
.tierra-tooltip {
  position: absolute; z-index: 20; top: calc(100% + 0.7rem); left: 50%;
  transform: translate(-50%, 6px);
  width: min(280px, 76vw);
  background: var(--bg-3); color: var(--cream);
  border-radius: 14px; padding: 1rem 1.2rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.tierra-item:hover .tierra-tooltip,
.tierra-item:focus-within .tierra-tooltip,
.tierra-item.is-open .tierra-tooltip {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.tierra-tooltip-cuarzo {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent);
}
.tierra-tooltip-texto { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.5; color: var(--cream-2); }

/* =============================================================
   9. Personajes (pinned showcase)
   ============================================================= */
.personajes { background: var(--bg); }

.showcase { position: relative; }
.showcase-track {
  display: flex; flex-wrap: nowrap; gap: 1.4rem;
  overflow-x: auto; overflow-y: visible;
  padding-block: 1rem 2.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.char-card {
  flex: 0 0 auto;
  width: min(270px, 72vw);
  scroll-snap-align: start;
  --rx: 0deg; --ry: 0deg;
}
.char-card-inner {
  position: relative;
  border-radius: 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .4s;
}
.char-card-inner:hover { transition-duration: .15s; box-shadow: 0 40px 80px -24px var(--card-glow, rgba(201,169,97,0.45)); }
.char-card-media { position: relative; aspect-ratio: 0.72; overflow: hidden; }
.char-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 88% 92% at 50% 38%, black 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 92% at 50% 38%, black 58%, transparent 100%);
  transition: transform .8s var(--ease-soft);
}
.char-card-inner:hover .char-card-media img { transform: scale(1.08); }
.char-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--bg-3) 100%);
}
.char-card-glow {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 50% at 50% 30%, var(--card-glow, transparent), transparent 70%);
  opacity: 0.55; mix-blend-mode: screen; pointer-events: none;
}
.char-card-body {
  position: relative; z-index: 2;
  padding: 0 1.3rem 1.4rem;
  margin-top: -2.2rem;
  transform: translateZ(30px);
}
.char-card-name { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.char-card-tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 0.35rem;
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--card-glow, var(--accent));
}
.char-card-tag::before { content: "◆"; font-size: 0.6rem; }

/* =============================================================
   10. Autora
   ============================================================= */
.autora { background: var(--bg-2); }
.autora-grid {
  display: grid; gap: 2.2rem; align-items: center; justify-items: center;
}
@media (min-width: 860px) { .autora-grid { grid-template-columns: 0.42fr 1.58fr; gap: 3rem; justify-items: stretch; } }
.autora-photo {
  position: relative;
  width: min(240px, 62vw);
  animation: autoraFloat 5s ease-in-out infinite;
}
@media (min-width: 860px) {
  .autora-photo {
    width: 100%; max-width: 260px; margin-inline: auto;
    align-self: start; position: sticky; top: calc(var(--nav-h) + 2rem);
  }
}
.autora-photo img {
  width: 100%;
  aspect-ratio: 720 / 1617;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(58,42,28,0.4));
}
@keyframes autoraFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .autora-photo { animation: none; } }
.autora-text p { margin-top: 1.1rem; font-size: 1.03rem; color: var(--cream-2); max-width: 58ch; }
.autora-text p strong { color: var(--cream-2); font-weight: 700; }
.autora-text p:first-of-type { margin-top: 1.4rem; }
.autora-text p.autora-sign {
  margin-top: 1.8rem; font-family: "Alex Brush", var(--serif); font-style: normal;
  font-size: clamp(2.1rem, 5vw, 2.9rem); font-weight: 400;
  color: var(--accent); letter-spacing: 0.02em; line-height: 1;
}
.autora-quote {
  margin: 1.8rem 0; padding-left: 1.3rem;
  border-left: 3px solid var(--gold);
}
.autora-quote p {
  margin-top: 0 !important; font-family: var(--serif); font-size: 1.5rem;
  color: var(--cream); line-height: 1.4;
}
.autora-quote cite {
  display: block; margin-top: 0.6rem; font-style: normal;
  font-size: 0.92rem; letter-spacing: 0.04em; color: var(--cream-3);
}

/* =============================================================
   10b. Lector de capítulos
   ============================================================= */
.reader-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
  padding: 3vh 0;
  background: rgba(20,12,6,0.72);
}
.reader-overlay.is-open { display: flex; }
html.reader-open { overflow: hidden; }
.reader-modal {
  padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  width: min(720px, 92vw); max-height: 88vh; max-height: 88dvh;
  background: var(--bg-3, #fffbf2); color: var(--cream, #5c3a22);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.5);
  transition: width .35s var(--ease-soft), height .35s var(--ease-soft), border-radius .35s var(--ease-soft), max-width .35s var(--ease-soft), max-height .35s var(--ease-soft);
}
.reader-modal:fullscreen,
.reader-modal.is-expanded {
  width: 100vw !important; max-width: 100vw !important;
  height: 100vh !important; height: 100dvh !important;
  max-height: 100vh !important; max-height: 100dvh !important;
  border-radius: 0 !important; inset: 0 !important; margin: 0 !important;
}
.reader-inner {
  display: flex; flex-direction: column; min-height: 0;
  max-height: 88vh; max-height: 88dvh; height: 100%;
}
.reader-modal:fullscreen .reader-inner,
.reader-modal.is-expanded .reader-inner { max-height: 100vh; max-height: 100dvh; }
.reader-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line, rgba(58,42,28,0.14)); flex: 0 0 auto;
}
.reader-tabs { display: flex; gap: 0.5rem; }
.reader-tab {
  font-size: 0.85rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 999px;
  color: var(--cream-3, #9c7a6c); transition: background .3s, color .3s;
}
.reader-tab.is-active { background: linear-gradient(135deg, var(--accent, #a16a56), var(--accent-2, #7a4a3a)); color: var(--bg-3, #fffbf2); }
.reader-head-actions { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.reader-expand,
.reader-close {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; border: 1px solid var(--line, rgba(58,42,28,0.14));
  color: var(--cream, #5c3a22); font-size: 0.9rem; transition: border-color .3s, color .3s;
}
.reader-expand:hover,
.reader-close:hover { border-color: var(--accent, #a16a56); color: var(--accent, #a16a56); }
.reader-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 1.8rem 1.8rem 1rem; flex: 1 1 auto; min-height: 0;
}
.reader-chapter { display: none; max-width: 62ch; margin-inline: auto; }
.reader-chapter.is-active { display: block; }
.reader-chapter h2 { font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--accent, #a16a56); }
.reader-chapter p {
  font-family: var(--serif, "Cormorant Garamond", "Times New Roman", serif); font-size: 1.15rem; line-height: 1.75;
  color: var(--cream-2, #6b4a30); margin-top: 1rem;
}
.reader-chapter p:first-of-type { margin-top: 0; }
.reader-foot {
  flex: 0 0 auto; text-align: center; padding: 1rem 1.3rem 1.3rem;
  font-size: 0.8rem; color: var(--cream-3, #9c7a6c); border-top: 1px solid var(--line, rgba(58,42,28,0.14));
}
.reader-foot em { color: var(--accent, #a16a56); font-style: normal; }
@media (max-width: 539px) {
  .reader-modal { width: 94vw; max-height: 92vh; max-height: 92dvh; }
  .reader-inner { max-height: 92vh; max-height: 92dvh; }
  .reader-chapter p { font-size: 1.05rem; }
}

/* =============================================================
   11. Canal + Crowdfunding
   ============================================================= */
.dual { background: var(--bg); }
.dual-grid { display: grid; gap: 1.6rem; }
@media (min-width: 800px) { .dual-grid { grid-template-columns: 1fr 1fr; } }
.dual-card {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 2.8rem);
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  background: var(--bg-3);
  isolation: isolate;
}
.dual-card::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  filter: blur(90px); opacity: 0.5;
}
.dual-card--canal::before { background: radial-gradient(circle at 30% 20%, var(--cuarzo-red), transparent 65%); }
.dual-card--crowd::before { background: radial-gradient(circle at 70% 20%, var(--cuarzo-purple), transparent 65%); }
.dual-status {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--gold-soft); border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.dual-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--cream); margin-top: 1rem;
}
.dual-card p { margin-top: 0.8rem; color: var(--cream-2); max-width: 42ch; font-size: 0.98rem; }
.dual-card .btn { margin-top: 1.5rem; }

/* =============================================================
   12. Footer
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-top {
  display: grid; gap: 2.4rem;
}
@media (min-width: 780px) { .footer-top { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-logo { width: 40px; }
.footer-word { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); }
.footer-tagline { margin-top: 0.9rem; color: var(--ink-mute); max-width: 42ch; font-size: 0.95rem; }
.footer-links-title { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 1rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 0.6em;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.65rem 1.15rem; font-size: 0.85rem; color: var(--cream-2);
  transition: border-color .3s, color .3s, transform .3s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between;
  font-size: 0.8rem; color: var(--cream-3);
}

/* =============================================================
   13. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; }
}

/* =============================================================
   14. Responsive tune-ups
   ============================================================= */
@media (max-width: 539px) {
  .hero-title { max-width: 11ch; }
  .char-card { width: 78vw; }
}

/* =============================================================
   15. Toast
   ============================================================= */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 10000;
  transform: translate(-50%, 16px);
  width: min(420px, 90vw);
  background: var(--bg-3, #fffbf2); color: var(--cream, #5c3a22);
  border: 1px solid var(--line, rgba(58,42,28,0.14));
  border-radius: 14px; padding: 1rem 1.3rem;
  font-size: 0.92rem; line-height: 1.5; text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .2s linear; }
}
