/* ==========================================================================
   Biblioteca de Fantasía — venta de un solo producto, tono urgente/persuasivo
   Tema: noche épica — índigo/violeta profundo + dorado mágico
   ========================================================================== */

:root{
  --bg: #120a1f;
  --bg-soft: #180f28;
  --surface: #1e1433;
  --surface-2: #271b42;
  --line: rgba(240,225,255,.10);
  --line-strong: rgba(240,225,255,.20);

  --ink: #f4eeff;
  --ink-dim: #c6b8e8;
  --muted: #8d7cb3;

  --gold: #f0c368;
  --gold-bright: #ffdb92;
  --gold-ink: #241505;

  --violet: #9b5cff;
  --violet-bright: #b98bff;

  --urgent: #ff5c7a;

  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.65);
  --shadow-md: 0 16px 34px -16px rgba(0,0,0,.6);

  --font-display: 'Cinzel', ui-serif, Georgia, serif;
  --font-body: 'Karla', ui-sans-serif, system-ui, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3{ font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: .01em; }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
::selection{ background: var(--gold); color: var(--gold-ink); }

.grain{
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------- */
/* Buttons                                                               */
/* -------------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.7em;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 14px 30px -10px rgba(240,195,104,.55);
  animation: pulse-btn 2.6s ease-in-out infinite;
}
.btn-primary:hover{ box-shadow: 0 18px 38px -10px rgba(240,195,104,.75); }
@keyframes pulse-btn{
  0%, 100%{ box-shadow: 0 14px 30px -10px rgba(240,195,104,.55); }
  50%{ box-shadow: 0 14px 40px -6px rgba(240,195,104,.85); }
}
.btn-lg{ padding: 1.05em 2.2em; font-size: 1.05rem; }
.btn-ghost{
  background: rgba(255,255,255,.04);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover{ border-color: var(--violet-bright); color: var(--violet-bright); }
.btn-scifi{
  background: linear-gradient(180deg, #7fd8ff, #2fa9e8);
  color: #04202e;
  box-shadow: 0 14px 30px -10px rgba(47,169,232,.5);
}
.btn-scifi:hover{ box-shadow: 0 18px 38px -10px rgba(47,169,232,.7); }

/* -------------------------------------------------------------------- */
/* Header                                                                */
/* -------------------------------------------------------------------- */
.site-header{
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(18,10,31,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.brand-sub{ font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-back{
  font-size: .82rem; color: var(--ink-dim); border: 1px solid var(--line-strong);
  padding: 8px 16px; border-radius: 999px; transition: border-color .2s, color .2s;
}
.nav-back:hover{ border-color: var(--violet-bright); color: var(--violet-bright); }

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */
.hero{
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 64px) clamp(50px, 7vw, 90px);
}
.hero-atmosphere{ position: absolute; inset: -10%; z-index: 0; pointer-events: none; }
.blob{ position: absolute; border-radius: 50%; filter: blur(90px); opacity: .38; animation: drift 16s ease-in-out infinite; }
.blob-violet{ width: 480px; height: 480px; background: var(--violet); top: -140px; left: -100px; }
.blob-gold{ width: 380px; height: 380px; background: var(--gold); bottom: -160px; right: -80px; animation-delay: -8s; }
@keyframes drift{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(26px,-20px) scale(1.08); }
}
.hero-inner{ position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }

/* -------------------------------------------------------------------- */
/* Covers band — carrusel horizontal interactivo de portadas            */
/* -------------------------------------------------------------------- */
.covers-band{ padding: clamp(10px, 3vw, 20px) 0 clamp(50px, 7vw, 80px); }
.covers-carousel{
  position: relative;
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.covers-track{
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px clamp(20px, 5vw, 64px) 18px;
  margin: 0 clamp(-20px, -5vw, -64px);
  scrollbar-width: none;
}
.covers-track::-webkit-scrollbar{ display: none; }
.covers-track img{
  flex: 0 0 auto; scroll-snap-align: start;
  width: clamp(108px, 13vw, 150px); height: auto;
  border-radius: 8px; border: 1px solid var(--line-strong);
  box-shadow: 0 12px 24px -14px rgba(0,0,0,.75);
  transition: transform .25s, border-color .25s;
}
.covers-track img:hover{ transform: translateY(-6px); border-color: var(--gold); }
.covers-fade{
  position: absolute; top: 0; bottom: 18px; width: clamp(24px, 6vw, 90px);
  z-index: 2; pointer-events: none;
}
.covers-fade-left{ left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.covers-fade-right{ right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.covers-arrow{
  position: absolute; top: 50%; transform: translateY(-70%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.covers-arrow:hover{ border-color: var(--gold); color: var(--gold-bright); background: var(--surface-2); }
.covers-arrow:active{ transform: translateY(-70%) scale(.92); }
.covers-arrow-prev{ left: -6px; }
.covers-arrow-next{ right: -6px; }

@media (max-width: 640px){
  .covers-arrow{ width: 38px; height: 38px; font-size: 1.2rem; }
  .covers-arrow-prev{ left: 2px; }
  .covers-arrow-next{ right: 2px; }
}

/* -------------------------------------------------------------------- */
/* Proof band — capturas reales de la carpeta de Drive                  */
/* -------------------------------------------------------------------- */
.proof-band{ padding: clamp(40px, 6vw, 70px) 0 clamp(56px, 8vw, 90px); }
.proof-track img{
  width: clamp(240px, 34vw, 380px);
  border-radius: 10px; border: 1px solid var(--line-strong);
}
.proof-track img:hover{ border-color: var(--violet-bright); }

@media (max-width: 640px){
  .proof-track img{ width: min(82vw, 340px); }
}

.badge-urgent{
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(255,92,122,.14); border: 1px solid rgba(255,92,122,.4);
  color: var(--urgent); font-weight: 700; font-size: .8rem;
  padding: .5em 1.1em; border-radius: 999px; margin-bottom: 22px;
}
.hero-title{
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-sub{
  color: var(--ink-dim); font-size: 1.05rem; max-width: 62ch; margin: 0 auto 32px;
}
.hero-sub strong{ color: var(--gold-bright); }

.price-block{
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 22px 40px; margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.price-old{ font-size: .95rem; color: var(--muted); }
.price-old span{ text-decoration: line-through; }
.price-new{ font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 700; color: var(--gold-bright); line-height: 1.1; }
.price-currency{ font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-note{ font-size: .78rem; color: var(--ink-dim); margin-top: 4px; }

.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

.hero-stats{ display: flex; gap: clamp(24px, 5vw, 52px); justify-content: center; flex-wrap: wrap; }
.hero-stats > div{ display: flex; flex-direction: column; }
.hero-stats span{ font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-bright); font-weight: 700; }
.hero-stats small{ color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

/* -------------------------------------------------------------------- */
/* Trust strip                                                          */
/* -------------------------------------------------------------------- */
.trust-strip{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  background: var(--bg-soft); border-block: 1px solid var(--line);
}
.trust-item{
  padding: 16px 28px; font-size: .82rem; color: var(--ink-dim);
  border-right: 1px solid var(--line);
}
.trust-item:last-child{ border-right: none; }

/* -------------------------------------------------------------------- */
/* Sections generic                                                     */
/* -------------------------------------------------------------------- */
.section-head{ max-width: 640px; margin: 0 auto 40px; text-align: center; padding: 0 20px; }
.section-head h2{ font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 8px; }
.eyebrow{ font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.section-sub{ color: var(--ink-dim); margin-top: 12px; font-size: .96rem; }
.testimonial-disclaimer{ font-size: .78rem; opacity: .7; font-style: italic; }

/* -------------------------------------------------------------------- */
/* Includes                                                              */
/* -------------------------------------------------------------------- */
.includes{ padding: clamp(56px, 8vw, 90px) clamp(20px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
.includes-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.include-card{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 26px; text-align: center;
  transition: transform .3s, border-color .3s;
}
.include-card:hover{ transform: translateY(-4px); border-color: var(--violet); }
.include-main{ border-color: var(--gold); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.include-icon{ font-size: 2.4rem; display: block; margin-bottom: 14px; }
.include-card h3{ font-size: 1.1rem; margin-bottom: 10px; }
.include-card h3 span{ color: var(--gold-bright); }
.include-card p{ color: var(--ink-dim); font-size: .88rem; }

/* -------------------------------------------------------------------- */
/* Sagas mosaico                                                        */
/* -------------------------------------------------------------------- */
.sagas-band{ padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
.sagas-grid{ display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.saga-chip{
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 10px 18px; font-size: .86rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, transform .2s, background .2s;
}
.saga-chip:hover{ border-color: var(--gold); transform: translateY(-2px); background: var(--surface-2); }
.saga-chip b{ color: var(--gold-bright); font-weight: 700; }
.saga-chip-more{ border-style: dashed; border-color: var(--gold); color: var(--gold-bright); font-weight: 700; background: none; }
.saga-chip-more:hover{ background: var(--surface-2); }

/* -------------------------------------------------------------------- */
/* CTA outer / final                                                    */
/* -------------------------------------------------------------------- */
.cta-outer{ position: relative; padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px); overflow: hidden; }
.cta-atmosphere{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 50%, rgba(240,195,104,.14), transparent 70%);
}
.cta-band{
  position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px); box-shadow: var(--shadow-lg);
}
.cta-band h2{ font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.cta-band p{ color: var(--ink-dim); margin-bottom: 24px; }
.cta-sub{ margin-top: 14px !important; font-size: .78rem; color: var(--muted); }

.cta-final{ text-align: center; padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px); max-width: 680px; margin: 0 auto; }
.cta-final h2{ font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta-final p{ color: var(--ink-dim); margin-bottom: 26px; }

/* -------------------------------------------------------------------- */
/* Cross-sell: Biblioteca de Ciencia Ficcion                            */
/* -------------------------------------------------------------------- */
.scifi-band{
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px);
  background: var(--bg-soft); border-block: 1px solid var(--line);
}
.scifi-cta{ text-align: center; margin-top: 28px; }

/* -------------------------------------------------------------------- */
/* Testimonials                                                         */
/* -------------------------------------------------------------------- */
.testimonials{ padding: clamp(56px, 8vw, 90px) clamp(20px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
.testimonials-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.t-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.t-stars{ color: var(--gold); font-size: .85rem; margin-bottom: 10px; }
.t-text{ font-size: .87rem; color: var(--ink-dim); line-height: 1.6; margin-bottom: 16px; }
.t-author{ display: flex; align-items: center; gap: 10px; }
.t-avatar{
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: grid; place-items: center; font-weight: 700; color: #1a0f2e; font-size: .85rem;
}
.t-name{ font-size: .82rem; font-weight: 700; }
.t-role{ font-size: .72rem; color: var(--muted); }

/* -------------------------------------------------------------------- */
/* FAQ                                                                   */
/* -------------------------------------------------------------------- */
.faq{ padding: clamp(56px, 8vw, 90px) clamp(20px, 5vw, 64px); max-width: 760px; margin: 0 auto; }
.faq-list{ display: flex; flex-direction: column; gap: 10px; }
.faq-item{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 6px 20px;
}
.faq-item summary{
  padding: 14px 0; cursor: pointer; font-weight: 700; font-size: .95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 400; }
.faq-item[open] summary::after{ content: "–"; }
.faq-item p{ color: var(--ink-dim); font-size: .88rem; padding-bottom: 16px; }

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */
.site-footer{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 30px clamp(20px, 5vw, 64px) 90px;
  border-top: 1px solid var(--line);
  max-width: 1200px; margin: 0 auto;
}
.footer-brand{ display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-sub{ text-transform: none; letter-spacing: 0; font-size: .78rem; }
.footer-contact{
  font-size: .85rem; color: var(--ink-dim); border: 1px solid var(--line-strong);
  padding: 8px 16px; border-radius: 999px; transition: border-color .2s, color .2s;
}
.footer-contact:hover{ border-color: var(--gold); color: var(--gold-bright); }

/* -------------------------------------------------------------------- */
/* Floating CTA                                                         */
/* -------------------------------------------------------------------- */
.floating-cta{
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--gold-ink); font-weight: 800; font-size: .92rem;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(240,195,104,.6);
  animation: pulse-btn 2.6s ease-in-out infinite;
  transition: transform .2s;
}
.floating-cta:hover{ transform: scale(1.06); }

@media (max-width: 480px){
  .floating-cta{ padding: 12px 18px; font-size: .85rem; }
}

/* -------------------------------------------------------------------- */
/* Lightbox — ver portada/captura en grande                            */
/* -------------------------------------------------------------------- */
.covers-track img{ cursor: zoom-in; }

.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 6vw, 64px);
  background: rgba(8,4,16,.92); backdrop-filter: blur(4px);
  cursor: zoom-out;
  animation: lightbox-in .18s ease;
}
.lightbox[hidden]{ display: none; }
@keyframes lightbox-in{ from{ opacity: 0; } to{ opacity: 1; } }
.lightbox img{
  max-width: min(92vw, 1100px); max-height: 88vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.lightbox-close{
  position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 1.1rem; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.lightbox-close:hover{ border-color: var(--gold); color: var(--gold-bright); background: var(--surface-2); transform: scale(1.06); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
