.capitulos-fv-section {
  padding: 64px 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: 40px 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;
  }
}

/* ═══════════════════════════════════════════
   HEADER - SINGLE PAGE
═══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--color-dark) !important;
}

.hero {
  height: 25rem !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: center !important;
}

.hero-subtitle-capitulos {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-title-capitulos {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--color-white);
  margin-bottom: 14px;
  margin-top: 14px;
}

.hero-kicker-capitulos {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
}
