/* ===== LISTA DE VIDEOS + REPRODUCTOR ===== */
.videos-titulo {
    color: var(--color-primario);
    font-size: 1.6rem;
    margin-bottom: 25px;
    margin: 0 0 10px 10px;
    
  line-height: 1.2;
}
.contenedor h5 {
    font-size: 1.2rem;
    font-weight: normal; 
    margin: 0 85px; 
    text-align: justify;

}

.contenedor a {
    color: var(--color-primario);
    font-size: 1.2rem;
    font-style: bold;
    text-decoration: underline;
    line-height: 1.5;
}

.videos-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;   /* lista | reproductor */
    padding: 25px;
    align-items: flex-start;
}

/* --- Lista (izquierda) --- */
.videos-lista h3 {
    font-size: 1.2rem;
    color: var(--color-texto);
    margin: 0 0 15px 15px;
}

.videos-lista h3:not(:first-child) {
    margin-top: 30px;
}

.videos-lista ul {
    list-style: square;          /* viñeta cuadrada como en tu captura */
    padding-left: 22px;
}

.videos-lista li {
    margin-bottom: 12px;
    margin: 0 0 0 20px;

}

.videos-item {

    background: none;
    border: none;
    padding: 4px 0;
    font-family: inherit;
    font-size: 1.15rem;
    text-align: left;
    color: var(--color-primario);   /* cambia por el color de enlace que prefieras */
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.videos-item:hover {
    border-bottom-color: var(--color-secundario);
}

.videos-item.activo {
    font-weight: bold;
    color: var(--color-primario);
    border-bottom-color: var(--color-secundario);
}

/* --- Reproductor (derecha) --- */
.videos-panel {
    position: sticky;            /* en escritorio, el video te acompaña al bajar */
    top: 100px;
}

.videos-marco {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.videos-marco iframe,
.videos-marco video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.videos-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 20px;
}

.videos-placeholder span {
    font-size: 2.5rem;
}

.videos-nombre {
    margin-top: 12px;
    font-weight: bold;
    color: var(--color-texto);
}

/* --- Tablets y celulares: una sola columna, reproductor arriba --- */
@media (max-width: 900px) {
    .videos-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 5px;
    }

    .videos-panel {
        order: -1;               /* el reproductor sube encima de la lista */
        position: sticky;
        top: 20px;               /* queda fijo bajo la barra de menú mientras eliges */
        z-index: 10;
        background: var(--color-fondo-claro);
        padding-bottom: 10px;
    }

    .videos-item {
        font-size: 1.05rem;
        padding: 8px 0;          /* zona táctil más cómoda */
    }

    .contenedor h5 {
    font-size: 1rem;
    font-weight: normal; 
    margin: 0 0 0 15px; 
    text-align: justify;
        line-height: 1.5;
    }
}