/* =========================================================
   NOVELA PAGE (cuidado: mantenemos tu fondo tal cual)
   Solo añadimos color/acento y mejoramos legibilidad
   ========================================================= */
body.novela-page .hero::before {
  background: none !important;
}

/* ---------- 0) Variables de color (no tocan fondos) ---------- */
body.novela-page{
  /* tu base */
  background:#07090d;

  /* acentos (solo texto/bordes/links/iconos) */
  --accent:  #7cffdc;   /* menta */
  --accent2: #66a3ff;   /* azul */
  --text-1:  rgba(255,255,255,.92);
  --text-2:  rgba(255,255,255,.78);
  --text-3:  rgba(255,255,255,.62);
}

/* ---------- 1) Fondo continuo (NO TOCAR) ---------- */
body.novela-page::before{
  content:"";
  position: fixed;
  inset: -60px; /* margen para que el blur no recorte */
  background: url("../../assets/img/testimonials-bg.jpg") center 20% / cover no-repeat;
  opacity: .75;
  z-index: -2;
}

/* Overlay oscuro continuo (NO TOCAR) */
body.novela-page::after{
  content:"";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 60%, rgba(0,0,0,.92) 100%);
  z-index: -1;
}

/* ---------- 2) Asegura que main/sections no pintan fondo (NO TOCAR) ---------- */
body.novela-page .main,
body.novela-page main.main section{
  background: transparent !important;
}

.novela-page main.main section{
  background: transparent !important;
  display: block !important;
  padding: 14px 0 !important; /* o 0 si prefieres que todo el espaciado lo haga la card */
}

body.novela-page main.main section{
  overflow: visible !important;
}

/* El hero sí debe conservar su look si lo usas */
.novela-page main.main section.hero{
  padding: 10px 0 !important; /* si lo necesitas */
}

/* ---------- 3) Bloques (misma estructura, solo afinamos color/borde) ---------- */
.novela-page .section-card,
.novela-page .quote-card,
.novela-page .faq details,
.novela-page .cta-band{
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text-1);
}

/* ---------- 4) Tipografía / legibilidad (solo color) ---------- */
.novela-page .book-hero,
.novela-page .book-hero p,
.novela-page p,
.novela-page li{
  color: var(--text-2);
}

.novela-page p.book-hero__subtitle{
  text-indent: 15px;
  margin: 0 0 5px;
}


.novela-page h1,
.novela-page h2,
.novela-page h3{
  color: var(--text-1);
  text-shadow: 0 0 18px rgba(124,255,220,.10);
}

.book-hero__kicker{
  margin-top:20px;
  opacity: .85;
  margin-bottom: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-3);
}

.book-hero__title{
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--text-1);
}

.hero .book-hero p{
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-2);
}

.book-hero p.book-hero__subtitle{
  opacity: .9;
  margin: 0 0 18px;
  color: var(--text-2);
  text-indent: 10px;
}

/* ---------- 5) Links (solo color) ---------- */
.novela-page a{
  color: var(--accent2);
  text-decoration: none;
}
.novela-page a:hover{
  color: rgba(255,255,255,.95);
  text-shadow: 0 0 14px rgba(102,163,255,.22);
}

/* ---------- 6) Tag pills (mantenemos tu fondo; solo borde/icono/texto) ---------- */
.tag-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .25);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
  opacity: .95;
  margin-right: 8px;
  margin-bottom: 8px;

  color: var(--text-2);
  border-color: rgba(124,255,220,.18);
}
.tag-pill i{
  color: rgba(124,255,220,.80);
}




.price{
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin: 6px 0 10px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 0 18px rgba(124,255,220,.12);
  text-align:right;
}

.stars{
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .95;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-3);
}

.stars i{
  margin-right: 2px;
  color: #FF9900 !important;      /* Amazon */
  text-shadow: none;              /* opcional: evita glow verdoso */
}

/* ---------- 8) Botones (NO cambiamos fondos; solo borde/halo/icono/hover) ---------- */
.btn-amazon{
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  text-decoration: none;
  font-weight: 700;

  border-color: rgba(124,255,220,.22);
  box-shadow: 0 0 0 1px rgba(124,255,220,.06), 0 0 22px rgba(124,255,220,.10);
}
.btn-amazon i{
  color: rgba(124,255,220,.90);
}
.btn-amazon:hover{
  filter: brightness(1.08);
  text-decoration: none;
  color: #fff;
}

.btn-secondary{
  width: 100%;
  margin-top: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: .95;

  border-color: rgba(102,163,255,.22);
  box-shadow: 0 0 0 1px rgba(102,163,255,.06), 0 0 22px rgba(102,163,255,.10);
}
.btn-secondary i{
  color: rgba(102,163,255,.88);
}

/* ---------- 9) Section card + título con “subrayado” (solo color, sin tocar fondo) ---------- */
.section-card{
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .25);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
}

.section-title{
  text-align: left;
  padding-bottom: 0px;
  margin: 0 0 12px;
  font-family: var(--sci-font);
  letter-spacing: .3px;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,.95);
}

/* Subrayado/acento visual */
.section-title::after{
  content:"";
  display:block;
  width: 50%;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(124,255,220,.70), rgba(124,255,220,0));
}

/* Bullets con marcador de color */
.bullets{
  margin: 0;
  padding-left: 18px;
  opacity: .95;
  color: var(--text-2);
}
.bullets li::marker{
  color: rgba(124,255,220,.70);
}

/* ---------- 10) Quote card (solo texto) ---------- */
.quote-card{
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .22);
  border-radius: 14px;
  padding: 14px;
  height: 100%;
}

.quote-card p{
  margin: 0 0 10px;
  opacity: .95;
  color: var(--text-2);
  font-style: italic;
  font-size: 0.8rem !important;
}

.quote-card .who{
  opacity: .75;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- 11) FAQ (sin tocar fondos; solo summary/marker) ---------- */
.faq details{
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.faq summary{
  cursor: pointer;
  font-weight: 700;
  color: rgba(255,255,255,.90);
}
.faq summary::marker{
  color: rgba(102,163,255,.85);
}

/* ---------- 12) CTA band (estructura igual; solo texto/acento) ---------- */
.cta-band{
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .35);
  border-radius: 16px;
  padding: 18px;
  margin: 26px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-2);
}

@media (min-width: 992px){
  .cta-band{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-items: center;
  }
}
@media (min-width: 992px){
  .sample-actions .btn-secondary{
    width: auto;          /* anula el 100% */
    flex: 1 1 0;          /* ambos mismo ancho */
    min-width: 260px;     /* opcional: evita que se aplasten */
  }
}

.cta-band-title{
  text-align: left;
  padding-bottom: 0px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 12px;
  font-size: 18px;
  color: rgba(255,255,255,.93);
}


/* Subrayado/acento visual */
.cta-band-title::after{
  content:"";
  display:block;
  width: 50%;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(124,255,220,.70), rgba(124,255,220,0));
}

.encontrar{
  font-size: 0.8rem !important;
}

/* Marco de portada "como en el grid" */
.story-page .cover-box{
  width: min(320px, 100%);
  aspect-ratio: 2 / 3;                 /* formato portada */

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
}

/* La imagen se adapta SIN deformarse */
.story-page .cover-box img{
  width: 100%;
  height: 100%;
  object-fit: contain;                 /* clave: encajar sin recortar */
  display: block;

  border-radius: 12px;
  border: none;
}

@media (max-width: 767px){
  .story-page .cover-box{ margin: 0 auto; } /* en móvil sí centrada */
}
/* FIX: en story-page la portada NO debe comportarse como la img de fondo del hero */
.story-page .hero .cover-box img{
  position: static !important;
  inset: auto !important;
  z-index: auto !important;

  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;

  display: block !important;
}
@media (min-width: 768px){
  .story-page .cover-col{
    display: flex;
    justify-content: flex-start;
  }
}

/* Volver: integrado con el bloque de CTAs */
.story-page .volver{
  margin-top: 10px;
}

/* Link secundario con look de la web */
.story-page .volver .volver-link{
  display: inline-flex;
  align-items: center;
  gap: .55rem;

  font-size: 14px;
  letter-spacing: .2px;

  opacity: .78;
  color: inherit;
  text-decoration: none;

  padding: 8px 12px;
  border-radius: 12px;

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);

  transition: opacity .15s ease, transform .15s ease, border-color .15s ease, background .15s ease;
}

.story-page .volver .volver-link i{
  font-size: 16px;
  opacity: .9;
}

/* Hover: sutil, sin “botón” principal */
.story-page .volver .volver-link:hover{
  opacity: 1;
  transform: translateX(-2px);
  background: rgba(0,0,0,.30);
  border-color: rgba(255,255,255,.18);
}

.story-page .volver .volver-link:focus-visible{
  outline: 2px solid rgba(255,255,255,.20);
  outline-offset: 3px;
}


/***********************************************/

/* =========================
   PODCAST: grid de plataformas
   ========================= */
.escuchar-page .podcast-platforms{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

/* Card base */
.escuchar-page .platform-card{
  --p: #66a3ff; /* color por defecto */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 92px;
  padding: 14px 12px;

  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--p) 38%, rgba(255,255,255,.10));
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 600;

  box-shadow:
    0 10px 18px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 0 22px color-mix(in srgb, var(--p) 18%, transparent);

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.escuchar-page .platform-card i{
  font-size: 24px;
  line-height: 1;
  color: color-mix(in srgb, var(--p) 88%, white 12%);
  opacity: .95;
}

.escuchar-page .platform-card span{
  font-size: 14px;
  letter-spacing: .02em;
}

/* Hover */
.escuchar-page .platform-card:hover{
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 14px 24px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 0 30px color-mix(in srgb, var(--p) 26%, transparent);
}

/* Colores por plataforma */
.escuchar-page .platform-spotify{ --p: #1DB954; }
.escuchar-page .platform-ivoox{ --p: #ff6a00; }
.escuchar-page .platform-apple{ --p: #d6d6d6; }
.escuchar-page .platform-youtube{ --p: #ff0033; }
.escuchar-page .platform-amazon{ --p: #ff9900; }
.escuchar-page .platform-podimo{ --p: #00e5a8; }

/* Responsive */
@media (max-width: 768px){
  .escuchar-page .podcast-platforms{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
}
@media (max-width: 420px){
  .escuchar-page .podcast-platforms{
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}


/**************************/
div.portadaimg {
    margin: 13px 0 0;
}


div.portadaimg div.portada-container {
    width: 100%;
    max-width: 110px;
    margin: 0 auto 12px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.portadaimg div.portada-container img.portada-img{
    all: unset;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Buybox: portada lateral SIN romper el ancho */
.section-card.buybox .buybox-row{
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* evita que el texto se “salga” o se comprima raro */
.section-card.buybox .buybox-content{
  min-width: 0;
}

/* en fila, no uses el centrado auto */
.section-card.buybox .portada-container{
  margin: 0;
}

/* evita que el precio se parta en 3 líneas */
.section-card.buybox .price{
  white-space: nowrap;
  text-align: left; /* opcional, suele verse mejor aquí */
}

/* por si el link de "Ver opiniones" necesita romper */
.section-card.buybox .stars{
  flex-wrap: wrap;
}

/* móvil: portada arriba centrada */
@media (max-width: 576px){
  .section-card.buybox .buybox-row{
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .section-card.buybox .buybox-content{
    width: 100%;
  }
  .section-card.buybox .portada-container{
    margin: 0 auto 12px;
  }
  .section-card.buybox .price{
    text-align: right; /* si quieres mantener el look en móvil */
  }
}
