/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Tipografía y colores base ===== */
body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    color: #eee;
    line-height: 1.6;
}

/* ===== Cabecera ===== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.navbar .logo {
    font-weight: bold;
    color: #00d9ff;
    letter-spacing: 1px;
}

.navbar nav a {
    color: #eee;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar nav a:hover,
.navbar nav .activo {
    color: #00d9ff;
}

/* ===== Contenedor principal ===== */
.curso-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ===== Sidebar de temas ===== */
.temas-sidebar {
    width: 250px;
    background: #111;
    color: #eee;
    padding: 1rem;
    border-right: 3px solid #00d9ff;
    overflow-y: auto;
}

.tema {
    margin-bottom: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 6px;
}

.tema:hover {
    background: rgba(0,217,255,0.1);
}

.tema.active {
    border-left: 4px solid #00d9ff;
    background: rgba(0,217,255,0.15);
}

/* ===== Subtemas ===== */
.subtemas {
    display: none;
    margin-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid #00d9ff;
    padding-left: 0.5rem;
}

.tema.active .subtemas {
    display: block;
}

.subtema {
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.subtema:hover {
    background: rgba(0,217,255,0.2);
}

.subtema.active {
    background: #00d9ff;
    color: #111;
    font-weight: bold;
}

/* ===== Subsubtemas ===== */
.subsubtemas {
    display: none;
    margin-left: 1rem;
    margin-top: 0.3rem;
    border-left: 2px solid #00d9ff;
    padding-left: 0.5rem;
}

.subtema.active .subsubtemas {
    display: block;
}

.subsubtema {
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.subsubtema:hover {
    background: rgba(0,217,255,0.25);
}

.subsubtema.active {
    background: #00ffff;
    color: #111;
    font-weight: bold;
}

/* ===== Caja de contenido ===== */
.contenido {
    flex: 1;
    background: rgba(17,17,17,0.95);
    padding: 1rem;
    overflow-y: auto;
}

.contenido iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 12px;
    background: #fff;
}

/* ===== Botones navegación ===== */
.iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.nav-btn {
    position: fixed;
    bottom: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.9;
    z-index: 200; /* Asegura que esté encima del contenido */
}

.nav-btn:hover {
    opacity: 1;
}

.nav-btn.left {
    left: 260px;
}

.nav-btn.right {
    right: 10px;
}

  /* ===== Scrollbar ===== */
        ::-webkit-scrollbar {
            width: 10px;
        }
        ::-webkit-scrollbar-thumb {
            background: #00d9ff;
            border-radius: 5px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #00a3cc;
        }
        