/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* dark theme — whole site, same animated background everywhere */
  --bg:        #0a0c14;
  --bg-2:      #0d0f1a;
  --paper:     #14121f;
  --ink:       #f5f4f7;
  --ink-soft:  #d9d7e2;
  --ink-mute:  #9a9aa8;
  --line:      rgba(255, 255, 255, 0.12);

  /* shared accent family — purple / orange (per brief) */
  --accent:    #8a5cd6;   /* purple */
  --accent-2:  #e4772e;   /* orange */
  --accent-soft: rgba(138, 92, 214, 0.16);

  /* hero — dark navy SaaS section (also used as global tone) */
  --hero-bg:    #0a0c14;
  --hero-bg-2:  #0d0f1a;
  --hero-text:  #f5f4f7;
  --hero-mute:  #9a9aa8;
  --hero-purple: #8a5cd6;
  --hero-blue:  #2f6fed;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  position: relative;
}

/* Global ambient backdrop — soft purple/orange drift, fixed behind the
   whole page (hero excluded — it has its own dedicated background,
   see section 6). Purely decorative (z-index -1), never intercepts
   clicks. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  pointer-events: none;
}
body::before {
  top: -20%; left: -15%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(138,92,214,.22), transparent 70%);
  animation: blobDriftA 18s ease-in-out infinite;
}
body::after {
  bottom: -25%; right: -15%;
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, rgba(228,119,46,.16), transparent 70%);
  animation: blobDriftB 16s ease-in-out infinite;
}
@keyframes blobDriftA {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(12vw, 8vh) scale(1.18); }
  66%  { transform: translate(-6vw, 14vh) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blobDriftB {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-10vw, -10vh) scale(1.15); }
  70%  { transform: translate(6vw, -4vh) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: 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; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: "Fraunces", Georgia, serif; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; 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;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-style: italic; font-weight: 500; margin-top: .75rem; color: #fff; }
.section-head p { color: var(--ink-mute); margin-top: 1rem; font-size: 1.05rem; max-width: 56ch; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(138,92,214,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(138,92,214,.65); }

.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-hero-primary {
  background: var(--hero-blue); color: #fff;
  box-shadow: 0 10px 26px -10px rgba(47,111,237,.55);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(47,111,237,.7); }

.btn-hero-ghost {
  background: rgba(255,255,255,.06); color: var(--hero-text); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn-buy {
  background: transparent; color: var(--accent); font-size: .9rem;
  padding: .5rem 0; border-radius: 0;
}
.btn-buy:hover { color: var(--accent-2); gap: .75rem; }

/* =============================================================
   5. Floating pill navbar
   ============================================================= */
.nav-pill {
  position: fixed; top: 1.1rem; left: 50%; transform: translateX(-50%);
  z-index: 500; width: min(96%, 880px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .55rem .6rem .55rem 1.3rem;
  background: rgba(10, 12, 20, 0.72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .3s var(--ease-out);
}
.nav-pill.is-scrolled {
  box-shadow: 0 18px 40px -20px rgba(10,12,20,.55);
  background: rgba(10, 12, 20, 0.88);
}
.nav-logo {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 1.05rem; color: var(--hero-text); letter-spacing: -.01em;
}
.nav-links {
  display: none; align-items: center; gap: 1.6rem; list-style: none;
}
.nav-links a {
  font-size: .88rem; color: var(--hero-mute); font-weight: 500;
  transition: color .25s var(--ease-out);
}
.nav-links a:hover { color: var(--hero-text); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-search-wrap { position: relative; display: none; align-items: center; }
.nav-search {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--hero-mute); transition: color .25s var(--ease-out), background .25s var(--ease-out);
  border: none; background: none; cursor: pointer;
}
.nav-search:hover, .nav-search-wrap.is-open .nav-search { color: var(--hero-text); background: rgba(255,255,255,.08); }
.nav-search-input {
  position: absolute; top: calc(100% + .5rem); right: 0;
  width: 0; opacity: 0; pointer-events: none;
  padding: .55rem .9rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: #0e1120; color: #fff;
  font-family: "Inter", sans-serif; font-size: .85rem;
  outline: none; transition: width .25s var(--ease-out), opacity .2s ease;
}
.nav-search-wrap.is-open .nav-search-input {
  width: 200px; opacity: 1; pointer-events: auto;
}
.nav-cta {
  background: var(--hero-blue); color: #fff; padding: .6rem 1.2rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  box-shadow: 0 8px 20px -8px rgba(47,111,237,.6);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(47,111,237,.75); }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--hero-text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 16px; height: 1.5px; background: currentColor;
  position: relative; transition: transform .25s var(--ease-out), opacity .25s var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

.nav-menu-mobile {
  display: none;
  position: fixed; top: 4.6rem; left: 50%; transform: translateX(-50%);
  width: min(92%, 420px); z-index: 499;
  background: rgba(10,12,20,.96); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md); padding: 1.2rem;
  flex-direction: column; gap: .2rem;
}
.nav-menu-mobile.is-open { display: flex; }
.nav-menu-mobile a {
  padding: .8rem .5rem; color: var(--hero-text); font-size: .95rem; border-radius: var(--radius-sm);
  transition: background .2s var(--ease-out);
}
.nav-menu-mobile a:hover { background: rgba(255,255,255,.06); }

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-search-wrap { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-menu-mobile { display: none !important; }
}

/* =============================================================
   6. Hero — cinematic video background (SaaS aesthetic, per brief).
   Self-contained: opaque background so the global ambient blobs
   (section 2) never bleed into it — this section keeps its own look.
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  background: var(--hero-bg);
  color: var(--hero-text);
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
  padding-top: 6rem;
  isolation: isolate;
}
.hero-bg-tint {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 45% at 20% 8%, rgba(47,111,237,.12), transparent 60%);
}

/* Sunburst background — our own generated loop (Ken Burns front-to-back
   dolly zoom, cinematic color grade + vignette baked in), cropped from
   the reference's ray/glow art only (no logo or copy). Scaled up and
   anchored low so the rays visually fill the whole hero, not just a
   strip near the bottom. */
.hero-sunburst {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
  --mx: 0px; --my: 0px;
}
.hero-sunburst-parallax {
  position: absolute; inset: 0;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease-out);
}
.hero-sunburst-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 80%;
  transform: scale(1.35);
  transform-origin: center 80%;
}
.hero-sunburst::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(138,92,214,.22), transparent 70%),
    radial-gradient(120% 90% at 50% 42%, transparent 45%, rgba(10,12,20,.55) 100%);
  filter: blur(50px);
  animation: sunburstPulse 7s ease-in-out infinite reverse;
}
@keyframes sunburstPulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sunburst-parallax { transition: none; }
}
.hero-grain {
  display: none;
}
.hero-particles {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.hero-particle {
  position: absolute; bottom: -10px; left: 0;
  width: var(--size, 3px); height: var(--size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,150,.9), rgba(255,180,90,0));
  opacity: 0;
  animation: heroParticleRise var(--dur, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes heroParticleRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: .8; }
  90%  { opacity: .25; }
  100% { transform: translateY(-115vh) translateX(var(--drift, 20px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none; }
}
.hero-cursor-glow {
  position: absolute; z-index: 1;
  left: 0; top: 0;
  width: 380px; height: 380px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,90,.13), rgba(138,92,214,.06) 45%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  filter: blur(10px);
}
.hero:hover .hero-cursor-glow { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .hero-cursor-glow { display: none; }
}
/* Cinematic letterbox bars — widescreen film-frame feel */
.hero-letterbox-top,
.hero-letterbox-bottom {
  position: absolute; left: 0; right: 0; z-index: 3;
  height: clamp(14px, 2.6vw, 32px);
  background: #000;
  pointer-events: none;
}
.hero-letterbox-top { top: 0; }
.hero-letterbox-bottom { bottom: 0; }
.hero-inner {
  position: relative; z-index: 2;
  max-width: 760px; margin-inline: auto; text-align: center;
  padding-inline: 1.5rem; padding-block: 4rem 6rem;
}
.hero .eyebrow { color: var(--hero-purple); justify-content: center; }
.hero .eyebrow::before { background: var(--accent-2); }
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem); font-weight: 500; font-style: italic; color: #fff;
  letter-spacing: -0.005em; line-height: 1.12;
  margin-top: 1.1rem; max-width: 17ch; margin-inline: auto;
}
.hero-title-accent {
  background: linear-gradient(90deg, #ff9d5c, #e63946, #8a5cd6, #2f6fed, #ff9d5c);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: heroAccentShift 6s linear infinite;
}
@keyframes heroAccentShift { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-title-accent { animation: none; background-position: 0 0; }
}
.hero-sub {
  color: var(--hero-mute); font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-top: 1.3rem; max-width: 46ch; margin-inline: auto; font-family: "Inter", sans-serif;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem;
  margin-top: 2.2rem;
}
.hero-stats {
  display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 3.2rem);
  margin-top: 3.4rem; padding-top: 2.2rem;
}
.hero-stat { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-stat strong {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  min-height: 2.1rem; line-height: 1;
  font-family: "Fraunces", serif; font-size: 1.8rem; color: #fff; font-style: italic;
}
.hero-stat-suffix { font-size: 1.8rem; font-style: italic; }
.hero-star {
  width: .85em; height: .85em; flex-shrink: 0;
  color: var(--accent-2);
}
.hero-stat-label {
  display: block; font-size: .78rem; color: var(--hero-mute);
  margin-top: .2rem; letter-spacing: .04em;
}

/* =============================================================
   7. Sections — soft ambient background throughout
   ============================================================= */

/* --- About --- */
.about {
  position: relative;
  background: transparent;
}
.about-grid {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 2.2rem; max-width: 1120px; margin-inline: auto; text-align: center;
}
.about-photo-wrap { position: relative; width: 100%; max-width: 1020px; }
.about-photo {
  position: relative; border-radius: var(--radius-lg); overflow: clip;
  aspect-ratio: 1.835;
  box-shadow: 0 0 0 3px var(--bg), 0 0 34px 10px var(--bg);
}
.about-photo img { width: 100%; height: 100%; object-fit: contain; background: var(--hero-bg); }
/* Paints the page background color over the outer edge of the photo,
   fading inward to transparent — this draws directly on top of the
   image (not a mask), so the blended edge is guaranteed to render
   regardless of mask-image support. */
.about-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 78% 78% at 50% 50%, transparent 52%, var(--bg) 100%);
  pointer-events: none;
}
.about-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(138,92,214,.22), transparent 55%);
  pointer-events: none;
}
/* Continuous red marquee sweep over the name already baked into the
   photo (same bounding box used before: x 36.2%-94.7%, y 32.9%-56.5%).
   mix-blend-mode: color only shifts hue on bright pixels (the white
   neon letters), leaving the dark background untouched — nothing in
   the photo is redrawn, just tinted as the band passes over it. */
.about-name-colorwave {
  position: absolute; z-index: 1;
  left: 36.2%; top: 32.9%;
  width: 58.5%; height: 23.6%;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: color;
}
.about-name-colorwave::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: -45%; width: 45%;
  background: linear-gradient(90deg, transparent, #ff2020, #ff2020, transparent);
  animation: nameColorSweep 2.8s linear infinite;
}
@keyframes nameColorSweep {
  from { left: -45%; }
  to   { left: 100%; }
}
/* Lamp bulb (baked into the photo, near the right edge) flashes red
   the instant the marquee band reaches the end of its run — same
   mix-blend-mode: color trick, synced to the same 2.8s loop so both
   read as one continuous motion. */
.about-lamp-flash {
  position: absolute; z-index: 1;
  left: 92.5%; top: 54.5%;
  width: 4%; height: 10%;
  pointer-events: none;
  mix-blend-mode: color;
  background: #ff2020;
  opacity: 0;
  animation: bulbRedFlash 2.8s linear infinite;
}
@keyframes bulbRedFlash {
  0%, 60% { opacity: 0; }
  69% { opacity: .95; }
  80% { opacity: .95; }
  92%, 100% { opacity: 0; }
}
/* Sasha's biography — elegant italic serif, with a soft warm
   candle-light halo that tracks the cursor (JS updates the glow's
   left/top to the pointer position; CSS just paints it). */
.about-bio {
  position: relative;
  max-width: 62ch;
  margin: 2.6rem auto 0;
  padding: 1.6rem 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.about-bio-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,196,120,.18), rgba(255,160,70,.07) 45%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 0;
}
.about-bio.is-glowing .about-bio-glow { opacity: .65; }
.about-bio-text {
  position: relative; z-index: 1;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--ink-soft);
  text-align: center;
}

/* --- Books --- */
.books { background: transparent; }
.books-grid {
  display: grid; gap: 2.6rem 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px)  { .books-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .books-grid { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; } }

/* Tarjeta de libro — estilo tarjeta oscura, badge tipo pastilla,
   titulo blanco, boton degradado morado-naranja. Borde tricolor
   (rojo / verde / azul) siempre visible; al pasar el mouse se agranda
   ligeramente y los colores giran como marquesina — solo la tarjeta
   sobre la que esta el cursor se anima, las demas quedan estaticas. */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.book-card {
  --angle: 0deg;
  position: relative;
  display: flex; flex-direction: column; gap: .9rem;
  border-radius: var(--radius-md);
  border: 4px solid transparent;
  padding: 1.3rem;
  background:
    linear-gradient(165deg, #14121f 0%, var(--hero-bg-2) 100%) padding-box,
    conic-gradient(from var(--angle),
      #e63946 0deg 120deg,
      #2ecc71 120deg 240deg,
      #2f6fed 240deg 360deg) border-box;
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.6);
  opacity: 1; transform: none;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .2s ease;
}
.book-card:hover {
  transform: scale(1.025);
  box-shadow: 0 30px 60px -26px rgba(0,0,0,.7);
  animation: borderMarquee 2.2s linear infinite;
}
.book-card.is-search-hidden { display: none; }
@keyframes borderMarquee {
  to { --angle: 360deg; }
}

.book-badge {
  align-self: flex-start;
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--hero-mute);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  padding: .32rem .75rem; border-radius: 999px;
}
.book-cover-slot {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm);
  border: 1.5px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
}
.book-cover-slot.has-image {
  aspect-ratio: 2 / 3;
  border: none;
  background: none;
  overflow: hidden;
}
.book-cover-slot.has-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  border-radius: var(--radius-sm);
  display: block;
}
.book-info h4 {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: 1.15rem; color: #fff;
}
.book-info p { color: var(--hero-mute); margin-top: .1rem; font-size: .9rem; }
.book-info .btn-buy {
  align-self: flex-start; margin-top: .3rem;
  background: linear-gradient(90deg, var(--hero-blue), var(--accent));
  color: #fff; padding: .65rem 1.2rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.book-info .btn-buy:hover { transform: translateY(-2px); color: #fff; gap: .5rem; }
.btn-excerpt {
  align-self: flex-start; margin-top: .5rem;
  background: transparent; border: 1.5px solid rgba(255,255,255,.2);
  color: var(--hero-mute); padding: .6rem 1.1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.btn-excerpt:hover { border-color: var(--accent-2); color: #fff; }

/* Excerpt modal */
.excerpt-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.excerpt-modal.is-open { opacity: 1; pointer-events: auto; }
.excerpt-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,6,12,.72); backdrop-filter: blur(4px);
}
.excerpt-modal-panel {
  position: relative; z-index: 1;
  max-width: 560px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  background: linear-gradient(165deg, #14121f 0%, var(--hero-bg-2) 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  transform: translateY(16px) scale(.98); opacity: 0;
  transition: transform .35s var(--ease-out), opacity .35s ease;
}
.excerpt-modal.is-open .excerpt-modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.excerpt-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none; color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.excerpt-modal-eyebrow {
  color: var(--accent-2); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700;
}
.excerpt-modal-panel h3 {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.7rem); color: #fff; margin-top: .5rem;
}
.excerpt-modal-text {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  color: var(--ink-soft); line-height: 1.75; margin-top: 1.3rem;
  font-size: 1.02rem;
}
@media (prefers-reduced-motion: reduce) {
  .excerpt-modal, .excerpt-modal-panel { transition: none; }
}

/* --- Audiolibros — efecto "lampara" al hacer scroll, dos haces de
   luz convergiendo hacia una linea de brillo detras del titulo --- */
.audiobooks { background: transparent; padding-top: 0; }
.lamp-wrap {
  position: relative; overflow: hidden;
  padding-block: 15rem 2.4rem;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(47,111,237,.2), transparent 70%);
}
.lamp-effect { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.lamp-beam {
  position: absolute; top: 0; width: 50%; height: 210px;
  opacity: 0; filter: blur(1.5px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.lamp-beam-left {
  right: 50%; transform-origin: top right; transform: scaleX(.25);
  background: conic-gradient(from -40deg at right top, transparent, rgba(64,140,255,.85), transparent 60%);
  clip-path: polygon(100% 0, 0 0, 40% 100%, 100% 100%);
}
.lamp-beam-right {
  left: 50%; transform-origin: top left; transform: scaleX(.25);
  background: conic-gradient(from 220deg at left top, transparent, rgba(64,140,255,.85), transparent 60%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%);
}
.lamp-flood {
  position: absolute; top: 90px; left: 50%; translate: -50% 0;
  width: 70%; height: 260px; border-radius: 50%;
  background: radial-gradient(ellipse at top, rgba(64,140,255,.55), rgba(64,140,255,.12) 55%, transparent 75%);
  opacity: 0; filter: blur(10px);
  transition: opacity 1.1s ease .15s;
}
.lamp-glow-line {
  position: absolute; top: 210px; left: 50%; translate: -50% 0;
  width: 12%; height: 3px; border-radius: 999px;
  background: #cfe4ff;
  box-shadow: 0 0 30px 6px rgba(64,140,255,1), 0 0 110px 34px rgba(64,140,255,.6);
  opacity: 0;
  transition: opacity 1s ease .3s, width 1.1s var(--ease-out) .3s;
}
.lamp-glow-orb {
  position: absolute; top: 50px; left: 50%; translate: -50% 0;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,140,255,.55), transparent 70%);
  opacity: 0; filter: blur(22px);
  transition: opacity 1.2s ease .2s;
}
.lamp-wrap.is-revealed .lamp-beam { opacity: 1; transform: scaleX(1); }
.lamp-wrap.is-revealed .lamp-flood { opacity: 1; }
.lamp-wrap.is-revealed .lamp-glow-line { opacity: 1; width: 30%; }
.lamp-wrap.is-revealed .lamp-glow-orb { opacity: 1; }

.lamp-heading {
  position: relative; z-index: 2; text-align: center;
  margin-inline: auto; margin-top: 1.6rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease-out) .35s, transform .9s var(--ease-out) .35s;
}
.lamp-wrap.is-revealed .lamp-heading { opacity: 1; transform: none; }
.lamp-heading .eyebrow { justify-content: center; color: var(--hero-blue); }
.lamp-heading .eyebrow::before { background: var(--hero-blue); }
.lamp-heading h2 { margin-top: .5rem; text-shadow: 0 0 30px rgba(47,111,237,.4); }
.lamp-heading p { color: var(--hero-mute); margin-top: .7rem; max-width: 480px; margin-inline: auto; }

.audiobooks-grid {
  display: grid; gap: 1.6rem; grid-template-columns: 1fr;
  margin-top: 2.4rem;
}
@media (min-width: 720px) { .audiobooks-grid { grid-template-columns: repeat(3, 1fr); } }
.audiobook-card {
  display: flex; gap: 1rem; align-items: center;
  background: linear-gradient(165deg, #14121f 0%, var(--hero-bg-2) 100%);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md);
  padding: 1rem; box-shadow: 0 20px 44px -26px rgba(0,0,0,.6);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.audiobook-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -22px rgba(0,0,0,.7); }
.audiobook-cover { width: 72px; height: 108px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; }
.audiobook-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audiobook-info h4 {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: 1rem; color: #fff;
}
.audiobook-info p { color: var(--hero-mute); font-size: .85rem; margin-top: .2rem; }
.audiobook-info .btn-buy {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem;
  background: linear-gradient(90deg, var(--hero-blue), var(--accent));
  color: #fff; padding: .5rem .9rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  transition: transform .3s var(--ease-out), gap .3s var(--ease-out);
}
.audiobook-info .btn-buy:hover { transform: translateY(-2px); gap: .55rem; }

@media (prefers-reduced-motion: reduce) {
  .lamp-beam, .lamp-flood, .lamp-glow-line, .lamp-glow-orb, .lamp-heading { transition: none; opacity: 1; transform: none; }
  .lamp-glow-line { width: 30%; }
}

/* --- Reviews --- */
.reviews { background: transparent; }
.reviews-container { margin-bottom: 2.2rem; }

.reviews-marquee {
  overflow-x: hidden; overflow-y: visible;
  padding-block: .7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews-marquee + .reviews-marquee { margin-top: 1.6rem; }
.reviews-track {
  display: flex; gap: 1.6rem; width: max-content;
  animation: reviewsScroll 38s linear infinite;
}
.reviews-track-reverse { animation-name: reviewsScrollReverse; animation-duration: 34s; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }

.review-card {
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, #14121f 0%, var(--hero-bg-2) 100%);
  border-radius: var(--radius-md); padding: 1.7rem;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 44px -26px rgba(0,0,0,.6);
  width: min(340px, 78vw); flex: 0 0 auto;
  cursor: pointer; transform: scale(1); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.review-card.is-active {
  transform: scale(1.08); position: relative; z-index: 5;
  box-shadow: 0 26px 54px -22px rgba(0,0,0,.75);
}
.review-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(230,184,119,.5); margin-bottom: 1rem;
}
.review-card blockquote {
  font-family: "Fraunces", serif; font-style: italic; font-size: 1.08rem; line-height: 1.45;
  color: #fff; margin: 0; flex: 1;
}
.review-card figcaption {
  margin-top: 1.1rem; font-size: .82rem; color: var(--accent-2); font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  display: flex; align-items: baseline; gap: .5rem;
}
.review-card .review-role {
  color: rgba(255,255,255,.45); font-weight: 400; text-transform: none; letter-spacing: 0;
}

@keyframes reviewsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes reviewsScrollReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; }
}

/* =============================================================
   7b. Newsletter
   ============================================================= */
.newsletter-inner {
  max-width: 640px; margin-inline: auto; text-align: center;
}
.newsletter-inner .eyebrow { justify-content: center; color: var(--hero-purple); }
.newsletter-inner .eyebrow::before { background: var(--accent-2); }
.newsletter-inner h2 { margin-top: .6rem; }
.newsletter-sub {
  color: var(--hero-mute); margin-top: .9rem; font-size: 1.02rem;
}
.newsletter-form {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-top: 1.8rem;
}
.newsletter-input {
  flex: 1 1 260px; max-width: 340px;
  padding: .85rem 1.2rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04); color: #fff;
  font-family: "Inter", sans-serif; font-size: .95rem;
  outline: none; transition: border-color .25s ease;
}
.newsletter-input::placeholder { color: var(--hero-mute); }
.newsletter-input:focus { border-color: var(--accent-2); }
.newsletter-submit { border: none; cursor: pointer; }

.newsletter-form-full {
  flex-direction: column; align-items: stretch;
  max-width: 340px; margin-inline: auto; margin-top: 1.8rem;
}
.newsletter-form-full .newsletter-input { max-width: none; flex: none; }
.newsletter-form-full .newsletter-submit { margin-top: .3rem; }
.newsletter-msg {
  margin-top: 1rem; font-size: .9rem; min-height: 1.2rem;
  color: var(--accent-2); opacity: 0; transition: opacity .3s ease;
}
.newsletter-msg.is-visible { opacity: 1; }

/* =============================================================
   7c. Proximo lanzamiento
   ============================================================= */
.next-release-inner {
  max-width: 620px; margin-inline: auto; text-align: center;
}
.next-release-inner .eyebrow { justify-content: center; color: var(--accent-2); }
.next-release-inner .eyebrow::before { background: var(--hero-purple); }
.next-release-inner h2 { margin-top: .6rem; }
.next-release-sub { color: var(--hero-mute); margin-top: .9rem; font-size: 1.02rem; }
.next-release-countdown {
  display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2rem);
  margin-top: 2.2rem;
}
.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 64px; padding: .9rem .6rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
}
.countdown-unit span {
  font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: 1.8rem; color: #fff; line-height: 1;
}
.countdown-unit small {
  margin-top: .35rem; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--hero-mute);
}

/* =============================================================
   8. Footer
   ============================================================= */
.footer {
  background: transparent; color: var(--hero-mute);
  padding-block: 3.5rem 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
  font-family: "Fraunces", serif; font-style: italic; color: #fff; font-size: 1.15rem;
}
.footer-social { display: flex; gap: 1.4rem; }
.social-link {
  font-size: .88rem; color: var(--hero-mute); transition: color .25s var(--ease-out);
  position: relative;
}
.social-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: var(--accent-2); transition: right .3s var(--ease-out);
}
.social-link:hover { color: #fff; }
.social-link:hover::after { right: 0; }
.footer-meta {
  padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* =============================================================
   9. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9998; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 30%, #16130f 0%, #08070a 55%, #000 100%);
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 8s forwards;
}
.splash-sheen {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(220,232,255,.07) 47%,
    rgba(255,255,255,.15) 50%,
    rgba(220,232,255,.07) 53%,
    transparent 70%);
  transform: translateX(-35%);
  animation: splashSheenSweep 3.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
.splash-stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  padding: 0 1.5rem;
}
.splash-name {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  line-height: 2.2; padding-block: .5em;
  font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(2.4rem, 8.4vw, 4.6rem);
}
.splash-letter {
  position: relative; display: inline-block; line-height: 2.2; padding-block: .1em;
  background-image: linear-gradient(180deg, #ffffff 0%, #f2f4f9 55%, #d7dee8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow:
    0 0 10px rgba(255,255,255,.85),
    0 0 26px rgba(255,255,255,.6),
    0 0 52px rgba(210,225,255,.45);
  opacity: 0; transform: translateY(10px) scale(.85);
  animation: splashLetterIn .7s var(--ease-out) forwards;
  animation-delay: calc(.17s * var(--i) + .4s);
}
.splash-letter.splash-space { width: .32em; }
.splash-letter::after {
  content: "\2726"; position: absolute; top: -.1em; right: -.1em;
  font-size: .32em; color: #ffffff; opacity: 0; transform: scale(.3) rotate(0deg);
  animation: splashSparkle .7s ease-out forwards;
  animation-delay: calc(.17s * var(--i) + .48s);
  pointer-events: none;
}
.splash-letter.splash-space::after { content: none; }
.splash-signoff {
  width: clamp(46px, 9vw, 84px); height: auto;
  margin-left: .2em; margin-bottom: .12em;
  opacity: 0; transform: translateY(6px) scale(.8); transform-origin: 70% 90%;
  animation: splashSignoffIn .8s var(--ease-out) forwards;
  animation-delay: 3.3s;
}
.splash-ink-shine {
  opacity: 0;
  animation: splashShineFlicker 1.6s ease-in-out .2s infinite;
  animation-delay: 4s;
}
.splash.is-out { animation: splashOut .5s var(--ease-out) forwards; }
@keyframes splashLetterIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes splashSparkle {
  0% { opacity: 0; transform: scale(.2) rotate(0deg); }
  35% { opacity: 1; transform: scale(1) rotate(15deg); }
  100% { opacity: 0; transform: scale(.3) rotate(30deg); }
}
@keyframes splashSheenSweep {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}
@keyframes splashSignoffIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes splashShineFlicker { 0%, 100% { opacity: .45; } 50% { opacity: .8; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* =============================================================
   10. Responsive niceties
   ============================================================= */
@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* =============================================================
   11. Reduced motion accessibility override
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash { animation-duration: .01s; animation-delay: 0s; }
  .splash-sheen { animation: none; opacity: .3; }
  .splash-letter { animation: none; opacity: 1; transform: none; }
  .splash-letter::after { animation: none; content: none; }
  .splash-signoff { animation: none; opacity: 1; transform: none; }
  .splash-ink-shine { animation: none; opacity: .6; }
  .about-name-colorwave::before { animation: none !important; opacity: 0; }
  .about-lamp-flash { animation: none !important; opacity: 0; }
}
