﻿:root {
    --color_azul: #5463EF;
    --color_naranja: #FF6A00;
    --color_morado: #b53dbf;
    --color_gris: #575756;
    --color_verde: #3FCC2B;
}

@font-face {
    font-family: 'outfit';
    src: URL('fonts/OutfitVariableFont.ttf') format('truetype');
}

html {
    font-family: outfit !important;
}
.pointer {
    cursor: pointer !important;    
}
.uk-navbar-container {
    background: white !important;
}
.widtfixed100 {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
    padding: 2px;    
}

/* =================================================== */
/* Estilos de tamaño completo */
.fullSizeWrap, .fullSize {
    width: 100%;
    height: 100%;
}
.fullSizeWrap {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
}

/* Estilos de imágenes */
#dataTitulo img, .pb_img img, .pb_logoEdit img {
    object-fit: contain;
    width: 100%;
}
#dataTitulo img {
    height: 250px;
}
.pb_img img {
    height: 200px;
}
.pb_logoEdit img {
    height: 90px;
}

/* Ajustando los estilo de UIKIT */
.pb_img .uk-text-primary {
    color: var(--color_azul) !important;
}
.pb_img .uk-text-meta {
    font-size: .875rem !important;
    line-height: 1.4 !important;
}
.pb_img .uk-text-muted {
    color: #999 !important;
}
.uk-active, .uk-light {
    color: unset;
}

/* Estilos de texto */
#dataTitulo ul li span, .uk-tab-bottom li a span, .icono_optionBusq button .material-symbols-outlined, .btn_consultarTitle, .btns_resultVisorIAN button {
    color: var(--color_azul);
}
.uk-tab-bottom li a span:hover {
    color: white !important;
}

/* Estilos de botones */
#btn_selectText button {
    font-size: 12px;
}
#btn_selectText button:hover {
    color: var(--color_azul);
    border: 1px solid var(--color_azul);
}

.btn_IAN {
    background-color: white;
    color: var(--color_naranja);
    border: 1px solid var(--color_naranja);
}  
.btn_IAN.activo {
    background-color: var(--color_naranja);
    color: white;
    border: none;
}
.btn_resumenIAN {
    color: var(--color_naranja);
}
.btn_resumenIAN:hover {
    color: var(--color_azul);
}
.btnSecundary {
    background-color: var(--color_gris);
    color: white;
}
.btn_ColecConoci {
    background-color: white;
    color: var(--color_azul);
    border: 1px solid var(--color_azul);
}

/* Iconos */
.icon_submenu, .icon_optiVisor {
    vertical-align: middle;
    position: relative;
}
.icon_submenu {
    font-size: 20px;
    margin-right: 8px;
    top: 2px;
}
.icon_optiVisor {
    font-size: 35px;
}

/* Breadcrumb */
.pb_breadcrumb {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
}
.pb_breadcrumb li {
    text-decoration: none;
    color: var(--color_azul);
    cursor: pointer;
}
.pb_breadcrumb li:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    font-weight: bold;
    color: black;
}
#ct_cardsHome:hover, .resultInput li {
    cursor: pointer;
}
.resultInput {
    position: absolute;
    width: 100%;
    background: white;
    z-index: 1000;
    max-height: 210px;
    overflow-y: auto;
}
.btn-icon {
    min-width: 40px;
    min-height: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uk-text-hover:hover {
    color: black !important;
}
.uk-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
}
.uk-navbar-nav .uk-active a {
    color: var(--color_azul) !important;
    font-weight: bold;
}
.colorMorado {
    color: var(--color_morado);
}
.colorGris {
    color: var(--color_gris);
}
.colorNaranja{
    color: var(--color_naranja) !important;
}

#logoMIa{
    width: 10%;
}
.portadaContainer {
    width: 80px;
    max-width: 80px;
    min-width: 80px;
}
.portadaContainer img {
    height: 100px;
    max-height: 100px;
    min-height: 100px;
}
.quill-respuesta p {
    margin: 0;
    margin-left: 15px;
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: pointer;
    display: inline-block;
}
    /* Tooltip arriba - posición por defecto */
    .tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background-color: black;
        color: white;
        padding: 5px 8px;
        border-radius: 3px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease-in-out;
        z-index: 10;
        text-transform: none;
    }

    

    /* Tooltip abajo si data-position="bottom" */
    .tooltip[data-position="bottom"]::after {
        top: 125%;
        bottom: auto;
        transform: translateX(-50%);
    }

    .tooltip:hover::after {
        opacity: 1;
        pointer-events: auto;
    }

.uk-accordion-title::before {
    display: none !important;
    content: none !important;
}

.input-error {
    border: 1px solid red !important;
}


#btnEditoriales {
    width: 45%;
    height: auto;    
}

.uk-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
}

.sinresultColecIntIAN {
    width: 60%;
    height: auto;
}


#input_termino,
#input_termino_edit,
#input_terminoStage,
#input_preguntaIAN,
#input_termino_Colecc {
    border: 1px solid #1e1e1e;
}

.sinBordes{
    border: none;
}

#icon_Edit_ian {
    width: 12%;
    height: auto;
    border-radius: 50%;
    z-index: 10;
    background-color: white;
    object-fit: contain;
}

.btn-badge-colecc {
    position: relative;
}

    .btn-badge-colecc::after {
        content: attr(data-count); /* aquí se mostrará el número */
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: white;
        color: var(--color_azul);
        font-size: 12px;
        font-weight: bold;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--color_verde);
        box-sizing: border-box;
    }


/* ================== ESTILOS IAN ========================== */

#main_ian {
    display: flex;
    flex-direction: column;
}

#ct_respuestaIAN {
    flex: 1;
    overflow-y: hidden;
}

#ct_preguntaIAN {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid #ddd;
}



@media (max-width: 960px) {
    #input_terminoTitle {
        font-size: 14px;
    }
    #logoMIa {
        width: 40%;
    }
    #btnEditoriales {
        width: 100%;
    }
    .sinresultColecIntIAN {
        width: 100%;
    }


    #offcanvas-visorTitulo.bottom .uk-offcanvas-bar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: 18vh;
        transform: translateY(100%);
        transition: transform .3s ease;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        padding: 1rem;
        overflow-y: auto; /* scroll si el contenido excede */
        box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.2);
        background: #fff;
        z-index: 1050; /* por encima del overlay si hace falta */
        background-color: #222222;
    }

    #offcanvas-visorTitulo.bottom.uk-open .uk-offcanvas-bar {
        transform: translateY(0);
    }
    
}


