/* ===== Herbario: visor de PDF con lista ===== */
.herb-viewer {
    width: min(1200px, 95vw);
    margin: 0 auto;
    padding: clamp(16px, 3.5vw, 28px) 12px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(14px, 3vw, 28px);
    align-items: start;
}

.herb-col {
    min-width: 0;
}

.herb-list {
    background: #fbfdf8;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    padding: 10px;
    max-height: 70vh;
    overflow: auto;
}

.herb-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.herb-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #173a37;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}

.herb-item:hover {
    background: #f3f8f4;
    transform: translateY(-1px);
}

.herb-item.active {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    border-color: #c8e9df;
}

.herb-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.herb-name {
    font-size: .98rem;
}

.herb-pdf .herb-pdf-wrap {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    min-height: 60vh;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.herb-iframe {
    width: 100%;
    height: 70vh;
    border: 0;
    display: block;
    background: #111;
}

.herb-pdf-empty {
    color: #eaeaea;
    display: grid;
    place-items: center;
    height: 70vh;
    font-size: 1rem;
}


.herbario-desc p {
    margin-bottom: 1em;
    text-align: justify;
}

.herbario-desc {
    max-width: min(1100px, 94vw);
    margin: clamp(16px, 4vw, 32px) auto;
    column-count: 2;
    column-gap: clamp(20px, 4vw, 36px);
    font-size: 1rem;
    line-height: 1.6;
    color: #2b3c3a;
}

.herbario-desc p {
    margin: 0 0 1em;
    text-align: justify;
    break-inside: avoid-column;
}

/* Responsive */
@media (max-width: 920px) {
    .herb-viewer {
        grid-template-columns: 1fr;
    }

    .herb-pdf .herb-pdf-wrap,
    .herb-iframe {
        height: 64vh;
    }
}