.hero-section {
  

 width: 100%;


    aspect-ratio: 700 / 200;

    background-image: url('imagenes/portadaWebCsrodriguezPeque.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 4rem 1rem;
    color: white;

}

@media (max-width: 668px) {

    .hero-section {
    
        aspect-ratio: 600 / 300;
    	background-image: url('imagenes/portadaWebCsrodriguezPeque.png');
        min-height: 0px;
        padding: 3rem 1rem;
    }
}
        .book-cover {
  
  width: auto;        /* CLAVE: evita estiramiento horizontal */
  max-width: 100%;    /* para no salirse de la card */
  height: auto;       /* mantiene proporción */
  display: block;
  margin: 0 auto;     /* centra la imagen */
}
        .cabeceraTitulo {
			font-size: 2.5em; 
			margin-right: 2em;
        }
              
        .book-cover:hover {
            transform: translateY(-5px);
        }
        
        .author-img {
            border-radius: 50%;
            border: 5px solid white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        footer {
            background-color: #343a40;
            color: white;
        }
        
        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #dc3545;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .quote {
            font-style: italic;
            position: relative;
            padding: 1rem 2rem;
            background-color: #f8f9fa;
            border-left: 4px solid #0d6efd;
        }
        
        .quote::before {
            content: '"';
            font-size: 4rem;
            color: #0d6efd;
            opacity: 0.2;
            position: absolute;
            left: 10px;
            top: 10px;
        }
        
        .quote::after {
            content: '"';
            font-size: 4rem;
            color: #0d6efd;
            opacity: 0.2;
            position: absolute;
            right: 10px;
            bottom: -20px;
        }
     :root {
      --novels-ink: #211c1a;
      --novels-muted: #706762;
      --novels-paper: #f7efe3;
      --novels-paper-light: #fcfaf6;
      --novels-red: #a91b16;
      --novels-red-dark: #74130f;
      --novels-gold: #d9ad65;
      --novels-line: rgba(33, 28, 26, 0.13);
    }       
    .novels-page {
      min-height: 100vh;
      color: var(--novels-ink);
      background: var(--novels-paper-light);
    }

    #novelas #books {
      position: relative;
      padding: clamp(3.5rem, 7vw, 6rem) 0 !important;
      background:
        linear-gradient(rgba(33, 28, 26, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 28, 26, 0.025) 1px, transparent 1px),
        var(--novels-paper) !important;
      background-size: 40px 40px !important;
    }

    #novelas #books::before {
      display: block;
      width: 58px;
      height: 4px;
      margin: 0 auto clamp(2rem, 4vw, 3rem);
      content: "";
      background: var(--novels-red);
      border-radius: 999px;
    }

    #novelas #books > .container > .row {
      max-width: 1040px;
      margin-right: auto;
      margin-left: auto;
      justify-content: center;
    }

    #novelas .book-card {
      height: 100%;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid var(--novels-line);
      border-radius: 1.2rem;
      box-shadow: 0 16px 40px rgba(45, 31, 27, 0.1);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    #novelas .book-card:hover {
      box-shadow: 0 22px 52px rgba(45, 31, 27, 0.17);
      transform: translateY(-5px);
    }

    #novelas .book-card > .book-img-wrapper:first-child {
      display: flex;
      min-height: 465px;
      padding: 1.35rem 1rem 0.9rem;
      overflow: hidden;
      align-items: center;
      justify-content: center;
      font-size: 0;
      background:
        radial-gradient(circle at 70% 20%, rgba(217, 173, 101, 0.15), transparent 29%),
        linear-gradient(145deg, #0d0b0a, #291512);
    }

    #novelas .book-card > .book-img-wrapper:first-child br {
      display: none;
    }

    #novelas .book-card > .book-img-wrapper:first-child img {
      display: block;
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 425px !important;
      padding-top: 0 !important;
      margin: 0 auto;
      object-fit: contain;
      filter: drop-shadow(0 18px 23px rgba(0, 0, 0, 0.36));
      transition: transform 0.3s ease;
    }

    #novelas .book-card:hover > .book-img-wrapper:first-child img {
      transform: translateY(-3px) scale(1.015);
    }

    #novelas .book-card .card-body {
      display: flex;
      min-height: 230px;
      padding: 1.6rem;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.96);
    }

    #novelas .book-card .card-title {
      margin-bottom: 0.9rem;
      font-family: Georgia, "Times New Roman", serif;
      line-height: 1.25;
    }

    #novelas .book-card .card-title span:first-child {
      font-family: Georgia, "Times New Roman", serif;
      letter-spacing: -0.02em;
    }

    #novelas .book-card .card-title span:last-child {
      display: inline-block;
      margin-top: 0.25rem;
      line-height: 1.35;
    }

    #novelas .book-card .card-text {
      color: var(--novels-muted);
      font-size: 0.98rem;
      line-height: 1.7;
    }

    #novelas #books .row > div:nth-child(2) .card-text {
      display: inline-flex;
      align-self: center;
      padding: 0.48rem 0.72rem;
      color: var(--novels-red-dark);
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: #f6dfdc;
      border: 1px solid rgba(169, 27, 22, 0.12);
      border-radius: 999px;
    }

    #novelas .book-card .book-actions {
      margin-top: auto;
      padding-top: 1rem;
    }

    #novelas .book-card .btn-outline-primary {
      min-width: 122px;
      padding: 0.58rem 1.2rem;
      color: #fff;
      font-size: 1rem;
      font-weight: 800;
      background: var(--novels-red);
      border-color: #c44840;
      border-radius: 0.58rem;
      transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }

    #novelas .book-card .btn-outline-primary:hover,
    #novelas .book-card .btn-outline-primary:focus {
      color: var(--novels-ink);
      background: #fff1dc;
      border-color: var(--novels-gold);
      transform: translateY(-2px);
    }

    #novelas .book-img-wrapper:focus-visible,
    #novelas .book-card .btn:focus-visible {
      outline: 3px solid var(--novels-gold);
      outline-offset: 3px;
    }

    @media (max-width: 991.98px) {
      #novelas .book-card > .book-img-wrapper:first-child {
        min-height: 420px;
      }

      #novelas .book-card > .book-img-wrapper:first-child img {
        max-height: 385px !important;
      }
    }

    @media (max-width: 575.98px) {
      #novelas #books {
        padding: 2.5rem 0 !important;
      }

      #novelas #books::before {
        margin-bottom: 2rem;
      }

      #novelas .book-card > .book-img-wrapper:first-child {
        min-height: 365px;
      }

      #novelas .book-card > .book-img-wrapper:first-child img {
        max-height: 335px !important;
      }

      #novelas .book-card .card-body {
        min-height: 215px;
        padding: 1.35rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .novels-page *,
      .novels-page *::before,
      .novels-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
      }
    }        
        
        
        
        
        
.book-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: #fff;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.15);
}

/* Imagen */
.book-img-wrapper {
  display: block;
  overflow: hidden;
}

.book-img-wrapper img {
  transition: transform 0.35s ease;
}

.book-card:hover img {
  transform: scale(1.04);
}

/* Body flexible para alinear botones */
.book-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.book-card .book-actions {
  margin-top: auto;
}

/* Títulos */
.book-card .card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Texto */
.book-card .card-text {
  color: #555;
  font-size: 0.95rem;
}

/* Botones más elegantes */
.book-card .btn {
  border-radius: 999px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}        
        
@media (max-width: 992px) {
    .cabeceraTitulo {
        font-size: 1.8em;
        margin-right: 2em;
    }
}

@media (max-width: 576px) {
    .cabeceraTitulo {
        font-size: 1.5em;
        margin-right: 2em;
    }
}

/* Navegación y pie comunes */
.csro-navbar {
  z-index: 1030;
  background: #151110;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
}

.csro-navbar .navbar-brand {
  flex: 0 0 auto;
  letter-spacing: 0.03em;
}

.csro-navbar > .csro-navbar-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.csro-navbar-content {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.csro-primary-nav {
  flex-direction: row;
  margin-right: auto;
}

@media (min-width: 992px) {
  .csro-primary-nav {
    column-gap: 1.25rem;
  }
}

.csro-navbar .nav-link {
  position: relative;
  margin: 0 0.15rem;
  color: rgba(255, 255, 255, 0.86);
}

.csro-navbar .nav-link:hover,
.csro-navbar .nav-link:focus,
.csro-navbar .nav-link.active {
  color: #fff;
}

.csro-navbar .nav-link::after {
  position: absolute;
  right: 0.5rem;
  bottom: 0.25rem;
  left: 0.5rem;
  height: 2px;
  content: "";
  background: #c84b42;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.csro-navbar .nav-link:hover::after,
.csro-navbar .nav-link:focus::after,
.csro-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.csro-social a {
  display: inline-flex;
  border-radius: 0.55rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.csro-social a:hover,
.csro-social a:focus {
  opacity: 0.82;
  transform: translateY(-2px);
}

.csro-social {
  flex: 0 0 auto;
}

.csro-footer {
  background: #151110;
}

.csro-footer a {
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.2em;
}

.csro-language-selector {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  align-items: center;
  margin-right: 1rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.65rem;
}

.csro-language-link {
  display: inline-flex;
  padding: 0.25rem;
  line-height: 0;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  opacity: 0.68;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.csro-language-link:hover,
.csro-language-link:focus,
.csro-language-link.active {
  border-color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  transform: translateY(-1px);
}

.csro-language-link img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
}

.csro-page-heading {
  padding: 2.25rem 1rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(120deg, #211816, #74130f);
}

.csro-page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

#books > .container > .row {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

#books .book-card > .book-img-wrapper:first-child {
  display: flex;
  min-height: 455px;
  padding: 1.25rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d0b0a, #291512);
}

#books .book-card > .book-img-wrapper:first-child img {
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 18px 23px rgba(0, 0, 0, 0.36));
}

#books .book-subtitle {
  display: inline-block;
  margin-top: 0.3rem;
  color: #706762;
  font-size: 0.88em;
  font-style: italic;
}

/* Blog Microensayos satíricos */
.blog-page {
  --blog-ink: #211c1a;
  --blog-muted: #706862;
  --blog-accent: #a91b16;
  --blog-accent-dark: #7d1511;
  --blog-paper: #f8f1e6;
  --blog-line: rgba(33, 28, 26, 0.14);
  --blog-canvas: #fcfbf9;
  min-height: 100vh;
  color: var(--blog-ink);
  background: var(--blog-canvas);
}

/* Biblioteca: libros publicados capítulo a capítulo */
.chapters-page {
  --blog-ink: #202b32;
  --blog-muted: #6e6a61;
  --blog-accent: #91682f;
  --blog-accent-dark: #60431e;
  --blog-paper: #f4ead7;
  --blog-line: rgba(44, 54, 59, 0.17);
  --blog-canvas: #f7f3ea;
  background:
    linear-gradient(rgba(66, 55, 38, 0.022) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--blog-canvas);
}

.chapters-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 24%, rgba(196, 153, 83, 0.25), transparent 28%),
    radial-gradient(circle at 84% 74%, rgba(115, 137, 147, 0.2), transparent 30%),
    linear-gradient(120deg, #10191f, #273942 62%, #18252c);
}

.chapters-hero::after {
  position: absolute;
  right: -4rem;
  bottom: -8rem;
  width: 25rem;
  height: 18rem;
  content: "";
  border: 1px solid rgba(233, 210, 169, 0.18);
  border-radius: 50% 50% 8% 8%;
  box-shadow: -8rem 0 0 -1px rgba(255, 255, 255, 0.025);
  transform: rotate(-8deg);
}

.chapters-hero > .container {
  position: relative;
  z-index: 1;
}

.chapters-hero .blog-hero__eyebrow {
  color: #e3c68d;
}

.chapters-filter-panel {
  border-top: 4px solid var(--blog-accent);
}

.chapters-page .form-control:focus,
.chapters-page .form-select:focus {
  border-color: var(--blog-accent);
  box-shadow: 0 0 0 0.2rem rgba(145, 104, 47, 0.18);
}

.chapter-card {
  position: relative;
  border-left: 7px solid var(--blog-accent);
  border-radius: 0.35rem 1rem 1rem 0.35rem;
  box-shadow:
    8px 10px 0 -6px #eee4d2,
    11px 13px 0 -7px rgba(87, 69, 43, 0.22),
    0 15px 32px rgba(35, 42, 45, 0.1);
}

.chapter-card .blog-card__media {
  border-bottom: 1px solid rgba(145, 104, 47, 0.22);
}

.chapter-card .blog-card__placeholder {
  color: #63471f;
  background:
    linear-gradient(90deg, rgba(88, 63, 31, 0.1), transparent 9%, transparent 91%, rgba(88, 63, 31, 0.06)),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(88, 63, 31, 0.035) 27px),
    #f7eedf;
}

.chapters-page .blog-badge {
  color: #513918;
  background: #ead7b5;
}

.chapter-book-badge:hover,
.chapter-book-badge:focus {
  color: #fff;
  background: var(--blog-accent-dark);
}

.chapter-progress {
  color: var(--blog-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  letter-spacing: 0.035em;
}

.chapter-detail-page .blog-article__header {
  padding-top: clamp(2rem, 5vw, 3.8rem);
}

.chapter-detail-page .blog-article__body {
  color: #292620;
  font-size: clamp(1.1rem, 2vw, 1.24rem);
  line-height: 1.86;
  background:
    radial-gradient(circle at 15% 12%, rgba(117, 88, 50, 0.05) 0 0.8px, transparent 1px) 0 0 / 17px 19px,
    linear-gradient(90deg, rgba(116, 88, 55, 0.055), transparent 10%, transparent 90%, rgba(116, 88, 55, 0.04)),
    #fffaf0;
  border-color: rgba(111, 82, 42, 0.25);
  box-shadow:
    0 22px 50px rgba(48, 39, 27, 0.16),
    9px 10px 0 -7px #e9deca,
    12px 13px 0 -8px rgba(76, 57, 34, 0.24);
}

/* Composición de novela: apertura sin sangría y resto de párrafos sangrados. */
.chapter-detail-page .blog-article__body p {
  margin-top: 0;
  margin-bottom: 0.6em;
  text-indent: clamp(1.3rem, 3.5vw, 1.9rem);
}

.chapter-detail-page .blog-article__body > p:first-of-type,
.chapter-detail-page .blog-article__body > .novel-paragraph--opening {
  text-indent: 0;
}

.blog-hero {
  padding: clamp(3.5rem, 9vw, 7rem) 1rem;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(115deg, rgba(21, 17, 16, 0.97), rgba(79, 24, 21, 0.9)),
    radial-gradient(circle at 20% 20%, #ba443b, transparent 42%);
}

.blog-hero__eyebrow {
  margin-bottom: 0.65rem;
  color: #efb0aa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 0.98;
}

.blog-hero p {
  max-width: 680px;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.blog-filter-panel {
  position: relative;
  z-index: 2;
  margin-top: -2.2rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: #fff;
  border: 1px solid var(--blog-line);
  border-radius: 1rem;
  box-shadow: 0 14px 36px rgba(33, 28, 26, 0.12);
}

.blog-filter-panel .form-control:focus,
.blog-filter-panel .form-select:focus,
.blog-page .form-control:focus,
.blog-page .form-select:focus {
  border-color: var(--blog-accent);
  box-shadow: 0 0 0 0.2rem rgba(169, 27, 22, 0.15);
}

.btn-blog {
  color: #fff;
  background: var(--blog-accent);
  border-color: var(--blog-accent);
}

.btn-blog:hover,
.btn-blog:focus {
  color: #fff;
  background: var(--blog-accent-dark);
  border-color: var(--blog-accent-dark);
}

.btn-outline-blog {
  color: var(--blog-accent);
  border-color: var(--blog-accent);
}

.btn-outline-blog:hover,
.btn-outline-blog:focus {
  color: #fff;
  background: var(--blog-accent);
  border-color: var(--blog-accent);
}

.blog-tag-check {
  height: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--blog-paper);
  border: 1px solid transparent;
  border-radius: 0.75rem;
}

.blog-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--blog-line);
  border-radius: 1rem;
  box-shadow: 0 7px 22px rgba(33, 28, 26, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  box-shadow: 0 15px 34px rgba(33, 28, 26, 0.14);
  transform: translateY(-5px);
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blog-paper);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.035);
}

.blog-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  color: var(--blog-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  text-align: center;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(169, 27, 22, 0.08), transparent 65%),
    var(--blog-paper);
}

.blog-card__meta,
.blog-article__meta {
  color: var(--blog-muted);
  font-size: 0.88rem;
}

.blog-card__title {
  color: var(--blog-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.18;
}

.blog-card__title:hover {
  color: var(--blog-accent);
}

.blog-badge {
  display: inline-flex;
  padding: 0.32rem 0.65rem;
  color: var(--blog-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  background: #f7dfdc;
  border-radius: 999px;
}

.blog-page .pagination .page-link {
  color: var(--blog-accent);
}

.blog-page .pagination .page-item.active .page-link {
  color: #fff;
  background: var(--blog-accent);
  border-color: var(--blog-accent);
}

.blog-article {
  max-width: 920px;
  margin: 0 auto;
}

.blog-article__header {
  padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem;
  text-align: center;
}

.blog-article__title {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1.04;
}

.blog-article__body {
  position: relative;
  padding: clamp(3rem, 6vw, 4rem) clamp(1.4rem, 5vw, 3.75rem) clamp(2rem, 5vw, 3.75rem);
  overflow-wrap: break-word;
  color: #2b2521;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.8;
  hyphens: auto;
  background:
    radial-gradient(circle at 18% 14%, rgba(117, 88, 50, 0.045) 0 0.8px, transparent 1px) 0 0 / 17px 19px,
    radial-gradient(circle at 72% 63%, rgba(117, 88, 50, 0.03) 0 0.7px, transparent 1px) 0 0 / 23px 21px,
    linear-gradient(90deg, rgba(116, 88, 55, 0.035), transparent 11%, transparent 89%, rgba(116, 88, 55, 0.035)),
    #fffdf7;
  border: 1px solid rgba(91, 70, 45, 0.2);
  border-radius: 0.2rem 0.2rem 0.65rem 0.25rem;
  box-shadow:
    0 18px 42px rgba(48, 35, 24, 0.14),
    0 3px 8px rgba(48, 35, 24, 0.08),
    inset 0 0 24px rgba(110, 82, 48, 0.035);
}

.blog-article__body::before,
.blog-article__body::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: clamp(46px, 7vw, 68px);
  height: clamp(46px, 7vw, 68px);
  content: "";
  pointer-events: none;
}

.blog-article__body::before {
  z-index: 1;
  background: var(--blog-canvas);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.blog-article__body::after {
  z-index: 2;
  background: linear-gradient(135deg, #d7c7ac, #f5ecdc 58%, #c6b294);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  filter: drop-shadow(-4px 5px 4px rgba(59, 43, 28, 0.2));
}

.blog-article__body > :first-child {
  margin-top: 0;
}

.blog-article__body > :last-child {
  margin-bottom: 0;
}

.blog-article__body p {
  margin-bottom: 1.35em;
}

.blog-article__body h2,
.blog-article__body h3 {
  margin-top: 2.2rem;
  font-family: inherit;
}

.blog-article__body img {
  max-width: 100%;
  height: auto;
}

.blog-carousel {
  overflow: hidden;
  background: #161211;
  border-radius: 1rem;
}

.blog-carousel .carousel-item img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

.blog-thumb-row {
  display: flex;
  gap: 0.55rem;
  padding: 0.8rem 0 0;
  overflow-x: auto;
}

.blog-thumb {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 0.45rem;
  cursor: pointer;
  opacity: 0.68;
}

.blog-thumb.active,
.blog-thumb:hover {
  border-color: var(--blog-accent);
  opacity: 1;
}

.blog-info-box {
  padding: 1.25rem;
  background: var(--blog-paper);
  border-left: 4px solid var(--blog-accent);
  border-radius: 0.4rem;
}

.subscription-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  max-width: 1040px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(145, 104, 47, 0.18), transparent 34%),
    linear-gradient(135deg, #fffdf7, #f4ead7);
  border: 1px solid rgba(96, 67, 30, 0.22);
  border-radius: 1.2rem;
  box-shadow: 0 18px 42px rgba(48, 39, 27, 0.13);
}

.chapter-detail-page .subscription-card {
  max-width: 920px;
}

.subscription-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  content: "";
  border: 1px solid rgba(145, 104, 47, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.subscription-card__icon {
  display: grid;
  width: clamp(3.6rem, 8vw, 5rem);
  height: clamp(3.6rem, 8vw, 5rem);
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  background: linear-gradient(145deg, var(--blog-accent), var(--blog-accent-dark));
  border-radius: 50%;
  box-shadow: 0 9px 20px rgba(96, 67, 30, 0.23);
  place-items: center;
}

.subscription-card__content {
  position: relative;
  z-index: 1;
}

.subscription-card__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--blog-accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subscription-card h2 {
  max-width: 790px;
  margin-bottom: 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.12;
}

.subscription-card__intro {
  max-width: 740px;
  margin-bottom: 1.4rem;
  color: var(--blog-muted);
}

.subscription-form {
  padding-top: 0.3rem;
}

.subscription-form .form-label {
  font-weight: 700;
}

.subscription-card__note {
  margin-top: 1rem;
  color: var(--blog-muted);
  font-size: 0.86rem;
}

.blog-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: center;
}

.blog-navigation__next {
  text-align: right;
}

@media (max-width: 991.98px) {
  .csro-navbar {
    position: static !important;
    top: auto;
  }

  .csro-navbar > .csro-navbar-layout {
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .csro-navbar .navbar-brand {
    margin-right: 0;
  }

  .csro-navbar-content {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  .csro-primary-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-right: 0;
  }

  .csro-navbar .nav-link {
    padding: 0.45rem 0.65rem;
    text-align: center;
  }

  .csro-language-selector {
    width: max-content;
    margin: 0 auto;
  }

  .csro-social {
    justify-content: center;
    padding: 0.25rem 0 0.1rem;
  }
}

@media (max-width: 575.98px) {
  .csro-navbar .nav-link {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 575.98px) {
  .subscription-card {
    grid-template-columns: 1fr;
    border-radius: 0.8rem;
  }

  .subscription-card__icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .subscription-form .g-recaptcha {
    width: 304px;
    max-width: 100%;
    transform: scale(0.88);
    transform-origin: left top;
  }

  .blog-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .blog-navigation__back {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }
}
    
    
    
    
    
    
    /* Estilos limitados al índice para no afectar al resto de la web */
    .book-index {
      --index-bg: #f8f1e6;
      --index-ink: #202020;
      --index-muted: #777064;
      --index-accent: #a91b16;

      width: min(100% - 2rem, 980px);
      margin: 3rem auto;
      padding: clamp(1.4rem, 4vw, 3.5rem);
      color: var(--index-ink);
      background: var(--index-bg);
      border: 1px solid rgba(32, 32, 32, 0.12);
      border-radius: 16px;
      box-shadow: 0 14px 40px rgba(32, 25, 15, 0.10);
      font-family: Georgia, "Times New Roman", serif;
    }

    .book-index *,
    .book-index *::before,
    .book-index *::after {
      box-sizing: border-box;
    }

    .book-index__header {
      margin-bottom: clamp(2rem, 5vw, 3.5rem);
      text-align: center;
    }

    .book-index__eyebrow {
      margin: 0 0 0.5rem;
      color: var(--index-accent);
      font: 700 0.78rem/1.2 Arial, sans-serif;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

    .book-index__title {
      margin: 0;
      font-size: clamp(2rem, 6vw, 3.6rem);
      line-height: 1;
      text-transform: uppercase;
    }

    .book-index__subtitle {
      margin: 0.75rem 0 0;
      color: var(--index-muted);
      font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .book-index__section + .book-index__section {
      margin-top: clamp(2rem, 5vw, 3.4rem);
    }

    .book-index__section-title,
    .book-index__row {
      display: grid;
      grid-template-columns: minmax(0, auto) minmax(1.5rem, 1fr) auto;
      align-items: end;
      gap: 0.65rem;
    }

    .book-index__section-title {
      margin: 0 0 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--index-ink);
      font: 700 clamp(1rem, 2.2vw, 1.25rem)/1.3 Arial, sans-serif;
      letter-spacing: 0.035em;
      text-transform: uppercase;
    }

    .book-index__section-name {
      min-width: 0;
    }

    .book-index__roman {
      margin-right: 0.45rem;
      color: var(--index-accent);
    }

    .book-index__list {
      margin: 0;
      padding-left: 2.8rem;
    }

    .book-index__list li {
      margin: 0.55rem 0;
      padding-left: 0.15rem;
    }

    .book-index__list li::marker {
      color: var(--index-accent);
      font-family: Arial, sans-serif;
      font-weight: 700;
    }

    .book-index__row {
      font-size: clamp(0.9rem, 1.8vw, 1.03rem);
      line-height: 1.35;
    }

    .book-index__entry {
      min-width: 0;
    }

    .book-index__leader {
      min-width: 1.5rem;
      border-bottom: 1px dotted var(--index-muted);
      transform: translateY(-0.3em);
    }

    .book-index__page {
      min-width: 2.2ch;
      color: var(--index-muted);
      font-family: Arial, sans-serif;
      font-size: 0.9em;
      font-variant-numeric: tabular-nums;
      text-align: right;
    }

    @media (max-width: 576px) {
      .book-index {
        width: 100%;
        margin: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
      }

      .book-index__section-title,
      .book-index__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
      }

      .book-index__leader {
        display: none;
      }

      .book-index__list {
        padding-left: 2.25rem;
      }
    }

    @media print {
      .book-index {
        width: 100%;
        margin: 0;
        border: 0;
        box-shadow: none;
      }

      .book-index__section {
        break-inside: avoid;
      }
    }
        
        
        
