
.vb-btn .btn,
.singlebutton .btn {
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    border: 1px solid #d2dce8;
    box-shadow: none;
    letter-spacing: .01em;
}
.vb-btn-primary .btn,
.singlebutton.vb-btn-primary .btn {
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    border-color: #1f66c1;
    color: #fff;
}
.vb-btn-secondary .btn,
.singlebutton.vb-btn-secondary .btn {
    background: #fff;
    color: #31475e;
}
.vb-btn-outline .btn,
.singlebutton.vb-btn-outline .btn {
    background: #fff;
    color: #1f66c1;
    border-color: #b9c9df;
}
.vb-btn-full .btn { width: 100%; }

.vb-library-page,
.vb-video-page {
    max-width: 1240px;
    margin: 0 auto;
}
.vb-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dfe8f2;
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(8, 38, 73, 0.06);
}
.vb-hero-breadcrumb,
.vb-video-breadcrumb {
    color: #5d6f83;
    font-size: 14px;
    margin-bottom: 6px;
}
.vb-hero-title,
.vb-video-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f3d73;
    margin: 0 0 12px;
}
.vb-hero-text,
.vb-info-description {
    color: #4d5f75;
    font-size: 15px;
    line-height: 1.6;
}
.vb-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.vb-hero-stat,
.vb-sidecard-line {
    background: #fff;
    border: 1px solid #e4ebf3;
    color: #54677b;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}
.vb-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.vb-hero-side,
.vb-panel {
    background: #fff;
    border: 1px solid #dde7f1;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(8, 38, 73, 0.05);
}
.vb-sidecard-title,
.vb-panel-title,
.vb-section-title,
.vb-subtitle {
    font-size: 17px;
    font-weight: 800;
    color: #253f68;
    margin-bottom: 12px;
}
.vb-hero-progress { margin: 12px 0; }
.vb-library-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.vb-library-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vb-filter-chip {
    border: 1px solid #d8e0ea;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    color: #485d74;
    min-width: 120px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(8,38,73,.04);
}
.videobiblioteca-search {
    min-width: 280px;
    max-width: 360px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
}
.videobiblioteca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}
.videobiblioteca-card {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(8, 38, 73, 0.08);
    display: flex;
    flex-direction: column;
}
.videobiblioteca-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #dce7f4 0%, #eff4f9 100%);
    overflow: hidden;
}
.videobiblioteca-card-thumbimg,
.vb-related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.videobiblioteca-card-thumb-fallback,
.vb-related-thumb-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f4c86 0%, #082649 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px;
}
.vb-fallback-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.vb-fallback-title {
    color: rgba(255,255,255,.92);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    max-width: 75%;
}
.vb-card-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(18, 27, 42, 0.84);
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    padding: 5px 8px;
    font-weight: 700;
}
.vb-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.videobiblioteca-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #203b65;
    min-height: 48px;
}
.videobiblioteca-card-meta,
.videobiblioteca-progresstext,
.vb-empty-note,
.vb-related-meta,
.vb-review-text,
.vb-info-line,
.vb-info-description {
    color: #536579;
    font-size: 14px;
}
.videobiblioteca-progressbar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e6edf5;
    overflow: hidden;
}
.videobiblioteca-progressbar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1f66c1 0%, #35a8d8 100%);
    border-radius: 999px;
}
.videobiblioteca-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}
.videobiblioteca-status.notstarted { background: #eef2f7; color: #5b6977; }
.videobiblioteca-status.inprogress { background: #d9eef9; color: #176898; }
.videobiblioteca-status.completed { background: #e6f7eb; color: #2f7f49; }
.videobiblioteca-empty-state {
    padding: 34px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd7e4;
    border-radius: 16px;
}
.vb-video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(310px, 1fr);
    gap: 24px;
    margin-top: 14px;
}
.vb-player-card {
    background: #0e1420;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(8, 38, 73, 0.18);
}
.vb-player-card iframe {
    display: block;
    width: 100%;
    min-height: 520px;
}
.vb-video-actions-row,
.vb-sidebar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.vb-review-panel { margin-top: 18px; }
.vb-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.vb-related-card {
    background: #fff;
    border: 1px solid #dde7f1;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(8, 38, 73, 0.05);
}
.vb-related-thumbwrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.vb-related-thumb {
    aspect-ratio: 16 / 9;
}
.vb-related-duration {
    right: 10px;
    bottom: 10px;
}
.vb-related-body { padding: 12px; }
.vb-related-title {
    color: #213a64;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}
.vb-attachments {
    margin: 0;
    padding-left: 18px;
}
.vb-attachments li { margin-bottom: 8px; }
.vb-attachments a { color: #2d5fba; text-decoration: none; }
.vb-sidebar-progress { margin-top: 8px; }

@media (max-width: 1100px) {
    .vb-hero-card,
    .vb-video-layout { grid-template-columns: 1fr; }
    .vb-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .vb-library-controls,
    .vb-hero-buttons,
    .vb-video-actions-row,
    .vb-sidebar-buttons { flex-direction: column; align-items: stretch; }
    .vb-related-grid { grid-template-columns: 1fr; }
    .vb-player-card iframe { min-height: 280px; }
    .videobiblioteca-search { min-width: 100%; max-width: none; }
}

.vb-test-toggle {
    width: 100%;
    border: 1px solid #1f66c1;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    box-shadow: 0 8px 18px rgba(31, 102, 193, 0.18);
    cursor: pointer;
}
.vb-test-toggle[aria-expanded="true"] {
    background: linear-gradient(180deg, #1f66c1 0%, #174f98 100%);
}
.vb-test-panel {
    margin-top: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dbe7f4;
    border-radius: 16px;
    padding: 16px;
}
.vb-test-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.vb-test-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(8, 38, 73, 0.05);
}
.vb-test-item:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(8, 38, 73, 0.08);
}
.vb-test-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    color: #fff;
    font-weight: 800;
    flex: 0 0 34px;
}
.vb-test-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.vb-test-item-title {
    color: #203b65;
    font-size: 14px;
    font-weight: 700;
}
.vb-test-item-meta,
.vb-tests-help {
    color: #607287;
    font-size: 12px;
}


.vb-tests-panel {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #d8e2f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(8, 38, 73, .08);
}

.vb-tests-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vb-tests-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #082649;
}

.vb-tests-close {
    border: 1px solid #c9d8ea;
    background: #fff;
    color: #082649;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.vb-tests-list {
    display: grid;
    gap: 12px;
}

.vb-test-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #dbe5f1;
    border-radius: 14px;
    background: #f8fbff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.vb-test-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(29, 90, 174, .10);
    border-color: #8fb3df;
    text-decoration: none;
}

.vb-test-item-title {
    font-weight: 600;
    color: #082649;
}

.vb-test-item-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: #1d5aae;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}


/* Mejora de legibilidad en panel de información */
.vb-sidebar {
    line-height: 1.6;
}

.vb-sidebar h3,
.vb-sidebar h4 {
    margin-top: 18px;
    margin-bottom: 8px;
}

.vb-sidebar p,
.vb-sidebar li {
    margin-bottom: 6px;
}

.vb-sidebar ul {
    margin-top: 6px;
    margin-bottom: 14px;
}

.vb-sidebar .vb-progress {
    margin-top: 10px;
    margin-bottom: 12px;
}

.vb-sidebar .vb-btn {
    margin-top: 10px;
}


/* Sidebar readability improvement */
.vb-sidebar{
    padding:22px 22px 24px 22px;
}

.vb-sidebar h3{
    margin-bottom:14px;
}

.vb-sidebar p{
    margin-bottom:10px;
}

.vb-sidebar .vb-meta{
    margin-bottom:12px;
}

.vb-sidebar ul{
    margin-top:10px;
    margin-bottom:18px;
}

.vb-sidebar li{
    margin-bottom:8px;
}

.vb-sidebar .vb-progress{
    margin-top:14px;
    margin-bottom:18px;
}

.vb-sidebar .vb-btn{
    margin-top:12px;
}




/* Ajuste real de legibilidad del panel lateral */
.vb-video-sidebar {
    padding: 18px 18px 20px;
}

.vb-video-sidebar .vb-panel-title {
    margin: 0 0 14px 0;
}

.vb-video-sidebar .vb-info-line {
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.vb-video-sidebar .vb-subtitle {
    margin: 14px 0 10px 0;
}

.vb-video-sidebar ul {
    margin: 8px 0 16px 18px;
    padding: 0;
}

.vb-video-sidebar li {
    margin: 0 0 10px 0;
    line-height: 1.55;
}

.vb-sidebar-progress {
    margin-top: 14px;
    margin-bottom: 8px;
}

.vb-video-sidebar .vb-progress-note {
    margin: 10px 0 14px 0;
    line-height: 1.5;
}

.vb-sidebar-buttons {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vb-sidebar-buttons form,
.vb-sidebar-buttons .singlebutton {
    margin: 0;
}

.vb-sidebar-buttons .btn,
.vb-sidebar-buttons .vb-test-toggle {
    min-height: 46px;
}

.vb-video-sidebar .vb-test-toggle {
    margin-top: 0;
}


.vb-download-badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e6f7eb;
    color: #2f7f49;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.vb-attachments li.is-downloaded a {
    color: #253f68;
    font-weight: 600;
}

.vb-test-toggle {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #1f66c1;
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
}

.vb-test-toggle.is-locked {
    border-color: #c8d4e4;
    background: #eef3f8;
    color: #66798f;
    cursor: not-allowed;
}

.vb-test-toggle.is-ready {
    border-color: #2f7f49;
    background: #e9f8ee;
    color: #2f7f49;
}

.vb-tests-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 34, .58);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vb-tests-dialog {
    width: min(720px, 100%);
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(8, 38, 73, .28);
}

.vb-tests-modal-intro {
    color: #536579;
    font-size: 14px;
    margin-bottom: 14px;
}

.vb-test-item-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vb-test-item-note {
    color: #6a7b8d;
    font-size: 12px;
}

.vb-next-overlay {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 6;
    min-width: 280px;
    max-width: 360px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(8, 18, 34, .92);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.vb-next-overlay-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.vb-next-overlay-subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,.82);
    margin-bottom: 12px;
}

.vb-next-overlay-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #2c79d6;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

.vb-player-card {
    position: relative;
}

.vb-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(8, 38, 73, 0.10);
}

.vb-video-sidebar .vb-info-description {
    margin-bottom: 12px;
    line-height: 1.7;
}

.vb-video-sidebar .vb-info-line {
    margin-bottom: 9px;
    line-height: 1.55;
}

.vb-video-sidebar .vb-subtitle {
    margin-top: 16px;
    margin-bottom: 10px;
}

.vb-video-sidebar .vb-attachments {
    margin-bottom: 16px;
}

.vb-video-sidebar .vb-attachments li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.vb-video-sidebar .vb-progress-title {
    margin-top: 18px;
}

.vb-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.vb-modal-open {
    overflow: hidden;
}


.videobiblioteca-row-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7785;
}

.videobiblioteca-stats-table td:first-child {
    min-width: 220px;
}


.videobiblioteca-admin-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0 20px;
}

.videobiblioteca-admin-summary-card {
    background: #ffffff;
    border: 1px solid #d7e1ee;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(8, 38, 73, 0.06);
}

.videobiblioteca-admin-summary-label {
    font-size: 13px;
    line-height: 1.35;
    color: #5c6b7d;
    margin-bottom: 8px;
}

.videobiblioteca-admin-summary-value {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: #1f4f94;
}

.videobiblioteca-stats-table td,
.videobiblioteca-stats-table th {
    vertical-align: middle;
}

.videobiblioteca-stats-table td:nth-child(1),
.videobiblioteca-stats-table td:nth-child(2) {
    white-space: nowrap;
}


.videobiblioteca-manage-summary-cards {
    margin: 14px 0 18px;
}

.videobiblioteca-manage-summary-cards .videobiblioteca-admin-summary-card {
    min-height: 92px;
}

.videobiblioteca-stats-table th:nth-child(1),
.videobiblioteca-stats-table td:nth-child(1) {
    min-width: 140px;
}

.videobiblioteca-stats-table th:nth-child(2),
.videobiblioteca-stats-table td:nth-child(2) {
    min-width: 170px;
}

.videobiblioteca-stats-table th:nth-child(3),
.videobiblioteca-stats-table td:nth-child(3) {
    min-width: 220px;
}


.vb-btn-disabled {
    opacity: 1;
    color: #66798f !important;
    background: #eef3f8 !important;
    border-color: #c8d4e4 !important;
    cursor: not-allowed !important;
}

.vb-btn-disabled.is-ready {
    color: #2f7f49 !important;
    background: #e9f8ee !important;
    border-color: #2f7f49 !important;
}


.videobiblioteca-card .vb-btn.vb-btn-primary.vb-btn-full[data-vb-resume-link="1"],
.videobiblioteca-card a.vb-btn.vb-btn-primary.vb-btn-full[data-vb-resume-link="1"],
.videobiblioteca-card a.vb-card-link[data-vb-resume-link="1"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid #1f66c1;
    box-shadow: 0 6px 16px rgba(31, 102, 193, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.videobiblioteca-card a.vb-btn.vb-btn-primary.vb-btn-full[data-vb-resume-link="1"]:hover,
.videobiblioteca-card a.vb-card-link[data-vb-resume-link="1"]:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(31, 102, 193, .22);
}

.videobiblioteca-card a.vb-card-link[data-vb-resume-link="1"] {
    width: fit-content;
    margin-top: 10px;
}


.vb-btn.vb-btn-secondary,
a.vb-btn.vb-btn-secondary,
a[data-vb-back-link="1"].vb-btn.vb-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid #1f66c1;
    box-shadow: 0 6px 16px rgba(31, 102, 193, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

a.vb-btn.vb-btn-secondary:hover,
a[data-vb-back-link="1"].vb-btn.vb-btn-secondary:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(31, 102, 193, .22);
}


/* Unificar botones principales de la cabecera de la biblioteca */
.vb-hero-actions,
.vb-library-actions,
.vb-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.vb-hero-actions .singlebutton,
.vb-library-actions .singlebutton,
.vb-intro-actions .singlebutton {
    margin: 0;
}

.vb-hero-actions a,
.vb-hero-actions .singlebutton input[type="submit"],
.vb-hero-actions .singlebutton button,
.vb-library-actions a,
.vb-library-actions .singlebutton input[type="submit"],
.vb-library-actions .singlebutton button,
.vb-intro-actions a,
.vb-intro-actions .singlebutton input[type="submit"],
.vb-intro-actions .singlebutton button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid #1f66c1;
    box-shadow: 0 6px 16px rgba(31, 102, 193, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.2;
    cursor: pointer;
}

.vb-hero-actions a:hover,
.vb-hero-actions .singlebutton input[type="submit"]:hover,
.vb-hero-actions .singlebutton button:hover,
.vb-library-actions a:hover,
.vb-library-actions .singlebutton input[type="submit"]:hover,
.vb-library-actions .singlebutton button:hover,
.vb-intro-actions a:hover,
.vb-intro-actions .singlebutton input[type="submit"]:hover,
.vb-intro-actions .singlebutton button:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(31, 102, 193, .22);
}

.vb-hero-actions a:visited,
.vb-library-actions a:visited,
.vb-intro-actions a:visited {
    color: #ffffff !important;
}

.vb-hero-actions .singlebutton form,
.vb-library-actions .singlebutton form,
.vb-intro-actions .singlebutton form {
    margin: 0;
}


/* Botones reales de la cabecera de la biblioteca */
.vb-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.vb-hero-buttons .singlebutton {
    margin: 0;
}

.vb-hero-buttons .singlebutton form {
    margin: 0;
}

.vb-hero-buttons > a.vb-btn,
.vb-hero-buttons .singlebutton input[type="submit"],
.vb-hero-buttons .singlebutton button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2c79d6 0%, #1f66c1 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid #1f66c1;
    box-shadow: 0 6px 16px rgba(31, 102, 193, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.vb-hero-buttons > a.vb-btn:hover,
.vb-hero-buttons .singlebutton input[type="submit"]:hover,
.vb-hero-buttons .singlebutton button:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(31, 102, 193, .22);
}

.vb-hero-buttons > a.vb-btn:visited {
    color: #ffffff !important;
}


.vb-sidecard-subtitle {
    margin-top: 16px;
    margin-bottom: 10px;
    font-size: 16px;
}

.vb-general-materials-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.vb-general-materials-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
}

.vb-general-materials-list li a {
    color: #1f66c1;
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.vb-general-materials-list li a:hover {
    text-decoration: underline;
}

.vb-general-material-size {
    color: #6b7a8b;
    font-size: 12px;
    white-space: nowrap;
}

.vb-general-materials-empty {
    color: #6b7a8b;
    font-size: 14px;
}


.videobiblioteca-card-description {
    color: #3f5268;
    font-size: 14px;
    line-height: 1.45;
    margin: 6px 0 12px;
    max-height: 4.4em;
    overflow: hidden;
}

.videobiblioteca-card-description p {
    margin: 0 0 6px;
}

.videobiblioteca-card-description p:last-child {
    margin-bottom: 0;
}

.videobiblioteca-card-description ul,
.videobiblioteca-card-description ol {
    margin: 4px 0 6px 18px;
    padding: 0;
}

.videobiblioteca-card-description img,
.videobiblioteca-card-description video,
.videobiblioteca-card-description iframe,
.videobiblioteca-card-description table {
    display: none;
}

.videobiblioteca-card-description a {
    color: #1f66c1;
    font-weight: 600;
    text-decoration: none;
}

.videobiblioteca-card-description a:hover {
    text-decoration: underline;
}

.vb-classic-description {
    max-height: 3.2em;
    margin-bottom: 10px;
}


.videobiblioteca-card-description-label {
    font-weight: 700;
    font-size: 13px;
    color: #1f3f6d;
    margin-top: 6px;
    margin-bottom: 4px;
}


/* Información de la clase: mismo formato que los metadatos de la tarjeta */
.videobiblioteca-card-description-label {
    color: #244362;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    margin: 8px 0 4px;
}

.videobiblioteca-card-description {
    color: #244362;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    margin: 0 0 12px;
    max-height: 4.4em;
    overflow: hidden;
}

.videobiblioteca-card-description p,
.videobiblioteca-card-description div {
    margin: 0 0 6px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.videobiblioteca-card-description p:last-child,
.videobiblioteca-card-description div:last-child {
    margin-bottom: 0;
}

.videobiblioteca-card-description strong,
.videobiblioteca-card-description b {
    font-weight: 700;
}

.videobiblioteca-card-description em,
.videobiblioteca-card-description i {
    font-style: italic;
}

.videobiblioteca-card-description ul,
.videobiblioteca-card-description ol {
    margin: 4px 0 6px 18px;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.videobiblioteca-card-description li {
    margin: 0 0 3px;
}

.videobiblioteca-card-description a {
    color: #1f66c1;
    font-weight: 600;
    text-decoration: none;
}

.videobiblioteca-card-description a:hover {
    text-decoration: underline;
}

.videobiblioteca-card-description h1,
.videobiblioteca-card-description h2,
.videobiblioteca-card-description h3,
.videobiblioteca-card-description h4,
.videobiblioteca-card-description h5,
.videobiblioteca-card-description h6 {
    color: inherit;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    margin: 0 0 6px;
}

.videobiblioteca-card-description img,
.videobiblioteca-card-description video,
.videobiblioteca-card-description iframe,
.videobiblioteca-card-description table {
    display: none;
}


.videobiblioteca-card-title {
    margin-bottom: 6px !important;
}

.videobiblioteca-card-description-label {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
}


/* Descripción integrada como metadato */
.videobiblioteca-card-description-inline {
    margin: 6px 0 8px;
    color: #244362;
    font-size: 14px;
    line-height: 1.45;
}

.videobiblioteca-card-description-inline strong {
    font-weight: 600;
}

.videobiblioteca-card-description-inline p,
.videobiblioteca-card-description-inline div {
    display: inline;
    margin: 0;
}

.videobiblioteca-card-description-inline ul,
.videobiblioteca-card-description-inline ol {
    margin-left: 16px;
}

.videobiblioteca-card-description-inline img,
.videobiblioteca-card-description-inline iframe,
.videobiblioteca-card-description-inline video,
.videobiblioteca-card-description-inline table {
    display: none;
}


/* Información de la clase desplegable en tarjetas */
.videobiblioteca-card-description-details {
    margin: 4px 0 10px;
    color: #244362;
    font-size: 14px;
    line-height: 1.45;
}

.videobiblioteca-card-description-details summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #244362;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.videobiblioteca-card-description-details summary::-webkit-details-marker {
    display: none;
}

.videobiblioteca-card-description-details summary::after {
    content: "▾";
    font-size: 12px;
    color: #1f66c1;
    transition: transform .15s ease;
}

.videobiblioteca-card-description-details[open] summary::after {
    transform: rotate(180deg);
}

.videobiblioteca-card-description-content {
    margin-top: 6px;
    color: #244362;
    font-size: 14px;
    line-height: 1.45;
    max-height: 7em;
    overflow: auto;
    padding-right: 4px;
}

.videobiblioteca-card-description-content p,
.videobiblioteca-card-description-content div {
    margin: 0 0 6px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.videobiblioteca-card-description-content p:last-child,
.videobiblioteca-card-description-content div:last-child {
    margin-bottom: 0;
}

.videobiblioteca-card-description-content strong,
.videobiblioteca-card-description-content b {
    font-weight: 700;
}

.videobiblioteca-card-description-content em,
.videobiblioteca-card-description-content i {
    font-style: italic;
}

.videobiblioteca-card-description-content ul,
.videobiblioteca-card-description-content ol {
    margin: 4px 0 6px 18px;
    padding: 0;
}

.videobiblioteca-card-description-content a {
    color: #1f66c1;
    font-weight: 600;
    text-decoration: none;
}

.videobiblioteca-card-description-content a:hover {
    text-decoration: underline;
}

.videobiblioteca-card-description-content img,
.videobiblioteca-card-description-content video,
.videobiblioteca-card-description-content iframe,
.videobiblioteca-card-description-content table {
    display: none;
}


/* Simetría visual de tarjetas: botón siempre alineado abajo */
.videobiblioteca-grid {
    align-items: stretch;
}

.videobiblioteca-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.videobiblioteca-card-thumb {
    flex: 0 0 auto;
}

.vb-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.vb-card-body .videobiblioteca-progressbar {
    margin-top: auto;
}

.vb-card-body .vb-btn.vb-btn-primary.vb-btn-full {
    margin-top: 12px;
}

.videobiblioteca-card-title {
    min-height: 2.7em;
}

.videobiblioteca-card-description-details:not([open]) {
    min-height: 24px;
}
