/* ==========================================================================
   Centro de conocimiento - Rhino — Public CSS
   Tokens exactos del Figma
   ========================================================================== */

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.kc-breadcrumb a {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    opacity: .7;
    transition: opacity .2s;
}
.kc-breadcrumb a:hover { opacity: 1; }

/* ==========================================================================
   SIDEBAR DE TEMA
   ========================================================================== */
.kc-sidebar {
    border-radius: 10px;
    background: #F2F2F2;
    overflow: hidden;
    height: 100%;
}

/* Cabecera amarilla */
.kc-sidebar-head {
    background: #FFB500;
    padding: 16px 20px;
}
.kc-sidebar-label {
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    margin: 0 0 4px;
    line-height: normal;
}
.kc-sidebar-title {
    font-family: Lato, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: normal;
    display: block;
}

/* Lista */
.kc-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 20px;
}
.kc-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    background: transparent;
    transition: background .15s;
    position: relative;
}

.kc-sidebar-item:before {
    content: '';
    width: 4px;
    height: 41px;
    border-radius: 0 10px 10px 0;
    background: #AEAEAE;
    display: block;
    position: absolute;
    left: 0;
}

.kc-sidebar-item.is-active:before {
    background: #FFB500;
}


.kc-sidebar-item:last-child { border-bottom: none; }

/* Activo */
.kc-sidebar-item.is-active {
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0 0 2px 1px #E3DFDF;
}
.kc-sidebar-item.is-active .kc-sidebar-item-title { color: #000; }
.kc-sidebar-item.is-active .kc-sidebar-item-duration { color: #000; }

/* Inactivo */
.kc-sidebar-item:not(.is-active) .kc-sidebar-item-title { color: #AEAEAE; }
.kc-sidebar-item:not(.is-active) .kc-sidebar-item-duration { color: #AEAEAE; }

.kc-sidebar-item-body { flex: 1; min-width: 0; }

.kc-sidebar-item-title {
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 144%; /* 25.92px */
    display: block;
}
.kc-sidebar-item-duration {
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 144%; /* 17.28px */
    display: block;
}

/* Botón play — sin estilos de botón */
.kc-play-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   SIDEBAR DE VIDEO (videos relacionados)
   ========================================================================== */
.kc-sidebar--related {
    background: #F2F2F2;
    border-radius: 10px;
    border: none;
    height: 100%;
    padding: 20px;
}

.kc-related-title {
    font-family: Lato, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: normal;
    margin: 0 0 16px;
}

.kc-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kc-related-link {
    text-decoration: none;
    color: #000;
    display: block;
}

.kc-related-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
}

.kc-related-item-title {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 112%; /* 15.68px */
    color: #000;
    display: block;
}
.kc-related-link:hover .kc-related-item-title { text-decoration: underline; }

/* ==========================================================================
   WISTIA EMBED — 16:9 responsivo
   ========================================================================== */
.kc-wistia-wrap {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.kc-wistia-wrap .wistia_embed {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   RECURSOS
   ========================================================================== */
.kc-recurso-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #F2F2F2;
    border-radius: 10px;
    text-decoration: none;
    color: #000;
    transition: background .2s;
}
.kc-recurso-card:hover { background: #e8e8e8; }

/* Círculo del ícono */
.kc-recurso-icon {
    width: 48px;
    height: 48px;
    border-radius: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kc-recurso-icon--pdf  { background: #FFE4A1; }
.kc-recurso-icon--link { background: #DBEAFE; }

.kc-recurso-label {
    font-family: Lato, sans-serif;
    font-size: 14px;
    font-weight: 700;
    flex: 1;
    line-height: 1.35;
    color: #000;
}
.kc-recurso-ext {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   BUSCADOR (home)
   ========================================================================== */
.kc-search-wrap {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border: 1px solid #b2b4be;
    border-radius: 20px;
    padding: 0 0 0 20px;
    height: 40px;
    overflow: hidden;
}
#kc-input-busqueda {
    flex: 1;
    border: none!important;
    background: transparent;
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #828282;
    outline: none;
    min-width: 0;
}
#kc-input-busqueda::placeholder { color: #828282; }
#kc-btn-buscar {
    background: #d9dae4;
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
#kc-btn-buscar img { width: 14px; height: 14px; }
/* Botón limpiar búsqueda */
#kc-btn-clear {
    background: transparent;
    border: none;
    color: #b2b4be;
    font-size: 14px;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
    flex-shrink: 0;
    display: none;     /* oculto por defecto, JS lo muestra */
    align-items: center;
    justify-content: center;
    transition: color .15s;
}
#kc-btn-clear:hover { color: #222423; }

/* ── Utilidades ─────────────────────────────────────────────────────────── */
.kc-oculto { display: none !important; }
.kc-video-item a { text-decoration: none; color: inherit; }

@media (max-width: 767px) {
    .kc-sidebar,
    .kc-sidebar--related { position: static; }
}
