*,
*::before,
*::after {
    box-sizing: border-box;
}

/*--- ESTILOS GENERALES ---*/
body {
    background-color: #001E36;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #FFFF;
    box-sizing: border-box;
    min-width: 360px;
}

#appComponentComunidad {
    max-width: 750px;
    margin: auto;
    border-radius: 15px !important;
}
#appComponentComunidad .header-comments,
#appComponentComunidad .main-comments {
    background-color: white;
}

main iframe{
    width: 100% !important;
}

#appComponentComunidad textarea {
    color: black;
}

.lo-mas-visto-section .section-body .article-link .article-card .article-fecha {
    display: none;
}

a {
    text-decoration: none;
    color: #FFFF;
}



main {
    margin: 0 auto;
    max-width: 790px;
}

/*--- Opciones del navbar ---*/
.mobile-nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    z-index: 1000;
    border-radius: 10px;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #001E36;
}

.mobile-nav-menu.is-open {
    max-height: calc(100vh - 70px);

}

.mobile-nav-menu .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.mobile-nav-menu .nav-links li {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 19px;
    letter-spacing: 0px;

}

.nav-item-programas {

    padding: 0 !important;
}



.ad-top-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #00182c;
    transition: opacity 0.4s ease;
}
#ad_top{
    position: relative;
}

/*---cuerpo del video---*/
.header-video-container {
    margin-left: 16px;
}

/*Video de la nota*/
.video-container {
    margin: 0 auto 25px;
    max-width: 790px;
}

.envivo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* relación 16:9 -> 9 / 16 = 0.5625 */
    overflow: hidden;
    background-color: #001E36;
}

.envivo-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}



.bbtv-nota-video-container>* {
    position: relative;
    z-index: 1;
}

.programa-name-container {
    width: 100%;
}

.politica-etica {
    font-size: 15px;
    font-weight: 400;
    line-height: 14px;
    text-align: center !important;
    text-decoration-line: underline;
    text-decoration-skip-ink: none;
    color: #ffffff;
}

.programa-name-container .programa-name a {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #90C6F8;
    margin-bottom: 16px;
}

.header-video-container .video-title {
    font-weight: bold;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0;
    text-align: left;
    word-break: break-word;
    margin-bottom: 25px;
}

.video-data-details {
    margin-bottom: 27px;
}

.video-data-details .video-autor {
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0px;
    color: #0284C7;
    margin-bottom: 12px;
}

.video-data-details .fecha-video {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0px;
    color: rgba(226, 232, 239, 0.8);
    margin-bottom: 12px;
    align-self: end;
}

.video-data-details .visitas-video {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0px;
    color: rgba(226, 232, 239, 0.8);
}


.container-resumen-ia {
    max-width: 790px;
    margin: 40px auto;
    display: block;
}

.container-resumen-ia .mostrar-parrafo-resumen {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.container-resumen-ia .mostrar-parrafo-resumen .resumen-ia.btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #36A8EE 0%, #4C67F6 100%);
    border-radius: 8px;
    padding: 10px 32px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.container-resumen-ia .resumen-ia .imagen-icon {
    width: 25px;
    height: 28px;
    object-fit: cover;
}

.container-resumen-ia .resumen-ia .titulo-resumen {
    flex-grow: 1;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 2px;
    color: #FFFFFF !important;
    margin: 0;
}

.container-resumen-ia .resumen-generado {
    background-color: #00233f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px 40px;
    color: #FFFFFF;
}

.container-resumen-ia .resumen-generado span.cabecera {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #8C98A4;
    display: block;
    margin-bottom: 16px;
}

.container-resumen-ia .resumen-generado p {
    font-size: 17px;
    line-height: 29px;
    margin: 0;
}

/*---redes sociales---*/
.social-links {
    margin-bottom: 25px;
}
.social-links a{
    position: relative;
    text-decoration: none;
    cursor: pointer;
}
.social-links a:focus{
    text-decoration: none;
}
.social-links a:hover{
    text-decoration: none;
}

.social-links .icon-facebook {
    color: #1B74E4;
    width: 10px;
    height: 19px;
}

.social-links .icon-x {
    width: 19px;
    height: 19px;
    margin-left: 42px;
}

.social-links .icon-whatsapp {
    color: #12C853;
    width: 22px;
    height: 22px;
    margin-left: 38px;
}

.social-links .icon-link {
    color: #8899A6;
    width: 18px;
    height: 18px;
    margin-left: 38px;

}

/*tooltip para enlace copiado*/
.copy-tooltip {
    position: fixed;
    bottom: 48px;
    left: 50%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateX(-50%) translateY(10px);
    z-index: 9999;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ad-middle1 {
    width: 300px;
    height: 250px;
    margin: 0 auto 24px;
}

.ad-middle2 {
    width: 300px;
    height: 250px;
    margin: 0 auto 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

}

.video-text-container {
    padding: 0px 16px;
    margin-bottom: 24px;
}

.video-text-container p {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
    text-align: left;
    word-break: break-word;
}


.lee-tambien-bbcl {
    margin: 10px -15px 25px;
    padding: 0 8px 20px;
}

.lee-tambien-bbcl .lee-tambien-titulo {
    color: #ffffff;
    margin-bottom: 8px;
}

.lee-tambien-bbcl .lee-tambien-caja {
    display: flex;
}

.lee-tambien-bbcl .lee-tambien-caja .lee-tambien-img {
    width: 163px;
    background-position: 50%;
    background-size: cover;
    margin-right: 10px;
}

.lee-tambien-img.lazy::before {
    content: "";
    display: block;
    padding-top: 61.3496932515%;
}

.lee-tambien-bbcl .lee-tambien-caja .lee-tambien-titular {
    color: currentColor;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    text-decoration: none;
    background-color: transparent;
}



/* --- LO MÁS VISTO --- */
.lo-mas-visto-section {
    padding: 0 16px;
    margin-bottom: 15px;
}

.lo-mas-visto-section .section-title {
    border-top: 1px solid rgba(147, 163, 182, 0.2);
    padding-top: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
}


.lo-mas-visto-section .section-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lo-mas-visto-section .section-body a:last-child {
    display: none;
}

.article-link {
    text-decoration: none;
    color: inherit;
}


.article-card {
    display: flex;
    align-items: center;
    gap: 12px;
}


.article-image {
    width: 130px;
    height: 75px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

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


.video-time {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 30, 54, 0.8);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 400;
}


.article-title {
    font-weight: 500;
    line-height: 19px;
    font-size: 14px;
    word-break: break-word;
}




/*Version escritorio*/
@media (min-width: 992px) {

    iframe{
        margin: 0 auto !important;
    }

    .bbtv-nota-video-container {
        width: 100%;
        max-width: 790px;
        margin: 0 auto 12px;
        display: block;
        position: relative;
    }

    .bbtv-nota-video-container::before {
        content: "";
        position: absolute;
        inset: 0;
        left: 50%;
        width: 1000px;
        border-radius: 17%;
        transform: translateX(-50%);
        background: url(/biobiotv/assets/img/blur_escritorio.jpg) center center / cover no-repeat;
        z-index: 0;
        opacity: 50%;
        filter: blur(25px);

    }

    .bbtv-nota-video-container>* {
        position: relative;
        z-index: 1;
    }

    .envivo-wrapper {
        position: relative;
        width: 100%;
        padding-top: 56.25%;
    }

    .envivo-video iframe,
    .envivo-video video,
    .envivo-video img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: none;
    }

    .creditos-imagen {
        font-size: 14px;
        color: #888;
        margin-top: 6px;
        text-align: right;
    }

    .video-container {
        max-width: 790px;
    }

    .header-video-container {
        max-width: 790px;
        margin-left: auto;
        margin-right: auto;
    }

    .nota-content {
        max-width: 790px;
        margin-left: auto;
        margin-right: auto
    }

    .container-resumen-ia {
        max-width: 790px;
        display: block;
    }

    .container-resumen-ia .mostrar-parrafo-resumen {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .container-resumen-ia .mostrar-parrafo-resumen .resumen-ia.btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(90deg, #36A8EE 0%, #4C67F6 100%);
        border-radius: 8px;
        padding: 10px 32px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .container-resumen-ia .resumen-ia .imagen-icon {
        width: 25px;
        height: 28px;
        object-fit: cover;
    }

    .container-resumen-ia .resumen-ia .titulo-resumen {
        flex-grow: 1;
        font-size: 12px;
        font-weight: 700;
        line-height: 12px;
        letter-spacing: 2px;
        color: #FFFFFF !important;
        margin: 0;
    }

    .container-resumen-ia .resumen-generado {
        background-color: #00233f;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 20px 40px;
        color: #FFFFFF;
    }

    .container-resumen-ia .resumen-generado span.cabecera {
        font-size: 13px;
        font-weight: 400;
        line-height: 18px;
        color: #8C98A4;
        display: block;
        margin-bottom: 16px;
    }

    .container-resumen-ia .resumen-generado p {
        font-size: 17px;
        line-height: 29px;
        margin: 0;
    }

    .video-text-container h2 {
        font-size: 24px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .lee-tambien-bbcl {
        background: linear-gradient(90deg, rgba(136, 153, 166, .3), rgba(136, 153, 166, .3)) center bottom 1px/100% 1px no-repeat;
        display: block;
        padding: 0;
        margin: 10px 0 25px;
    }

    .lee-tambien-bbcl::before {
        clear: both;
        content: '';
        display: block;
    }

    .lee-tambien-bbcl .lee-tambien-titulo {
        color: #ffffff;
        font-family: "Lato", sans-serif;
        margin-bottom: 8px;
        font-weight: 700;
        font-size: 1.0625rem;
        line-height: 1.25rem;
    }

    .lee-tambien-bbcl .lee-tambien-caja {
        padding: 0 10px 10px;
        display: flex;
    }

    .lee-tambien-bbcl .lee-tambien-caja .lee-tambien-img {
        align-self: flex-start;
        flex: 0 0 163px;
        width: 163px;
        background-position: 50%;
        background-size: cover;
        margin-right: 10px;
    }

    .lee-tambien-img.lazy::before {
        content: "";
        display: block;
        padding-top: 61.3496932515%;
    }

    .lee-tambien-bbcl .lee-tambien-caja .lee-tambien-titular {
        font-weight: 700;
        font-size: 1.25rem;
        line-height: 1.688rem;
        padding-left: 10px;
        color: currentColor;
        text-decoration: none;
        background-color: transparent;
    }

    .ad-middle2 {
        display: none;
    }

    .video-text-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 790px;
    }

    .btn-ver-comentarios {
        margin-top: 100px;
    }

    .lo-mas-visto-section {
        max-width: 790px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }


    .lo-mas-visto-section .section-body {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .article-card {
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
    }

    .article-image {
        width: 100%;
        height: 150px;
    }

    .article-title {
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        word-break: break-word;
    }

    a {
        text-decoration: none;
        color: #FFFF;
    }

    a:hover {
        text-decoration: none;
        color: #FFFF;
    }


    .lo-mas-visto-section .section-body .article-link .article-card .article-fecha {
        display: block;
        font-size: 0.8rem;
        color: rgba(226, 232, 239, 0.6);
        margin-top: auto;
    }

    .article-section-with-ad {
        display: flex;
        align-items: flex-start;
        gap: 30px;
        max-width: 790px;
        margin: 0 auto 24px;
    }

    .article-section-with-ad .ad-middle1 {
        flex-basis: 300px;
        flex-shrink: 0;
        margin: 0;
    }

    .article-section-with-ad .video-text-container {
        flex: 1;
        max-width: none;
        margin: 0;
    }

    /*datos del video de forma horizontal*/
    .video-data-details {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        font-size: 15px;
        color: #fff;
        margin-bottom: 20px;
        gap: 15px;
    }

    .video-meta-left {
        align-items: center;
        gap: 20px;
    }

    .video-meta-left .fecha-video{
        padding-left: 72px;
    }

    .fecha-video,
    .visitas-video {
        display: flex;
        align-self: end;
        gap: 6px;
        font-weight: 400;
        white-space: nowrap;
        margin-bottom: 0px !important;
        padding-bottom: 10px;
    }

    .video-data-details .video-autor {
        margin-bottom: 0;
    }

    .video-data-details a {
        color: #fff;
        font-weight: 600;
        text-decoration: none;
    }

    /*iconos sociales */
    .social-links {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        text-decoration: none;
    }

    .social-links .icon-facebook,
    .social-links .icon-whatsapp,
    .social-links .icon-link,
    .social-links .icon-twitter {
        margin-left: 0 !important;
    }
    .social-links .icon-facebook{
        color: white;
    }
    .social-links .icon-whatsapp{
        color: white;
    }
    .social-links .icon-link{
        color: white;
    }
    .social-links .icon-twitter{
        color: black;
    }


    .social-links .fa-whatsapp::before {
        color: white;
        font-size: 20px;
        position: relative;
    }

    .social-links .fa-facebook::before {
        color: white;
    }

    .social-links .fa-link::before {
        color: white;
    }

    .social-links a.facebook {
        background-color: #1B74E4;
    }

    .social-links a.twitter {
        background-color: #FFFFFF;
    }

    .social-links a.twitter i {
        color: black;
    }

    .social-links a.whatsapp {
        background-color: #12C853;
    }

    .social-links a.copiar {
        background-color: #8899A6;
    }












}