/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  display: none;
}
.hero-inner {
  display: flex;
  justify-content: flex-end;
}
.hero-content {
  max-width: 620px;
  width: 100%;
}

.hero-content {
  color: var(--color-dark);
  text-align: center;
  padding: 2rem;
  background-color: var(--color-bg-light);
}
.hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.92;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.hero-platforms {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.platform-icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1.6px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.platform-icon-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.platform-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.hero-quote {
  display: none;
}

.hero-quote svg {
  width: 26px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-accent);
}

.contenedor-responsivo {
  display: block;
}

@media (min-width: 570px) {
  .hero {
    position: relative;
    min-height: 640px;
    width: 100%;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 64px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
  }

  .hero-content {
    color: var(--color-white);
    background-color: transparent;
  }

  .hero-title {
    margin-bottom: 28px;
  }

  .hero-quote {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 620px;
    font-size: clamp(15px, 1.5vw, 18px);
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
  }

  .platform-icon-btn {
    width: 44px;
    height: 44px;
  }
  .platform-icon-btn img {
    width: 20px;
    height: 20px;
  }

  .contenedor-responsivo {
    display: none;
  }

  .hero-platforms {
    margin-bottom: 32px;
  }
}

/* ═══════════════════════════════════════════
   SINOPSIS
═══════════════════════════════════════════ */
.sinopsis {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}
.sinopsis-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.sinopsis-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sinopsis-p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--color-gray);
}
.sinopsis-signature {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--color-dark);
}
.sinopsis-image-col {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.sinopsis-image-frame {
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════
   SOBRE EL AUTOR
═══════════════════════════════════════════ */
.autor {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}
.autor-title-javier {
  margin-top: 64px;
}
.autor-card-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.autor-card--light {
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.autor-card--primary {
  background: var(--gradient-brand);
  box-shadow: var(--shadow-card);
}
.autor-card--primary .autor-name,
.autor-card--primary .autor-bio-p {
  color: var(--color-white);
}
.autor-card--primary .autor-bio-p {
  opacity: 0.92;
}

.autor-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.autor-photo-frame {
  border-radius: 50%;
}
.autor-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.autor-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-dark);
}
.autor-bio-p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-gray);
}

/* ═══════════════════════════════════════════
   Grid de capitulos
═══════════════════════════════════════════ */
.capitulos-fv-section {
  padding: 120px 24px;
  background: #ffffff;
}

.capitulos-fv-container {
  max-width: 1200px;
  margin: 0 auto;
}

.capitulos-fv-heading {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #171733;
  margin: 0 0 40px;
}

.capitulos-fv-empty {
  text-align: center;
  color: #555;
}

/* Grid: 3 columnas en escritorio */
.capitulos-fv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

/* ---- Tarjeta ---- */
.capitulo-card {
  display: flex;
  flex-direction: column;
}

.capitulo-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 23, 51, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.capitulo-card__link:hover,
.capitulo-card__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(23, 23, 51, 0.14);
}

.capitulo-card__media {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  background: #5b4bf5;
}

/* Panel morado con el título */
.capitulo-card__overlay {
  position: relative;
  width: 45%;
  flex: 0 0 45%;
  background: linear-gradient(160deg, #5b4bf5, #4a3ce0);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.capitulo-card__title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

/* Imagen del lado derecho */
.capitulo-card__image {
  width: 55%;
  flex: 0 0 55%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.capitulo-card__image--placeholder {
  background: #d8d5f0;
}

/* Badge "PARTE X" */
.capitulo-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  background: #ffffff;
  color: #4a3ce0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}

.capitulo-badge--outline {
  background: #4a3ce0;
  color: #ffffff;
}

/* Texto debajo de la tarjeta */
.capitulo-card__caption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.capitulo-card__caption-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: #171733;
}

.capitulo-card__caption-title a {
  color: inherit;
  text-decoration: none;
}

.capitulo-card__caption-title a:hover {
  text-decoration: underline;
}

/* ---- Tarjeta "Ver todos los capítulos" ---- */
.capitulo-card--all .capitulo-card__link {
  background: #efe9dd;
  box-shadow: none;
}

.capitulo-card__all-link {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.capitulo-card__all-text {
  color: #4a3ce0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.capitulo-card__all-arrow {
  color: #4a3ce0;
  font-size: 1.1rem;
}

/* ---- Responsivo ---- */
@media (max-width: 991px) {
  .capitulos-fv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .capitulos-fv-section {
    padding: 64px 16px;
  }

  .capitulos-fv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .capitulo-card__title {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  /* En pantallas muy pequeñas, la tarjeta pasa de horizontal a vertical */
  .capitulo-card__media {
    flex-direction: column;
    aspect-ratio: auto;
  }

  .capitulo-card__overlay {
    width: 100%;
    flex: 1;
    padding: 18px;
  }

  .capitulo-card__image {
    width: 100%;
    flex: 1;
    aspect-ratio: 16 / 10;
  }

  .capitulo-card__all-link {
    aspect-ratio: 16 / 10;
  }
}

/* ═══════════════════════════════════════════
   PLATAFORMAS DE AUDIO
═══════════════════════════════════════════ */
.plataformas {
  padding: var(--section-pad) 0;
  background: var(--color-bg-light);
}
.plataformas-inner {
  text-align: center;
}
.plataformas-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-dark);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.3;
}
.plataformas-card {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.plataformas-device {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}
.plataformas-device-frame {
  border-radius: var(--radius);
}
.plataformas-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.platform-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  color: var(--color-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 50px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.platform-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}
.platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ═══════════════════════════════════════════
   RESEÑAS
═══════════════════════════════════════════ */
.resenas {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}
.resenas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.resena-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.resena-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.resena-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.star {
  width: 15px;
  height: 15px;
}
.star svg {
  width: 100%;
  height: 100%;
}
.star--filled {
  color: var(--color-accent);
}
.star--empty {
  color: var(--color-gray-light);
}
.resena-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-gray);
}

/* ═══════════════════════════════════════════
   Menu Fuerza de Voluntad
═══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--color-dark) !important;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (min-width: 770px) {
  .navbar {
    position: absolute;
    background-color: transparent !important;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    justify-content: center;
    text-align: center;
  }
  .hero-platforms {
    justify-content: center;
  }
  .hero-quote {
    margin: 0 auto;
    text-align: left;
  }

  .sinopsis-grid {
    grid-template-columns: 1fr;
  }
  .sinopsis-image-col {
    order: -1;
    max-width: 460px;
    margin: 0 auto;
  }

  .capitulos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resenas-grid {
    grid-template-columns: 1fr;
  }

  .plataformas-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .plataformas-device {
    max-width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .autor-card-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .autor-photo {
    max-width: 140px;
    margin: 0 auto;
  }

  .capitulos-grid {
    grid-template-columns: 1fr;
  }
}
