@charset "UTF-8";
/* Biblioteca de libros */
/* ==================================================
   PÁGINA DE BIBLIOTECA
================================================== */
.page-books {
  min-height: 100vh;
  background: #11100e;
}

.books-page {
  display: grid;
  position: relative;
  min-height: 100vh;
  padding: clamp(4rem, 5vw, 6rem) 3rem 3rem;
  isolation: isolate;
}
.books-page__background, .books-page__veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.books-page__background {
  z-index: -2;
  background: url("../assets/images/home/backhome.jpg") center/cover no-repeat;
}
.books-page__veil {
  z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(9, 8, 7, 0.38), rgba(9, 8, 7, 0.72) 75%), rgba(9, 8, 7, 0.54);
  backdrop-filter: blur(0.12rem);
}
.books-page__quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: min(100rem, 100%);
  margin: 2.6rem auto 0;
  color: #c99a5d;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  font-style: italic;
  text-align: center;
  border: none;
}
.books-page__quote p {
  margin: 0;
}
.books-page__quote span {
  flex: 0 0 auto;
  color: #b98142;
  font-style: normal;
}

/* ==================================================
   CONTENEDOR PRINCIPAL
================================================== */
.books-library {
  width: min(108rem, 100%);
  margin-inline: auto;
  padding: clamp(3rem, 4.5vw, 5rem);
  color: #31271f;
  background: linear-gradient(rgba(249, 246, 238, 0.975), rgba(243, 237, 225, 0.975)), repeating-linear-gradient(35deg, rgba(91, 65, 38, 0.02) 0, rgba(91, 65, 38, 0.02) 0.1rem, transparent 0.1rem, transparent 0.45rem);
  border: 0.1rem solid rgba(185, 149, 98, 0.48);
  border-radius: 1.2rem;
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.5), inset 0 0 5rem rgba(123, 91, 51, 0.07);
}
.books-library__header {
  max-width: 74rem;
  margin: 0 auto 4rem;
  text-align: center;
}
.books-library__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin: 0 0 1rem;
  color: #875b32;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.books-library__eyebrow span {
  width: 3.2rem;
  height: 0.1rem;
  background: linear-gradient(90deg, transparent, #b78349);
}
.books-library__eyebrow span:last-child {
  background: linear-gradient(90deg, #b78349, transparent);
}
.books-library h1 {
  margin: 0;
  color: #2e2118;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
}
.books-library__ornament {
  display: block;
  margin-top: 0.8rem;
  color: #b78349;
  font-size: 1.3rem;
  line-height: 1;
}
.books-library__lead {
  margin: 1.4rem 0 0;
  color: #44372c;
  font-size: clamp(1.45rem, 1.8vw, 1.75rem);
  line-height: 1.55;
}

/* ==================================================
   CARRUSEL Y REJILLA DE LIBROS
================================================== */
.library-carousel {
  position: relative;
  width: 100%;
}
.library-carousel__viewport {
  width: 100%;
  overflow: hidden;
  padding: 2.8rem 0.2rem 1rem;
}
.library-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 1.8rem;
  transition: transform 0.55s ease;
  will-change: transform;
}
.library-carousel__track .book-card {
  flex: 0 0 calc((100% - 3.6rem) / 3);
  min-width: 0;
  height: auto;
}
.library-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  padding: 0;
  color: #f7ead8;
  background: linear-gradient(180deg, #493020, #342116);
  border: 0.1rem solid #b7854e;
  border-radius: 50%;
  box-shadow: 0 0 0 0.4rem #f4eee3, 0 0.4rem 1rem rgba(51, 31, 17, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.library-carousel__arrow span {
  display: block;
  margin-top: -0.25rem;
}
.library-carousel__arrow:hover:not(:disabled) {
  background: linear-gradient(180deg, #5b3a27, #3d2619);
  transform: translateY(-50%) scale(1.08);
}
.library-carousel__arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}
.library-carousel__arrow:focus-visible {
  outline: 0.2rem solid #b77e42;
  outline-offset: 0.3rem;
}
.library-carousel__arrow:disabled {
  opacity: 0.22;
  cursor: default;
}
.library-carousel__arrow--prev {
  left: -2.2rem;
}
.library-carousel__arrow--next {
  right: -2.2rem;
}
.library-carousel__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 2.4rem;
  margin-top: 1.3rem;
}
.library-carousel__dot {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  background: transparent;
  border: 0.1rem solid #a87945;
  border-radius: 50%;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}
.library-carousel__dot--active {
  width: 2.4rem;
  background-color: #6b4329;
  border-radius: 1rem;
}
.library-carousel__dot:focus-visible {
  outline: 0.2rem solid #b77e42;
  outline-offset: 0.2rem;
}

.books-grid {
  display: flex;
  align-items: stretch;
  gap: 1.8rem;
}

/* ==================================================
   TARJETA DEL LIBRO
================================================== */
.book-card {
  display: flex;
  position: relative;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  background: rgba(255, 253, 247, 0.72);
  border: 0.1rem solid rgba(143, 101, 55, 0.3);
  border-radius: 1.1rem;
  isolation: isolate;
  box-shadow: 0 1rem 2.8rem rgba(74, 49, 26, 0.08), inset 0 0 2rem rgba(125, 91, 51, 0.035);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  /* ==================================================
     DISPONIBLE
  ================================================== */
}
.book-card--available {
  border-color: rgba(181, 126, 61, 0.8);
  box-shadow: 0 1.4rem 3rem rgba(74, 49, 26, 0.12), inset 0 0 2rem rgba(125, 91, 51, 0.04);
}
.book-card--available:hover {
  border-color: #c18b4e;
  box-shadow: 0 1.7rem 3.8rem rgba(74, 49, 26, 0.17), inset 0 0 2rem rgba(125, 91, 51, 0.04);
}
.book-card {
  /* ==================================================
     PENDIENTE
  ================================================== */
}
.book-card--pending {
  color: #756a5d;
}
.book-card--pending .book-card__figure img {
  filter: sepia(0.25) grayscale(0.6);
  opacity: 0.58;
}
.book-card--pending .book-card__body {
  opacity: 0.84;
}
.book-card {
  /* ==================================================
     NÚMERO
  ================================================== */
}
.book-card__number {
  display: grid;
  position: absolute;
  top: -2.5rem;
  left: 50%;
  z-index: 3;
  place-items: center;
  width: 5rem;
  height: 5rem;
  color: #f5e5cc;
  background: #4b3221;
  border: 2px solid #c9a875;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f4eee3;
  font-family: var(--font-display);
  font-size: 1.8rem;
  transform: translateX(-50%);
}
.book-card--pending .book-card__number {
  color: #765f46;
  background: #eee4d4;
  border-color: #c8ad87;
  box-shadow: 0 0 0 4px #f4eee3;
}
.book-card {
  /* ==================================================
     CINTA
  ================================================== */
}
.book-card__status-ribbon {
  position: absolute;
  top: 1rem;
  right: -3.3rem;
  z-index: 2;
  width: 12rem;
  padding: 0.45rem 0;
  color: #fff6e8;
  background: #4c3220;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
}
.book-card {
  /* ==================================================
     CANDADO
  ================================================== */
}
.book-card__lock {
  display: grid;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #8a765d;
  background: rgba(248, 242, 232, 0.88);
  border: 0.1rem solid rgba(138, 104, 67, 0.34);
  border-radius: 50%;
  font-size: 1.2rem;
}
.book-card__lock img.lock {
  width: 1.3rem;
  max-width: 1.3rem;
}
.book-card {
  /* ==================================================
     IMAGEN
  ================================================== */
}
.book-card__figure {
  position: relative;
  flex: 0 0 auto;
  height: 18rem;
  margin: 0;
  padding: 0.8rem 0.8rem 0;
  overflow: hidden;
  background: rgb(255, 253, 247);
  border-radius: 1rem 1rem 0 0;
}
.book-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
  transition: transform 450ms ease, filter 200ms ease, opacity 200ms ease;
}
.book-card {
  /* ==================================================
     CUERPO
  ================================================== */
}
.book-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem 2.2rem 2.2rem;
  text-align: center;
}
.book-card {
  /* ==================================================
     PERIODO
  ================================================== */
}
.book-card__period {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.7rem;
  margin: 0;
  color: #9b6c3c;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.book-card {
  /* ==================================================
     TÍTULO
  ================================================== */
}
.book-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 6.4rem;
  margin: 1.1rem 0 0;
  color: #302219;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 2.4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
.book-card {
  /* ==================================================
     ORNAMENTO
  ================================================== */
}
.book-card__ornament {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 10rem;
  margin: 0.8rem auto 0.7rem;
  color: #b37a3f;
  font-size: 1rem;
}
.book-card__ornament::before, .book-card__ornament::after {
  content: "";
  flex: 1;
  height: 0.1rem;
  background: linear-gradient(90deg, transparent, rgba(175, 118, 59, 0.5));
}
.book-card__ornament::after {
  background: linear-gradient(90deg, rgba(175, 118, 59, 0.5), transparent);
}
.book-card {
  /* ==================================================
     DESCRIPCIÓN
  ================================================== */
}
.book-card__description {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 6.5rem;
  margin: 0;
  color: #4b3d31;
  font-size: 1.3rem;
  line-height: 1.55;
  text-wrap: balance;
}
.book-card {
  /* ==================================================
     BLOQUE INFERIOR DE ACCIONES
  ================================================== */
}
.book-card__actions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  /*
  	Este es el punto clave:
  	todo el bloque inferior baja unido al fondo.
  */
  margin-top: auto;
  padding-top: 2.4rem;
}
.book-card {
  /* ==================================================
     BOTONES
  ================================================== */
}
.book-card__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 4.6rem;
  margin: 0;
  padding: 1.15rem 1.4rem;
  color: #f7ead8;
  background: linear-gradient(180deg, #493020, #342116);
  border: 0.1rem solid #a87945;
  border-radius: 0.45rem;
  box-shadow: inset 0 0.1rem rgba(255, 255, 255, 0.1), 0 0.5rem 1.2rem rgba(51, 31, 17, 0.13);
  font-size: 1.3rem;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}
.book-card__action::before {
  content: "";
  position: absolute;
  inset: -0.4rem;
  z-index: 1;
  border: 0.2rem solid #f7ead8;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: inset 0.4s ease, opacity 0.2s ease, border-radius 0.4s ease;
}
.book-card__action:hover::before {
  inset: 0.4rem;
  opacity: 1;
  border-radius: 0.15rem;
}
.book-card__action > * {
  position: relative;
  z-index: 2;
}
.book-card__action:focus-visible {
  outline: 0.2rem solid #b77e42;
  outline-offset: 0.3rem;
}
.book-card__action--disabled {
  color: #948572;
  background: rgba(222, 211, 194, 0.52);
  border-color: rgba(151, 119, 82, 0.18);
  box-shadow: none;
  cursor: not-allowed;
}
.book-card__action--disabled::before {
  display: none;
}
.book-card__action img {
  position: relative;
  z-index: 2;
}
.book-card__action img.librop {
  width: 3rem;
}
.book-card__action img.lockn {
  width: 1.5rem;
}
.book-card__action img.columna {
  width: 2rem;
}
.book-card__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.book-card {
  /* ==================================================
     TEXTO EN PREPARACIÓN
  ================================================== */
}
.book-card__preparation {
  display: flex;
  align-items: center;
  justify-content: center;
  /*
  	Ocupa aproximadamente el mismo espacio
  	vertical que el primer botón de los libros
  	disponibles.
  */
  min-height: 4.6rem;
  margin: 0;
  color: #9c8263;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}

/* ==================================================
   CARACTERÍSTICAS
================================================== */
.books-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.8rem;
  padding: 1.8rem 1.5rem;
  background: rgba(236, 227, 211, 0.46);
  border: 0.1rem solid rgba(141, 101, 55, 0.2);
  border-radius: 0.8rem;
}

.books-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
  padding: 0.2rem 1.6rem;
  border-right: 0.1rem solid rgba(143, 103, 60, 0.2);
}
.books-feature:last-child {
  border-right: 0;
}
.books-feature__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  color: #79532f;
  background: rgba(228, 207, 174, 0.64);
  border: 0.15rem solid #a87945;
  border-radius: 50%;
  font-size: 1.8rem;
}
.books-feature h2 {
  margin: 0;
  color: #433226;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}
.books-feature p {
  margin: 0.35rem 0 0;
  color: #625448;
  font-size: 1rem;
  line-height: 1.4;
}

/* ==================================================
   RESPONSIVE · TABLET
================================================== */
@media (max-width: 1050px) {
  .books-library {
    width: min(92rem, 100%);
  }
  .library-carousel__track .book-card {
    flex-basis: calc((100% - 1.8rem) / 2);
  }
  .library-carousel__arrow--prev {
    left: -1.8rem;
  }
  .library-carousel__arrow--next {
    right: -1.8rem;
  }
  .books-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 0;
  }
  .books-feature:nth-child(2) {
    border-right: 0;
  }
  .books-feature:nth-child(3), .books-feature:nth-child(4) {
    padding-top: 1.6rem;
    border-top: 0.1rem solid rgba(143, 103, 60, 0.2);
  }
}
/* ==================================================
   RESPONSIVE · TABLET PEQUEÑA
================================================== */
@media (max-width: 900px) {
  .books-page {
    padding-top: 7rem;
  }
}
/* ==================================================
   RESPONSIVE · MÓVIL
================================================== */
@media (max-width: 756px) {
  .books-page {
    padding: 6.5rem 1.2rem 2rem;
  }
  .books-page__quote {
    gap: 0.8rem;
  }
  .books-page__quote span {
    display: none;
  }
  .books-library {
    padding: 3rem 1.6rem;
  }
  .books-library__lead br {
    display: none;
  }
  .library-carousel__viewport {
    padding-inline: 0.1rem;
  }
  .library-carousel__track .book-card {
    flex-basis: 100%;
  }
  .library-carousel__arrow {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 2.6rem;
  }
  .library-carousel__arrow--prev {
    left: -1rem;
  }
  .library-carousel__arrow--next {
    right: -1rem;
  }
  .book-card {
    display: flex;
  }
  .book-card__figure {
    height: 18rem;
    min-height: 0;
  }
  .book-card__body {
    align-items: center;
    text-align: center;
  }
  .book-card h2 {
    /*
    	En móvil ya no necesitamos reservar
    	una altura tan rígida.
    */
    min-height: 0;
  }
  .book-card__period {
    min-height: 0;
  }
  .book-card__description {
    min-height: 0;
  }
  .book-card__ornament {
    margin-inline: auto;
  }
  .book-card__actions {
    padding-top: 2rem;
  }
  .books-features {
    grid-template-columns: 1fr;
  }
  .books-feature {
    padding: 1.3rem 0.5rem;
    border-right: 0;
    border-bottom: 0.1rem solid rgba(143, 103, 60, 0.2);
  }
  .books-feature:nth-child(3), .books-feature:nth-child(4) {
    padding-top: 1.3rem;
    border-top: 0;
  }
  .books-feature:last-child {
    border-bottom: 0;
  }
}
/* ==================================================
   REDUCIR MOVIMIENTO
================================================== */
@media (prefers-reduced-motion: reduce) {
  .book-card,
  .book-card__figure img,
  .book-card__action,
  .library-carousel__track,
  .library-carousel__arrow,
  .library-carousel__dot {
    transition: none;
  }
}

/*# sourceMappingURL=libros.css.map */
