/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* =====================================
   SINGLE BIBLIOTECA
===================================== */

/* =====================================
   SINGLE BIBLIOTECA
===================================== */

.biblioteca-single {
    background: #f3f5f8;
    padding: 40px 0 80px;
}

.biblioteca-container {
    max-width: 1240px;
    margin: 0 auto;
}


/* Volver */

.biblioteca-back {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 600;
    color: #091c3d;
    text-decoration: none;
}


/* =====================================
   VIDEO
===================================== */

.biblioteca-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.biblioteca-video iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}


/* =====================================
   META
===================================== */

.biblioteca-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 12px;
}

.biblioteca-category {
    background: #071c3f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.biblioteca-meta-info {
    color: #8992a5;
}


/* =====================================
   TITULO
===================================== */

.biblioteca-title {
    color: #071c3f;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 14px;
}


/* =====================================
   ACCIONES
===================================== */

.biblioteca-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid #dde2ea;
}

.biblioteca-save {
    appearance: none;
    background: transparent;
    border: 1px solid #071c3f;
    color: #071c3f;
    border-radius: 6px;
    padding: 7px 14px;
    cursor: pointer;
    font-weight: 600;
}

.biblioteca-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}


/* =====================================
   RESUMEN
===================================== */

.biblioteca-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 32px;
}

.biblioteca-summary-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #071c3f;
    font-size: 20px;
    font-weight: 700;
}

.biblioteca-summary-text {
    color: #303747;
    font-size: 14px;
    line-height: 1.65;
}

.biblioteca-keypoints {
    margin-top: 18px;
    font-size: 14px;
}

.biblioteca-keypoints strong {
    display: block;
    color: #071c3f;
    margin-bottom: 8px;
}

.biblioteca-keypoints ul {
    margin: 0;
    padding-left: 18px;
}

.biblioteca-keypoints li {
    margin-bottom: 8px;
}

.biblioteca-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.biblioteca-tags span {
    background: #f3f5f8;
    color: #071c3f;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}


/* =====================================
   RECOMENDADOS
===================================== */

.biblioteca-related {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.biblioteca-related h3 {
    color: #071c3f;
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.biblioteca-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.biblioteca-related-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f5f6f8;
    border-radius: 8px;
    padding: 8px;
    color: inherit;
    text-decoration: none;
}

.biblioteca-related-image {
    flex: 0 0 110px;
    width: 110px;
    height: 70px;
    overflow: hidden;
    border-radius: 5px;
}

.biblioteca-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biblioteca-related-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biblioteca-related-category {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #53617b;
}

.biblioteca-related-content strong {
    color: #071c3f;
    font-size: 12px;
    line-height: 1.3;
}


/* =====================================
   STICKY SIDEBAR
===================================== */

@media (min-width: 960px) {

    .biblioteca-sidebar > .uncol {
        position: sticky;
        top: 100px;
    }

}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 959px) {

    .biblioteca-single {
        padding: 25px 15px 50px;
    }

    

    .biblioteca-sidebar {
        margin-top: 30px;
    }

    .biblioteca-title {
        font-size: 25px;
    }

    .biblioteca-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .biblioteca-actions {
        gap: 20px;
    }

    .biblioteca-summary-card {
        padding: 24px 20px;
    }

}

/* =====================================
   SHARE
===================================== */

.biblioteca-share {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.biblioteca-share-label {
    color: #071c3f;
    font-size: 12px;
    font-weight: 600;
}

.biblioteca-share-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.biblioteca-share-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 1px solid #d8dde6;
    border-radius: 50%;

    background: #fff;
    color: #071c3f;

    cursor: pointer;
    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.biblioteca-share-button svg {
    width: 14px;
    height: 14px;

    fill: currentColor;
}

.biblioteca-share-button:hover {
    background: #071c3f;
    border-color: #071c3f;
    color: #fff;

    transform: translateY(-1px);
}


/* mensaje copiar */

.biblioteca-copy-message {
    position: absolute;

    right: 0;
    bottom: -30px;

    padding: 5px 9px;

    border-radius: 5px;

    background: #071c3f;
    color: #fff;

    font-size: 10px;

    opacity: 0;
    visibility: hidden;

    transition: all .2s ease;
}

.biblioteca-copy-message.is-visible {
    opacity: 1;
    visibility: visible;
}


/* Mobile */

@media (max-width: 767px) {

    .biblioteca-share {
        flex-wrap: wrap;
    }

    .biblioteca-share-button {
        width: 34px;
        height: 34px;
    }

}

.social-links {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.social-links .biblioteca-share {
    width: auto;
}

.biblioteca-pdf {
    margin-top: 24px;
}

.biblioteca-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 20px;

    background: #071c3f;
    color: #fff !IMPORTANT;

    border: 1px solid #071c3f;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: all .2s ease;
}

.biblioteca-pdf-button:hover {
    background: transparent;
    color: #071c3f !important;
}

.biblioteca-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.biblioteca-pdf-icon svg {
    display: block;
}

.biblioteca-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.biblioteca-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   GALERÍA DE VIDEOS
========================================= */

.biblioteca-video-gallery {
    width: 100%;
}


/* =========================================
   VIDEO PRINCIPAL
========================================= */

.biblioteca-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.biblioteca-video iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}


/* =========================================
   LISTADO
========================================= */

.biblioteca-video-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}


/* =========================================
   ITEM
========================================= */

.biblioteca-video-item {
    appearance: none;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}


/* =========================================
   THUMBNAIL
========================================= */

.biblioteca-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.biblioteca-video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.biblioteca-video-item:hover
.biblioteca-video-thumbnail img {
    transform: scale(1.03);
}


/* =========================================
   PLAY
========================================= */

.biblioteca-video-play {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, .15);

    transition: background .2s ease;
}

.biblioteca-video-play span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(0, 0, 0, .75);
    color: #fff;

    font-size: 16px;

    padding-left: 3px;
}

.biblioteca-video-item:hover
.biblioteca-video-play {
    background: rgba(0, 0, 0, .28);
}


/* =========================================
   TITULO
========================================= */

.biblioteca-video-title {
    margin-top: 8px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    color: #17233c;
}


/* =========================================
   ACTIVO
========================================= */

.biblioteca-video-item.active
.biblioteca-video-thumbnail {
    outline: 2px solid #17233c;
    outline-offset: 2px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .biblioteca-video-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .biblioteca-video-list {
        grid-template-columns: 1fr;
    }

}

.biblioteca-video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.biblioteca-video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biblioteca-video-thumbnail-fallback {
    position: absolute;
    inset: 0;
    background: #111;
}

.biblioteca-video-play {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.biblioteca-video-play span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(0, 0, 0, .75);
    color: #fff;
}


.oster-category-card {
    background-position: top center !important;
    background-size: contain  !important;
    background-repeat: no-repeat !important;
}