/* Papelería El Compàs — книги под заказ. Общая система — в estilo.css. */
/* ════════════════════ libros por encargo ════════════════════ */
.lib-cab { padding-block: 10px 40px; overflow-x: clip; }
.lib-cab__env { display: grid; gap: 34px; }
.lib-cab__texto { display: grid; gap: 14px; align-content: start; }
.lib-cab__donde { margin-top: 8px; padding: 16px 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(29, 36, 51, .1); max-width: 520px; }
.lib-cab__donde-tit { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.lib-cab__donde li { position: relative; padding-left: 22px; font-size: 15px; color: var(--tinta-2); line-height: 1.5; margin-top: 4px; }
.lib-cab__donde li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--verde); }
.contra-libro { position: relative; justify-self: center; width: min(100%, 360px); height: 360px; }
.contra-libro__creditos {
  position: absolute; left: 0; top: 36px; width: 58%; height: 250px; padding: 26px 18px; display: grid; align-content: start; gap: 10px;
  background: var(--papel); border-radius: 3px; transform: rotate(-7deg); box-shadow: var(--sombra-hoja);
}
.contra-libro__creditos span { height: 6px; border-radius: 3px; background: #d7dce5; }
.contra-libro__creditos span.corta { width: 60%; }
.contra-libro__creditos b { font-size: 12px; font-weight: 700; padding: 2px 4px; margin: 4px -4px; background: var(--amarillo); border-radius: 2px; justify-self: start; }
.contra-libro__tapa { position: absolute; right: 0; top: 0; width: 70%; height: auto; transform: rotate(5deg); filter: drop-shadow(0 22px 24px rgba(29, 36, 51, .3)); }
.contra-libro__nota { position: absolute; right: 30%; bottom: 8px; font-size: 30px; }
.contra-libro__nota svg { transform: rotate(-30deg) translate(-2px, -18px); }
@media (min-width: 1024px) {
  .lib-cab__env { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
  .contra-libro { width: 440px; height: 440px; }
  .contra-libro__creditos { height: 300px; }
}

.enc-sec { padding-bottom: clamp(56px, 7vw, 96px); }
.enc { display: grid; gap: 30px; align-items: start; }
.ficha-bib { position: relative; padding: 26px 16px 24px; border-radius: 6px; background: #fffaf0; box-shadow: var(--sombra-hoja); }
.ficha-bib::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 26px; height: 12px; margin-left: -13px; border-radius: 6px; background: var(--mesa); box-shadow: inset 0 2px 3px rgba(29, 36, 51, .25); }
.ficha-bib__cab { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid rgba(224, 72, 62, .55); }
.libros { display: grid; counter-reset: libro; }
.libro {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 44px; grid-template-areas: "n isbn isbn quitar" ". estado estado estado" ". titulo forro forro";
  gap: 6px 10px; align-items: center; padding: 14px 0 16px; border-bottom: 1px solid var(--raya);
}
.libro__n { grid-area: n; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tinta); color: #fff; font-weight: 700; font-size: 13.5px; }
.libro__isbn { grid-area: isbn; min-width: 0; }
.caja-texto--isbn { font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.libro__estado { grid-area: estado; font-size: 13.5px; font-weight: 600; min-height: 20px; color: var(--tinta-3); }
.libro__titulo { grid-area: titulo; min-width: 0; }
.libro__forro { grid-area: forro; justify-self: start; }
.libro .quitar { grid-area: quitar; }
.libro .quitar:disabled { opacity: .35; cursor: default; }
.libro--bien .caja-texto--isbn { border-color: var(--verde); background: #f4fbf7; }
.libro--bien .libro__estado { color: var(--verde-texto); }
.libro--mal .caja-texto--isbn { border-color: var(--rojo); background: #fff6f5; }
.libro--mal .libro__estado { color: var(--rojo-texto); }
.libro--repe .caja-texto--isbn { border-color: var(--amarillo-osc); background: #fffbea; text-decoration: line-through; text-decoration-color: rgba(29, 36, 51, .4); }
.libro--repe .libro__estado { color: #7a5d00; }
.libro--escribiendo .libro__estado { color: var(--tinta-3); }
@media (min-width: 700px) {
  .libro { grid-template-columns: 28px minmax(0, 1.05fr) minmax(0, 1fr) auto auto; grid-template-areas: "n isbn titulo forro quitar" ". estado estado estado estado"; gap: 6px 12px; padding: 12px 0; }
}
.ficha-bib__acciones { margin-top: 18px; }
.ficha-bib__acciones .btn svg { width: 18px; height: 18px; }
.pegar { margin-top: 18px; border-top: 1px dashed rgba(29, 36, 51, .25); padding-top: 6px; }
.pegar summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--azul); list-style: none; }
.pegar summary::-webkit-details-marker { display: none; }
.pegar summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; border: 2px solid currentColor; font-weight: 700; transition: transform .25s; }
.pegar[open] summary::before { transform: rotate(45deg); }
.pegar .campo { margin-block: 8px 12px; }
.pegar__aviso { font-size: 14px; font-weight: 600; color: var(--verde-texto); margin-top: 10px; }
.pegar__aviso:empty { display: none; }
.resumen--libros .r-bien { color: var(--verde-texto); }
.resumen--libros .r-mal { color: var(--rojo-texto); }
.r-precio { font-size: 13.5px; color: var(--tinta-3); }
.l-motivo {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--r); text-align: left;
  background: var(--rojo-claro); color: var(--rojo-texto); font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.l-motivo[hidden] { display: none; }
.l-motivo-caja:has(.l-motivo[hidden]) { display: none; }
.l-motivo { width: 100%; }
.l-motivo svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.resumen__nota { justify-self: end; margin-top: -2px; }
@media (min-width: 1100px) {
  .enc { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .ficha-bib { padding: 32px 36px 34px; }
  .resumen--libros { position: sticky; top: calc(var(--alto-cab) + 24px); }
}

.ruta-sec__tit { margin-bottom: 30px; }
.ruta { position: relative; display: grid; gap: 18px; counter-reset: ruta; }
.ruta::before { content: ""; position: absolute; left: 30px; top: 30px; bottom: 30px; border-left: 2px dashed rgba(29, 36, 51, .3); }
.ruta__paso { position: relative; display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.ruta__paso svg {
  grid-row: 1 / 3; width: 60px; height: 60px; padding: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--tinta);
  fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ruta__paso b { font-size: 17px; align-self: end; }
.ruta__paso span { font-size: 14.5px; color: var(--tinta-2); align-self: start; }
@media (min-width: 900px) {
  .ruta { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .ruta::before { left: 12%; right: 12%; top: 38px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(29, 36, 51, .3); }
  .ruta__paso { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: center; text-align: center; gap: 6px; }
  .ruta__paso svg { grid-row: auto; width: 76px; height: 76px; padding: 14px; margin-bottom: 8px; }
  .ruta__paso b, .ruta__paso span { align-self: auto; }
}

.forro-sec__env { display: grid; gap: 34px; align-items: center; }
.forro-antes-despues { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 26px 14px; border-radius: 18px; background: #eef6ff; box-shadow: inset 0 0 0 1px rgba(95, 179, 232, .5); }
.forro-antes-despues figure { display: grid; justify-items: center; gap: 6px; }
.forro-antes-despues figure svg { width: 130px; height: 130px; }
.forro-antes-despues figcaption { font-family: var(--caveat); font-weight: 700; font-size: 24px; color: var(--tinta-2); }
.forro-flecha { width: 56px; height: 28px; flex: none; }
.forro-sec__txt { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .forro-sec__env { grid-template-columns: .95fr 1.05fr; gap: 64px; }
  .forro-antes-despues { padding: 40px 24px; }
  .forro-antes-despues figure svg { width: 170px; height: 170px; }
}
