* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,
body {
  width:100%;
  min-height:100%;
  overflow-x:clip;
  font-family:"Montserrat", Arial, sans-serif;
  background:#F8FBFB;
  color:#0B3636;
}

button,
a {
  font:inherit;
}

.libro {
  min-height:100%;
  background:#F8FBFB;
}

.libroHero {
  display:flex;
  width:100%;
  flex-direction:column;
  max-width:1540px;
  margin:0 auto;
  padding:164px 40px 72px;
}

.libroHeroContent {
  width:100%;
  max-width:1550px;
}

.libroHeroContent p {
  color:#4EBBAB;
  font-size:13px;
  line-height:18px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.libroHeroContent h1 {
  margin-top:12px;
  color:#0B3636;
    font-size: 43px;
    line-height: 38px;
    letter-spacing: -3.9224px;
  font-weight:800;
  letter-spacing:0;
}

.libroHeroContent span {
  display:block;
  max-width:520px;
  margin-top:20px;
  color:#315858;
  font-size:18px;
  line-height:28px;
  font-weight:500;
}

.libroContenido {
  width:100%;
  max-width:1540px;
  margin:0 auto;
  padding:0 40px 112px;
}

.libroEstado {
  display:flex;
  width:100%;
  max-width:620px;
  min-height:118px;
  align-items:center;
  padding:28px 32px;
  background:#F1F7F1;
  color:#0B3636;
  border:1px solid #D9E3E0;
  border-radius:17px;
  font-size:16px;
  line-height:24px;
  font-weight:700;
}

.libroEstado[hidden] {
  display:none;
}

.libroGrid {
  display:flex;
  width:100%;
  flex-wrap:wrap;
  align-items:stretch;
  gap:28px;
}

.libroCard {
  display:flex;
  width:calc((100% - 56px) / 3);
  height:auto;
  min-width:0;
  flex:0 1 calc((100% - 56px) / 3);
  flex-direction:column;
  padding:30px;
  background:#F1F7F1;
  color:#0B3636;
  border:1px solid #DDE5E2;
  border-radius:17px;
  box-shadow:0 14px 34px rgba(11,54,54,.09);
  overflow-wrap:anywhere;
}

.libroStars {
  display:flex;
  align-items:center;
  gap:3px;
}

.libroStars img {
  width:18px;
  height:17px;
  object-fit:contain;
}

.libroCard h2 {
  margin-top:18px;
  color:#0B3636;
  font-size:18px;
  line-height:24px;
  font-weight:700;
}

.libroMeta {
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:15px;
  padding-top:15px;
  border-top:1px solid #D9D9D9;
  border-bottom:1px solid #D9D9D9;
  padding-bottom:15px;
}

.libroMeta strong,
.libroMeta span {
  color:#0B3636;
  font-size:14px;
  line-height:19px;
}

.libroMeta strong {
  font-weight:700;
}

.libroMeta span {
  font-weight:500;
}

.libroTexto {
  margin-top:18px;
  color:#0B3636;
  font-size:15px;
  line-height:24px;
  font-style:italic;
  font-weight:500;
  white-space:pre-wrap;
}

.libroFotos {
  display:flex;
  width:100%;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.libroFotoBoton {
  display:block;
  width:calc((100% - 16px) / 3);
  aspect-ratio:1;
  padding:0;
  border:0;
  background:#DCEDEC;
  border-radius:10px;
  cursor:pointer;
  overflow:hidden;
}

.libroFotoBoton img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:10px;
  transition:transform .25s ease;
}

.libroFotoBoton:hover img {
  transform:scale(1.04);
}

.libroPaginacion {
  display:flex;
  width:100%;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:54px;
}

.libroPaginacion[hidden] {
  display:none;
}

.libroPaginacionBoton,
.libroPaginacionPuntos,
.libroPaginacionResumen {
  display:flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  color:#0B3636;
  font-size:14px;
  line-height:18px;
  font-weight:800;
}

.libroPaginacionBoton {
  min-width:44px;
  padding:0 16px;
  border:1px solid #BFD2CE;
  background:transparent;
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}

.libroPaginacionBoton:hover:not(:disabled) {
  transform:translateY(-2px);
  background:#4EBBAB;
  color:#0B3636;
}

.libroPaginacionBoton.is-current {
  background:#0B3636;
  border-color:#0B3636;
  color:#FFFFFF;
}

.libroPaginacionBoton.is-current:hover:not(:disabled) {
  background:#0B3636;
  color:#FFFFFF;
}

.libroPaginacionBoton:disabled {
  cursor:default;
  opacity:.45;
}

.libroPaginacionPuntos {
  min-width:28px;
  color:#4D6A67;
}

.libroPaginacionResumen {
  width:100%;
  min-height:0;
  margin-top:4px;
  color:#4D6A67;
  font-size:13px;
  line-height:18px;
  font-weight:600;
}

.libroModal {
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:26px;
}

.libroModal.is-open {
  display:flex;
}

.libroModalFondo {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.78);
}

.libroModalPanel {
  position:relative;
  display:flex;
  width:100%;
  height:100%;
  max-width:1120px;
  max-height:calc(100% - 52px);
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.libroModalBarra {
  position:absolute;
  top:0;
  right:0;
  z-index:2;
  display:flex;
  gap:8px;
}

.libroModalControl,
.libroModalCerrar {
  display:flex;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.42);
  background:#0B3636;
  color:#FFFFFF;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  font-weight:800;
}

.libroModalCerrar {
  font-size:28px;
}

.libroModalImagenWrap {
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  touch-action:none;
}

.libroModalImagenWrap img {
  display:block;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transform-origin:center center;
}

@media(max-width:1100px) {
  .libroHero {
    max-width:860px;
    padding:146px 34px 62px;
  }

  .libroContenido {
    max-width:860px;
    padding:0 34px 96px;
  }

  .libroCard {
    width:calc((100% - 28px) / 2);
    flex-basis:calc((100% - 28px) / 2);
  }
}

@media(max-width:760px) {
  .libroHero {
    padding:128px 24px 52px;
  }

  .libroHeroContent h1 {
    font-size:42px;
    line-height:46px;
  }

  .libroHeroContent span {
    font-size:15px;
    line-height:24px;
  }

  .libroContenido {
    padding:0 24px 78px;
  }

  .libroGrid {
    gap:18px;
  }

  .libroCard {
    width:100%;
    flex-basis:100%;
    padding:26px 24px;
    border-radius:14px;
  }

  .libroCard h2 {
    font-size:19px;
    line-height:24px;
  }

  .libroFotos {
    gap:8px;
  }

  .libroFotoBoton {
    width:calc((100% - 8px) / 2);
  }

  .libroPaginacion {
    gap:8px;
    margin-top:38px;
  }

  .libroPaginacionBoton,
  .libroPaginacionPuntos {
    min-height:40px;
    min-width:40px;
    padding:0 12px;
    font-size:12px;
    line-height:16px;
  }

  .libroModal {
    padding:14px;
  }

  .libroModalPanel {
    max-height:calc(100% - 28px);
  }

  .libroModalControl,
  .libroModalCerrar {
    width:40px;
    height:40px;
  }
}
