/* ── Biblioteca Virtual — Frontend CSS ── */

.gb-biblioteca { width: 100%; font-family: 'DM Sans', sans-serif; font-weight: 300; }

.gb-bib-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ── Card base ── */
.gb-bib-card {
    background: #ffffff;
    border: 1px solid rgba(201, 84, 35, .14);
    border-radius: 18px;
    padding: 22px 20px 18px;
    display: flex; flex-direction: column; gap: 10px;
    position: relative; overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none; color: inherit;
    cursor: pointer;
}
.gb-bib-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #C95423, #A3191C);
    opacity: 0; transition: opacity .2s;
}
.gb-bib-card:hover {
    border-color: rgba(201, 84, 35, .30);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(201, 84, 35, .10);
    text-decoration: none; color: inherit;
}
.gb-bib-card:hover::before { opacity: 1; }

/* ── Card top ── */
.gb-bib-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.gb-bib-icon {
    width: 42px; height: 42px; border-radius: 11px;
    background: rgba(201, 84, 35, .08);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background .2s;
}
.gb-bib-icon svg {
    width: 21px; height: 21px; stroke: #C95423; stroke-width: 1.6;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.gb-bib-card:hover .gb-bib-icon { background: rgba(201, 84, 35, .14); }

.gb-bib-icon--pdf { background: rgba(163, 25, 28, .08); }
.gb-bib-icon--pdf svg { stroke: #A3191C; }
.gb-bib-card:hover .gb-bib-icon--pdf { background: rgba(163, 25, 28, .14); }

/* ── Badge ── */
.gb-bib-badge {
    font-size: .64rem; font-weight: 500; letter-spacing: .06em;
    text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
    flex-shrink: 0;
}
.gb-bib-badge--liga { color: #C95423; background: rgba(201, 84, 35, .09); }
.gb-bib-badge--pdf  { color: #A3191C; background: rgba(163, 25, 28, .09); }

/* ── Text ── */
.gb-bib-name {
    font-family: 'Cormorant Garant', serif;
    font-size: 1.1rem; font-weight: 500;
    color: #000000; line-height: 1.25; margin: 0;
}
.gb-bib-desc {
    font-size: .82rem; line-height: 1.55;
    color: #7A6E67; flex: 1; margin: 0;
}

/* ── Footer ── */
.gb-bib-footer {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 6px; margin-top: 4px;
}
.gb-bib-origen {
    display: flex; align-items: center; gap: 5px;
    font-size: .72rem; color: #9E9189; transition: color .18s;
}
.gb-bib-origen svg {
    width: 12px; height: 12px; stroke: currentColor;
    stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}
.gb-bib-card:hover .gb-bib-origen { color: #C95423; }

.gb-bib-lock {
    display: flex; align-items: center; gap: 5px;
    font-size: .72rem; color: #9E9189;
}
.gb-bib-lock svg {
    width: 12px; height: 12px; stroke: currentColor;
    stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}

.gb-bib-btn-ver {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .75rem; font-weight: 500;
    color: #A3191C; background: rgba(163, 25, 28, .09);
    border-radius: 20px; padding: 5px 12px;
    text-decoration: none; transition: background .15s, color .15s;
}
.gb-bib-btn-ver:hover { background: rgba(163, 25, 28, .16); color: #A3191C; text-decoration: none; }
.gb-bib-btn-ver svg {
    width: 13px; height: 13px; stroke: currentColor;
    stroke-width: 1.8; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .gb-bib-grid { grid-template-columns: 1fr; }
    .gb-bib-name { font-size: 1rem; }
}
